#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*/ gets(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int strlen(char *);
int main(void) {
  int n, i, j, max, min, l, h, t;
  char str[51], graph[100][51];
  scanf("%d\n", &n);
  for (t = 1; t <= n; t++) {
    h = 0;
    max = 0;
    min = 0;
    gets(str);
    l = strlen(str);
    for (i = 0; i < 100; i++) {
      for (j = 0; j < 51; j++)
        graph[i][j] = ' ';
      graph[i][l] = '\0';
    }
    for (i = 0; i < l; i++) {
      if (str[i] == 'R') {
        if (h < 0)
          graph[49 - h][i] = '/';
        else
          graph[h][i] = '/';
        h++;
        if (h > max)
          max = h;
      } else if (str[i] == 'F') {
        h--;
        if (h < 0)
          graph[49 - h][i] = '\\';
        else
          graph[h][i] = '\\';
        if (h < min)
          min = h;
      } else {
        if (h < 0)
          graph[49 - h][i] = '_';
        else
          graph[h][i] = '_';
      }
    }
    printf("Case #%d:\n", t);
    for (i = l - 1; i >= 0; i--) {
      if (graph[max][i] != ' ') {
        graph[max][i + 1] = '\0';
        printf("| %s\n", graph[max]);
        break;
      }
    }
    for (i = max - 1; i >= 0; i--) {
      for (j = l - 1; j >= 0; j--) {
        if (graph[i][j] != ' ') {
          graph[i][j + 1] = '\0';
          printf("| %s\n", graph[i]);
          break;
        }
      }
    }
    for (i = -1; i > min; i--) {
      for (j = l - 1; j >= 0; j--) {
        if (graph[49 - i][j] != ' ') {
          graph[49 - i][j + 1] = '\0';
          printf("| %s\n", graph[49 - i]);
          break;
        }
      }
    }
    for (i = l - 1; i >= 0; i--) {
      if (graph[49 - min][i] != ' ' && min < 0) {
        graph[49 - min][i + 1] = '\0';
        printf("| %s\n", graph[49 - min]);
        break;
      }
    }
    printf("+");
    for (i = 0; i <= l + 1; i++)
      printf("-");
    printf("\n\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1450,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xea7(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1060 <scanf@plt>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     16a4 <main+0x564>
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
lea    -0x60(%rbp),%rdi
call   1050 <gets@plt>
lea    -0x60(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x64,-0xc(%rbp)
jge    1211 <main+0xd1>
movl   $0x0,-0x10(%rbp)
cmpl   $0x33,-0x10(%rbp)
jge    11e9 <main+0xa9>
movslq -0xc(%rbp),%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11b7 <main+0x77>
movslq -0xc(%rbp),%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11a6 <main+0x66>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1383 <main+0x243>
movslq -0xc(%rbp),%rax
movsbl -0x60(%rbp,%rax,1),%eax
cmp    $0x52,%eax
jne    12a0 <main+0x160>
cmpl   $0x0,-0x20(%rbp)
jge    1266 <main+0x126>
mov    $0x31,%eax
sub    -0x20(%rbp),%eax
movslq %eax,%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movb   $0x2f,(%rax,%rcx,1)
jmp    1280 <main+0x140>
movslq -0x20(%rbp),%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movb   $0x2f,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jle    129b <main+0x15b>
mov    -0x20(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    1370 <main+0x230>
movslq -0xc(%rbp),%rax
movsbl -0x60(%rbp,%rax,1),%eax
cmp    $0x46,%eax
jne    131c <main+0x1dc>
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jge    12eb <main+0x1ab>
mov    $0x31,%eax
sub    -0x20(%rbp),%eax
movslq %eax,%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movb   $0x5c,(%rax,%rcx,1)
jmp    1305 <main+0x1c5>
movslq -0x20(%rbp),%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movb   $0x5c,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1317 <main+0x1d7>
mov    -0x20(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    136b <main+0x22b>
cmpl   $0x0,-0x20(%rbp)
jge    134c <main+0x20c>
mov    $0x31,%eax
sub    -0x20(%rbp),%eax
movslq %eax,%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movb   $0x5f,(%rax,%rcx,1)
jmp    1366 <main+0x226>
movslq -0x20(%rbp),%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movb   $0x5f,(%rax,%rcx,1)
jmp    136b <main+0x22b>
jmp    1370 <main+0x230>
jmp    1375 <main+0x235>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1218 <main+0xd8>
mov    -0x24(%rbp),%esi
lea    0xc77(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jl     1421 <main+0x2e1>
movslq -0x14(%rbp),%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
je     140e <main+0x2ce>
movslq -0x14(%rbp),%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
movslq -0x14(%rbp),%rax
lea    -0x1450(%rbp),%rsi
imul   $0x33,%rax,%rax
add    %rax,%rsi
lea    0xc0d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1421 <main+0x2e1>
jmp    1413 <main+0x2d3>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    139d <main+0x25d>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jl     14d4 <main+0x394>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
jl     14c1 <main+0x381>
movslq -0xc(%rbp),%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
je     14ae <main+0x36e>
movslq -0xc(%rbp),%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
movslq -0xc(%rbp),%rax
lea    -0x1450(%rbp),%rsi
imul   $0x33,%rax,%rax
add    %rax,%rsi
lea    0xb6d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14c1 <main+0x381>
jmp    14b3 <main+0x373>
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
jmp    143d <main+0x2fd>
jmp    14c6 <main+0x386>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    142a <main+0x2ea>
movl   $0xffffffff,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jle    159b <main+0x45b>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
jl     1588 <main+0x448>
mov    $0x31,%eax
sub    -0xc(%rbp),%eax
movslq %eax,%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
je     1575 <main+0x435>
mov    $0x31,%eax
sub    -0xc(%rbp),%eax
movslq %eax,%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    $0x31,%eax
sub    -0xc(%rbp),%eax
cltq
lea    -0x1450(%rbp),%rsi
imul   $0x33,%rax,%rax
add    %rax,%rsi
lea    0xaa6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1588 <main+0x448>
jmp    157a <main+0x43a>
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
jmp    14f0 <main+0x3b0>
jmp    158d <main+0x44d>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    14db <main+0x39b>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jl     1646 <main+0x506>
mov    $0x31,%eax
sub    -0x18(%rbp),%eax
movslq %eax,%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
je     1633 <main+0x4f3>
cmpl   $0x0,-0x18(%rbp)
jge    1633 <main+0x4f3>
mov    $0x31,%eax
sub    -0x18(%rbp),%eax
movslq %eax,%rcx
lea    -0x1450(%rbp),%rax
imul   $0x33,%rcx,%rcx
add    %rcx,%rax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    $0x31,%eax
sub    -0x18(%rbp),%eax
cltq
lea    -0x1450(%rbp),%rsi
imul   $0x33,%rax,%rax
add    %rax,%rsi
lea    0x9e8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1646 <main+0x506>
jmp    1638 <main+0x4f8>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    15a4 <main+0x464>
lea    0x9c8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jg     1688 <main+0x548>
lea    0x9a4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    165b <main+0x51b>
lea    0x98a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1169 <main+0x29>
xor    %eax,%eax
add    $0x1450,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1448,%rsp
lea    0xe98(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1080 <scanf@plt>
cmpl   $0x0,0x4(%rsp)
jle    1545 <main+0x3e5>
mov    $0x1,%r14d
jmp    11be <main+0x5e>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xe76(%rip),%rdi
call   1040 <puts@plt>
lea    0x1(%r14),%eax
cmp    0x4(%rsp),%r14d
mov    %eax,%r14d
jge    1545 <main+0x3e5>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <gets@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %eax,%r12d
cltq
add    %rsp,%rax
add    $0x50,%rax
xor    %ecx,%ecx
movaps 0xe18(%rip),%xmm0
nopl   0x0(%rax,%rax,1)
movups %xmm0,0x70(%rsp,%rcx,1)
movups %xmm0,0x60(%rsp,%rcx,1)
movups %xmm0,0x50(%rsp,%rcx,1)
movl   $0x20202020,0x7f(%rsp,%rcx,1)
20
movb   $0x0,(%rax,%rcx,1)
movups %xmm0,0xa3(%rsp,%rcx,1)
movups %xmm0,0x93(%rsp,%rcx,1)
movups %xmm0,0x83(%rsp,%rcx,1)
movl   $0x20202020,0xb2(%rsp,%rcx,1)
20 20 20 20
movb   $0x0,0x33(%rax,%rcx,1)
movups %xmm0,0xd6(%rsp,%rcx,1)
movups %xmm0,0xc6(%rsp,%rcx,1)
movups %xmm0,0xb6(%rsp,%rcx,1)
movl   $0x20202020,0xe5(%rsp,%rcx,1)
20 20 20 20
movb   $0x0,0x66(%rax,%rcx,1)
movups %xmm0,0x109(%rsp,%rcx,1)
movups %xmm0,0xf9(%rsp,%rcx,1)
movups %xmm0,0xe9(%rsp,%rcx,1)
movl   $0x20202020,0x118(%rsp,%rcx,1)
20 20 20 20
movb   $0x0,0x99(%rax,%rcx,1)
add    $0xcc,%rcx
cmp    $0x13ec,%rcx
jne    11f0 <main+0x90>
test   %r12d,%r12d
jle    13a0 <main+0x240>
mov    %r14,0x8(%rsp)
mov    %r12d,%r15d
xor    %esi,%esi
mov    %r15,%rax
lea    0x10(%rsp),%rcx
lea    0x50(%rsp),%rdx
xor    %r13d,%r13d
xor    %r14d,%r14d
jmp    1302 <main+0x1a2>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    -0x1(%rsi),%edi
mov    $0x32,%ebp
sub    %esi,%ebp
test   %esi,%esi
movslq %ebp,%rbp
cmovg  %rdi,%rbp
imul   $0x33,%rbp,%rbp
movb   $0x5c,(%rdx,%rbp,1)
cmp    %r13d,%esi
cmovle %edi,%r13d
mov    %edi,%esi
add    $0x1,%rdx
add    $0x1,%rcx
add    $0xffffffffffffffff,%rax
je     1350 <main+0x1f0>
movzbl (%rcx),%ebx
cmp    $0x46,%bl
je     12d0 <main+0x170>
cmp    $0x52,%bl
jne    1330 <main+0x1d0>
mov    $0x31,%edi
sub    %esi,%edi
test   %esi,%esi
cmovns %esi,%edi
imul   $0x33,%rdi,%rdi
movb   $0x2f,(%rdx,%rdi,1)
cmp    %r14d,%esi
lea    0x1(%rsi),%esi
cmovge %esi,%r14d
jmp    12f4 <main+0x194>
nop
test   %esi,%esi
js     1338 <main+0x1d8>
mov    %esi,%edi
jmp    133f <main+0x1df>
mov    $0x31,%edi
sub    %esi,%edi
imul   $0x33,%rdi,%rdi
movb   $0x5f,(%rdx,%rdi,1)
jmp    12f4 <main+0x194>
nopl   0x0(%rax)
lea    0xcbd(%rip),%rdi
mov    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <printf@plt>
test   %r12d,%r12d
jle    138c <main+0x22c>
movslq %r14d,%rcx
mov    %r15,%rax
xchg   %ax,%ax
lea    -0x1(%rax),%edx
imul   $0x33,%rcx,%rsi
add    %rsp,%rsi
add    $0x50,%rsi
cmpb   $0x20,(%rdx,%rsi,1)
jne    13b6 <main+0x256>
add    $0xffffffffffffffff,%rax
test   %eax,%eax
jg     1370 <main+0x210>
test   %r14d,%r14d
jg     13cd <main+0x26d>
jmp    1430 <main+0x2d0>
cs nopw 0x0(%rax,%rax,1)
lea    0xc6d(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1510 <main+0x3b0>
movb   $0x0,(%rax,%rsi,1)
lea    0xc5e(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
test   %r14d,%r14d
jle    1430 <main+0x2d0>
mov    %r14d,%ebp
imul   $0x33,%rbp,%rbx
lea    0x1d(%rsp),%rax
add    %rax,%rbx
jmp    13fc <main+0x29c>
xchg   %ax,%ax
movb   $0x0,(%rbx,%rax,1)
lea    0xc34(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0xffffffffffffffcd,%rbx
cmp    $0x1,%r14
jle    1430 <main+0x2d0>
mov    %rbp,%r14
add    $0xffffffffffffffff,%rbp
test   %r12d,%r12d
jle    13f2 <main+0x292>
mov    %r15,%rax
nopl   0x0(%rax,%rax,1)
lea    -0x1(%rax),%ecx
imul   $0x33,%rbp,%rdx
lea    (%rsp,%rdx,1),%rsi
add    $0x50,%rsi
cmpb   $0x20,(%rcx,%rsi,1)
jne    13e0 <main+0x280>
add    $0xffffffffffffffff,%rax
test   %eax,%eax
jg     1410 <main+0x2b0>
jmp    13f2 <main+0x292>
nop
cmp    $0xfffffffe,%r13d
mov    0x8(%rsp),%r14
jg     14a0 <main+0x340>
mov    $0xffffffff,%ebx
lea    0xa46(%rsp),%rbp
jmp    1470 <main+0x310>
nopw   0x0(%rax,%rax,1)
movb   $0x0,0x0(%rbp,%rcx,1)
lea    0xbc3(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0xffffffffffffffff,%rbx
add    $0x33,%rbp
cmp    %ebx,%r13d
jge    14a0 <main+0x340>
test   %r12d,%r12d
jle    1463 <main+0x303>
mov    $0x31,%eax
sub    %ebx,%eax
mov    %r15,%rcx
nop
lea    -0x1(%rcx),%edx
imul   $0x33,%rax,%rsi
add    %rsp,%rsi
add    $0x50,%rsi
cmpb   $0x20,(%rdx,%rsi,1)
jne    1450 <main+0x2f0>
add    $0xffffffffffffffff,%rcx
test   %ecx,%ecx
jg     1480 <main+0x320>
jmp    1463 <main+0x303>
xchg   %ax,%ax
test   %r12d,%r12d
jle    1510 <main+0x3b0>
mov    $0x31,%eax
sub    %r13d,%eax
cltq
jmp    14c9 <main+0x369>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0xffffffffffffffff,%r15
test   %r15d,%r15d
jle    1510 <main+0x3b0>
lea    -0x1(%r15),%ecx
imul   $0x33,%rax,%rdx
lea    (%rsp,%rdx,1),%rsi
add    $0x50,%rsi
cmpb   $0x20,(%rcx,%rsi,1)
je     14c0 <main+0x360>
test   %r13d,%r13d
jns    14c0 <main+0x360>
movslq %r13d,%rax
imul   $0xffffffffffffffcd,%rax,%rax
lea    0xa13(%rsp),%rcx
add    %rcx,%rax
movb   $0x0,(%r15,%rax,1)
lea    0xb1d(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
nopl   0x0(%rax)
mov    $0x2b,%edi
call   1030 <putchar@plt>
cmp    $0xffffffff,%r12d
jl     11a0 <main+0x40>
add    $0x2,%r12d
nopl   0x0(%rax,%rax,1)
mov    $0x2d,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%r12d
jne    1530 <main+0x3d0>
jmp    11a0 <main+0x40>
xor    %eax,%eax
add    $0x1448,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [11 x i8] c"Case #%d:\0A\00"
@.str.2 = [6 x i8] c"| %s\0A\00"
@.str.3 = [2 x i8] c"+\00"
@.str.4 = [2 x i8] c"-\00"
@.str.5 = [3 x i8] c"\0A\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 [51 x i8]
%11 = alloca [100 x [51 x i8]]
store i32 0, i32* %1
%12 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %2)
store i32 1, i32* %9
br label %13
13: ; preds = %322, %0
%14 = load i32, i32* %9
%15 = load i32, i32* %2
%16 = icmp sle i32 %14, %15
br i1 %16, label %17, label %325
17: ; preds = %13
store i32 0, i32* %8
store i32 0, i32* %5
store i32 0, i32* %6
%18 = getelementptr inbounds [51 x i8], [51 x i8]* %10, i64 0, i64 0
%19 = call i32 @gets(i8* %18)
%20 = getelementptr inbounds [51 x i8], [51 x i8]* %10, i64 0, i64 0
%21 = call i32 @strlen(i8* %20)
store i32 %21, i32* %7
store i32 0, i32* %3
br label %22
22: ; preds = %46, %17
%23 = load i32, i32* %3
%24 = icmp slt i32 %23, 100
br i1 %24, label %25, label %49
25: ; preds = %22
store i32 0, i32* %4
br label %26
26: ; preds = %36, %25
%27 = load i32, i32* %4
%28 = icmp slt i32 %27, 51
br i1 %28, label %29, label %39
29: ; preds = %26
%30 = load i32, i32* %3
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %31
%33 = load i32, i32* %4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [51 x i8], [51 x i8]* %32, i64 0, i64 %34
store i8 32, i8* %35
br label %36
36: ; preds = %29
%37 = load i32, i32* %4
%38 = add nsw i32 %37, 1
store i32 %38, i32* %4
br label %26
39: ; preds = %26
%40 = load i32, i32* %3
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %41
%43 = load i32, i32* %7
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [51 x i8], [51 x i8]* %42, i64 0, i64 %44
store i8 0, i8* %45
br label %46
46: ; preds = %39
%47 = load i32, i32* %3
%48 = add nsw i32 %47, 1
store i32 %48, i32* %3
br label %22
49: ; preds = %22
store i32 0, i32* %3
br label %50
50: ; preds = %143, %49
%51 = load i32, i32* %3
%52 = load i32, i32* %7
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %146
54: ; preds = %50
%55 = load i32, i32* %3
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [51 x i8], [51 x i8]* %10, i64 0, i64 %56
%58 = load i8, i8* %57
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 82
br i1 %60, label %61, label %88
61: ; preds = %54
%62 = load i32, i32* %8
%63 = icmp slt i32 %62, 0
br i1 %63, label %64, label %72
64: ; preds = %61
%65 = load i32, i32* %8
%66 = sub nsw i32 49, %65
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %67
%69 = load i32, i32* %3
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [51 x i8], [51 x i8]* %68, i64 0, i64 %70
store i8 47, i8* %71
br label %79
72: ; preds = %61
%73 = load i32, i32* %8
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %74
%76 = load i32, i32* %3
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [51 x i8], [51 x i8]* %75, i64 0, i64 %77
store i8 47, i8* %78
br label %79
79: ; preds = %72, %64
%80 = load i32, i32* %8
%81 = add nsw i32 %80, 1
store i32 %81, i32* %8
%82 = load i32, i32* %8
%83 = load i32, i32* %5
%84 = icmp sgt i32 %82, %83
br i1 %84, label %85, label %87
85: ; preds = %79
%86 = load i32, i32* %8
store i32 %86, i32* %5
br label %87
87: ; preds = %85, %79
br label %142
88: ; preds = %54
%89 = load i32, i32* %3
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [51 x i8], [51 x i8]* %10, i64 0, i64 %90
%92 = load i8, i8* %91
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 70
br i1 %94, label %95, label %122
95: ; preds = %88
%96 = load i32, i32* %8
%97 = add nsw i32 %96, -1
store i32 %97, i32* %8
%98 = load i32, i32* %8
%99 = icmp slt i32 %98, 0
br i1 %99, label %100, label %108
100: ; preds = %95
%101 = load i32, i32* %8
%102 = sub nsw i32 49, %101
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %103
%105 = load i32, i32* %3
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [51 x i8], [51 x i8]* %104, i64 0, i64 %106
store i8 92, i8* %107
br label %115
108: ; preds = %95
%109 = load i32, i32* %8
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %110
%112 = load i32, i32* %3
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [51 x i8], [51 x i8]* %111, i64 0, i64 %113
store i8 92, i8* %114
br label %115
115: ; preds = %108, %100
%116 = load i32, i32* %8
%117 = load i32, i32* %6
%118 = icmp slt i32 %116, %117
br i1 %118, label %119, label %121
119: ; preds = %115
%120 = load i32, i32* %8
store i32 %120, i32* %6
br label %121
121: ; preds = %119, %115
br label %141
122: ; preds = %88
%123 = load i32, i32* %8
%124 = icmp slt i32 %123, 0
br i1 %124, label %125, label %133
125: ; preds = %122
%126 = load i32, i32* %8
%127 = sub nsw i32 49, %126
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %128
%130 = load i32, i32* %3
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [51 x i8], [51 x i8]* %129, i64 0, i64 %131
store i8 95, i8* %132
br label %140
133: ; preds = %122
%134 = load i32, i32* %8
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %135
%137 = load i32, i32* %3
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [51 x i8], [51 x i8]* %136, i64 0, i64 %138
store i8 95, i8* %139
br label %140
140: ; preds = %133, %125
br label %141
141: ; preds = %140, %121
br label %142
142: ; preds = %141, %87
br label %143
143: ; preds = %142
%144 = load i32, i32* %3
%145 = add nsw i32 %144, 1
store i32 %145, i32* %3
br label %50
146: ; preds = %50
%147 = load i32, i32* %9
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %147)
%149 = load i32, i32* %7
%150 = sub nsw i32 %149, 1
store i32 %150, i32* %3
br label %151
151: ; preds = %178, %146
%152 = load i32, i32* %3
%153 = icmp sge i32 %152, 0
br i1 %153, label %154, label %181
154: ; preds = %151
%155 = load i32, i32* %5
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %156
%158 = load i32, i32* %3
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [51 x i8], [51 x i8]* %157, i64 0, i64 %159
%161 = load i8, i8* %160
%162 = sext i8 %161 to i32
%163 = icmp ne i32 %162, 32
br i1 %163, label %164, label %177
164: ; preds = %154
%165 = load i32, i32* %5
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %166
%168 = load i32, i32* %3
%169 = add nsw i32 %168, 1
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds [51 x i8], [51 x i8]* %167, i64 0, i64 %170
store i8 0, i8* %171
%172 = load i32, i32* %5
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %173
%175 = getelementptr inbounds [51 x i8], [51 x i8]* %174, i64 0, i64 0
%176 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %175)
br label %181
177: ; preds = %154
br label %178
178: ; preds = %177
%179 = load i32, i32* %3
%180 = add nsw i32 %179, -1
store i32 %180, i32* %3
br label %151
181: ; preds = %164, %151
%182 = load i32, i32* %5
%183 = sub nsw i32 %182, 1
store i32 %183, i32* %3
br label %184
184: ; preds = %221, %181
%185 = load i32, i32* %3
%186 = icmp sge i32 %185, 0
br i1 %186, label %187, label %224
187: ; preds = %184
%188 = load i32, i32* %7
%189 = sub nsw i32 %188, 1
store i32 %189, i32* %4
br label %190
190: ; preds = %217, %187
%191 = load i32, i32* %4
%192 = icmp sge i32 %191, 0
br i1 %192, label %193, label %220
193: ; preds = %190
%194 = load i32, i32* %3
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %195
%197 = load i32, i32* %4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds [51 x i8], [51 x i8]* %196, i64 0, i64 %198
%200 = load i8, i8* %199
%201 = sext i8 %200 to i32
%202 = icmp ne i32 %201, 32
br i1 %202, label %203, label %216
203: ; preds = %193
%204 = load i32, i32* %3
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %205
%207 = load i32, i32* %4
%208 = add nsw i32 %207, 1
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds [51 x i8], [51 x i8]* %206, i64 0, i64 %209
store i8 0, i8* %210
%211 = load i32, i32* %3
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %212
%214 = getelementptr inbounds [51 x i8], [51 x i8]* %213, i64 0, i64 0
%215 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %214)
br label %220
216: ; preds = %193
br label %217
217: ; preds = %216
%218 = load i32, i32* %4
%219 = add nsw i32 %218, -1
store i32 %219, i32* %4
br label %190
220: ; preds = %203, %190
br label %221
221: ; preds = %220
%222 = load i32, i32* %3
%223 = add nsw i32 %222, -1
store i32 %223, i32* %3
br label %184
224: ; preds = %184
store i32 -1, i32* %3
br label %225
225: ; preds = %266, %224
%226 = load i32, i32* %3
%227 = load i32, i32* %6
%228 = icmp sgt i32 %226, %227
br i1 %228, label %229, label %269
229: ; preds = %225
%230 = load i32, i32* %7
%231 = sub nsw i32 %230, 1
store i32 %231, i32* %4
br label %232
232: ; preds = %262, %229
%233 = load i32, i32* %4
%234 = icmp sge i32 %233, 0
br i1 %234, label %235, label %265
235: ; preds = %232
%236 = load i32, i32* %3
%237 = sub nsw i32 49, %236
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %238
%240 = load i32, i32* %4
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds [51 x i8], [51 x i8]* %239, i64 0, i64 %241
%243 = load i8, i8* %242
%244 = sext i8 %243 to i32
%245 = icmp ne i32 %244, 32
br i1 %245, label %246, label %261
246: ; preds = %235
%247 = load i32, i32* %3
%248 = sub nsw i32 49, %247
%249 = sext i32 %248 to i64
%250 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %249
%251 = load i32, i32* %4
%252 = add nsw i32 %251, 1
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds [51 x i8], [51 x i8]* %250, i64 0, i64 %253
store i8 0, i8* %254
%255 = load i32, i32* %3
%256 = sub nsw i32 49, %255
%257 = sext i32 %256 to i64
%258 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %257
%259 = getelementptr inbounds [51 x i8], [51 x i8]* %258, i64 0, i64 0
%260 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %259)
br label %265
261: ; preds = %235
br label %262
262: ; preds = %261
%263 = load i32, i32* %4
%264 = add nsw i32 %263, -1
store i32 %264, i32* %4
br label %232
265: ; preds = %246, %232
br label %266
266: ; preds = %265
%267 = load i32, i32* %3
%268 = add nsw i32 %267, -1
store i32 %268, i32* %3
br label %225
269: ; preds = %225
%270 = load i32, i32* %7
%271 = sub nsw i32 %270, 1
store i32 %271, i32* %3
br label %272
272: ; preds = %305, %269
%273 = load i32, i32* %3
%274 = icmp sge i32 %273, 0
br i1 %274, label %275, label %308
275: ; preds = %272
%276 = load i32, i32* %6
%277 = sub nsw i32 49, %276
%278 = sext i32 %277 to i64
%279 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %278
%280 = load i32, i32* %3
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds [51 x i8], [51 x i8]* %279, i64 0, i64 %281
%283 = load i8, i8* %282
%284 = sext i8 %283 to i32
%285 = icmp ne i32 %284, 32
br i1 %285, label %286, label %304
286: ; preds = %275
%287 = load i32, i32* %6
%288 = icmp slt i32 %287, 0
br i1 %288, label %289, label %304
289: ; preds = %286
%290 = load i32, i32* %6
%291 = sub nsw i32 49, %290
%292 = sext i32 %291 to i64
%293 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %292
%294 = load i32, i32* %3
%295 = add nsw i32 %294, 1
%296 = sext i32 %295 to i64
%297 = getelementptr inbounds [51 x i8], [51 x i8]* %293, i64 0, i64 %296
store i8 0, i8* %297
%298 = load i32, i32* %6
%299 = sub nsw i32 49, %298
%300 = sext i32 %299 to i64
%301 = getelementptr inbounds [100 x [51 x i8]], [100 x [51 x i8]]* %11, i64 0, i64 %300
%302 = getelementptr inbounds [51 x i8], [51 x i8]* %301, i64 0, i64 0
%303 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %302)
br label %308
304: ; preds = %286, %275
br label %305
305: ; preds = %304
%306 = load i32, i32* %3
%307 = add nsw i32 %306, -1
store i32 %307, i32* %3
br label %272
308: ; preds = %289, %272
%309 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %3
br label %310
310: ; preds = %317, %308
%311 = load i32, i32* %3
%312 = load i32, i32* %7
%313 = add nsw i32 %312, 1
%314 = icmp sle i32 %311, %313
br i1 %314, label %315, label %320
315: ; preds = %310
%316 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %317
317: ; preds = %315
%318 = load i32, i32* %3
%319 = add nsw i32 %318, 1
store i32 %319, i32* %3
br label %310
320: ; preds = %310
%321 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
br label %322
322: ; preds = %320
%323 = load i32, i32* %9
%324 = add nsw i32 %323, 1
store i32 %324, i32* %9
br label %13
325: ; preds = %13
ret i32 0
}

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