#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 *);
void 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>
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 void @count_3() {
%1 = alloca [10 x i32]
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = bitcast [10 x i32]* %1 to i8*
store i32 0, i32* %7
store i32 0, i32* %6
store i32 0, i32* %5
store i32 0, i32* %2
%9 = call i32 @puts(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
br label %11
11: ; preds = %43, %0
%12 = call i32 (...) @getchar()
store i32 %12, i32* %4
%13 = icmp ne i32 %12, 126
br i1 %13, label %14, label %44
14: ; preds = %11
%15 = load i32, i32* %4
%16 = icmp sge i32 %15, 48
br i1 %16, label %17, label %27
17: ; preds = %14
%18 = load i32, i32* %4
%19 = icmp sle i32 %18, 57
br i1 %19, label %20, label %27
20: ; preds = %17
%21 = load i32, i32* %4
%22 = sub nsw i32 %21, 48
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %23
%25 = load i32, i32* %24
%26 = add nsw i32 %25, 1
store i32 %26, i32* %24
br label %43
27: ; preds = %17, %14
%28 = load i32, i32* %4
%29 = icmp eq i32 %28, 32
br i1 %29, label %36, label %30
30: ; preds = %27
%31 = load i32, i32* %4
%32 = icmp eq i32 %31, 9
br i1 %32, label %36, label %33
33: ; preds = %30
%34 = load i32, i32* %4
%35 = icmp eq i32 %34, 10
br i1 %35, label %36, label %39
36: ; preds = %33, %30, %27
%37 = load i32, i32* %6
%38 = add nsw i32 %37, 1
store i32 %38, i32* %6
br label %42
39: ; preds = %33
%40 = load i32, i32* %5
%41 = add nsw i32 %40, 1
store i32 %41, i32* %5
br label %42
42: ; preds = %39, %36
br label %43
43: ; preds = %42, %20
br label %11
44: ; preds = %11
%45 = call i32 @puts(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%46 = load i32, i32* %5
%47 = load i32, i32* %6
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0), i32 %46, i32 %47)
%49 = call i32 @puts(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %3
br label %50
50: ; preds = %66, %44
%51 = load i32, i32* %3
%52 = icmp slt i32 %51, 10
br i1 %52, label %53, label %69
53: ; preds = %50
%54 = load i32, i32* %7
%55 = load i32, i32* %3
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %56
%58 = load i32, i32* %57
%59 = icmp slt i32 %54, %58
br i1 %59, label %60, label %65
60: ; preds = %53
%61 = load i32, i32* %3
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %62
%64 = load i32, i32* %63
store i32 %64, i32* %7
br label %65
65: ; preds = %60, %53
br label %66
66: ; preds = %65
%67 = load i32, i32* %3
%68 = add nsw i32 %67, 1
store i32 %68, i32* %3
br label %50
69: ; preds = %50
%70 = load i32, i32* %7
store i32 %70, i32* %3
br label %71
71: ; preds = %105, %69
%72 = load i32, i32* %3
%73 = icmp sge i32 %72, 0
br i1 %73, label %74, label %108
74: ; preds = %71
br label %75
75: ; preds = %74
%76 = load i32, i32* %3
%77 = load i32, i32* %7
%78 = icmp sle i32 %76, %77
br i1 %78, label %79, label %83
79: ; preds = %75
%80 = load i32, i32* %3
%81 = add nsw i32 %80, 1
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %81)
br label %83
83: ; preds = %79, %75
store i32 0, i32* %2
br label %84
84: ; preds = %99, %83
%85 = load i32, i32* %2
%86 = icmp slt i32 %85, 10
br i1 %86, label %87, label %102
87: ; preds = %84
%88 = load i32, i32* %2
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %89
%91 = load i32, i32* %90
%92 = load i32, i32* %3
%93 = icmp sge i32 %91, %92
br i1 %93, label %94, label %96
94: ; preds = %87
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %98
96: ; preds = %87
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %98
98: ; preds = %96, %94
br label %99
99: ; preds = %98
%100 = load i32, i32* %2
%101 = add nsw i32 %100, 1
store i32 %101, i32* %2
br label %84
102: ; preds = %84
%103 = call i32 @putchar(i8 signext 10)
%104 = call i32 @puts(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i64 0, i64 0))
br label %105
105: ; preds = %102
%106 = load i32, i32* %3
%107 = add nsw i32 %106, -1
store i32 %107, i32* %3
br label %71
108: ; preds = %71
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %3
br label %110
110: ; preds = %116, %108
%111 = load i32, i32* %3
%112 = icmp slt i32 %111, 10
br i1 %112, label %113, label %119
113: ; preds = %110
%114 = load i32, i32* %3
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 %114)
br label %116
116: ; preds = %113
%117 = load i32, i32* %3
%118 = add nsw i32 %117, 1
store i32 %118, i32* %3
br label %110
119: ; preds = %110
ret void
}

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 void @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 void
}