#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 /*<<< orphan*/ printf(char *);
int showl(int t) {
  if (t == 0)
    printf("Ten \n");
  if (t == 1)
    printf("Eleven \n");
  if (t == 2)
    printf("Twelve \n");
  if (t == 3)
    printf("Thirteen \n");
  if (t == 4)
    printf("Forteen \n");
  if (t == 5)
    printf("Fivteen \n");
  if (t == 6)
    printf("Sixteen \n");
  if (t == 7)
    printf("Seventeen \n");
  if (t == 8)
    printf("Eighteen \n");
  if (t == 9)
    printf("Nineteen \n");
  return 0;
}


x86 assembly (clang, -O0):
<showl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1131 <showl+0x21>
lea    0xed4(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x1,-0x4(%rbp)
jne    1147 <showl+0x37>
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x2,-0x4(%rbp)
jne    115d <showl+0x4d>
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x3,-0x4(%rbp)
jne    1173 <showl+0x63>
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x4,-0x4(%rbp)
jne    1189 <showl+0x79>
lea    0xe9f(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x4(%rbp)
jne    119f <showl+0x8f>
lea    0xe93(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x6,-0x4(%rbp)
jne    11b5 <showl+0xa5>
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x7,-0x4(%rbp)
jne    11cb <showl+0xbb>
lea    0xe7b(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x8,-0x4(%rbp)
jne    11e1 <showl+0xd1>
lea    0xe71(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x9,-0x4(%rbp)
jne    11f7 <showl+0xe7>
lea    0xe66(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<showl>:
cmp    $0x9,%edi
ja     1130 <showl+0x20>
push   %rax
movslq %edi,%rax
lea    0xf3c(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
call   1030 <puts@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [6 x i8] c"Ten \0A\00"
@.str.1 = [9 x i8] c"Eleven \0A\00"
@.str.2 = [9 x i8] c"Twelve \0A\00"
@.str.3 = [11 x i8] c"Thirteen \0A\00"
@.str.4 = [10 x i8] c"Forteen \0A\00"
@.str.5 = [10 x i8] c"Fivteen \0A\00"
@.str.6 = [10 x i8] c"Sixteen \0A\00"
@.str.7 = [12 x i8] c"Seventeen \0A\00"
@.str.8 = [11 x i8] c"Eighteen \0A\00"
@.str.9 = [11 x i8] c"Nineteen \0A\00"
define i32 @showl(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %1
%8 = load i32, i32* %2
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %12
12: ; preds = %10, %7
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, 2
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %17
17: ; preds = %15, %12
%18 = load i32, i32* %2
%19 = icmp eq i32 %18, 3
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
br label %22
22: ; preds = %20, %17
%23 = load i32, i32* %2
%24 = icmp eq i32 %23, 4
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
br label %27
27: ; preds = %25, %22
%28 = load i32, i32* %2
%29 = icmp eq i32 %28, 5
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %32
32: ; preds = %30, %27
%33 = load i32, i32* %2
%34 = icmp eq i32 %33, 6
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %37
37: ; preds = %35, %32
%38 = load i32, i32* %2
%39 = icmp eq i32 %38, 7
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
br label %42
42: ; preds = %40, %37
%43 = load i32, i32* %2
%44 = icmp eq i32 %43, 8
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
br label %47
47: ; preds = %45, %42
%48 = load i32, i32* %2
%49 = icmp eq i32 %48, 9
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
br label %52
52: ; preds = %50, %47
ret i32 0
}

LLVM IR (-O2):
@str = [10 x i8] c"Nineteen \00"
@str.10 = [10 x i8] c"Eighteen \00"
@str.11 = [11 x i8] c"Seventeen \00"
@str.12 = [9 x i8] c"Sixteen \00"
@str.13 = [9 x i8] c"Fivteen \00"
@str.14 = [9 x i8] c"Forteen \00"
@str.15 = [10 x i8] c"Thirteen \00"
@str.16 = [8 x i8] c"Twelve \00"
@str.17 = [8 x i8] c"Eleven \00"
@str.18 = [5 x i8] c"Ten \00"
@reltable.showl = [10 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @str.18 to i64), i64 ptrtoint ([10 x i32]* @reltable.showl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.17 to i64), i64 ptrtoint ([10 x i32]* @reltable.showl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.16 to i64), i64 ptrtoint ([10 x i32]* @reltable.showl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @str.15 to i64), i64 ptrtoint ([10 x i32]* @reltable.showl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @str.14 to i64), i64 ptrtoint ([10 x i32]* @reltable.showl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @str.13 to i64), i64 ptrtoint ([10 x i32]* @reltable.showl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @str.12 to i64), i64 ptrtoint ([10 x i32]* @reltable.showl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @str.11 to i64), i64 ptrtoint ([10 x i32]* @reltable.showl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @str.10 to i64), i64 ptrtoint ([10 x i32]* @reltable.showl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @str to i64), i64 ptrtoint ([10 x i32]* @reltable.showl to i64)) to i32)]
define i32 @showl(i32 %0) {
%2 = icmp ult i32 %0, 10
br i1 %2, label %3, label %8
3: ; preds = %1
%4 = sext i32 %0 to i64
%5 = shl i64 %4, 2
%6 = call i8* @llvm.load.relative.i64(i8* bitcast ([10 x i32]* @reltable.showl to i8*), i64 %5)
%7 = tail call i32 @puts(i8* dereferenceable(1) %6)
br label %8
8: ; preds = %1, %3
ret i32 0
}