#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 EOF;
int /*<<< orphan*/ free(int *);
scalar_t__ malloc(int);
int /*<<< orphan*/ memcpy(int *, int *, int);
int /*<<< orphan*/ memset(int *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int scanf(char *, int *);
int main() {
  int src_length = 100;
  int src_index = 0;
  int *src = (int *)malloc(sizeof(int) * src_length);
  memset(src, 0, sizeof(int) * src_length);
  while (1) {
    int input;
    int result = scanf("%d", &input);
    if (result == EOF) {
      printf("STDIN is bad.\n");
      break;
    }
    if (result == 0) {
      printf("input invalid integer.\n");
      break;
    }
    if (src_index < src_length) {
      src[src_index] = input;
      src_index++;
    } else {
      src_length = src_length * 2;
      int *new_src = (int *)malloc(sizeof(int) * src_length);
      memset(new_src, 0, sizeof(int) * src_length);
      memcpy(new_src, src, sizeof(int) * src_length / 2);
      free(src);
      src = new_src;
      src[src_index] = input;
      src_index++;
    }
  }
  int min = src[0];
  int max = src[src_index - 1];
  int start = 0;
  int end = 0;
  if (min < 0)
    start = -min;
  else
    start = 0;
  if (max < 0)
    end = 0;
  else
    end = max;
  int length = start + end + 1;
  int *index_map = (int *)malloc(sizeof(int) * length);
  memset(index_map, 0, sizeof(int) * length);
  int index = 0;
  for (index = 0; index < src_index; index++) {
    printf("%d  ", src[index]);
    if (min < 0)
      index_map[src[index] - min] = 1;
    else
      index_map[src[index]] = 1;
  }
  printf("\n");
  for (index = 0; index < length; index++) {
    printf("%d  ", index_map[index]);
  }
  printf("\n");
  start = end = -1;
  printf("[");
  for (index = 0; index < length; index++) {
    if (index_map[index] == 1 && start == -1)
      start = index;
    if (index_map[index] == 0 && start != -1) {
      end = index - 1;
      if (start == end) {
        if (min < 0)
          printf("\"%d\" ", start + min);
        else
          printf("\"%d\" ", start);
      } else {
        if (min < 0)
          printf("\"%d-->%d\" ", start + min, end + min);
        else
          printf("\"%d-->%d\" ", start, end);
      }
      start = end = -1;
    }
    if (index == length - 1 && index_map[index] == 1) {
      end = index;
      if (start == end) {
        if (min < 0)
          printf("\"%d\"", start + min);
        else
          printf("\"%d\"", start);
      } else {
        if (min < 0)
          printf("\"%d-->%d\"", start + min, end + min);
        else
          printf("\"%d-->%d\"", start, end);
      }
    }
  }
  printf("]\n");
  free(index_map);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x64,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movslq -0x8(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
movslq -0x8(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1050 <memset@plt>
lea    0xe54(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1080 <scanf@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    0x2e26(%rip),%rcx
cmp    (%rcx),%eax
jne    11dd <main+0x7d>
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    129b <main+0x13b>
cmpl   $0x0,-0x20(%rbp)
jne    11fa <main+0x9a>
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    129b <main+0x13b>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1222 <main+0xc2>
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1296 <main+0x136>
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x8(%rbp)
movslq -0x8(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
movslq -0x8(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1050 <memset@plt>
mov    -0x28(%rbp),%rdi
mov    -0x18(%rbp),%rsi
movslq -0x8(%rbp),%rax
shl    $0x2,%rax
shr    $0x1,%rax
mov    %eax,%edx
call   1060 <memcpy@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11a5 <main+0x45>
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jge    12dc <main+0x17c>
xor    %eax,%eax
sub    -0x2c(%rbp),%eax
mov    %eax,-0x34(%rbp)
jmp    12e3 <main+0x183>
movl   $0x0,-0x34(%rbp)
cmpl   $0x0,-0x30(%rbp)
jge    12f9 <main+0x199>
movl   $0x0,-0x38(%rbp)
jmp    12ff <main+0x19f>
mov    -0x30(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x34(%rbp),%eax
add    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
movslq -0x3c(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
movslq -0x3c(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1050 <memset@plt>
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    13bb <main+0x25b>
mov    -0x18(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xccb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x2c(%rbp)
jge    1391 <main+0x231>
mov    -0x48(%rbp),%rax
mov    -0x18(%rbp),%rcx
movslq -0x4c(%rbp),%rdx
mov    (%rcx,%rdx,4),%ecx
sub    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
movl   $0x1,(%rax,%rcx,4)
jmp    13a8 <main+0x248>
mov    -0x48(%rbp),%rax
mov    -0x18(%rbp),%rcx
movslq -0x4c(%rbp),%rdx
movslq (%rcx,%rdx,4),%rcx
movl   $0x1,(%rax,%rcx,4)
jmp    13ad <main+0x24d>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1341 <main+0x1e1>
lea    0xc4e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    1403 <main+0x2a3>
mov    -0x48(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xc3c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    13d0 <main+0x270>
lea    0xc06(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xffffffff,-0x38(%rbp)
movl   $0xffffffff,-0x34(%rbp)
lea    0xc09(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    15e4 <main+0x484>
mov    -0x48(%rbp),%rax
movslq -0x4c(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    1462 <main+0x302>
cmpl   $0xffffffff,-0x34(%rbp)
jne    1462 <main+0x302>
mov    -0x4c(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x48(%rbp),%rax
movslq -0x4c(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
jne    151c <main+0x3bc>
cmpl   $0xffffffff,-0x34(%rbp)
je     151c <main+0x3bc>
mov    -0x4c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x38(%rbp),%eax
jne    14cc <main+0x36c>
cmpl   $0x0,-0x2c(%rbp)
jge    14b6 <main+0x356>
mov    -0x34(%rbp),%esi
add    -0x2c(%rbp),%esi
lea    0xb87(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14c7 <main+0x367>
mov    -0x34(%rbp),%esi
lea    0xb71(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    150e <main+0x3ae>
cmpl   $0x0,-0x2c(%rbp)
jge    14f5 <main+0x395>
mov    -0x34(%rbp),%esi
add    -0x2c(%rbp),%esi
mov    -0x38(%rbp),%edx
add    -0x2c(%rbp),%edx
lea    0xb4e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1509 <main+0x3a9>
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%edx
lea    0xb35(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    150e <main+0x3ae>
movl   $0xffffffff,-0x38(%rbp)
movl   $0xffffffff,-0x34(%rbp)
mov    -0x4c(%rbp),%eax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    15d1 <main+0x471>
mov    -0x48(%rbp),%rax
movslq -0x4c(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    15d1 <main+0x471>
mov    -0x4c(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x38(%rbp),%eax
jne    158a <main+0x42a>
cmpl   $0x0,-0x2c(%rbp)
jge    1574 <main+0x414>
mov    -0x34(%rbp),%esi
add    -0x2c(%rbp),%esi
lea    0xada(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1585 <main+0x425>
mov    -0x34(%rbp),%esi
lea    0xac4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    15cc <main+0x46c>
cmpl   $0x0,-0x2c(%rbp)
jge    15b3 <main+0x453>
mov    -0x34(%rbp),%esi
add    -0x2c(%rbp),%esi
mov    -0x38(%rbp),%edx
add    -0x2c(%rbp),%edx
lea    0xaa0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    15c7 <main+0x467>
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%edx
lea    0xa87(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    15cc <main+0x46c>
jmp    15d1 <main+0x471>
jmp    15d6 <main+0x476>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1434 <main+0x2d4>
lea    0xa66(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    $0x190,%edi
call   1090 <malloc@plt>
mov    %rax,%r12
mov    %rax,%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1070 <memset@plt>
lea    0xe4f(%rip),%rdi
lea    0xc(%rsp),%rsi
call   10a0 <scanf@plt>
mov    0x2e26(%rip),%rcx
lea    0xe78(%rip),%rdi
cmp    (%rcx),%eax
jne    11d5 <main+0x55>
xor    %r14d,%r14d
jmp    1280 <main+0x100>
mov    $0x64,%ebp
xor    %r14d,%r14d
lea    0xe1c(%rip),%r15
lea    0xc(%rsp),%rbx
jmp    1212 <main+0x92>
nopl   0x0(%rax,%rax,1)
mov    0xc(%rsp),%eax
mov    %eax,(%r12,%r14,4)
add    $0x1,%r14
mov    %r15,%rdi
mov    %rbx,%rsi
call   10a0 <scanf@plt>
mov    0x2dda(%rip),%rcx
cmp    (%rcx),%eax
je     1270 <main+0xf0>
test   %eax,%eax
je     1279 <main+0xf9>
movslq %ebp,%rax
cmp    %rax,%r14
jl     11f0 <main+0x70>
lea    0x0(%rbp,%rbp,1),%eax
mov    %eax,(%rsp)
lea    0x0(,%rbp,8),%ebx
mov    %ebx,%edi
call   1090 <malloc@plt>
mov    %rax,%r13
mov    %rax,%rdi
xor    %esi,%esi
mov    %ebx,%edx
lea    0xdbc(%rip),%r15
call   1070 <memset@plt>
shl    $0x2,%ebp
mov    %r13,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
call   1080 <memcpy@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r13,%r12
lea    0xc(%rsp),%rbx
mov    (%rsp),%eax
mov    %eax,%ebp
jmp    11f0 <main+0x70>
lea    0xdca(%rip),%rdi
jmp    1280 <main+0x100>
lea    0xdaa(%rip),%rdi
call   1050 <puts@plt>
mov    (%r12),%ecx
lea    -0x1(%r14),%eax
cltq
mov    (%r12,%rax,4),%edx
mov    %ecx,%eax
neg    %eax
mov    %rcx,0x18(%rsp)
mov    %ecx,%ebp
sar    $0x1f,%ebp
and    %ebp,%eax
test   %edx,%edx
mov    $0x0,%ecx
cmovs  %ecx,%edx
mov    %edx,0x10(%rsp)
add    %edx,%eax
mov    %rax,(%rsp)
lea    0x4(,%rax,4),%ebx
mov    %ebx,%edi
call   1090 <malloc@plt>
mov    %rax,%r15
mov    %rax,%rdi
xor    %esi,%esi
mov    %ebx,%edx
call   1070 <memset@plt>
cmp    $0x1,%r14d
jb     1316 <main+0x196>
mov    %r14d,%r13d
and    0x18(%rsp),%ebp
lea    0xd1b(%rip),%r14
movslq %ebp,%rbp
xor    %ebx,%ebx
nopl   (%rax)
mov    (%r12,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movslq (%r12,%rbx,4),%rax
sub    %rbp,%rax
movl   $0x1,(%r15,%rax,4)
add    $0x1,%rbx
cmp    %rbx,%r13
jne    12f0 <main+0x170>
mov    $0xa,%edi
call   1040 <putchar@plt>
cmpl   $0x0,(%rsp)
js     14c7 <main+0x347>
mov    0x18(%rsp),%rax
test   %eax,%eax
mov    $0x0,%ebp
cmovg  %eax,%ebp
mov    0x10(%rsp),%r13d
add    %r13d,%ebp
sub    %eax,%ebp
add    $0x1,%ebp
lea    0xcb6(%rip),%r14
xor    %ebx,%ebx
nop
mov    (%r15,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1350 <main+0x1d0>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x5b,%edi
call   1040 <putchar@plt>
cmpl   $0x0,(%rsp)
mov    0x18(%rsp),%rbx
js     14db <main+0x35b>
test   %ebx,%ebx
mov    $0x0,%r12d
cmovg  %ebx,%r12d
mov    (%rsp),%rax
mov    %eax,%r14d
add    %r13d,%r12d
sub    %ebx,%r12d
add    $0x1,%r12d
add    %ebx,%eax
mov    %eax,0x24(%rsp)
lea    -0x1(%rbx),%eax
mov    %rax,0x10(%rsp)
mov    $0xffffffff,%r13d
xor    %ebp,%ebp
jmp    13ed <main+0x26d>
lea    (%rbx,%r13,1),%esi
lea    0xc54(%rip),%rdi
mov    0x24(%rsp),%edx
xor    %eax,%eax
call   1060 <printf@plt>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%rbp
cmp    %rbp,%r12
je     14db <main+0x35b>
mov    (%r15,%rbp,4),%eax
mov    %eax,%ecx
xor    $0x1,%ecx
mov    %r13d,%edx
not    %edx
or     %ecx,%edx
mov    %ebp,%esi
je     1404 <main+0x284>
mov    %r13d,%esi
test   %eax,%eax
jne    1430 <main+0x2b0>
cmp    $0xffffffff,%esi
je     1430 <main+0x2b0>
lea    -0x1(%rbp),%rdx
cmp    %esi,%edx
jne    1440 <main+0x2c0>
test   %ebx,%ebx
jns    141b <main+0x29b>
add    %ebx,%esi
lea    0xbe6(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1465 <main+0x2e5>
nopl   0x0(%rax,%rax,1)
mov    %esi,%r13d
cmp    %rbp,%r14
jne    13e0 <main+0x260>
jmp    1474 <main+0x2f4>
nopw   0x0(%rax,%rax,1)
test   %ebx,%ebx
js     144d <main+0x2cd>
lea    0xbc3(%rip),%rdi
jmp    145e <main+0x2de>
add    %ebx,%esi
mov    0x10(%rsp),%rax
lea    (%rax,%rbp,1),%edx
lea    0xbb0(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xffffffff,%r13d
cmp    %rbp,%r14
jne    13e0 <main+0x260>
cmpl   $0x1,(%r15,%rbp,4)
jne    13e0 <main+0x260>
cmp    (%rsp),%r13d
jne    1495 <main+0x315>
test   %ebx,%ebx
js     14b0 <main+0x330>
lea    0xb89(%rip),%rdi
mov    %r13d,%esi
jmp    14bb <main+0x33b>
test   %ebx,%ebx
js     13bf <main+0x23f>
lea    0xb7a(%rip),%rdi
mov    %r13d,%esi
mov    (%rsp),%rdx
jmp    13ce <main+0x24e>
lea    (%rbx,%r13,1),%esi
lea    0xb5e(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    13e0 <main+0x260>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x5b,%edi
call   1040 <putchar@plt>
lea    0xb46(%rip),%rdi
call   1050 <puts@plt>
mov    %r15,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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