void GET_ITGR(r, l, u) int *r, l, u;
{
  int buf[10];
  int i, c, is_neg, j, n, done;
  done = 0;
  while (!done) {
    i = 0;
    c = getchar();
    while ((c == ' ') || (c == '\t')) {
      c = getchar();
    }
    if ((c != '+') && (c != '-')) {
      while (c != '\n') {
        c = getchar();
      }
      printf("    Not an integer in the range ");
      if (l >= 0)
        printf("+%d", l);
      else
        printf("%d", l);
      printf(" to ");
      if (u >= 0)
        printf("+%d", u);
      else
        printf("%d", u);
      printf(" \n    Re-input as +nnn/-nnn: ");
    } else {
      if (c == '+')
        is_neg = 0;
      else
        is_neg = 1;
      c = getchar();
      while ((i < 10) && (c >= '0') && (c <= '9')) {
        buf[i++] = c - '0';
        c = getchar();
      }
      if ((c != '\n') || (!i) || (i > 10)) {
        while (c != '\n') {
          c = getchar();
        }
        printf("    Not an integer in the range ");
        if (l >= 0)
          printf("+%d", l);
        else
          printf("%d", l);
        printf(" to ");
        if (u >= 0)
          printf("+%d", u);
        else
          printf("%d", u);
        printf(" \n    Re-input as +nnn/-nnn: ");
      } else {
        if (i < 10) {
          done = 1;
        } else {
          n = 0;
          for (j = 0; j < 9; j++) {
            n = (n * 10) + buf[j];
          }
          if (n < 214748364) {
            done = 1;
          } else if (n > 214748364) {
            while (c != '\n') {
              c = getchar();
            }
            printf("    Not an integer in the range ");
            if (l >= 0)
              printf("+%d", l);
            else
              printf("%d", l);
            printf(" to ");
            if (u >= 0)
              printf("+%d", u);
            else
              printf("%d", u);
            printf(" \n    Re-input as +nnn/-nnn: ");
          } else {
            if (is_neg) {
              if (buf[9] <= 7) {
                done = 1;
              } else {
                while (c != '\n') {
                  c = getchar();
                }
                printf("    Not an integer in the range ");
                if (l >= 0)
                  printf("+%d", l);
                else
                  printf("%d", l);
                printf(" to ");
                if (u >= 0)
                  printf("+%d", u);
                else
                  printf("%d", u);
                printf(" \n    Re-input as +nnn/-nnn: ");
              }
            } else {
              if (buf[9] <= 6) {
                done = 1;
              } else {
                while (c != '\n') {
                  c = getchar();
                }
                printf("    Not an integer in the range ");
                if (l >= 0)
                  printf("+%d", l);
                else
                  printf("%d", l);
                printf(" to ");
                if (u >= 0)
                  printf("+%d", u);
                else
                  printf("%d", u);
                printf(" \n    Re-input as +nnn/-nnn: ");
              }
            }
          }
        }
      }
    }
    if (done) {
      n = 0;
      for (j = 0; j < i; j++) {
        n = (n * 10) + buf[j];
      }
      if (is_neg)
        n = -n;
      if ((n < l) || (n > u)) {
        done = 0;
        while (c != '\n') {
          c = getchar();
        }
        printf("    Not an integer in the range ");
        if (l >= 0)
          printf("+%d", l);
        else
          printf("%d", l);
        printf(" to ");
        if (u >= 0)
          printf("+%d", u);
        else
          printf("%d", u);
        printf(" \n    Re-input as +nnn/-nnn: ");
      }
    }
  }
  *r = n;
}


x86 assembly (clang, -O0):
<GET_ITGR>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x0,-0x58(%rbp)
cmpl   $0x0,-0x58(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    114f <GET_ITGR+0x2f>
jmp    179b <GET_ITGR+0x67b>
movl   $0x0,-0x44(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x48(%rbp)
mov    $0x1,%al
cmpl   $0x20,-0x48(%rbp)
mov    %al,-0x59(%rbp)
je     1179 <GET_ITGR+0x59>
cmpl   $0x9,-0x48(%rbp)
sete   %al
mov    %al,-0x59(%rbp)
mov    -0x59(%rbp),%al
test   $0x1,%al
jne    1189 <GET_ITGR+0x69>
jmp    1198 <GET_ITGR+0x78>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x48(%rbp)
jmp    1160 <GET_ITGR+0x40>
cmpl   $0x2b,-0x48(%rbp)
je     125b <GET_ITGR+0x13b>
cmpl   $0x2d,-0x48(%rbp)
je     125b <GET_ITGR+0x13b>
jmp    11b1 <GET_ITGR+0x91>
cmpl   $0xa,-0x48(%rbp)
je     11ca <GET_ITGR+0xaa>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x48(%rbp)
jmp    11b1 <GET_ITGR+0x91>
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jl     11f8 <GET_ITGR+0xd8>
mov    -0xc(%rbp),%esi
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1209 <GET_ITGR+0xe9>
mov    -0xc(%rbp),%esi
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe15(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x10(%rbp)
jl     1237 <GET_ITGR+0x117>
mov    -0x10(%rbp),%esi
lea    0xdf6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1248 <GET_ITGR+0x128>
mov    -0x10(%rbp),%esi
lea    0xde1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    167a <GET_ITGR+0x55a>
cmpl   $0x2b,-0x48(%rbp)
jne    1271 <GET_ITGR+0x151>
movl   $0x0,-0x4c(%rbp)
jmp    1278 <GET_ITGR+0x158>
movl   $0x1,-0x4c(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x48(%rbp)
xor    %eax,%eax
cmpl   $0xa,-0x44(%rbp)
mov    %al,-0x5a(%rbp)
jge    12aa <GET_ITGR+0x18a>
xor    %eax,%eax
cmpl   $0x30,-0x48(%rbp)
mov    %al,-0x5a(%rbp)
jl     12aa <GET_ITGR+0x18a>
cmpl   $0x39,-0x48(%rbp)
setle  %al
mov    %al,-0x5a(%rbp)
mov    -0x5a(%rbp),%al
test   $0x1,%al
jne    12ba <GET_ITGR+0x19a>
jmp    12e0 <GET_ITGR+0x1c0>
mov    -0x48(%rbp),%ecx
sub    $0x30,%ecx
mov    -0x44(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x44(%rbp)
cltq
mov    %ecx,-0x40(%rbp,%rax,4)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x48(%rbp)
jmp    1282 <GET_ITGR+0x162>
cmpl   $0xa,-0x48(%rbp)
jne    12fe <GET_ITGR+0x1de>
cmpl   $0x0,-0x44(%rbp)
je     12fe <GET_ITGR+0x1de>
cmpl   $0xa,-0x44(%rbp)
jle    13ad <GET_ITGR+0x28d>
jmp    1303 <GET_ITGR+0x1e3>
cmpl   $0xa,-0x48(%rbp)
je     131c <GET_ITGR+0x1fc>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x48(%rbp)
jmp    1303 <GET_ITGR+0x1e3>
lea    0xcdd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jl     134a <GET_ITGR+0x22a>
mov    -0xc(%rbp),%esi
lea    0xce3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    135b <GET_ITGR+0x23b>
mov    -0xc(%rbp),%esi
lea    0xcce(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x10(%rbp)
jl     1389 <GET_ITGR+0x269>
mov    -0x10(%rbp),%esi
lea    0xca4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    139a <GET_ITGR+0x27a>
mov    -0x10(%rbp),%esi
lea    0xc8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1675 <GET_ITGR+0x555>
cmpl   $0xa,-0x44(%rbp)
jge    13c3 <GET_ITGR+0x2a3>
movl   $0x1,-0x58(%rbp)
jmp    1670 <GET_ITGR+0x550>
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x50(%rbp)
cmpl   $0x9,-0x50(%rbp)
jge    13f8 <GET_ITGR+0x2d8>
imul   $0xa,-0x54(%rbp),%eax
movslq -0x50(%rbp),%rcx
add    -0x40(%rbp,%rcx,4),%eax
mov    %eax,-0x54(%rbp)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    13d1 <GET_ITGR+0x2b1>
cmpl   $0xccccccc,-0x54(%rbp)
jge    1411 <GET_ITGR+0x2f1>
movl   $0x1,-0x58(%rbp)
jmp    166b <GET_ITGR+0x54b>
cmpl   $0xccccccc,-0x54(%rbp)
jle    14cd <GET_ITGR+0x3ad>
jmp    1423 <GET_ITGR+0x303>
cmpl   $0xa,-0x48(%rbp)
je     143c <GET_ITGR+0x31c>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x48(%rbp)
jmp    1423 <GET_ITGR+0x303>
lea    0xbbd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jl     146a <GET_ITGR+0x34a>
mov    -0xc(%rbp),%esi
lea    0xbc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    147b <GET_ITGR+0x35b>
mov    -0xc(%rbp),%esi
lea    0xbae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xba3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x10(%rbp)
jl     14a9 <GET_ITGR+0x389>
mov    -0x10(%rbp),%esi
lea    0xb84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14ba <GET_ITGR+0x39a>
mov    -0x10(%rbp),%esi
lea    0xb6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1666 <GET_ITGR+0x546>
cmpl   $0x0,-0x4c(%rbp)
je     159c <GET_ITGR+0x47c>
cmpl   $0x7,-0x1c(%rbp)
jg     14ed <GET_ITGR+0x3cd>
movl   $0x1,-0x58(%rbp)
jmp    1597 <GET_ITGR+0x477>
jmp    14f2 <GET_ITGR+0x3d2>
cmpl   $0xa,-0x48(%rbp)
je     150b <GET_ITGR+0x3eb>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x48(%rbp)
jmp    14f2 <GET_ITGR+0x3d2>
lea    0xaee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jl     1539 <GET_ITGR+0x419>
mov    -0xc(%rbp),%esi
lea    0xaf4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    154a <GET_ITGR+0x42a>
mov    -0xc(%rbp),%esi
lea    0xadf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xad4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x10(%rbp)
jl     1578 <GET_ITGR+0x458>
mov    -0x10(%rbp),%esi
lea    0xab5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1589 <GET_ITGR+0x469>
mov    -0x10(%rbp),%esi
lea    0xaa0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xa9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1661 <GET_ITGR+0x541>
cmpl   $0x6,-0x1c(%rbp)
jg     15b2 <GET_ITGR+0x492>
movl   $0x1,-0x58(%rbp)
jmp    165c <GET_ITGR+0x53c>
jmp    15b7 <GET_ITGR+0x497>
cmpl   $0xa,-0x48(%rbp)
je     15d0 <GET_ITGR+0x4b0>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x48(%rbp)
jmp    15b7 <GET_ITGR+0x497>
lea    0xa29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jl     15fe <GET_ITGR+0x4de>
mov    -0xc(%rbp),%esi
lea    0xa2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    160f <GET_ITGR+0x4ef>
mov    -0xc(%rbp),%esi
lea    0xa1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xa0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x10(%rbp)
jl     163d <GET_ITGR+0x51d>
mov    -0x10(%rbp),%esi
lea    0x9f0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    164e <GET_ITGR+0x52e>
mov    -0x10(%rbp),%esi
lea    0x9db(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x9d5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1661 <GET_ITGR+0x541>
jmp    1666 <GET_ITGR+0x546>
jmp    166b <GET_ITGR+0x54b>
jmp    1670 <GET_ITGR+0x550>
jmp    1675 <GET_ITGR+0x555>
jmp    167a <GET_ITGR+0x55a>
cmpl   $0x0,-0x58(%rbp)
je     1796 <GET_ITGR+0x676>
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    16bb <GET_ITGR+0x59b>
imul   $0xa,-0x54(%rbp),%eax
movslq -0x50(%rbp),%rcx
add    -0x40(%rbp,%rcx,4),%eax
mov    %eax,-0x54(%rbp)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1692 <GET_ITGR+0x572>
cmpl   $0x0,-0x4c(%rbp)
je     16cd <GET_ITGR+0x5ad>
xor    %eax,%eax
sub    -0x54(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0xc(%rbp),%eax
jl     16e5 <GET_ITGR+0x5c5>
mov    -0x54(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    1791 <GET_ITGR+0x671>
movl   $0x0,-0x58(%rbp)
cmpl   $0xa,-0x48(%rbp)
je     1705 <GET_ITGR+0x5e5>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x48(%rbp)
jmp    16ec <GET_ITGR+0x5cc>
lea    0x8f4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jl     1733 <GET_ITGR+0x613>
mov    -0xc(%rbp),%esi
lea    0x8fa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1744 <GET_ITGR+0x624>
mov    -0xc(%rbp),%esi
lea    0x8e5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x8da(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x10(%rbp)
jl     1772 <GET_ITGR+0x652>
mov    -0x10(%rbp),%esi
lea    0x8bb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1783 <GET_ITGR+0x663>
mov    -0x10(%rbp),%esi
lea    0x8a6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x8a0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1796 <GET_ITGR+0x676>
jmp    1139 <GET_ITGR+0x19>
mov    -0x54(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GET_ITGR>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %esi,%ebx
test   %esi,%esi
lea    0xf7c(%rip),%rax
lea    0xf76(%rip),%r14
mov    %r14,%r13
cmovns %rax,%r13
mov    %rdi,0x40(%rsp)
mov    %edx,0x4(%rsp)
test   %edx,%edx
cmovns %rax,%r14
mov    %r13,0x8(%rsp)
jmp    11a4 <GET_ITGR+0x84>
nopl   (%rax)
lea    0xf2d(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r13,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    0x4(%rsp),%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf21(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %eax,%r12d
lea    -0x9(%r12),%eax
cmp    $0x24,%eax
ja     1250 <GET_ITGR+0x130>
lea    0xe3d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    %ebx,%r13d
mov    %r14,%rbx
cmp    $0x2b,%r12d
setne  %al
mov    %eax,(%rsp)
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %eax,%ecx
add    $0xffffffd0,%ecx
cmp    $0x9,%ecx
ja     1270 <GET_ITGR+0x150>
mov    $0x1,%edx
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %rbp,%r14
mov    %rdx,%r15
add    $0x1,%rbp
mov    %ecx,0x10(%rsp,%r14,4)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0x8,%r14
ja     1228 <GET_ITGR+0x108>
lea    -0x30(%rax),%ecx
lea    0x1(%r15),%rdx
cmp    $0xa,%ecx
jb     1200 <GET_ITGR+0xe0>
cmp    $0xa,%eax
jne    1270 <GET_ITGR+0x150>
lea    -0x1(%rbp),%rax
cmp    $0x9,%r14
jae    12a1 <GET_ITGR+0x181>
mov    %rbx,%r14
mov    %r13d,%ebx
mov    0x8(%rsp),%r13
jmp    1304 <GET_ITGR+0x1e4>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0xa,%eax
jne    1250 <GET_ITGR+0x130>
jmp    1160 <GET_ITGR+0x40>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmp    $0xa,%eax
mov    %rbx,%r14
mov    %r13d,%ebx
mov    0x8(%rsp),%r13
je     1160 <GET_ITGR+0x40>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0xa,%eax
jne    1290 <GET_ITGR+0x170>
jmp    1160 <GET_ITGR+0x40>
mov    0x10(%rsp),%ecx
lea    (%rcx,%rcx,4),%ecx
add    %ecx,%ecx
add    0x14(%rsp),%ecx
lea    (%rcx,%rcx,4),%ecx
add    %ecx,%ecx
add    0x18(%rsp),%ecx
lea    (%rcx,%rcx,4),%ecx
add    %ecx,%ecx
add    0x1c(%rsp),%ecx
lea    (%rcx,%rcx,4),%ecx
add    %ecx,%ecx
add    0x20(%rsp),%ecx
lea    (%rcx,%rcx,4),%ecx
add    %ecx,%ecx
add    0x24(%rsp),%ecx
lea    (%rcx,%rcx,4),%ecx
add    %ecx,%ecx
add    0x28(%rsp),%ecx
lea    (%rcx,%rcx,4),%ecx
add    %ecx,%ecx
add    0x2c(%rsp),%ecx
lea    (%rcx,%rcx,4),%ecx
add    %ecx,%ecx
add    0x30(%rsp),%ecx
cmp    $0xccccccc,%ecx
mov    %rbx,%r14
mov    %r13d,%ebx
mov    0x8(%rsp),%r13
jge    13a0 <GET_ITGR+0x280>
cmp    $0x3,%rax
jae    1310 <GET_ITGR+0x1f0>
xor    %ecx,%ecx
xor    %eax,%eax
jmp    134d <GET_ITGR+0x22d>
mov    %r15,%rdx
and    $0xfffffffffffffffc,%rdx
xor    %ecx,%ecx
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
lea    (%rax,%rax,4),%eax
add    %eax,%eax
add    0x10(%rsp,%rcx,4),%eax
lea    (%rax,%rax,4),%eax
add    %eax,%eax
add    0x14(%rsp,%rcx,4),%eax
lea    (%rax,%rax,4),%eax
add    %eax,%eax
add    0x18(%rsp,%rcx,4),%eax
lea    (%rax,%rax,4),%eax
add    %eax,%eax
add    0x1c(%rsp,%rcx,4),%eax
add    $0x4,%rcx
cmp    %rcx,%rdx
jne    1320 <GET_ITGR+0x200>
test   $0x3,%bpl
je     1381 <GET_ITGR+0x261>
lea    (%rsp,%rcx,4),%rcx
add    $0x10,%rcx
and    $0x3,%r15d
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    (%rax,%rax,4),%eax
add    %eax,%eax
add    (%rcx,%rdx,4),%eax
add    $0x1,%rdx
cmp    %rdx,%r15
jne    1370 <GET_ITGR+0x250>
mov    %eax,%ecx
neg    %ecx
cmpb   $0x0,(%rsp)
cmove  %eax,%ecx
cmp    %ebx,%ecx
jl     1160 <GET_ITGR+0x40>
cmp    0x4(%rsp),%ecx
jg     1160 <GET_ITGR+0x40>
jmp    13d8 <GET_ITGR+0x2b8>
jne    1160 <GET_ITGR+0x40>
mov    0x34(%rsp),%ecx
cmp    $0x2b,%r12d
jne    13c5 <GET_ITGR+0x2a5>
cmp    $0x6,%ecx
jg     1160 <GET_ITGR+0x40>
movl   $0x0,(%rsp)
jmp    1304 <GET_ITGR+0x1e4>
mov    $0x1,%dl
mov    %edx,(%rsp)
cmp    $0x8,%ecx
jge    1160 <GET_ITGR+0x40>
jmp    1304 <GET_ITGR+0x1e4>
mov    0x40(%rsp),%rax
mov    %ecx,(%rax)
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [33 x i8] c" Not an integer in the range \00"
@.str.1 = [4 x i8] c"+%d\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [5 x i8] c" to \00"
@.str.4 = [30 x i8] c" \0A Re-input as +nnn/-nnn: \00"
define void @GET_ITGR(i32* nocapture writeonly %0, i32 %1, i32 %2) {
%4 = alloca [10 x i32]
%5 = bitcast [10 x i32]* %4 to i8*
%6 = icmp sgt i32 %1, -1
%7 = icmp sgt i32 %2, -1
%8 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 9
%9 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 0
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 1
%11 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 2
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 3
%13 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 4
%14 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 5
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 6
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 7
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 8
%18 = select i1 %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%19 = select i1 %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
br label %20
20: ; preds = %146, %3
%21 = tail call i32 (...) @getchar()
switch i32 %21, label %22 [
i32 32, label %146
i32 9, label %146
i32 45, label %25
i32 43, label %25
i32 10, label %140
]
22: ; preds = %20, %22
%23 = tail call i32 (...) @getchar()
%24 = icmp eq i32 %23, 10
br i1 %24, label %140, label %22
25: ; preds = %20, %20
%26 = icmp eq i32 %21, 43
%27 = xor i1 %26, true
%28 = tail call i32 (...) @getchar()
%29 = add i32 %28, -48
%30 = icmp ult i32 %29, 10
br i1 %30, label %31, label %43
31: ; preds = %25, %31
%32 = phi i64 [ %34, %31 ], [ 0, %25 ]
%33 = phi i32 [ %38, %31 ], [ %29, %25 ]
%34 = add nuw nsw i64 %32, 1
%35 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %32
store i32 %33, i32* %35
%36 = tail call i32 (...) @getchar()
%37 = icmp ult i64 %32, 9
%38 = add i32 %36, -48
%39 = icmp ult i32 %38, 10
%40 = and i1 %37, %39
br i1 %40, label %31, label %41
41: ; preds = %31
%42 = icmp eq i32 %36, 10
br i1 %42, label %49, label %43
43: ; preds = %25, %41
%44 = phi i32 [ %36, %41 ], [ %28, %25 ]
%45 = icmp eq i32 %44, 10
br i1 %45, label %140, label %46
46: ; preds = %43, %46
%47 = tail call i32 (...) @getchar()
%48 = icmp eq i32 %47, 10
br i1 %48, label %140, label %46
49: ; preds = %41
br i1 %37, label %85, label %50
50: ; preds = %49
%51 = load i32, i32* %9
%52 = mul nsw i32 %51, 10
%53 = load i32, i32* %10
%54 = add nsw i32 %53, %52
%55 = mul nsw i32 %54, 10
%56 = load i32, i32* %11
%57 = add nsw i32 %56, %55
%58 = mul nsw i32 %57, 10
%59 = load i32, i32* %12
%60 = add nsw i32 %59, %58
%61 = mul nsw i32 %60, 10
%62 = load i32, i32* %13
%63 = add nsw i32 %62, %61
%64 = mul nsw i32 %63, 10
%65 = load i32, i32* %14
%66 = add nsw i32 %65, %64
%67 = mul nsw i32 %66, 10
%68 = load i32, i32* %15
%69 = add nsw i32 %68, %67
%70 = mul nsw i32 %69, 10
%71 = load i32, i32* %16
%72 = add nsw i32 %71, %70
%73 = mul nsw i32 %72, 10
%74 = load i32, i32* %17
%75 = add nsw i32 %74, %73
%76 = icmp slt i32 %75, 214748364
br i1 %76, label %85, label %77
77: ; preds = %50
%78 = icmp eq i32 %75, 214748364
br i1 %78, label %79, label %140
79: ; preds = %77
%80 = load i32, i32* %8
br i1 %26, label %83, label %81
81: ; preds = %79
%82 = icmp slt i32 %80, 8
br i1 %82, label %85, label %140
83: ; preds = %79
%84 = icmp slt i32 %80, 7
br i1 %84, label %85, label %140
85: ; preds = %49, %50, %81, %83
%86 = phi i1 [ false, %83 ], [ true, %81 ], [ %27, %50 ], [ %27, %49 ]
%87 = and i64 %34, 3
%88 = icmp ult i64 %32, 3
br i1 %88, label %117, label %89
89: ; preds = %85
%90 = and i64 %34, 9223372036854775804
br label %91
91: ; preds = %91, %89
%92 = phi i64 [ 0, %89 ], [ %114, %91 ]
%93 = phi i32 [ 0, %89 ], [ %113, %91 ]
%94 = phi i64 [ 0, %89 ], [ %115, %91 ]
%95 = mul nsw i32 %93, 10
%96 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %92
%97 = load i32, i32* %96
%98 = add nsw i32 %97, %95
%99 = or i64 %92, 1
%100 = mul nsw i32 %98, 10
%101 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %99
%102 = load i32, i32* %101
%103 = add nsw i32 %102, %100
%104 = or i64 %92, 2
%105 = mul nsw i32 %103, 10
%106 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %104
%107 = load i32, i32* %106
%108 = add nsw i32 %107, %105
%109 = or i64 %92, 3
%110 = mul nsw i32 %108, 10
%111 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %109
%112 = load i32, i32* %111
%113 = add nsw i32 %112, %110
%114 = add nuw nsw i64 %92, 4
%115 = add i64 %94, 4
%116 = icmp eq i64 %115, %90
br i1 %116, label %117, label %91
117: ; preds = %91, %85
%118 = phi i32 [ undef, %85 ], [ %113, %91 ]
%119 = phi i64 [ 0, %85 ], [ %114, %91 ]
%120 = phi i32 [ 0, %85 ], [ %113, %91 ]
%121 = icmp eq i64 %87, 0
br i1 %121, label %133, label %122
122: ; preds = %117, %122
%123 = phi i64 [ %130, %122 ], [ %119, %117 ]
%124 = phi i32 [ %129, %122 ], [ %120, %117 ]
%125 = phi i64 [ %131, %122 ], [ 0, %117 ]
%126 = mul nsw i32 %124, 10
%127 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %123
%128 = load i32, i32* %127
%129 = add nsw i32 %128, %126
%130 = add nuw nsw i64 %123, 1
%131 = add i64 %125, 1
%132 = icmp eq i64 %131, %87
br i1 %132, label %133, label %122
133: ; preds = %122, %117
%134 = phi i32 [ %118, %117 ], [ %129, %122 ]
%135 = sub nsw i32 0, %134
%136 = select i1 %86, i32 %135, i32 %134
%137 = icmp slt i32 %136, %1
%138 = icmp sgt i32 %136, %2
%139 = or i1 %137, %138
br i1 %139, label %140, label %147
140: ; preds = %46, %22, %20, %133, %83, %81, %77, %43
%141 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%142 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %18, i32 %1)
%143 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%144 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %19, i32 %2)
%145 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
br label %146
146: ; preds = %140, %20, %20
br label %20
147: ; preds = %133
store i32 %136, i32* %0
ret void
}