#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 atoi(char *);
int /*<<< orphan*/ exit(int);
scalar_t__ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
scalar_t__ isdigit(char);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int scanf(char *, int *, int *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int main() {
  char screen[23][90];
  register int y;
  register int x;
  int tmpy, tmpx;
  for (x = 0; x < 79; x++)
    screen[0][x] = ' ';
  screen[0][79] = '\0';
  if (fgets(screen[0], 90, stdin) == 0) {
    perror("stdin");
    return 1;
  }
  if (isdigit(screen[0][0])) {
    int numstars = atoi(screen[0]);
    for (y = 0; y < 23; y++) {
      for (x = 0; x < 79; x++)
        screen[y][x] = ' ';
      screen[y][79] = '\0';
    }
    for (; numstars; numstars--) {
      if (scanf("%d %d\n", &tmpy, &tmpx) != 2) {
        perror("two numbers expected");
        return 1;
      }
      y = tmpy;
      x = tmpx;
      screen[y][x + x] = '*';
    }
    for (y = 0; y < 23; y++) {
      printf("%s\n", screen[y]);
    }
  } else {
    register int numstars = 0;
    for (y = 1; y < 23; y++) {
      for (x = 0; x < 79; x++)
        screen[y][x] = ' ';
      screen[y][79] = '\0';
    }
    for (y = 1; y < 23; y++) {
      if (fgets(screen[y], 90, stdin) == 0) {
        perror("stdin");
        return 1;
      }
    }
    for (y = 0; y < 23; y++) {
      for (x = 0; x < 80; x += 2) {
        if (screen[y][x] == '*') {
          numstars++;
        } else if (screen[y][x] == '\t' || screen[y][x + 1] == '\t') {
          fprintf(stderr, "Cannot have tabs in starmap--please expand.\n");
          exit(1);
        }
      }
    }
    printf("%d\n", numstars);
    for (y = 0; y < 23; y++) {
      for (x = 0; x < 80; x += 2) {
        if (screen[y][x] == '*') {
          printf("%d %d\n", y, x / 2);
        }
      }
    }
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x840,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x828(%rbp)
cmpl   $0x4f,-0x828(%rbp)
jge    11cc <main+0x4c>
movslq -0x828(%rbp),%rax
movb   $0x20,-0x820(%rbp,%rax,1)
20
mov    -0x828(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x828(%rbp)
jmp    119c <main+0x1c>
movb   $0x0,-0x7d1(%rbp)
lea    -0x820(%rbp),%rdi
mov    0x2e07(%rip),%rax
mov    (%rax),%edx
mov    $0x5a,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
jne    120f <main+0x8f>
lea    0xe02(%rip),%rdi
call   1080 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    16b2 <main+0x532>
movsbl -0x820(%rbp),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     13ba <main+0x23a>
lea    -0x820(%rbp),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x834(%rbp)
movl   $0x0,-0x824(%rbp)
cmpl   $0x17,-0x824(%rbp)
jge    12c6 <main+0x146>
movl   $0x0,-0x828(%rbp)
cmpl   $0x4f,-0x828(%rbp)
jge    1299 <main+0x119>
movslq -0x824(%rbp),%rcx
lea    -0x820(%rbp),%rax
imul   $0x5a,%rcx,%rcx
add    %rcx,%rax
movslq -0x828(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x828(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x828(%rbp)
jmp    1258 <main+0xd8>
movslq -0x824(%rbp),%rcx
lea    -0x820(%rbp),%rax
imul   $0x5a,%rcx,%rcx
add    %rcx,%rax
movb   $0x0,0x4f(%rax)
mov    -0x824(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x824(%rbp)
jmp    1241 <main+0xc1>
jmp    12cb <main+0x14b>
cmpl   $0x0,-0x834(%rbp)
je     1367 <main+0x1e7>
lea    0xd27(%rip),%rdi
lea    -0x82c(%rbp),%rsi
lea    -0x830(%rbp),%rdx
call   1070 <scanf@plt>
cmp    $0x2,%eax
je     1313 <main+0x193>
lea    0xd0b(%rip),%rdi
call   1080 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    16b2 <main+0x532>
mov    -0x82c(%rbp),%eax
mov    %eax,-0x824(%rbp)
mov    -0x830(%rbp),%eax
mov    %eax,-0x828(%rbp)
movslq -0x824(%rbp),%rcx
lea    -0x820(%rbp),%rax
imul   $0x5a,%rcx,%rcx
add    %rcx,%rax
mov    -0x828(%rbp),%ecx
add    -0x828(%rbp),%ecx
movslq %ecx,%rcx
movb   $0x2a,(%rax,%rcx,1)
mov    -0x834(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x834(%rbp)
jmp    12cb <main+0x14b>
movl   $0x0,-0x824(%rbp)
cmpl   $0x17,-0x824(%rbp)
jge    13b5 <main+0x235>
movslq -0x824(%rbp),%rax
lea    -0x820(%rbp),%rsi
imul   $0x5a,%rax,%rax
add    %rax,%rsi
lea    0xc88(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x824(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x824(%rbp)
jmp    1371 <main+0x1f1>
jmp    16ab <main+0x52b>
movl   $0x0,-0x838(%rbp)
movl   $0x1,-0x824(%rbp)
cmpl   $0x17,-0x824(%rbp)
jge    1453 <main+0x2d3>
movl   $0x0,-0x828(%rbp)
cmpl   $0x4f,-0x828(%rbp)
jge    1426 <main+0x2a6>
movslq -0x824(%rbp),%rcx
lea    -0x820(%rbp),%rax
imul   $0x5a,%rcx,%rcx
add    %rcx,%rax
movslq -0x828(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x828(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x828(%rbp)
jmp    13e5 <main+0x265>
movslq -0x824(%rbp),%rcx
lea    -0x820(%rbp),%rax
imul   $0x5a,%rcx,%rcx
add    %rcx,%rax
movb   $0x0,0x4f(%rax)
mov    -0x824(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x824(%rbp)
jmp    13ce <main+0x24e>
movl   $0x1,-0x824(%rbp)
cmpl   $0x17,-0x824(%rbp)
jge    14cd <main+0x34d>
movslq -0x824(%rbp),%rax
lea    -0x820(%rbp),%rdi
imul   $0x5a,%rax,%rax
add    %rax,%rdi
mov    0x2b62(%rip),%rax
mov    (%rax),%edx
mov    $0x5a,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
jne    14b4 <main+0x334>
lea    0xb5d(%rip),%rdi
call   1080 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    16b2 <main+0x532>
jmp    14b9 <main+0x339>
mov    -0x824(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x824(%rbp)
jmp    145d <main+0x2dd>
movl   $0x0,-0x824(%rbp)
cmpl   $0x17,-0x824(%rbp)
jge    15e5 <main+0x465>
movl   $0x0,-0x828(%rbp)
cmpl   $0x50,-0x828(%rbp)
jge    15cc <main+0x44c>
movslq -0x824(%rbp),%rcx
lea    -0x820(%rbp),%rax
imul   $0x5a,%rcx,%rcx
add    %rcx,%rax
movslq -0x828(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2a,%eax
jne    1538 <main+0x3b8>
mov    -0x838(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x838(%rbp)
jmp    15b3 <main+0x433>
movslq -0x824(%rbp),%rcx
lea    -0x820(%rbp),%rax
imul   $0x5a,%rcx,%rcx
add    %rcx,%rax
movslq -0x828(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x9,%eax
je     158f <main+0x40f>
movslq -0x824(%rbp),%rcx
lea    -0x820(%rbp),%rax
imul   $0x5a,%rcx,%rcx
add    %rcx,%rax
mov    -0x828(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x9,%eax
jne    15ae <main+0x42e>
mov    0x2a42(%rip),%rax
mov    (%rax),%edi
lea    0xa87(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
jmp    15b3 <main+0x433>
jmp    15b8 <main+0x438>
mov    -0x828(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x828(%rbp)
jmp    14ee <main+0x36e>
jmp    15d1 <main+0x451>
mov    -0x824(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x824(%rbp)
jmp    14d7 <main+0x357>
mov    -0x838(%rbp),%esi
lea    0xa17(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x824(%rbp)
cmpl   $0x17,-0x824(%rbp)
jge    16a6 <main+0x526>
movl   $0x0,-0x828(%rbp)
cmpl   $0x50,-0x828(%rbp)
jge    168d <main+0x50d>
movslq -0x824(%rbp),%rcx
lea    -0x820(%rbp),%rax
imul   $0x5a,%rcx,%rcx
add    %rcx,%rax
movslq -0x828(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2a,%eax
jne    1674 <main+0x4f4>
mov    -0x824(%rbp),%esi
mov    -0x828(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    0x999(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1679 <main+0x4f9>
mov    -0x828(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x828(%rbp)
jmp    161a <main+0x49a>
jmp    1692 <main+0x512>
mov    -0x824(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x824(%rbp)
jmp    1603 <main+0x483>
jmp    16ab <main+0x52b>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    -0x4(%rbp),%eax
add    $0x840,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x828,%rsp
movaps 0xe58(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movups %xmm0,0x4f(%rsp)
movb   $0x0,0x5f(%rsp)
mov    0x2e1b(%rip),%rbp
mov    0x0(%rbp),%edx
lea    0x10(%rsp),%r15
mov    %r15,%rdi
mov    $0x5a,%esi
call   1060 <fgets@plt>
lea    0xe27(%rip),%r14
test   %rax,%rax
je     19a1 <main+0x811>
movsbl 0x10(%rsp),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
jne    13d4 <main+0x244>
lea    0x6a(%rsp),%rbx
xor    %eax,%eax
movaps 0xded(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups %xmm0,0x3f(%rbx,%rax,1)
movups %xmm0,0x30(%rbx,%rax,1)
movups %xmm0,0x20(%rbx,%rax,1)
movups %xmm0,0x10(%rbx,%rax,1)
movups %xmm0,(%rbx,%rax,1)
movb   $0x0,0xb9(%rsp,%rax,1)
movups %xmm0,0x99(%rbx,%rax,1)
movups %xmm0,0x8a(%rbx,%rax,1)
movups %xmm0,0x7a(%rbx,%rax,1)
movups %xmm0,0x6a(%rbx,%rax,1)
movups %xmm0,0x5a(%rbx,%rax,1)
movb   $0x0,0x113(%rsp,%rax,1)
add    $0xb4,%rax
cmp    $0x7bc,%rax
jne    1220 <main+0x90>
xor    %r12d,%r12d
nopl   0x0(%rax,%rax,1)
mov    0x0(%rbp),%edx
mov    %rbx,%rdi
mov    $0x5a,%esi
call   1060 <fgets@plt>
test   %rax,%rax
je     19a1 <main+0x811>
add    $0x1,%r12
add    $0x5a,%rbx
cmp    $0x16,%r12
jne    1280 <main+0xf0>
lea    0x13(%rsp),%rax
xor    %ecx,%ecx
xor    %esi,%esi
jmp    12ce <main+0x13e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%rcx
add    $0x5a,%rax
cmp    $0x17,%rcx
je     1348 <main+0x1b8>
mov    $0xfffffffffffffffe,%rdx
jmp    12ed <main+0x15d>
nopw   0x0(%rax,%rax,1)
add    $0x1,%esi
add    $0x4,%rdx
cmp    $0x4e,%rdx
jae    12c0 <main+0x130>
movzbl -0x1(%rax,%rdx,1),%ebx
cmp    $0x2a,%bl
je     1310 <main+0x180>
cmp    $0x9,%bl
je     1329 <main+0x199>
cmpb   $0x9,(%rax,%rdx,1)
jne    1313 <main+0x183>
jmp    1329 <main+0x199>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%esi
movzbl 0x1(%rax,%rdx,1),%ebx
cmp    $0x2a,%bl
je     12e0 <main+0x150>
cmp    $0x9,%bl
je     1329 <main+0x199>
cmpb   $0x9,0x2(%rax,%rdx,1)
jne    12e3 <main+0x153>
mov    0x2ca8(%rip),%rax
mov    (%rax),%edi
lea    0xcf9(%rip),%rsi
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
lea    0xcca(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcb9(%rip),%r14
xor    %r13d,%r13d
jmp    137e <main+0x1ee>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r13
add    $0x5a,%r15
cmp    $0x17,%r13
je     13b6 <main+0x226>
mov    $0xfffffffffffffffe,%rbx
xor    %ebp,%ebp
jmp    139d <main+0x20d>
nopl   0x0(%rax)
add    $0x2,%rbx
add    $0x1,%ebp
cmp    $0x4e,%rbx
jae    1370 <main+0x1e0>
cmpb   $0x2a,0x2(%r15,%rbx,1)
jne    1390 <main+0x200>
mov    %r14,%rdi
mov    %r13d,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1390 <main+0x200>
xor    %eax,%eax
cmp    $0x16,%r12
jae    19b3 <main+0x823>
add    $0x828,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x10(%rsp),%rdi
call   10a0 <atoi@plt>
movaps 0xc1b(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movups %xmm0,0x4f(%rsp)
movb   $0x0,0x5f(%rsp)
movups %xmm0,0x6a(%rsp)
movups %xmm0,0x7a(%rsp)
movups %xmm0,0x8a(%rsp)
movups %xmm0,0x9a(%rsp)
movups %xmm0,0xa9(%rsp)
movb   $0x0,0xb9(%rsp)
movups %xmm0,0xc4(%rsp)
movups %xmm0,0xd4(%rsp)
movups %xmm0,0xe4(%rsp)
movups %xmm0,0xf4(%rsp)
movups %xmm0,0x103(%rsp)
movb   $0x0,0x113(%rsp)
movups %xmm0,0x11e(%rsp)
movups %xmm0,0x12e(%rsp)
movups %xmm0,0x13e(%rsp)
movups %xmm0,0x14e(%rsp)
movups %xmm0,0x15d(%rsp)
movb   $0x0,0x16d(%rsp)
movups %xmm0,0x178(%rsp)
movups %xmm0,0x188(%rsp)
movups %xmm0,0x198(%rsp)
movups %xmm0,0x1a8(%rsp)
movups %xmm0,0x1b7(%rsp)
movb   $0x0,0x1c7(%rsp)
movups %xmm0,0x1d2(%rsp)
movups %xmm0,0x1e2(%rsp)
movups %xmm0,0x1f2(%rsp)
movups %xmm0,0x202(%rsp)
movups %xmm0,0x211(%rsp)
movb   $0x0,0x221(%rsp)
movups %xmm0,0x26b(%rsp)
movups %xmm0,0x25c(%rsp)
movups %xmm0,0x24c(%rsp)
movups %xmm0,0x23c(%rsp)
movups %xmm0,0x22c(%rsp)
movb   $0x0,0x27b(%rsp)
movups %xmm0,0x2c5(%rsp)
movups %xmm0,0x2b6(%rsp)
movups %xmm0,0x2a6(%rsp)
movups %xmm0,0x296(%rsp)
movups %xmm0,0x286(%rsp)
movb   $0x0,0x2d5(%rsp)
movups %xmm0,0x31f(%rsp)
movaps %xmm0,0x310(%rsp)
movaps %xmm0,0x300(%rsp)
movaps %xmm0,0x2f0(%rsp)
movaps %xmm0,0x2e0(%rsp)
movb   $0x0,0x32f(%rsp)
movups %xmm0,0x379(%rsp)
movups %xmm0,0x36a(%rsp)
movups %xmm0,0x35a(%rsp)
movups %xmm0,0x34a(%rsp)
movups %xmm0,0x33a(%rsp)
movb   $0x0,0x389(%rsp)
movups %xmm0,0x3d3(%rsp)
movups %xmm0,0x3c4(%rsp)
movups %xmm0,0x3b4(%rsp)
movups %xmm0,0x3a4(%rsp)
movups %xmm0,0x394(%rsp)
movb   $0x0,0x3e3(%rsp)
movups %xmm0,0x42d(%rsp)
movups %xmm0,0x41e(%rsp)
movups %xmm0,0x40e(%rsp)
movups %xmm0,0x3fe(%rsp)
movups %xmm0,0x3ee(%rsp)
movb   $0x0,0x43d(%rsp)
movups %xmm0,0x487(%rsp)
movups %xmm0,0x478(%rsp)
movups %xmm0,0x468(%rsp)
movups %xmm0,0x458(%rsp)
movups %xmm0,0x448(%rsp)
movb   $0x0,0x497(%rsp)
movups %xmm0,0x4e1(%rsp)
movups %xmm0,0x4d2(%rsp)
movups %xmm0,0x4c2(%rsp)
movups %xmm0,0x4b2(%rsp)
movups %xmm0,0x4a2(%rsp)
movb   $0x0,0x4f1(%rsp)
movups %xmm0,0x53b(%rsp)
movups %xmm0,0x52c(%rsp)
movups %xmm0,0x51c(%rsp)
movups %xmm0,0x50c(%rsp)
movups %xmm0,0x4fc(%rsp)
movb   $0x0,0x54b(%rsp)
movups %xmm0,0x595(%rsp)
movups %xmm0,0x586(%rsp)
movups %xmm0,0x576(%rsp)
movups %xmm0,0x566(%rsp)
movups %xmm0,0x556(%rsp)
movb   $0x0,0x5a5(%rsp)
movups %xmm0,0x5ef(%rsp)
movaps %xmm0,0x5e0(%rsp)
movaps %xmm0,0x5d0(%rsp)
movaps %xmm0,0x5c0(%rsp)
movaps %xmm0,0x5b0(%rsp)
movb   $0x0,0x5ff(%rsp)
movups %xmm0,0x649(%rsp)
movups %xmm0,0x63a(%rsp)
movups %xmm0,0x62a(%rsp)
movups %xmm0,0x61a(%rsp)
movups %xmm0,0x60a(%rsp)
movb   $0x0,0x659(%rsp)
movups %xmm0,0x6a3(%rsp)
movups %xmm0,0x694(%rsp)
movups %xmm0,0x684(%rsp)
movups %xmm0,0x674(%rsp)
movups %xmm0,0x664(%rsp)
movb   $0x0,0x6b3(%rsp)
movups %xmm0,0x6fd(%rsp)
movups %xmm0,0x6ee(%rsp)
movups %xmm0,0x6de(%rsp)
movups %xmm0,0x6ce(%rsp)
movups %xmm0,0x6be(%rsp)
movb   $0x0,0x70d(%rsp)
movups %xmm0,0x757(%rsp)
movups %xmm0,0x748(%rsp)
movups %xmm0,0x738(%rsp)
movups %xmm0,0x728(%rsp)
movups %xmm0,0x718(%rsp)
movb   $0x0,0x767(%rsp)
movups %xmm0,0x7b1(%rsp)
movups %xmm0,0x7a2(%rsp)
movups %xmm0,0x792(%rsp)
movups %xmm0,0x782(%rsp)
movups %xmm0,0x772(%rsp)
movb   $0x0,0x7c1(%rsp)
movups %xmm0,0x80b(%rsp)
movups %xmm0,0x7fc(%rsp)
movups %xmm0,0x7ec(%rsp)
movups %xmm0,0x7dc(%rsp)
movups %xmm0,0x7cc(%rsp)
movb   $0x0,0x81b(%rsp)
test   %eax,%eax
je     1875 <main+0x6e5>
mov    %eax,%ebx
lea    0x7ec(%rip),%r15
lea    0xc(%rsp),%r12
lea    0x8(%rsp),%rbp
lea    0x7e2(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbp,%rdx
call   1080 <scanf@plt>
cmp    $0x2,%eax
jne    19a1 <main+0x811>
movslq 0xc(%rsp),%rax
movslq 0x8(%rsp),%rcx
imul   $0x5a,%rax,%rax
add    %rsp,%rax
add    $0x10,%rax
movb   $0x2a,(%rax,%rcx,2)
add    $0xffffffff,%ebx
jne    1840 <main+0x6b0>
lea    0x10(%rsp),%rdi
call   1040 <puts@plt>
lea    0x6a(%rsp),%rdi
call   1040 <puts@plt>
lea    0xc4(%rsp),%rdi
call   1040 <puts@plt>
lea    0x11e(%rsp),%rdi
call   1040 <puts@plt>
lea    0x178(%rsp),%rdi
call   1040 <puts@plt>
lea    0x1d2(%rsp),%rdi
call   1040 <puts@plt>
lea    0x22c(%rsp),%rdi
call   1040 <puts@plt>
lea    0x286(%rsp),%rdi
call   1040 <puts@plt>
lea    0x2e0(%rsp),%rdi
call   1040 <puts@plt>
lea    0x33a(%rsp),%rdi
call   1040 <puts@plt>
lea    0x394(%rsp),%rdi
call   1040 <puts@plt>
lea    0x3ee(%rsp),%rdi
call   1040 <puts@plt>
lea    0x448(%rsp),%rdi
call   1040 <puts@plt>
lea    0x4a2(%rsp),%rdi
call   1040 <puts@plt>
lea    0x4fc(%rsp),%rdi
call   1040 <puts@plt>
lea    0x556(%rsp),%rdi
call   1040 <puts@plt>
lea    0x5b0(%rsp),%rdi
call   1040 <puts@plt>
lea    0x60a(%rsp),%rdi
call   1040 <puts@plt>
lea    0x664(%rsp),%rdi
call   1040 <puts@plt>
lea    0x6be(%rsp),%rdi
call   1040 <puts@plt>
lea    0x718(%rsp),%rdi
call   1040 <puts@plt>
lea    0x772(%rsp),%rdi
call   1040 <puts@plt>
lea    0x7cc(%rsp),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   10b0 <exit@plt>
mov    %r14,%rdi
call   1090 <perror@plt>
mov    $0x1,%eax
jmp    13c2 <main+0x232>
xor    %edi,%edi
call   10b0 <exit@plt>

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

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