void Rename_GET_PROMPT_RAW(r, s, d) int *r, d;
char *s;
{
  register int c, m, k, l, n;
  {
    k = d / 10;
    l = d - 10 * (d / 10);
    printf(s);
    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_PROMPT_RAW>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x14(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
imul   $0xa,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
movl   $0x0,-0x28(%rbp)
mov    $0x1,%al
cmpl   $0x30,-0x18(%rbp)
mov    %al,-0x2d(%rbp)
jl     1194 <Rename_GET_PROMPT_RAW+0x74>
cmpl   $0x39,-0x18(%rbp)
setg   %al
mov    %al,-0x2d(%rbp)
mov    -0x2d(%rbp),%al
test   $0x1,%al
jne    11a4 <Rename_GET_PROMPT_RAW+0x84>
jmp    11e2 <Rename_GET_PROMPT_RAW+0xc2>
jmp    11a9 <Rename_GET_PROMPT_RAW+0x89>
cmpl   $0xa,-0x18(%rbp)
je     11c2 <Rename_GET_PROMPT_RAW+0xa2>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
jmp    11a9 <Rename_GET_PROMPT_RAW+0x89>
mov    -0x14(%rbp),%esi
lea    0xe34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
jmp    117b <Rename_GET_PROMPT_RAW+0x5b>
jmp    11e7 <Rename_GET_PROMPT_RAW+0xc7>
xor    %eax,%eax
cmpl   $0x30,-0x18(%rbp)
mov    %al,-0x2e(%rbp)
jl     1200 <Rename_GET_PROMPT_RAW+0xe0>
cmpl   $0x39,-0x18(%rbp)
setle  %al
mov    %al,-0x2e(%rbp)
mov    -0x2e(%rbp),%al
test   $0x1,%al
jne    1210 <Rename_GET_PROMPT_RAW+0xf0>
jmp    13d6 <Rename_GET_PROMPT_RAW+0x2b6>
mov    -0x18(%rbp),%eax
sub    $0x30,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    123e <Rename_GET_PROMPT_RAW+0x11e>
imul   $0xa,-0x28(%rbp),%eax
add    -0x1c(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
jmp    13d1 <Rename_GET_PROMPT_RAW+0x2b1>
mov    -0x28(%rbp),%eax
cmp    -0x20(%rbp),%eax
jne    1320 <Rename_GET_PROMPT_RAW+0x200>
mov    -0x1c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     126f <Rename_GET_PROMPT_RAW+0x14f>
imul   $0xa,-0x28(%rbp),%eax
add    -0x1c(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
jmp    131b <Rename_GET_PROMPT_RAW+0x1fb>
jmp    1274 <Rename_GET_PROMPT_RAW+0x154>
cmpl   $0xa,-0x18(%rbp)
je     128d <Rename_GET_PROMPT_RAW+0x16d>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
jmp    1274 <Rename_GET_PROMPT_RAW+0x154>
mov    -0x14(%rbp),%esi
lea    0xd69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
movl   $0x0,-0x28(%rbp)
mov    $0x1,%al
cmpl   $0x30,-0x18(%rbp)
mov    %al,-0x2f(%rbp)
jl     12c8 <Rename_GET_PROMPT_RAW+0x1a8>
cmpl   $0x39,-0x18(%rbp)
setg   %al
mov    %al,-0x2f(%rbp)
mov    -0x2f(%rbp),%al
test   $0x1,%al
jne    12d8 <Rename_GET_PROMPT_RAW+0x1b8>
jmp    1316 <Rename_GET_PROMPT_RAW+0x1f6>
jmp    12dd <Rename_GET_PROMPT_RAW+0x1bd>
cmpl   $0xa,-0x18(%rbp)
je     12f6 <Rename_GET_PROMPT_RAW+0x1d6>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
jmp    12dd <Rename_GET_PROMPT_RAW+0x1bd>
mov    -0x14(%rbp),%esi
lea    0xd00(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
jmp    12af <Rename_GET_PROMPT_RAW+0x18f>
jmp    131b <Rename_GET_PROMPT_RAW+0x1fb>
jmp    13cc <Rename_GET_PROMPT_RAW+0x2ac>
jmp    1325 <Rename_GET_PROMPT_RAW+0x205>
cmpl   $0xa,-0x18(%rbp)
je     133e <Rename_GET_PROMPT_RAW+0x21e>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
jmp    1325 <Rename_GET_PROMPT_RAW+0x205>
mov    -0x14(%rbp),%esi
lea    0xcb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
movl   $0x0,-0x28(%rbp)
mov    $0x1,%al
cmpl   $0x30,-0x18(%rbp)
mov    %al,-0x30(%rbp)
jl     1379 <Rename_GET_PROMPT_RAW+0x259>
cmpl   $0x39,-0x18(%rbp)
setg   %al
mov    %al,-0x30(%rbp)
mov    -0x30(%rbp),%al
test   $0x1,%al
jne    1389 <Rename_GET_PROMPT_RAW+0x269>
jmp    13c7 <Rename_GET_PROMPT_RAW+0x2a7>
jmp    138e <Rename_GET_PROMPT_RAW+0x26e>
cmpl   $0xa,-0x18(%rbp)
je     13a7 <Rename_GET_PROMPT_RAW+0x287>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
jmp    138e <Rename_GET_PROMPT_RAW+0x26e>
mov    -0x14(%rbp),%esi
lea    0xc4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
jmp    1360 <Rename_GET_PROMPT_RAW+0x240>
jmp    13cc <Rename_GET_PROMPT_RAW+0x2ac>
jmp    13d1 <Rename_GET_PROMPT_RAW+0x2b1>
jmp    11e7 <Rename_GET_PROMPT_RAW+0xc7>
jmp    13db <Rename_GET_PROMPT_RAW+0x2bb>
cmpl   $0xa,-0x18(%rbp)
je     13f4 <Rename_GET_PROMPT_RAW+0x2d4>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x18(%rbp)
jmp    13db <Rename_GET_PROMPT_RAW+0x2bb>
mov    -0x28(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Rename_GET_PROMPT_RAW>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%ebp
mov    %rdi,%r14
movslq %edx,%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
mov    %rsi,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %eax,%ecx
add    $0xffffffc6,%eax
cmp    $0xfffffff5,%eax
ja     11be <Rename_GET_PROMPT_RAW+0x9e>
lea    0xe8e(%rip),%rbx
jmp    119d <Rename_GET_PROMPT_RAW+0x7d>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
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    11be <Rename_GET_PROMPT_RAW+0x9e>
cmp    $0xa,%ecx
je     1180 <Rename_GET_PROMPT_RAW+0x60>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0xa,%eax
jne    11b0 <Rename_GET_PROMPT_RAW+0x90>
jmp    1180 <Rename_GET_PROMPT_RAW+0x60>
mov    %ebp,%r12d
sub    %r13d,%r12d
add    $0xffffffd0,%ecx
lea    0xe32(%rip),%r13
xor    %ebx,%ebx
jmp    11f9 <Rename_GET_PROMPT_RAW+0xd9>
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    12fe <Rename_GET_PROMPT_RAW+0x1de>
cmp    %r15d,%ebx
jl     11e0 <Rename_GET_PROMPT_RAW+0xc0>
jne    1250 <Rename_GET_PROMPT_RAW+0x130>
mov    %r15d,%ebx
cmp    %r12d,%ecx
jle    11e0 <Rename_GET_PROMPT_RAW+0xc0>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0xa,%eax
jne    1210 <Rename_GET_PROMPT_RAW+0xf0>
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    12e3 <Rename_GET_PROMPT_RAW+0x1c3>
jmp    11ed <Rename_GET_PROMPT_RAW+0xcd>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0xa,%eax
jne    1250 <Rename_GET_PROMPT_RAW+0x130>
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    12a3 <Rename_GET_PROMPT_RAW+0x183>
jmp    11ed <Rename_GET_PROMPT_RAW+0xcd>
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    11ed <Rename_GET_PROMPT_RAW+0xcd>
cmp    $0xa,%eax
je     1280 <Rename_GET_PROMPT_RAW+0x160>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0xa,%eax
jne    12b0 <Rename_GET_PROMPT_RAW+0x190>
jmp    1280 <Rename_GET_PROMPT_RAW+0x160>
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    11ed <Rename_GET_PROMPT_RAW+0xcd>
cmp    $0xa,%eax
je     12c0 <Rename_GET_PROMPT_RAW+0x1a0>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0xa,%eax
jne    12f0 <Rename_GET_PROMPT_RAW+0x1d0>
jmp    12c0 <Rename_GET_PROMPT_RAW+0x1a0>
cmp    $0xa,%eax
je     131c <Rename_GET_PROMPT_RAW+0x1fc>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0xa,%eax
jne    1310 <Rename_GET_PROMPT_RAW+0x1f0>
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_PROMPT_RAW(i32* %0, i8* %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32* %0, i32** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%12 = load i32, i32* %6
%13 = sdiv i32 %12, 10
store i32 %13, i32* %9
%14 = load i32, i32* %6
%15 = load i32, i32* %6
%16 = sdiv i32 %15, 10
%17 = mul nsw i32 10, %16
%18 = sub nsw i32 %14, %17
store i32 %18, i32* %10
%19 = load i8*, i8** %5
%20 = call i32 (i8*, ...) @printf(i8* %19)
%21 = call i32 (...) @getchar()
store i32 %21, i32* %7
store i32 0, i32* %11
br label %22
22: ; preds = %36, %3
%23 = load i32, i32* %7
%24 = icmp slt i32 %23, 48
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = load i32, i32* %7
%27 = icmp sgt i32 %26, 57
br label %28
28: ; preds = %25, %22
%29 = phi i1 [ true, %22 ], [ %27, %25 ]
br i1 %29, label %30, label %40
30: ; preds = %28
br label %31
31: ; preds = %34, %30
%32 = load i32, i32* %7
%33 = icmp ne i32 %32, 10
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 (...) @getchar()
store i32 %35, i32* %7
br label %31
36: ; preds = %31
%37 = load i32, i32* %6
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %37)
%39 = call i32 (...) @getchar()
store i32 %39, i32* %7
br label %22
40: ; preds = %28
br label %41
41: ; preds = %135, %40
%42 = load i32, i32* %7
%43 = icmp sge i32 %42, 48
br i1 %43, label %44, label %47
44: ; preds = %41
%45 = load i32, i32* %7
%46 = icmp sle i32 %45, 57
br label %47
47: ; preds = %44, %41
%48 = phi i1 [ false, %41 ], [ %46, %44 ]
br i1 %48, label %49, label %136
49: ; preds = %47
%50 = load i32, i32* %7
%51 = sub nsw i32 %50, 48
store i32 %51, i32* %8
%52 = load i32, i32* %11
%53 = load i32, i32* %9
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %61
55: ; preds = %49
%56 = load i32, i32* %11
%57 = mul nsw i32 10, %56
%58 = load i32, i32* %8
%59 = add nsw i32 %57, %58
store i32 %59, i32* %11
%60 = call i32 (...) @getchar()
store i32 %60, i32* %7
br label %135
61: ; preds = %49
%62 = load i32, i32* %11
%63 = load i32, i32* %9
%64 = icmp eq i32 %62, %63
br i1 %64, label %65, label %105
65: ; preds = %61
%66 = load i32, i32* %8
%67 = load i32, i32* %10
%68 = icmp sle i32 %66, %67
br i1 %68, label %69, label %75
69: ; preds = %65
%70 = load i32, i32* %11
%71 = mul nsw i32 10, %70
%72 = load i32, i32* %8
%73 = add nsw i32 %71, %72
store i32 %73, i32* %11
%74 = call i32 (...) @getchar()
store i32 %74, i32* %7
br label %104
75: ; preds = %65
br label %76
76: ; preds = %79, %75
%77 = load i32, i32* %7
%78 = icmp ne i32 %77, 10
br i1 %78, label %79, label %81
79: ; preds = %76
%80 = call i32 (...) @getchar()
store i32 %80, i32* %7
br label %76
81: ; preds = %76
%82 = load i32, i32* %6
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %82)
%84 = call i32 (...) @getchar()
store i32 %84, i32* %7
store i32 0, i32* %11
br label %85
85: ; preds = %99, %81
%86 = load i32, i32* %7
%87 = icmp slt i32 %86, 48
br i1 %87, label %91, label %88
88: ; preds = %85
%89 = load i32, i32* %7
%90 = icmp sgt i32 %89, 57
br label %91
91: ; preds = %88, %85
%92 = phi i1 [ true, %85 ], [ %90, %88 ]
br i1 %92, label %93, label %103
93: ; preds = %91
br label %94
94: ; preds = %97, %93
%95 = load i32, i32* %7
%96 = icmp ne i32 %95, 10
br i1 %96, label %97, label %99
97: ; preds = %94
%98 = call i32 (...) @getchar()
store i32 %98, i32* %7
br label %94
99: ; preds = %94
%100 = load i32, i32* %6
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %100)
%102 = call i32 (...) @getchar()
store i32 %102, i32* %7
br label %85
103: ; preds = %91
br label %104
104: ; preds = %103, %69
br label %134
105: ; preds = %61
br label %106
106: ; preds = %109, %105
%107 = load i32, i32* %7
%108 = icmp ne i32 %107, 10
br i1 %108, label %109, label %111
109: ; preds = %106
%110 = call i32 (...) @getchar()
store i32 %110, i32* %7
br label %106
111: ; preds = %106
%112 = load i32, i32* %6
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %112)
%114 = call i32 (...) @getchar()
store i32 %114, i32* %7
store i32 0, i32* %11
br label %115
115: ; preds = %129, %111
%116 = load i32, i32* %7
%117 = icmp slt i32 %116, 48
br i1 %117, label %121, label %118
118: ; preds = %115
%119 = load i32, i32* %7
%120 = icmp sgt i32 %119, 57
br label %121
121: ; preds = %118, %115
%122 = phi i1 [ true, %115 ], [ %120, %118 ]
br i1 %122, label %123, label %133
123: ; preds = %121
br label %124
124: ; preds = %127, %123
%125 = load i32, i32* %7
%126 = icmp ne i32 %125, 10
br i1 %126, label %127, label %129
127: ; preds = %124
%128 = call i32 (...) @getchar()
store i32 %128, i32* %7
br label %124
129: ; preds = %124
%130 = load i32, i32* %6
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %130)
%132 = call i32 (...) @getchar()
store i32 %132, i32* %7
br label %115
133: ; preds = %121
br label %134
134: ; preds = %133, %104
br label %135
135: ; preds = %134, %55
br label %41
136: ; preds = %47
br label %137
137: ; preds = %140, %136
%138 = load i32, i32* %7
%139 = icmp ne i32 %138, 10
br i1 %139, label %140, label %142
140: ; preds = %137
%141 = call i32 (...) @getchar()
store i32 %141, i32* %7
br label %137
142: ; preds = %137
%143 = load i32, i32* %11
%144 = load i32*, i32** %4
store i32 %143, i32* %144
ret void
}

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