#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 */
char getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  char bin[20];
  int x, dec, dec2;
  printf("\tThe Amazing Decimal to Binary Conveter\n\n\a");
  printf("Enter the number of which you want to know it's binary value %c ",
         16);
  scanf("%d", &dec);
  dec2 = dec;
  printf("\n%d\n\n", dec2);
  puts("\tin");
  puts("\tbinary");
  puts("\tis\n");
  while (getchar() != '\n')
    continue;
  for (x = 20; x >= 0; x--) {
    bin[x] = (dec % 2) ? '1' : '0';
    dec /= 2;
  }
  for (x = 0; x <= 20; x++) {
    if (bin[x] == '0')
      bin[x] = '\r';
    if (bin[x] == '1')
      break;
  }
  printf("%s", bin);
  puts("\n\n\n");
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec7(%rip),%rdi
mov    $0x10,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xef5(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x28(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%esi
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xed7(%rip),%rdi
call   1030 <puts@plt>
lea    0xecf(%rip),%rdi
call   1030 <puts@plt>
lea    0xecb(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
movsbl %al,%eax
cmp    $0xa,%eax
je     11d3 <main+0x93>
jmp    11bb <main+0x7b>
movl   $0x14,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jl     1225 <main+0xe5>
mov    -0x28(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    $0x30,%eax
mov    $0x31,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%cl
movslq -0x24(%rbp),%rax
mov    %cl,-0x20(%rbp,%rax,1)
mov    -0x28(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x28(%rbp)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    11da <main+0x9a>
movl   $0x0,-0x24(%rbp)
cmpl   $0x14,-0x24(%rbp)
jg     127b <main+0x13b>
movslq -0x24(%rbp),%rax
movsbl -0x20(%rbp,%rax,1),%eax
cmp    $0x30,%eax
jne    1251 <main+0x111>
movslq -0x24(%rbp),%rax
movb   $0xd,-0x20(%rbp,%rax,1)
movslq -0x24(%rbp),%rax
movsbl -0x20(%rbp,%rax,1),%eax
cmp    $0x31,%eax
jne    1268 <main+0x128>
jmp    127b <main+0x13b>
jmp    126d <main+0x12d>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    122c <main+0xec>
lea    -0x20(%rbp),%rsi
lea    0xe00(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdf5(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xeb5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf00(%rip),%rdi
lea    0x14(%rsp),%rsi
call   1060 <scanf@plt>
mov    0x14(%rsp),%esi
lea    0xeee(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee6(%rip),%rdi
call   1030 <puts@plt>
lea    0xede(%rip),%rdi
call   1030 <puts@plt>
lea    0xeda(%rip),%rdi
call   1030 <puts@plt>
nopl   0x0(%rax)
xor    %eax,%eax
call   1050 <getchar@plt>
cmp    $0xa,%al
jne    11b0 <main+0x70>
mov    $0x14,%eax
mov    0x14(%rsp),%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %ecx,%edx
and    $0x1,%dl
or     $0x30,%dl
mov    %dl,(%rsp,%rax,1)
mov    %ecx,%edx
shr    $0x1f,%edx
add    %ecx,%edx
sar    %edx
test   %rax,%rax
je     1206 <main+0xc6>
and    $0x1,%dl
or     $0x30,%dl
mov    %dl,-0x1(%rsp,%rax,1)
lea    0x3(%rcx),%edx
test   %ecx,%ecx
cmovns %ecx,%edx
sar    $0x2,%edx
add    $0xfffffffffffffffe,%rax
mov    %edx,%ecx
jmp    11d0 <main+0x90>
mov    %edx,0x14(%rsp)
mov    (%rsp),%al
cmp    $0x30,%al
je     121b <main+0xdb>
cmp    $0x31,%al
je     139e <main+0x25e>
jmp    121f <main+0xdf>
movb   $0xd,(%rsp)
mov    0x1(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    1234 <main+0xf4>
movb   $0xd,0x1(%rsp)
mov    0x2(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    1249 <main+0x109>
movb   $0xd,0x2(%rsp)
mov    0x3(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    125e <main+0x11e>
movb   $0xd,0x3(%rsp)
mov    0x4(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    1273 <main+0x133>
movb   $0xd,0x4(%rsp)
mov    0x5(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    1288 <main+0x148>
movb   $0xd,0x5(%rsp)
mov    0x6(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    129d <main+0x15d>
movb   $0xd,0x6(%rsp)
mov    0x7(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    12b2 <main+0x172>
movb   $0xd,0x7(%rsp)
mov    0x8(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    12c7 <main+0x187>
movb   $0xd,0x8(%rsp)
mov    0x9(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    12dc <main+0x19c>
movb   $0xd,0x9(%rsp)
mov    0xa(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    12f1 <main+0x1b1>
movb   $0xd,0xa(%rsp)
mov    0xb(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    1306 <main+0x1c6>
movb   $0xd,0xb(%rsp)
mov    0xc(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    131b <main+0x1db>
movb   $0xd,0xc(%rsp)
mov    0xd(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    132c <main+0x1ec>
movb   $0xd,0xd(%rsp)
mov    0xe(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    133d <main+0x1fd>
movb   $0xd,0xe(%rsp)
mov    0xf(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    134e <main+0x20e>
movb   $0xd,0xf(%rsp)
mov    0x10(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    135f <main+0x21f>
movb   $0xd,0x10(%rsp)
mov    0x11(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    1370 <main+0x230>
movb   $0xd,0x11(%rsp)
mov    0x12(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    1381 <main+0x241>
movb   $0xd,0x12(%rsp)
mov    0x13(%rsp),%al
cmp    $0x31,%al
je     139e <main+0x25e>
cmp    $0x30,%al
jne    1392 <main+0x252>
movb   $0xd,0x13(%rsp)
cmpb   $0x30,0x14(%rsp)
jne    139e <main+0x25e>
movb   $0xd,0x14(%rsp)
lea    0xce1(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xcd3(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [43 x i8] c"\09The Amazing Decimal to Binary Conveter\0A\0A\07\00"
@.str.1 = [65 x i8] c"Enter the number of which you want to know it's binary value %c \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [6 x i8] c"\0A%d\0A\0A\00"
@.str.4 = [4 x i8] c"\09in\00"
@.str.5 = [8 x i8] c"\09binary\00"
@.str.6 = [5 x i8] c"\09is\0A\00"
@.str.7 = [3 x i8] c"%s\00"
@.str.8 = [4 x i8] c"\0A\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [20 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.1, i64 0, i64 0), i32 16)
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
%9 = load i32, i32* %4
store i32 %9, i32* %5
%10 = load i32, i32* %5
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %10)
%12 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %15
15: ; preds = %19, %0
%16 = call signext i8 (...) @getchar()
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 10
br i1 %18, label %19, label %20
19: ; preds = %15
br label %15
20: ; preds = %15
store i32 20, i32* %3
br label %21
21: ; preds = %36, %20
%22 = load i32, i32* %3
%23 = icmp sge i32 %22, 0
br i1 %23, label %24, label %39
24: ; preds = %21
%25 = load i32, i32* %4
%26 = srem i32 %25, 2
%27 = icmp ne i32 %26, 0
%28 = zext i1 %27 to i64
%29 = select i1 %27, i32 49, i32 48
%30 = trunc i32 %29 to i8
%31 = load i32, i32* %3
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %32
store i8 %30, i8* %33
%34 = load i32, i32* %4
%35 = sdiv i32 %34, 2
store i32 %35, i32* %4
br label %36
36: ; preds = %24
%37 = load i32, i32* %3
%38 = add nsw i32 %37, -1
store i32 %38, i32* %3
br label %21
39: ; preds = %21
store i32 0, i32* %3
br label %40
40: ; preds = %63, %39
%41 = load i32, i32* %3
%42 = icmp sle i32 %41, 20
br i1 %42, label %43, label %66
43: ; preds = %40
%44 = load i32, i32* %3
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %45
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 48
br i1 %49, label %50, label %54
50: ; preds = %43
%51 = load i32, i32* %3
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %52
store i8 13, i8* %53
br label %54
54: ; preds = %50, %43
%55 = load i32, i32* %3
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %56
%58 = load i8, i8* %57
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 49
br i1 %60, label %61, label %62
61: ; preds = %54
br label %66
62: ; preds = %54
br label %63
63: ; preds = %62
%64 = load i32, i32* %3
%65 = add nsw i32 %64, 1
store i32 %65, i32* %3
br label %40
66: ; preds = %61, %40
%67 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %67)
%69 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%70 = call signext i8 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str = [43 x i8] c"\09The Amazing Decimal to Binary Conveter\0A\0A\07\00"
@.str.1 = [65 x i8] c"Enter the number of which you want to know it's binary value %c \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [6 x i8] c"\0A%d\0A\0A\00"
@.str.4 = [4 x i8] c"\09in\00"
@.str.5 = [8 x i8] c"\09binary\00"
@.str.6 = [5 x i8] c"\09is\0A\00"
@.str.7 = [3 x i8] c"%s\00"
@.str.8 = [4 x i8] c"\0A\0A\0A\00"
define i32 @main() {
%1 = alloca [20 x i8]
%2 = alloca i32
%3 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.1, i64 0, i64 0), i32 16)
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%8 = load i32, i32* %2
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %13
13: ; preds = %13, %0
%14 = call signext i8 (...) @getchar()
%15 = icmp eq i8 %14, 10
br i1 %15, label %16, label %13
16: ; preds = %13
%17 = load i32, i32* %2
br label %20
18: ; preds = %20
store i32 %27, i32* %2
%19 = load i8, i8* %3
switch i8 %19, label %38 [
i8 48, label %37
i8 49, label %119
]
20: ; preds = %29, %16
%21 = phi i64 [ 20, %16 ], [ %36, %29 ]
%22 = phi i32 [ %17, %16 ], [ %35, %29 ]
%23 = trunc i32 %22 to i8
%24 = and i8 %23, 1
%25 = or i8 %24, 48
%26 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 %21
store i8 %25, i8* %26
%27 = sdiv i32 %22, 2
%28 = icmp eq i64 %21, 0
br i1 %28, label %18, label %29
29: ; preds = %20
%30 = add nsw i64 %21, -1
%31 = trunc i32 %27 to i8
%32 = and i8 %31, 1
%33 = or i8 %32, 48
%34 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 %30
store i8 %33, i8* %34
%35 = sdiv i32 %22, 4
%36 = add nsw i64 %21, -2
br label %20
37: ; preds = %18
store i8 13, i8* %3
br label %38
38: ; preds = %18, %37
%39 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 1
%40 = load i8, i8* %39
switch i8 %40, label %42 [
i8 48, label %41
i8 49, label %119
]
41: ; preds = %38
store i8 13, i8* %39
br label %42
42: ; preds = %41, %38
%43 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 2
%44 = load i8, i8* %43
switch i8 %44, label %46 [
i8 48, label %45
i8 49, label %119
]
45: ; preds = %42
store i8 13, i8* %43
br label %46
46: ; preds = %45, %42
%47 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 3
%48 = load i8, i8* %47
switch i8 %48, label %50 [
i8 48, label %49
i8 49, label %119
]
49: ; preds = %46
store i8 13, i8* %47
br label %50
50: ; preds = %49, %46
%51 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 4
%52 = load i8, i8* %51
switch i8 %52, label %54 [
i8 48, label %53
i8 49, label %119
]
53: ; preds = %50
store i8 13, i8* %51
br label %54
54: ; preds = %53, %50
%55 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 5
%56 = load i8, i8* %55
switch i8 %56, label %58 [
i8 48, label %57
i8 49, label %119
]
57: ; preds = %54
store i8 13, i8* %55
br label %58
58: ; preds = %57, %54
%59 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 6
%60 = load i8, i8* %59
switch i8 %60, label %62 [
i8 48, label %61
i8 49, label %119
]
61: ; preds = %58
store i8 13, i8* %59
br label %62
62: ; preds = %61, %58
%63 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 7
%64 = load i8, i8* %63
switch i8 %64, label %66 [
i8 48, label %65
i8 49, label %119
]
65: ; preds = %62
store i8 13, i8* %63
br label %66
66: ; preds = %65, %62
%67 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 8
%68 = load i8, i8* %67
switch i8 %68, label %70 [
i8 48, label %69
i8 49, label %119
]
69: ; preds = %66
store i8 13, i8* %67
br label %70
70: ; preds = %69, %66
%71 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 9
%72 = load i8, i8* %71
switch i8 %72, label %74 [
i8 48, label %73
i8 49, label %119
]
73: ; preds = %70
store i8 13, i8* %71
br label %74
74: ; preds = %73, %70
%75 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 10
%76 = load i8, i8* %75
switch i8 %76, label %78 [
i8 48, label %77
i8 49, label %119
]
77: ; preds = %74
store i8 13, i8* %75
br label %78
78: ; preds = %77, %74
%79 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 11
%80 = load i8, i8* %79
switch i8 %80, label %82 [
i8 48, label %81
i8 49, label %119
]
81: ; preds = %78
store i8 13, i8* %79
br label %82
82: ; preds = %81, %78
%83 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 12
%84 = load i8, i8* %83
switch i8 %84, label %86 [
i8 48, label %85
i8 49, label %119
]
85: ; preds = %82
store i8 13, i8* %83
br label %86
86: ; preds = %85, %82
%87 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 13
%88 = load i8, i8* %87
switch i8 %88, label %90 [
i8 48, label %89
i8 49, label %119
]
89: ; preds = %86
store i8 13, i8* %87
br label %90
90: ; preds = %89, %86
%91 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 14
%92 = load i8, i8* %91
switch i8 %92, label %94 [
i8 48, label %93
i8 49, label %119
]
93: ; preds = %90
store i8 13, i8* %91
br label %94
94: ; preds = %93, %90
%95 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 15
%96 = load i8, i8* %95
switch i8 %96, label %98 [
i8 48, label %97
i8 49, label %119
]
97: ; preds = %94
store i8 13, i8* %95
br label %98
98: ; preds = %97, %94
%99 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 16
%100 = load i8, i8* %99
switch i8 %100, label %102 [
i8 48, label %101
i8 49, label %119
]
101: ; preds = %98
store i8 13, i8* %99
br label %102
102: ; preds = %101, %98
%103 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 17
%104 = load i8, i8* %103
switch i8 %104, label %106 [
i8 48, label %105
i8 49, label %119
]
105: ; preds = %102
store i8 13, i8* %103
br label %106
106: ; preds = %105, %102
%107 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 18
%108 = load i8, i8* %107
switch i8 %108, label %110 [
i8 48, label %109
i8 49, label %119
]
109: ; preds = %106
store i8 13, i8* %107
br label %110
110: ; preds = %109, %106
%111 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 19
%112 = load i8, i8* %111
switch i8 %112, label %114 [
i8 48, label %113
i8 49, label %119
]
113: ; preds = %110
store i8 13, i8* %111
br label %114
114: ; preds = %113, %110
%115 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 20
%116 = load i8, i8* %115
%117 = icmp eq i8 %116, 48
br i1 %117, label %118, label %119
118: ; preds = %114
store i8 13, i8* %115
br label %119
119: ; preds = %114, %118, %110, %106, %102, %98, %94, %90, %86, %82, %78, %74, %70, %66, %62, %58, %54, %50, %46, %42, %38, %18
%120 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %3)
%121 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%122 = call signext i8 (...) @getchar()
ret i32 0
}