void Rename_GET_RAW(r, d) int *r, d;
{
  register int c, m, k, l, n;
  {
    k = d / 10;
    l = d - 10 * (d / 10);
    c = getchar();
    n = 0;
    while ((c < '0') || (c > '9')) {
      while (c != '\n') {
        c = getchar();
      };
      printf("    Not a token (0..%d) - Re-Input: ", d);
      c = getchar();
    };
    while ((c >= '0') && (c <= '9')) {
      m = c - '0';
      if (n < k) {
        n = 10 * n + m;
        c = getchar();
      } else if (n == k) {
        if (m <= l) {
          n = 10 * n + m;
          c = getchar();
        } else {
          while (c != '\n') {
            c = getchar();
          };
          printf("    Not a token (0..%d) - Re-Input: ", d);
          c = getchar();
          n = 0;
          while ((c < '0') || (c > '9')) {
            while (c != '\n') {
              c = getchar();
            };
            printf("    Not a token (0..%d) - Re-Input: ", d);
            c = getchar();
          };
        };
      } else {
        while (c != '\n') {
          c = getchar();
        };
        printf("    Not a token (0..%d) - Re-Input: ", d);
        c = getchar();
        n = 0;
        while ((c < '0') || (c > '9')) {
          while (c != '\n') {
            c = getchar();
          };
          printf("    Not a token (0..%d) - Re-Input: ", d);
          c = getchar();
        };
      };
    };
    while (c != '\n') {
      c = getchar();
    };
    *r = n;
  };
}


x86 assembly (clang, -O0):
<Rename_GET_RAW>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0xc(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x24(%rbp),%eax
imul   $0xa,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,-0x1c(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x20(%rbp)
mov    $0x1,%al
cmpl   $0x30,-0x10(%rbp)
mov    %al,-0x25(%rbp)
jl     1185 <Rename_GET_RAW+0x65>
cmpl   $0x39,-0x10(%rbp)
setg   %al
mov    %al,-0x25(%rbp)
mov    -0x25(%rbp),%al
test   $0x1,%al
jne    1195 <Rename_GET_RAW+0x75>
jmp    11d3 <Rename_GET_RAW+0xb3>
jmp    119a <Rename_GET_RAW+0x7a>
cmpl   $0xa,-0x10(%rbp)
je     11b3 <Rename_GET_RAW+0x93>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
jmp    119a <Rename_GET_RAW+0x7a>
mov    -0xc(%rbp),%esi
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
jmp    116c <Rename_GET_RAW+0x4c>
jmp    11d8 <Rename_GET_RAW+0xb8>
xor    %eax,%eax
cmpl   $0x30,-0x10(%rbp)
mov    %al,-0x26(%rbp)
jl     11f1 <Rename_GET_RAW+0xd1>
cmpl   $0x39,-0x10(%rbp)
setle  %al
mov    %al,-0x26(%rbp)
mov    -0x26(%rbp),%al
test   $0x1,%al
jne    1201 <Rename_GET_RAW+0xe1>
jmp    13c7 <Rename_GET_RAW+0x2a7>
mov    -0x10(%rbp),%eax
sub    $0x30,%eax
mov    %eax,-0x14(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    122f <Rename_GET_RAW+0x10f>
imul   $0xa,-0x20(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
jmp    13c2 <Rename_GET_RAW+0x2a2>
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jne    1311 <Rename_GET_RAW+0x1f1>
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     1260 <Rename_GET_RAW+0x140>
imul   $0xa,-0x20(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
jmp    130c <Rename_GET_RAW+0x1ec>
jmp    1265 <Rename_GET_RAW+0x145>
cmpl   $0xa,-0x10(%rbp)
je     127e <Rename_GET_RAW+0x15e>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
jmp    1265 <Rename_GET_RAW+0x145>
mov    -0xc(%rbp),%esi
lea    0xd78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x20(%rbp)
mov    $0x1,%al
cmpl   $0x30,-0x10(%rbp)
mov    %al,-0x27(%rbp)
jl     12b9 <Rename_GET_RAW+0x199>
cmpl   $0x39,-0x10(%rbp)
setg   %al
mov    %al,-0x27(%rbp)
mov    -0x27(%rbp),%al
test   $0x1,%al
jne    12c9 <Rename_GET_RAW+0x1a9>
jmp    1307 <Rename_GET_RAW+0x1e7>
jmp    12ce <Rename_GET_RAW+0x1ae>
cmpl   $0xa,-0x10(%rbp)
je     12e7 <Rename_GET_RAW+0x1c7>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
jmp    12ce <Rename_GET_RAW+0x1ae>
mov    -0xc(%rbp),%esi
lea    0xd0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
jmp    12a0 <Rename_GET_RAW+0x180>
jmp    130c <Rename_GET_RAW+0x1ec>
jmp    13bd <Rename_GET_RAW+0x29d>
jmp    1316 <Rename_GET_RAW+0x1f6>
cmpl   $0xa,-0x10(%rbp)
je     132f <Rename_GET_RAW+0x20f>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
jmp    1316 <Rename_GET_RAW+0x1f6>
mov    -0xc(%rbp),%esi
lea    0xcc7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x20(%rbp)
mov    $0x1,%al
cmpl   $0x30,-0x10(%rbp)
mov    %al,-0x28(%rbp)
jl     136a <Rename_GET_RAW+0x24a>
cmpl   $0x39,-0x10(%rbp)
setg   %al
mov    %al,-0x28(%rbp)
mov    -0x28(%rbp),%al
test   $0x1,%al
jne    137a <Rename_GET_RAW+0x25a>
jmp    13b8 <Rename_GET_RAW+0x298>
jmp    137f <Rename_GET_RAW+0x25f>
cmpl   $0xa,-0x10(%rbp)
je     1398 <Rename_GET_RAW+0x278>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
jmp    137f <Rename_GET_RAW+0x25f>
mov    -0xc(%rbp),%esi
lea    0xc5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
jmp    1351 <Rename_GET_RAW+0x231>
jmp    13bd <Rename_GET_RAW+0x29d>
jmp    13c2 <Rename_GET_RAW+0x2a2>
jmp    11d8 <Rename_GET_RAW+0xb8>
jmp    13cc <Rename_GET_RAW+0x2ac>
cmpl   $0xa,-0x10(%rbp)
je     13e5 <Rename_GET_RAW+0x2c5>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
jmp    13cc <Rename_GET_RAW+0x2ac>
mov    -0x20(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Rename_GET_RAW>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%r14
movslq %esi,%rax
imul   $0x66666667,%rax,%r15
mov    %r15,%rax
shr    $0x3f,%rax
sar    $0x22,%r15
add    %eax,%r15d
lea    (%r15,%r15,1),%eax
lea    (%rax,%rax,4),%r13d
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %eax,%ecx
add    $0xffffffc6,%eax
cmp    $0xfffffff5,%eax
ja     11ae <Rename_GET_RAW+0x8e>
lea    0xe98(%rip),%rbx
jmp    118d <Rename_GET_RAW+0x6d>
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %eax,%ecx
add    $0xffffffc6,%eax
cmp    $0xfffffff6,%eax
jae    11ae <Rename_GET_RAW+0x8e>
cmp    $0xa,%ecx
je     1170 <Rename_GET_RAW+0x50>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0xa,%eax
jne    11a0 <Rename_GET_RAW+0x80>
jmp    1170 <Rename_GET_RAW+0x50>
mov    %ebp,%r12d
sub    %r13d,%r12d
add    $0xffffffd0,%ecx
lea    0xe42(%rip),%r13
xor    %ebx,%ebx
jmp    11e9 <Rename_GET_RAW+0xc9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    (%rbx,%rbx,4),%eax
lea    (%rcx,%rax,2),%ebx
xor    %eax,%eax
call   1040 <getchar@plt>
lea    -0x30(%rax),%ecx
cmp    $0xa,%ecx
jae    12ee <Rename_GET_RAW+0x1ce>
cmp    %r15d,%ebx
jl     11d0 <Rename_GET_RAW+0xb0>
jne    1240 <Rename_GET_RAW+0x120>
mov    %r15d,%ebx
cmp    %r12d,%ecx
jle    11d0 <Rename_GET_RAW+0xb0>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0xa,%eax
jne    1200 <Rename_GET_RAW+0xe0>
xor    %ebx,%ebx
mov    %r13,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %eax,%ecx
add    $0xffffffc6,%ecx
cmp    $0xfffffff5,%ecx
jbe    12d3 <Rename_GET_RAW+0x1b3>
jmp    11dd <Rename_GET_RAW+0xbd>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0xa,%eax
jne    1240 <Rename_GET_RAW+0x120>
xor    %ebx,%ebx
mov    %r13,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %eax,%ecx
add    $0xffffffc6,%ecx
cmp    $0xfffffff5,%ecx
jbe    1293 <Rename_GET_RAW+0x173>
jmp    11dd <Rename_GET_RAW+0xbd>
xor    %ebx,%ebx
mov    %r13,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %eax,%ecx
add    $0xffffffc6,%ecx
cmp    $0xfffffff6,%ecx
jae    11dd <Rename_GET_RAW+0xbd>
cmp    $0xa,%eax
je     1270 <Rename_GET_RAW+0x150>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0xa,%eax
jne    12a0 <Rename_GET_RAW+0x180>
jmp    1270 <Rename_GET_RAW+0x150>
xchg   %ax,%ax
xor    %ebx,%ebx
mov    %r13,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %eax,%ecx
add    $0xffffffc6,%ecx
cmp    $0xfffffff6,%ecx
jae    11dd <Rename_GET_RAW+0xbd>
cmp    $0xa,%eax
je     12b0 <Rename_GET_RAW+0x190>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0xa,%eax
jne    12e0 <Rename_GET_RAW+0x1c0>
jmp    12b0 <Rename_GET_RAW+0x190>
cmp    $0xa,%eax
je     130c <Rename_GET_RAW+0x1ec>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0xa,%eax
jne    1300 <Rename_GET_RAW+0x1e0>
mov    %ebx,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [37 x i8] c" Not a token (0..%d) - Re-Input: \00"
define void @Rename_GET_RAW(i32* nocapture writeonly %0, i32 %1) {
%3 = sdiv i32 %1, 10
%4 = mul nsw i32 %3, -10
%5 = add i32 %4, %1
%6 = tail call i32 (...) @getchar()
%7 = add i32 %6, -58
%8 = icmp ult i32 %7, -10
br i1 %8, label %9, label %12
9: ; preds = %2, %18
%10 = phi i32 [ %20, %18 ], [ %6, %2 ]
%11 = icmp eq i32 %10, 10
br i1 %11, label %18, label %15
12: ; preds = %18, %2
%13 = phi i32 [ %6, %2 ], [ %20, %18 ]
%14 = add nsw i32 %13, -48
br label %25
15: ; preds = %9, %15
%16 = tail call i32 (...) @getchar()
%17 = icmp eq i32 %16, 10
br i1 %17, label %18, label %15
18: ; preds = %15, %9
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %1)
%20 = tail call i32 (...) @getchar()
%21 = add i32 %20, -58
%22 = icmp ult i32 %21, -10
br i1 %22, label %9, label %12
23: ; preds = %76
%24 = icmp eq i32 %77, 10
br i1 %24, label %84, label %81
25: ; preds = %12, %76
%26 = phi i32 [ %79, %76 ], [ %14, %12 ]
%27 = phi i32 [ %78, %76 ], [ 0, %12 ]
%28 = icmp slt i32 %27, %3
br i1 %28, label %71, label %29
29: ; preds = %25
%30 = icmp eq i32 %27, %3
br i1 %30, label %31, label %52
31: ; preds = %29
%32 = icmp sgt i32 %26, %5
br i1 %32, label %33, label %71
33: ; preds = %31, %33
%34 = tail call i32 (...) @getchar()
%35 = icmp eq i32 %34, 10
br i1 %35, label %36, label %33
36: ; preds = %33
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %1)
%38 = tail call i32 (...) @getchar()
%39 = add i32 %38, -58
%40 = icmp ult i32 %39, -10
br i1 %40, label %41, label %76
41: ; preds = %36, %47
%42 = phi i32 [ %49, %47 ], [ %38, %36 ]
%43 = icmp eq i32 %42, 10
br i1 %43, label %47, label %44
44: ; preds = %41, %44
%45 = tail call i32 (...) @getchar()
%46 = icmp eq i32 %45, 10
br i1 %46, label %47, label %44
47: ; preds = %44, %41
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %1)
%49 = tail call i32 (...) @getchar()
%50 = add i32 %49, -58
%51 = icmp ult i32 %50, -10
br i1 %51, label %41, label %76
52: ; preds = %29, %52
%53 = tail call i32 (...) @getchar()
%54 = icmp eq i32 %53, 10
br i1 %54, label %55, label %52
55: ; preds = %52
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %1)
%57 = tail call i32 (...) @getchar()
%58 = add i32 %57, -58
%59 = icmp ult i32 %58, -10
br i1 %59, label %60, label %76
60: ; preds = %55, %66
%61 = phi i32 [ %68, %66 ], [ %57, %55 ]
%62 = icmp eq i32 %61, 10
br i1 %62, label %66, label %63
63: ; preds = %60, %63
%64 = tail call i32 (...) @getchar()
%65 = icmp eq i32 %64, 10
br i1 %65, label %66, label %63
66: ; preds = %63, %60
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %1)
%68 = tail call i32 (...) @getchar()
%69 = add i32 %68, -58
%70 = icmp ult i32 %69, -10
br i1 %70, label %60, label %76
71: ; preds = %25, %31
%72 = phi i32 [ %3, %31 ], [ %27, %25 ]
%73 = mul nsw i32 %72, 10
%74 = add nsw i32 %73, %26
%75 = tail call i32 (...) @getchar()
br label %76
76: ; preds = %66, %47, %71, %55, %36
%77 = phi i32 [ %38, %36 ], [ %57, %55 ], [ %75, %71 ], [ %49, %47 ], [ %68, %66 ]
%78 = phi i32 [ 0, %36 ], [ 0, %55 ], [ %74, %71 ], [ 0, %47 ], [ 0, %66 ]
%79 = add i32 %77, -48
%80 = icmp ult i32 %79, 10
br i1 %80, label %25, label %23
81: ; preds = %23, %81
%82 = tail call i32 (...) @getchar()
%83 = icmp eq i32 %82, 10
br i1 %83, label %84, label %81
84: ; preds = %81, %23
store i32 %78, i32* %0
ret void
}