#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 getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ puts(char *);
count_3(void) {
  int nre[10] = {0};
  int i, x, c, char_nr, space_nr, nr_maxim;
  i = char_nr = space_nr = nr_maxim = 0;
  puts("If you've got something to say, say it!");
  puts("Just put \" ~ \" when you've finished..\n");
  while ((c = getchar()) != '~') {
    if (c >= '0' && c <= '9')
      nre[c - '0']++;
    else if (c == ' ' || c == '\t' || c == '\n')
      space_nr++;
    else
      char_nr++;
  }
  puts("\nFinished? Ok...\n");
  printf("In all you mambo-jumbo you had %d letters and %d white spaces\n",
         char_nr, space_nr);
  puts("\n\nAlso, heres a vertical histogram of how many 0-9 numbers you've "
       "said:\n");
  for (x = 0; x < 10; x++)
    if (nr_maxim < nre[x])
      nr_maxim = nre[x];
  for (x = nr_maxim; x >= 0; x--) {
    while (x <= nr_maxim) {
      printf("times x %d|", x + 1);
      break;
    }
    for (i = 0; i < 10; i++) {
      if (nre[i] >= x)
        printf(" * ");
      else
        printf("   ");
    }
    putchar('\n');
    puts("----------------------------------------");
  }
  printf("  Number |");
  for (x = 0; x < 10; x++)
    printf(" %d ", x);
}


x86 assembly (clang, -O0):
<count_3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1060 <memset@plt>
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
lea    0xe75(%rip),%rdi
call   1040 <puts@plt>
lea    0xe91(%rip),%rdi
call   1040 <puts@plt>
mov    $0x0,%al
call   1070 <getchar@plt>
mov    %eax,-0x3c(%rbp)
cmp    $0x7e,%eax
je     121a <count_3+0xca>
cmpl   $0x30,-0x3c(%rbp)
jl     11db <count_3+0x8b>
cmpl   $0x39,-0x3c(%rbp)
jg     11db <count_3+0x8b>
mov    -0x3c(%rbp),%eax
sub    $0x30,%eax
cltq
mov    -0x30(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x30(%rbp,%rax,4)
jmp    1215 <count_3+0xc5>
cmpl   $0x20,-0x3c(%rbp)
je     11f9 <count_3+0xa9>
cmpl   $0x9,-0x3c(%rbp)
je     11f9 <count_3+0xa9>
cmpl   $0xa,-0x3c(%rbp)
jne    1207 <count_3+0xb7>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1210 <count_3+0xc0>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1215 <count_3+0xc5>
jmp    119c <count_3+0x4c>
lea    0xe2e(%rip),%rdi
call   1040 <puts@plt>
mov    -0x40(%rbp),%esi
mov    -0x44(%rbp),%edx
lea    0xe2e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe5f(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0xa,-0x38(%rbp)
jge    1286 <count_3+0x136>
mov    -0x48(%rbp),%eax
movslq -0x38(%rbp),%rcx
cmp    -0x30(%rbp,%rcx,4),%eax
jge    1273 <count_3+0x123>
movslq -0x38(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0x48(%rbp)
jmp    1278 <count_3+0x128>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    124d <count_3+0xfd>
mov    -0x48(%rbp),%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x38(%rbp)
jl     1335 <count_3+0x1e5>
jmp    129b <count_3+0x14b>
mov    -0x38(%rbp),%eax
cmp    -0x48(%rbp),%eax
jg     12bb <count_3+0x16b>
mov    -0x38(%rbp),%esi
add    $0x1,%esi
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    1311 <count_3+0x1c1>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
cmp    -0x38(%rbp),%eax
jl     12f0 <count_3+0x1a0>
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12fe <count_3+0x1ae>
lea    0xe02(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1303 <count_3+0x1b3>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12c2 <count_3+0x172>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xddb(%rip),%rdi
call   1040 <puts@plt>
mov    -0x38(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x38(%rbp)
jmp    128c <count_3+0x13c>
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0xa,-0x38(%rbp)
jge    1373 <count_3+0x223>
mov    -0x38(%rbp),%esi
lea    0xdd3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    134a <count_3+0x1fa>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<count_3>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movq   $0x0,0x50(%rsp)
lea    0xe95(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb1(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1060 <getchar@plt>
mov    $0x0,%esi
mov    $0x0,%r8d
mov    $0x0,%r9d
mov    $0x0,%r10d
mov    $0x0,%r11d
mov    $0x0,%r15d
mov    $0x0,%edx
mov    $0x0,%r12d
mov    $0x0,%r13d
mov    $0x0,%r14d
mov    $0x0,%ebp
mov    $0x0,%ebx
cmp    $0x7e,%eax
je     1242 <count_3+0x102>
movabs $0x100000600,%r14
xor    %ebx,%ebx
xor    %ebp,%ebp
jmp    11f3 <count_3+0xb3>
nopl   0x0(%rax)
mov    %ecx,%eax
addl   $0x1,0x30(%rsp,%rax,4)
xor    %eax,%eax
call   1060 <getchar@plt>
cmp    $0x7e,%eax
je     1212 <count_3+0xd2>
lea    -0x30(%rax),%ecx
cmp    $0x9,%ecx
jbe    11e0 <count_3+0xa0>
cmp    $0x20,%eax
ja     120d <count_3+0xcd>
mov    %eax,%eax
bt     %rax,%r14
jae    120d <count_3+0xcd>
add    $0x1,%ebx
jmp    11e7 <count_3+0xa7>
add    $0x1,%ebp
jmp    11e7 <count_3+0xa7>
mov    0x30(%rsp),%r14d
mov    0x34(%rsp),%r13d
mov    0x38(%rsp),%r12d
mov    0x3c(%rsp),%edx
mov    0x40(%rsp),%r15d
mov    0x44(%rsp),%r11d
mov    0x48(%rsp),%r10d
mov    0x4c(%rsp),%r9d
mov    0x50(%rsp),%r8d
mov    0x54(%rsp),%esi
mov    %ebp,0x8(%rsp)
mov    %ebx,0xc(%rsp)
mov    %r10d,0x10(%rsp)
mov    %r9d,0x14(%rsp)
mov    %r8d,0x18(%rsp)
mov    %esi,0x1c(%rsp)
lea    0xdeb(%rip),%rdi
mov    %r14d,%ebx
mov    %edx,%r14d
mov    %r11d,%ebp
call   1040 <puts@plt>
lea    0xde8(%rip),%rdi
mov    0x8(%rsp),%esi
mov    0xc(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe11(%rip),%rdi
call   1040 <puts@plt>
test   %ebx,%ebx
mov    %ebx,%eax
mov    $0x0,%ebx
mov    %eax,0x20(%rsp)
cmovns %eax,%ebx
cmp    %r13d,%ebx
mov    %r13d,0x24(%rsp)
cmovl  %r13d,%ebx
cmp    %r12d,%ebx
mov    %r12d,0x28(%rsp)
cmovl  %r12d,%ebx
cmp    %r14d,%ebx
mov    %r14d,0x2c(%rsp)
cmovl  %r14d,%ebx
cmp    %r15d,%ebx
mov    %r15d,0x8(%rsp)
cmovl  %r15d,%ebx
cmp    %ebp,%ebx
mov    %ebp,0xc(%rsp)
cmovl  %ebp,%ebx
mov    0x10(%rsp),%eax
cmp    %eax,%ebx
cmovl  %eax,%ebx
mov    0x14(%rsp),%eax
cmp    %eax,%ebx
cmovl  %eax,%ebx
mov    0x18(%rsp),%eax
cmp    %eax,%ebx
mov    %eax,%ebp
cmovl  %eax,%ebx
mov    0x1c(%rsp),%eax
cmp    %eax,%ebx
mov    %eax,%r13d
cmovl  %eax,%ebx
lea    0xdec(%rip),%r14
lea    0xde1(%rip),%r15
mov    %ebx,%r12d
jmp    13fd <count_3+0x2bd>
nopl   0x0(%rax)
cmp    %r12d,0x20(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %r12d,0x24(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %r12d,0x28(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %r12d,0x2c(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %r12d,0x8(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %r12d,0xc(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %r12d,0x10(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %r12d,0x14(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %r12d,%ebp
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %r12d,%r13d
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd12(%rip),%rdi
call   1040 <puts@plt>
lea    -0x1(%r12),%eax
test   %r12d,%r12d
mov    %eax,%r12d
jle    141e <count_3+0x2de>
cmp    %ebx,%r12d
jg     1320 <count_3+0x1e0>
lea    0x1(%r12),%esi
lea    0xcd7(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1320 <count_3+0x1e0>
lea    0xd01(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcfe(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [40 x i8] c"If you've got something to say, say it!\00"
@.str.1 = [39 x i8] c"Just put \22 ~ \22 when you've finished..\0A\00"
@.str.2 = [18 x i8] c"\0AFinished? Ok...\0A\00"
@.str.3 = [63 x i8] c"In all you mambo-jumbo you had %d letters and %d white spaces\0A\00"
@.str.4 = [73 x i8] c"\0A\0AAlso, heres a vertical histogram of how many 0-9 numbers you've said:\0A\00"
@.str.5 = [12 x i8] c"times x %d|\00"
@.str.6 = [4 x i8] c" * \00"
@.str.7 = [4 x i8] c" \00"
@.str.8 = [41 x i8] c"----------------------------------------\00"
@.str.9 = [11 x i8] c" Number |\00"
@.str.10 = [5 x i8] c" %d \00"
define i32 @count_3() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = bitcast [10 x i32]* %2 to i8*
store i32 0, i32* %8
store i32 0, i32* %7
store i32 0, i32* %6
store i32 0, i32* %3
%10 = call i32 @puts(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
br label %12
12: ; preds = %44, %0
%13 = call i32 (...) @getchar()
store i32 %13, i32* %5
%14 = icmp ne i32 %13, 126
br i1 %14, label %15, label %45
15: ; preds = %12
%16 = load i32, i32* %5
%17 = icmp sge i32 %16, 48
br i1 %17, label %18, label %28
18: ; preds = %15
%19 = load i32, i32* %5
%20 = icmp sle i32 %19, 57
br i1 %20, label %21, label %28
21: ; preds = %18
%22 = load i32, i32* %5
%23 = sub nsw i32 %22, 48
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %24
%26 = load i32, i32* %25
%27 = add nsw i32 %26, 1
store i32 %27, i32* %25
br label %44
28: ; preds = %18, %15
%29 = load i32, i32* %5
%30 = icmp eq i32 %29, 32
br i1 %30, label %37, label %31
31: ; preds = %28
%32 = load i32, i32* %5
%33 = icmp eq i32 %32, 9
br i1 %33, label %37, label %34
34: ; preds = %31
%35 = load i32, i32* %5
%36 = icmp eq i32 %35, 10
br i1 %36, label %37, label %40
37: ; preds = %34, %31, %28
%38 = load i32, i32* %7
%39 = add nsw i32 %38, 1
store i32 %39, i32* %7
br label %43
40: ; preds = %34
%41 = load i32, i32* %6
%42 = add nsw i32 %41, 1
store i32 %42, i32* %6
br label %43
43: ; preds = %40, %37
br label %44
44: ; preds = %43, %21
br label %12
45: ; preds = %12
%46 = call i32 @puts(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%47 = load i32, i32* %6
%48 = load i32, i32* %7
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0), i32 %47, i32 %48)
%50 = call i32 @puts(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %4
br label %51
51: ; preds = %67, %45
%52 = load i32, i32* %4
%53 = icmp slt i32 %52, 10
br i1 %53, label %54, label %70
54: ; preds = %51
%55 = load i32, i32* %8
%56 = load i32, i32* %4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %57
%59 = load i32, i32* %58
%60 = icmp slt i32 %55, %59
br i1 %60, label %61, label %66
61: ; preds = %54
%62 = load i32, i32* %4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %63
%65 = load i32, i32* %64
store i32 %65, i32* %8
br label %66
66: ; preds = %61, %54
br label %67
67: ; preds = %66
%68 = load i32, i32* %4
%69 = add nsw i32 %68, 1
store i32 %69, i32* %4
br label %51
70: ; preds = %51
%71 = load i32, i32* %8
store i32 %71, i32* %4
br label %72
72: ; preds = %106, %70
%73 = load i32, i32* %4
%74 = icmp sge i32 %73, 0
br i1 %74, label %75, label %109
75: ; preds = %72
br label %76
76: ; preds = %75
%77 = load i32, i32* %4
%78 = load i32, i32* %8
%79 = icmp sle i32 %77, %78
br i1 %79, label %80, label %84
80: ; preds = %76
%81 = load i32, i32* %4
%82 = add nsw i32 %81, 1
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %82)
br label %84
84: ; preds = %80, %76
store i32 0, i32* %3
br label %85
85: ; preds = %100, %84
%86 = load i32, i32* %3
%87 = icmp slt i32 %86, 10
br i1 %87, label %88, label %103
88: ; preds = %85
%89 = load i32, i32* %3
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %90
%92 = load i32, i32* %91
%93 = load i32, i32* %4
%94 = icmp sge i32 %92, %93
br i1 %94, label %95, label %97
95: ; preds = %88
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %99
97: ; preds = %88
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %99
99: ; preds = %97, %95
br label %100
100: ; preds = %99
%101 = load i32, i32* %3
%102 = add nsw i32 %101, 1
store i32 %102, i32* %3
br label %85
103: ; preds = %85
%104 = call i32 @putchar(i8 signext 10)
%105 = call i32 @puts(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i64 0, i64 0))
br label %106
106: ; preds = %103
%107 = load i32, i32* %4
%108 = add nsw i32 %107, -1
store i32 %108, i32* %4
br label %72
109: ; preds = %72
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %4
br label %111
111: ; preds = %117, %109
%112 = load i32, i32* %4
%113 = icmp slt i32 %112, 10
br i1 %113, label %114, label %120
114: ; preds = %111
%115 = load i32, i32* %4
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 %115)
br label %117
117: ; preds = %114
%118 = load i32, i32* %4
%119 = add nsw i32 %118, 1
store i32 %119, i32* %4
br label %111
120: ; preds = %111
%121 = load i32, i32* %1
ret i32 %121
}

LLVM IR (-O2):
@.str = [40 x i8] c"If you've got something to say, say it!\00"
@.str.1 = [39 x i8] c"Just put \22 ~ \22 when you've finished..\0A\00"
@.str.2 = [18 x i8] c"\0AFinished? Ok...\0A\00"
@.str.3 = [63 x i8] c"In all you mambo-jumbo you had %d letters and %d white spaces\0A\00"
@.str.4 = [73 x i8] c"\0A\0AAlso, heres a vertical histogram of how many 0-9 numbers you've said:\0A\00"
@.str.5 = [12 x i8] c"times x %d|\00"
@.str.6 = [4 x i8] c" * \00"
@.str.7 = [4 x i8] c" \00"
@.str.8 = [41 x i8] c"----------------------------------------\00"
@.str.9 = [11 x i8] c" Number |\00"
@.str.10 = [5 x i8] c" %d \00"
define i32 @count_3() {
%1 = alloca [10 x i32]
%2 = bitcast [10 x i32]* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 (...) @getchar()
%6 = icmp eq i32 %5, 126
br i1 %6, label %49, label %7
7: ; preds = %0, %23
%8 = phi i32 [ %26, %23 ], [ %5, %0 ]
%9 = phi i32 [ %25, %23 ], [ 0, %0 ]
%10 = phi i32 [ %24, %23 ], [ 0, %0 ]
%11 = add i32 %8, -48
%12 = icmp ult i32 %11, 10
br i1 %12, label %13, label %18
13: ; preds = %7
%14 = zext i32 %11 to i64
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %14
%16 = load i32, i32* %15
%17 = add nsw i32 %16, 1
store i32 %17, i32* %15
br label %23
18: ; preds = %7
switch i32 %8, label %21 [
i32 32, label %19
i32 10, label %19
i32 9, label %19
]
19: ; preds = %18, %18, %18
%20 = add nsw i32 %9, 1
br label %23
21: ; preds = %18
%22 = add nsw i32 %10, 1
br label %23
23: ; preds = %19, %21, %13
%24 = phi i32 [ %10, %13 ], [ %10, %19 ], [ %22, %21 ]
%25 = phi i32 [ %9, %13 ], [ %20, %19 ], [ %9, %21 ]
%26 = tail call i32 (...) @getchar()
%27 = icmp eq i32 %26, 126
br i1 %27, label %28, label %7
28: ; preds = %23
%29 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%30 = load i32, i32* %29
%31 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%32 = load i32, i32* %31
%33 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%34 = load i32, i32* %33
%35 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%36 = load i32, i32* %35
%37 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%38 = load i32, i32* %37
%39 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%40 = load i32, i32* %39
%41 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%42 = load i32, i32* %41
%43 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%44 = load i32, i32* %43
%45 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%46 = load i32, i32* %45
%47 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%48 = load i32, i32* %47
br label %49
49: ; preds = %28, %0
%50 = phi i32 [ 0, %0 ], [ %48, %28 ]
%51 = phi i32 [ 0, %0 ], [ %46, %28 ]
%52 = phi i32 [ 0, %0 ], [ %44, %28 ]
%53 = phi i32 [ 0, %0 ], [ %42, %28 ]
%54 = phi i32 [ 0, %0 ], [ %40, %28 ]
%55 = phi i32 [ 0, %0 ], [ %38, %28 ]
%56 = phi i32 [ 0, %0 ], [ %36, %28 ]
%57 = phi i32 [ 0, %0 ], [ %34, %28 ]
%58 = phi i32 [ 0, %0 ], [ %32, %28 ]
%59 = phi i32 [ 0, %0 ], [ %30, %28 ]
%60 = phi i32 [ 0, %0 ], [ %24, %28 ]
%61 = phi i32 [ 0, %0 ], [ %25, %28 ]
%62 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0), i32 %60, i32 %61)
%64 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @.str.4, i64 0, i64 0))
%65 = icmp sgt i32 %59, 0
%66 = select i1 %65, i32 %59, i32 0
%67 = icmp slt i32 %66, %58
%68 = select i1 %67, i32 %58, i32 %66
%69 = icmp slt i32 %68, %57
%70 = select i1 %69, i32 %57, i32 %68
%71 = icmp slt i32 %70, %56
%72 = select i1 %71, i32 %56, i32 %70
%73 = icmp slt i32 %72, %55
%74 = select i1 %73, i32 %55, i32 %72
%75 = icmp slt i32 %74, %54
%76 = select i1 %75, i32 %54, i32 %74
%77 = icmp slt i32 %76, %53
%78 = select i1 %77, i32 %53, i32 %76
%79 = icmp slt i32 %78, %52
%80 = select i1 %79, i32 %52, i32 %78
%81 = icmp slt i32 %80, %51
%82 = select i1 %81, i32 %51, i32 %80
%83 = icmp slt i32 %82, %50
%84 = select i1 %83, i32 %50, i32 %82
br label %85
85: ; preds = %49, %91
%86 = phi i32 [ %124, %91 ], [ %84, %49 ]
%87 = icmp sgt i32 %86, %84
br i1 %87, label %91, label %88
88: ; preds = %85
%89 = add nuw nsw i32 %86, 1
%90 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %89)
br label %91
91: ; preds = %88, %85
%92 = icmp slt i32 %59, %86
%93 = select i1 %92, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0)
%94 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %93)
%95 = icmp slt i32 %58, %86
%96 = select i1 %95, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0)
%97 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %96)
%98 = icmp slt i32 %57, %86
%99 = select i1 %98, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0)
%100 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %99)
%101 = icmp slt i32 %56, %86
%102 = select i1 %101, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0)
%103 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %102)
%104 = icmp slt i32 %55, %86
%105 = select i1 %104, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0)
%106 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %105)
%107 = icmp slt i32 %54, %86
%108 = select i1 %107, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0)
%109 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %108)
%110 = icmp slt i32 %53, %86
%111 = select i1 %110, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0)
%112 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %111)
%113 = icmp slt i32 %52, %86
%114 = select i1 %113, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0)
%115 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %114)
%116 = icmp slt i32 %51, %86
%117 = select i1 %116, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0)
%118 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %117)
%119 = icmp slt i32 %50, %86
%120 = select i1 %119, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0)
%121 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %120)
%122 = tail call i32 @putchar(i8 signext 10)
%123 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i64 0, i64 0))
%124 = add nsw i32 %86, -1
%125 = icmp sgt i32 %86, 0
br i1 %125, label %85, label %126
126: ; preds = %91
%127 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%128 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 0)
%129 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 1)
%130 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 2)
%131 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 3)
%132 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 4)
%133 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 5)
%134 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 6)
%135 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 7)
%136 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 8)
%137 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 9)
ret i32 undef
}