#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*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *, int *);
void run() {
  char field[20][20];
  char nfield[20][20];
  int x, y;
  int count;
  int i, j;
  for (i = 0; i < 20; i++) {
    for (j = 0; j < 20; j++) {
      field[i][j] = '-';
      nfield[i][j] = '-';
    }
  }
  printf("Input default alive cell location.(x,y)\n");
  printf("When input number 99, setting is finished.\n");
  while (1) {
    printf("x, y = ");
    scanf("%d%d", &x, &y);
    if (x == 99 || y == 99) {
      break;
    }
    field[x][y] = '*';
  }
  for (i = 0; i < 20; i++) {
    for (j = 0; j < 20; j++) {
      printf("%c", field[i][j]);
    }
    printf("\n");
  }
  printf("\n");
  while (1) {
    for (i = 0; i < 20; i++) {
      for (j = 0; j < 20; j++) {
        count = 0;
        if ((i - 1 < 0) || (j - 1 < 0)) {
          ;
        } else if (field[i - 1][j - 1] == '*') {
          count++;
        }
        if (j - 1 < 0) {
          ;
        } else if (field[i][j - 1] == '*') {
          count++;
        }
        if ((i + 1 > 20) || (j - 1 < 0)) {
          ;
        } else if (field[i + 1][j - 1] == '*') {
          count++;
        }
        if (i - 1 < 0) {
          ;
        } else if (field[i - 1][j] == '*') {
          count++;
        }
        if (i + 1 > 20) {
          ;
        } else if (field[i + 1][j] == '*') {
          count++;
        }
        if ((i - 1 < 0) || (j + 1 > 20)) {
          ;
        } else if (field[i - 1][j + 1] == '*') {
          count++;
        }
        if (j + 1 > 20) {
          ;
        } else if (field[i][j + 1] == '*') {
          count++;
        }
        if ((i + 1 > 20) || (j + 1 > 20)) {
          ;
        } else if (field[i + 1][j + 1] == '*') {
          count++;
        }
        if (count == 3) {
          nfield[i][j] = '*';
        } else if (count == 2 && field[i][j] == '*') {
          nfield[i][j] = '*';
        } else {
          nfield[i][j] = '-';
        }
      }
    }
    for (i = 0; i < 20; i++) {
      for (j = 0; j < 20; j++) {
        field[i][j] = nfield[i][j];
      }
    }
    for (i = 0; i < 20; i++) {
      for (j = 0; j < 20; j++) {
        printf("%c", field[i][j]);
      }
      printf("\n");
    }
    for (i = 0; i < 10000; i++) {
      for (j = 0; j < 10000; j++) {
        ;
      }
    }
  }
}


x86 assembly (clang, -O0):
<run>:
push   %rbp
mov    %rsp,%rbp
sub    $0x340,%rsp
movl   $0x0,-0x330(%rbp)
cmpl   $0x14,-0x330(%rbp)
jge    11c6 <run+0xa6>
movl   $0x0,-0x334(%rbp)
cmpl   $0x14,-0x334(%rbp)
jge    11ad <run+0x8d>
movslq -0x330(%rbp),%rcx
lea    -0x190(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x334(%rbp),%rcx
movb   $0x2d,(%rax,%rcx,1)
movslq -0x330(%rbp),%rcx
lea    -0x320(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x334(%rbp),%rcx
movb   $0x2d,(%rax,%rcx,1)
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    114c <run+0x2c>
jmp    11b2 <run+0x92>
mov    -0x330(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x330(%rbp)
jmp    1135 <run+0x15>
lea    0xe33(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe66(%rip),%rdi
lea    -0x324(%rbp),%rsi
lea    -0x328(%rbp),%rdx
call   1040 <scanf@plt>
cmpl   $0x63,-0x324(%rbp)
je     1224 <run+0x104>
cmpl   $0x63,-0x328(%rbp)
jne    1229 <run+0x109>
jmp    124e <run+0x12e>
movslq -0x324(%rbp),%rcx
lea    -0x190(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x328(%rbp),%rcx
movb   $0x2a,(%rax,%rcx,1)
jmp    11e2 <run+0xc2>
movl   $0x0,-0x330(%rbp)
cmpl   $0x14,-0x330(%rbp)
jge    12e0 <run+0x1c0>
movl   $0x0,-0x334(%rbp)
cmpl   $0x14,-0x334(%rbp)
jge    12be <run+0x19e>
movslq -0x330(%rbp),%rcx
lea    -0x190(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x334(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xdbf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    126f <run+0x14f>
lea    0xd62(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x330(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x330(%rbp)
jmp    1258 <run+0x138>
lea    0xd40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x330(%rbp)
cmpl   $0x14,-0x330(%rbp)
jge    172e <run+0x60e>
movl   $0x0,-0x334(%rbp)
cmpl   $0x14,-0x334(%rbp)
jge    1715 <run+0x5f5>
movl   $0x0,-0x32c(%rbp)
mov    -0x330(%rbp),%eax
sub    $0x1,%eax
cmp    $0x0,%eax
jl     134a <run+0x22a>
mov    -0x334(%rbp),%eax
sub    $0x1,%eax
cmp    $0x0,%eax
jge    134f <run+0x22f>
jmp    1396 <run+0x276>
mov    -0x330(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    -0x190(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
mov    -0x334(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2a,%eax
jne    1391 <run+0x271>
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    1396 <run+0x276>
mov    -0x334(%rbp),%eax
sub    $0x1,%eax
cmp    $0x0,%eax
jge    13ad <run+0x28d>
jmp    13ef <run+0x2cf>
movslq -0x330(%rbp),%rcx
lea    -0x190(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
mov    -0x334(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2a,%eax
jne    13ea <run+0x2ca>
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    13ef <run+0x2cf>
mov    -0x330(%rbp),%eax
add    $0x1,%eax
cmp    $0x14,%eax
jg     1413 <run+0x2f3>
mov    -0x334(%rbp),%eax
sub    $0x1,%eax
cmp    $0x0,%eax
jge    1418 <run+0x2f8>
jmp    145f <run+0x33f>
mov    -0x330(%rbp),%eax
add    $0x1,%eax
movslq %eax,%rcx
lea    -0x190(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
mov    -0x334(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2a,%eax
jne    145a <run+0x33a>
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    145f <run+0x33f>
mov    -0x330(%rbp),%eax
sub    $0x1,%eax
cmp    $0x0,%eax
jge    1476 <run+0x356>
jmp    14b8 <run+0x398>
mov    -0x330(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    -0x190(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x334(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2a,%eax
jne    14b3 <run+0x393>
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    14b8 <run+0x398>
mov    -0x330(%rbp),%eax
add    $0x1,%eax
cmp    $0x14,%eax
jle    14cf <run+0x3af>
jmp    1511 <run+0x3f1>
mov    -0x330(%rbp),%eax
add    $0x1,%eax
movslq %eax,%rcx
lea    -0x190(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x334(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2a,%eax
jne    150c <run+0x3ec>
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    1511 <run+0x3f1>
mov    -0x330(%rbp),%eax
sub    $0x1,%eax
cmp    $0x0,%eax
jl     1535 <run+0x415>
mov    -0x334(%rbp),%eax
add    $0x1,%eax
cmp    $0x14,%eax
jle    153a <run+0x41a>
jmp    1581 <run+0x461>
mov    -0x330(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    -0x190(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
mov    -0x334(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2a,%eax
jne    157c <run+0x45c>
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    1581 <run+0x461>
mov    -0x334(%rbp),%eax
add    $0x1,%eax
cmp    $0x14,%eax
jle    1598 <run+0x478>
jmp    15da <run+0x4ba>
movslq -0x330(%rbp),%rcx
lea    -0x190(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
mov    -0x334(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2a,%eax
jne    15d5 <run+0x4b5>
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    15da <run+0x4ba>
mov    -0x330(%rbp),%eax
add    $0x1,%eax
cmp    $0x14,%eax
jg     15fe <run+0x4de>
mov    -0x334(%rbp),%eax
add    $0x1,%eax
cmp    $0x14,%eax
jle    1603 <run+0x4e3>
jmp    164a <run+0x52a>
mov    -0x330(%rbp),%eax
add    $0x1,%eax
movslq %eax,%rcx
lea    -0x190(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
mov    -0x334(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2a,%eax
jne    1645 <run+0x525>
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    164a <run+0x52a>
cmpl   $0x3,-0x32c(%rbp)
jne    167c <run+0x55c>
movslq -0x330(%rbp),%rcx
lea    -0x320(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x334(%rbp),%rcx
movb   $0x2a,(%rax,%rcx,1)
jmp    16fc <run+0x5dc>
cmpl   $0x2,-0x32c(%rbp)
jne    16d7 <run+0x5b7>
movslq -0x330(%rbp),%rcx
lea    -0x190(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x334(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2a,%eax
jne    16d7 <run+0x5b7>
movslq -0x330(%rbp),%rcx
lea    -0x320(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x334(%rbp),%rcx
movb   $0x2a,(%rax,%rcx,1)
jmp    16f7 <run+0x5d7>
movslq -0x330(%rbp),%rcx
lea    -0x320(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x334(%rbp),%rcx
movb   $0x2d,(%rax,%rcx,1)
jmp    16fc <run+0x5dc>
jmp    1701 <run+0x5e1>
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    130f <run+0x1ef>
jmp    171a <run+0x5fa>
mov    -0x330(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x330(%rbp)
jmp    12f8 <run+0x1d8>
movl   $0x0,-0x330(%rbp)
cmpl   $0x14,-0x330(%rbp)
jge    17c7 <run+0x6a7>
movl   $0x0,-0x334(%rbp)
cmpl   $0x14,-0x334(%rbp)
jge    17ae <run+0x68e>
movslq -0x330(%rbp),%rcx
lea    -0x320(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x334(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
movslq -0x330(%rbp),%rcx
lea    -0x190(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x334(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    174f <run+0x62f>
jmp    17b3 <run+0x693>
mov    -0x330(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x330(%rbp)
jmp    1738 <run+0x618>
movl   $0x0,-0x330(%rbp)
cmpl   $0x14,-0x330(%rbp)
jge    1859 <run+0x739>
movl   $0x0,-0x334(%rbp)
cmpl   $0x14,-0x334(%rbp)
jge    1837 <run+0x717>
movslq -0x330(%rbp),%rcx
lea    -0x190(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x334(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0x846(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    17e8 <run+0x6c8>
lea    0x7e9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x330(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x330(%rbp)
jmp    17d1 <run+0x6b1>
movl   $0x0,-0x330(%rbp)
cmpl   $0x2710,-0x330(%rbp)
jge    18bf <run+0x79f>
movl   $0x0,-0x334(%rbp)
cmpl   $0x2710,-0x334(%rbp)
jge    18a6 <run+0x786>
jmp    1892 <run+0x772>
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    187d <run+0x75d>
jmp    18ab <run+0x78b>
mov    -0x330(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x330(%rbp)
jmp    1863 <run+0x743>
jmp    12ee <run+0x1ce>

x86 assembly (clang, -O2):
<run>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x330,%rsp
lea    0x10(%rsp),%rdi
mov    $0x190,%edx
mov    $0x2d,%esi
call   1060 <memset@plt>
lea    0x1a0(%rsp),%rdi
mov    $0x190,%edx
mov    $0x2d,%esi
call   1060 <memset@plt>
lea    0xe6c(%rip),%rdi
call   1040 <puts@plt>
lea    0xe88(%rip),%rdi
call   1040 <puts@plt>
lea    0xe47(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe41(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1080 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0x63,%eax
je     123f <run+0xdf>
mov    0x8(%rsp),%ecx
cmp    $0x63,%ecx
je     123f <run+0xdf>
lea    0xe11(%rip),%r14
lea    0xe12(%rip),%r15
lea    0xc(%rsp),%r12
lea    0x8(%rsp),%rbx
cltq
movslq %ecx,%rcx
lea    (%rax,%rax,4),%rax
lea    (%rsp,%rax,4),%rax
add    $0x10,%rax
movb   $0x2a,(%rcx,%rax,1)
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1080 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0x63,%eax
je     123f <run+0xdf>
mov    0x8(%rsp),%ecx
cmp    $0x63,%ecx
jne    1200 <run+0xa0>
mov    $0x13,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl -0x3(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl -0x2(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl -0x1(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl (%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x1(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x2(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x3(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x4(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x5(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x6(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x7(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x8(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x9(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0xa(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0xb(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0xc(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0xd(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0xe(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0xf(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x10(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x14,%rbx
cmp    $0x1a3,%rbx
jne    1250 <run+0xf0>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %r11d,%r11d
lea    0x10(%rsp),%r14
lea    0x1a0(%rsp),%r15
nopl   0x0(%rax)
lea    -0x1(%r11),%r10
lea    0x1(%r11),%r9
lea    0x1(%r11),%r8d
xor    %edi,%edi
jmp    1379 <run+0x219>
mov    $0x2d,%cl
lea    (%rsp,%rdx,4),%rax
add    $0x1a0,%rax
mov    %cl,(%rsi,%rax,1)
cmp    $0x14,%rdi
je     14b0 <run+0x350>
mov    %rdi,%rsi
mov    %rdi,%rcx
sub    $0x1,%rcx
setb   %al
xor    %ebx,%ebx
test   %r11,%r11
je     13a8 <run+0x248>
test   %al,%al
jne    13a8 <run+0x248>
mov    %ecx,%eax
lea    (%r10,%r10,4),%rdx
lea    (%rsp,%rdx,4),%rdx
add    $0x10,%rdx
xor    %ebx,%ebx
cmpb   $0x2a,(%rax,%rdx,1)
sete   %bl
test   %rsi,%rsi
je     13f0 <run+0x290>
mov    %ecx,%eax
lea    (%r11,%r11,4),%rcx
lea    (%rsp,%rcx,4),%rcx
add    $0x10,%rcx
xor    %edx,%edx
cmpb   $0x2a,(%rax,%rcx,1)
sete   %dl
add    %edx,%ebx
lea    (%r9,%r9,4),%rcx
lea    (%rsp,%rcx,4),%rcx
add    $0x10,%rcx
xor    %edx,%edx
cmpb   $0x2a,(%rax,%rcx,1)
sete   %dl
add    %edx,%ebx
mov    %r8d,%eax
jmp    13f3 <run+0x293>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r9d,%eax
mov    %eax,%ecx
test   %r11,%r11
je     1440 <run+0x2e0>
lea    (%r10,%r10,4),%rax
lea    (%rsp,%rax,4),%rax
add    $0x10,%rax
xor    %edx,%edx
cmpb   $0x2a,(%rsi,%rax,1)
sete   %dl
add    %edx,%ebx
lea    (%rcx,%rcx,4),%rdx
lea    (%rsp,%rdx,4),%rdx
add    $0x10,%rdx
xor    %ebp,%ebp
cmpb   $0x2a,(%rsi,%rdx,1)
sete   %bpl
add    %ebx,%ebp
lea    0x1(%rsi),%rdi
xor    %ebx,%ebx
cmpb   $0x2a,0x1(%rsi,%rax,1)
sete   %bl
add    %ebp,%ebx
jmp    145b <run+0x2fb>
nopl   0x0(%rax,%rax,1)
lea    (%rcx,%rcx,4),%rax
lea    (%rsp,%rax,4),%rax
add    $0x10,%rax
xor    %edx,%edx
cmpb   $0x2a,(%rsi,%rax,1)
sete   %dl
add    %edx,%ebx
lea    0x1(%rsi),%rdi
lea    (%r11,%r11,4),%rdx
lea    (%rsp,%rdx,4),%rax
add    $0x10,%rax
xor    %ebp,%ebp
cmpb   $0x2a,(%rdi,%rax,1)
sete   %bpl
add    %ebx,%ebp
lea    (%rcx,%rcx,4),%rcx
lea    (%rsp,%rcx,4),%rcx
add    $0x10,%rcx
xor    %ebx,%ebx
cmpb   $0x2a,(%rdi,%rcx,1)
sete   %bl
add    %ebp,%ebx
mov    $0x2a,%cl
cmp    $0x3,%ebx
je     1362 <run+0x202>
cmp    $0x2,%ebx
jne    1360 <run+0x200>
cmpb   $0x2a,(%rsi,%rax,1)
jne    1360 <run+0x200>
jmp    1362 <run+0x202>
nopl   (%rax)
mov    %r9,%r11
cmp    $0x14,%r9
jne    1350 <run+0x1f0>
mov    $0x190,%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1070 <memcpy@plt>
mov    $0x13,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl -0x3(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl -0x2(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl -0x1(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl (%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x1(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x2(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x3(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x4(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x5(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x6(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x7(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x8(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x9(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0xa(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0xb(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0xc(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0xd(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0xe(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0xf(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x10(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x14,%rbx
cmp    $0x1a3,%rbx
jne    14e0 <run+0x380>
xor    %r11d,%r11d
jmp    1350 <run+0x1f0>

LLVM IR (-O0):
@.str = [41 x i8] c"Input default alive cell location.(x,y)\0A\00"
@.str.1 = [44 x i8] c"When input number 99, setting is finished.\0A\00"
@.str.2 = [8 x i8] c"x, y = \00"
@.str.3 = [5 x i8] c"%d%d\00"
@.str.4 = [3 x i8] c"%c\00"
@.str.5 = [2 x i8] c"\0A\00"
define void @run() {
%1 = alloca [20 x [20 x i8]]
%2 = alloca [20 x [20 x i8]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %6
br label %8
8: ; preds = %32, %0
%9 = load i32, i32* %6
%10 = icmp slt i32 %9, 20
br i1 %10, label %11, label %35
11: ; preds = %8
store i32 0, i32* %7
br label %12
12: ; preds = %28, %11
%13 = load i32, i32* %7
%14 = icmp slt i32 %13, 20
br i1 %14, label %15, label %31
15: ; preds = %12
%16 = load i32, i32* %6
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %17
%19 = load i32, i32* %7
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [20 x i8], [20 x i8]* %18, i64 0, i64 %20
store i8 45, i8* %21
%22 = load i32, i32* %6
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %23
%25 = load i32, i32* %7
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [20 x i8], [20 x i8]* %24, i64 0, i64 %26
store i8 45, i8* %27
br label %28
28: ; preds = %15
%29 = load i32, i32* %7
%30 = add nsw i32 %29, 1
store i32 %30, i32* %7
br label %12
31: ; preds = %12
br label %32
32: ; preds = %31
%33 = load i32, i32* %6
%34 = add nsw i32 %33, 1
store i32 %34, i32* %6
br label %8
35: ; preds = %8
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
br label %38
38: ; preds = %35, %47
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%40 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32* %3, i32* %4)
%41 = load i32, i32* %3
%42 = icmp eq i32 %41, 99
br i1 %42, label %46, label %43
43: ; preds = %38
%44 = load i32, i32* %4
%45 = icmp eq i32 %44, 99
br i1 %45, label %46, label %47
46: ; preds = %43, %38
br label %54
47: ; preds = %43
%48 = load i32, i32* %3
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %49
%51 = load i32, i32* %4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [20 x i8], [20 x i8]* %50, i64 0, i64 %52
store i8 42, i8* %53
br label %38
54: ; preds = %46
store i32 0, i32* %6
br label %55
55: ; preds = %77, %54
%56 = load i32, i32* %6
%57 = icmp slt i32 %56, 20
br i1 %57, label %58, label %80
58: ; preds = %55
store i32 0, i32* %7
br label %59
59: ; preds = %72, %58
%60 = load i32, i32* %7
%61 = icmp slt i32 %60, 20
br i1 %61, label %62, label %75
62: ; preds = %59
%63 = load i32, i32* %6
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %64
%66 = load i32, i32* %7
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [20 x i8], [20 x i8]* %65, i64 0, i64 %67
%69 = load i8, i8* %68
%70 = sext i8 %69 to i32
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %70)
br label %72
72: ; preds = %62
%73 = load i32, i32* %7
%74 = add nsw i32 %73, 1
store i32 %74, i32* %7
br label %59
75: ; preds = %59
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %77
77: ; preds = %75
%78 = load i32, i32* %6
%79 = add nsw i32 %78, 1
store i32 %79, i32* %6
br label %55
80: ; preds = %55
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %82
82: ; preds = %80, %387
store i32 0, i32* %6
br label %83
83: ; preds = %313, %82
%84 = load i32, i32* %6
%85 = icmp slt i32 %84, 20
br i1 %85, label %86, label %316
86: ; preds = %83
store i32 0, i32* %7
br label %87
87: ; preds = %309, %86
%88 = load i32, i32* %7
%89 = icmp slt i32 %88, 20
br i1 %89, label %90, label %312
90: ; preds = %87
store i32 0, i32* %5
%91 = load i32, i32* %6
%92 = sub nsw i32 %91, 1
%93 = icmp slt i32 %92, 0
br i1 %93, label %98, label %94
94: ; preds = %90
%95 = load i32, i32* %7
%96 = sub nsw i32 %95, 1
%97 = icmp slt i32 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %94, %90
br label %115
99: ; preds = %94
%100 = load i32, i32* %6
%101 = sub nsw i32 %100, 1
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %102
%104 = load i32, i32* %7
%105 = sub nsw i32 %104, 1
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [20 x i8], [20 x i8]* %103, i64 0, i64 %106
%108 = load i8, i8* %107
%109 = sext i8 %108 to i32
%110 = icmp eq i32 %109, 42
br i1 %110, label %111, label %114
111: ; preds = %99
%112 = load i32, i32* %5
%113 = add nsw i32 %112, 1
store i32 %113, i32* %5
br label %114
114: ; preds = %111, %99
br label %115
115: ; preds = %114, %98
%116 = load i32, i32* %7
%117 = sub nsw i32 %116, 1
%118 = icmp slt i32 %117, 0
br i1 %118, label %119, label %120
119: ; preds = %115
br label %135
120: ; preds = %115
%121 = load i32, i32* %6
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %122
%124 = load i32, i32* %7
%125 = sub nsw i32 %124, 1
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [20 x i8], [20 x i8]* %123, i64 0, i64 %126
%128 = load i8, i8* %127
%129 = sext i8 %128 to i32
%130 = icmp eq i32 %129, 42
br i1 %130, label %131, label %134
131: ; preds = %120
%132 = load i32, i32* %5
%133 = add nsw i32 %132, 1
store i32 %133, i32* %5
br label %134
134: ; preds = %131, %120
br label %135
135: ; preds = %134, %119
%136 = load i32, i32* %6
%137 = add nsw i32 %136, 1
%138 = icmp sgt i32 %137, 20
br i1 %138, label %143, label %139
139: ; preds = %135
%140 = load i32, i32* %7
%141 = sub nsw i32 %140, 1
%142 = icmp slt i32 %141, 0
br i1 %142, label %143, label %144
143: ; preds = %139, %135
br label %160
144: ; preds = %139
%145 = load i32, i32* %6
%146 = add nsw i32 %145, 1
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %147
%149 = load i32, i32* %7
%150 = sub nsw i32 %149, 1
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [20 x i8], [20 x i8]* %148, i64 0, i64 %151
%153 = load i8, i8* %152
%154 = sext i8 %153 to i32
%155 = icmp eq i32 %154, 42
br i1 %155, label %156, label %159
156: ; preds = %144
%157 = load i32, i32* %5
%158 = add nsw i32 %157, 1
store i32 %158, i32* %5
br label %159
159: ; preds = %156, %144
br label %160
160: ; preds = %159, %143
%161 = load i32, i32* %6
%162 = sub nsw i32 %161, 1
%163 = icmp slt i32 %162, 0
br i1 %163, label %164, label %165
164: ; preds = %160
br label %180
165: ; preds = %160
%166 = load i32, i32* %6
%167 = sub nsw i32 %166, 1
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %168
%170 = load i32, i32* %7
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [20 x i8], [20 x i8]* %169, i64 0, i64 %171
%173 = load i8, i8* %172
%174 = sext i8 %173 to i32
%175 = icmp eq i32 %174, 42
br i1 %175, label %176, label %179
176: ; preds = %165
%177 = load i32, i32* %5
%178 = add nsw i32 %177, 1
store i32 %178, i32* %5
br label %179
179: ; preds = %176, %165
br label %180
180: ; preds = %179, %164
%181 = load i32, i32* %6
%182 = add nsw i32 %181, 1
%183 = icmp sgt i32 %182, 20
br i1 %183, label %184, label %185
184: ; preds = %180
br label %200
185: ; preds = %180
%186 = load i32, i32* %6
%187 = add nsw i32 %186, 1
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %188
%190 = load i32, i32* %7
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds [20 x i8], [20 x i8]* %189, i64 0, i64 %191
%193 = load i8, i8* %192
%194 = sext i8 %193 to i32
%195 = icmp eq i32 %194, 42
br i1 %195, label %196, label %199
196: ; preds = %185
%197 = load i32, i32* %5
%198 = add nsw i32 %197, 1
store i32 %198, i32* %5
br label %199
199: ; preds = %196, %185
br label %200
200: ; preds = %199, %184
%201 = load i32, i32* %6
%202 = sub nsw i32 %201, 1
%203 = icmp slt i32 %202, 0
br i1 %203, label %208, label %204
204: ; preds = %200
%205 = load i32, i32* %7
%206 = add nsw i32 %205, 1
%207 = icmp sgt i32 %206, 20
br i1 %207, label %208, label %209
208: ; preds = %204, %200
br label %225
209: ; preds = %204
%210 = load i32, i32* %6
%211 = sub nsw i32 %210, 1
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %212
%214 = load i32, i32* %7
%215 = add nsw i32 %214, 1
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds [20 x i8], [20 x i8]* %213, i64 0, i64 %216
%218 = load i8, i8* %217
%219 = sext i8 %218 to i32
%220 = icmp eq i32 %219, 42
br i1 %220, label %221, label %224
221: ; preds = %209
%222 = load i32, i32* %5
%223 = add nsw i32 %222, 1
store i32 %223, i32* %5
br label %224
224: ; preds = %221, %209
br label %225
225: ; preds = %224, %208
%226 = load i32, i32* %7
%227 = add nsw i32 %226, 1
%228 = icmp sgt i32 %227, 20
br i1 %228, label %229, label %230
229: ; preds = %225
br label %245
230: ; preds = %225
%231 = load i32, i32* %6
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %232
%234 = load i32, i32* %7
%235 = add nsw i32 %234, 1
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds [20 x i8], [20 x i8]* %233, i64 0, i64 %236
%238 = load i8, i8* %237
%239 = sext i8 %238 to i32
%240 = icmp eq i32 %239, 42
br i1 %240, label %241, label %244
241: ; preds = %230
%242 = load i32, i32* %5
%243 = add nsw i32 %242, 1
store i32 %243, i32* %5
br label %244
244: ; preds = %241, %230
br label %245
245: ; preds = %244, %229
%246 = load i32, i32* %6
%247 = add nsw i32 %246, 1
%248 = icmp sgt i32 %247, 20
br i1 %248, label %253, label %249
249: ; preds = %245
%250 = load i32, i32* %7
%251 = add nsw i32 %250, 1
%252 = icmp sgt i32 %251, 20
br i1 %252, label %253, label %254
253: ; preds = %249, %245
br label %270
254: ; preds = %249
%255 = load i32, i32* %6
%256 = add nsw i32 %255, 1
%257 = sext i32 %256 to i64
%258 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %257
%259 = load i32, i32* %7
%260 = add nsw i32 %259, 1
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds [20 x i8], [20 x i8]* %258, i64 0, i64 %261
%263 = load i8, i8* %262
%264 = sext i8 %263 to i32
%265 = icmp eq i32 %264, 42
br i1 %265, label %266, label %269
266: ; preds = %254
%267 = load i32, i32* %5
%268 = add nsw i32 %267, 1
store i32 %268, i32* %5
br label %269
269: ; preds = %266, %254
br label %270
270: ; preds = %269, %253
%271 = load i32, i32* %5
%272 = icmp eq i32 %271, 3
br i1 %272, label %273, label %280
273: ; preds = %270
%274 = load i32, i32* %6
%275 = sext i32 %274 to i64
%276 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %275
%277 = load i32, i32* %7
%278 = sext i32 %277 to i64
%279 = getelementptr inbounds [20 x i8], [20 x i8]* %276, i64 0, i64 %278
store i8 42, i8* %279
br label %308
280: ; preds = %270
%281 = load i32, i32* %5
%282 = icmp eq i32 %281, 2
br i1 %282, label %283, label %300
283: ; preds = %280
%284 = load i32, i32* %6
%285 = sext i32 %284 to i64
%286 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %285
%287 = load i32, i32* %7
%288 = sext i32 %287 to i64
%289 = getelementptr inbounds [20 x i8], [20 x i8]* %286, i64 0, i64 %288
%290 = load i8, i8* %289
%291 = sext i8 %290 to i32
%292 = icmp eq i32 %291, 42
br i1 %292, label %293, label %300
293: ; preds = %283
%294 = load i32, i32* %6
%295 = sext i32 %294 to i64
%296 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %295
%297 = load i32, i32* %7
%298 = sext i32 %297 to i64
%299 = getelementptr inbounds [20 x i8], [20 x i8]* %296, i64 0, i64 %298
store i8 42, i8* %299
br label %307
300: ; preds = %283, %280
%301 = load i32, i32* %6
%302 = sext i32 %301 to i64
%303 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %302
%304 = load i32, i32* %7
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds [20 x i8], [20 x i8]* %303, i64 0, i64 %305
store i8 45, i8* %306
br label %307
307: ; preds = %300, %293
br label %308
308: ; preds = %307, %273
br label %309
309: ; preds = %308
%310 = load i32, i32* %7
%311 = add nsw i32 %310, 1
store i32 %311, i32* %7
br label %87
312: ; preds = %87
br label %313
313: ; preds = %312
%314 = load i32, i32* %6
%315 = add nsw i32 %314, 1
store i32 %315, i32* %6
br label %83
316: ; preds = %83
store i32 0, i32* %6
br label %317
317: ; preds = %342, %316
%318 = load i32, i32* %6
%319 = icmp slt i32 %318, 20
br i1 %319, label %320, label %345
320: ; preds = %317
store i32 0, i32* %7
br label %321
321: ; preds = %338, %320
%322 = load i32, i32* %7
%323 = icmp slt i32 %322, 20
br i1 %323, label %324, label %341
324: ; preds = %321
%325 = load i32, i32* %6
%326 = sext i32 %325 to i64
%327 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %326
%328 = load i32, i32* %7
%329 = sext i32 %328 to i64
%330 = getelementptr inbounds [20 x i8], [20 x i8]* %327, i64 0, i64 %329
%331 = load i8, i8* %330
%332 = load i32, i32* %6
%333 = sext i32 %332 to i64
%334 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %333
%335 = load i32, i32* %7
%336 = sext i32 %335 to i64
%337 = getelementptr inbounds [20 x i8], [20 x i8]* %334, i64 0, i64 %336
store i8 %331, i8* %337
br label %338
338: ; preds = %324
%339 = load i32, i32* %7
%340 = add nsw i32 %339, 1
store i32 %340, i32* %7
br label %321
341: ; preds = %321
br label %342
342: ; preds = %341
%343 = load i32, i32* %6
%344 = add nsw i32 %343, 1
store i32 %344, i32* %6
br label %317
345: ; preds = %317
store i32 0, i32* %6
br label %346
346: ; preds = %368, %345
%347 = load i32, i32* %6
%348 = icmp slt i32 %347, 20
br i1 %348, label %349, label %371
349: ; preds = %346
store i32 0, i32* %7
br label %350
350: ; preds = %363, %349
%351 = load i32, i32* %7
%352 = icmp slt i32 %351, 20
br i1 %352, label %353, label %366
353: ; preds = %350
%354 = load i32, i32* %6
%355 = sext i32 %354 to i64
%356 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %355
%357 = load i32, i32* %7
%358 = sext i32 %357 to i64
%359 = getelementptr inbounds [20 x i8], [20 x i8]* %356, i64 0, i64 %358
%360 = load i8, i8* %359
%361 = sext i8 %360 to i32
%362 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %361)
br label %363
363: ; preds = %353
%364 = load i32, i32* %7
%365 = add nsw i32 %364, 1
store i32 %365, i32* %7
br label %350
366: ; preds = %350
%367 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %368
368: ; preds = %366
%369 = load i32, i32* %6
%370 = add nsw i32 %369, 1
store i32 %370, i32* %6
br label %346
371: ; preds = %346
store i32 0, i32* %6
br label %372
372: ; preds = %384, %371
%373 = load i32, i32* %6
%374 = icmp slt i32 %373, 10000
br i1 %374, label %375, label %387
375: ; preds = %372
store i32 0, i32* %7
br label %376
376: ; preds = %380, %375
%377 = load i32, i32* %7
%378 = icmp slt i32 %377, 10000
br i1 %378, label %379, label %383
379: ; preds = %376
br label %380
380: ; preds = %379
%381 = load i32, i32* %7
%382 = add nsw i32 %381, 1
store i32 %382, i32* %7
br label %376
383: ; preds = %376
br label %384
384: ; preds = %383
%385 = load i32, i32* %6
%386 = add nsw i32 %385, 1
store i32 %386, i32* %6
br label %372
387: ; preds = %372
br label %82
}

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