#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 showy(int t) {
  if (t != 0) {
    if (t == 2)
      printf("Twenty ");
    if (t == 3)
      printf("Thirty ");
    if (t == 4)
      printf("Forty ");
    if (t == 5)
      printf("Fifty ");
    if (t == 6)
      printf("Sixty ");
    if (t == 7)
      printf("Seventy ");
    if (t == 8)
      printf("Eighty ");
    if (t == 9)
      printf("Ninety ");
  }
  return 0;
}


x86 assembly (clang, -O0):
<showy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     11da <showy+0xca>
cmpl   $0x2,-0x4(%rbp)
jne    113b <showy+0x2b>
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x3,-0x4(%rbp)
jne    1151 <showy+0x41>
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x4,-0x4(%rbp)
jne    1167 <showy+0x57>
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x4(%rbp)
jne    117d <showy+0x6d>
lea    0xe9f(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x6,-0x4(%rbp)
jne    1193 <showy+0x83>
lea    0xe90(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x7,-0x4(%rbp)
jne    11a9 <showy+0x99>
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x8,-0x4(%rbp)
jne    11bf <showy+0xaf>
lea    0xe74(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x9,-0x4(%rbp)
jne    11d5 <showy+0xc5>
lea    0xe66(%rip),%rdi
call   1030 <printf@plt>
jmp    11da <showy+0xca>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<showy>:
add    $0xfffffffe,%edi
cmp    $0x7,%edi
ja     1133 <showy+0x23>
push   %rax
movslq %edi,%rax
lea    0xf1d(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
call   1030 <printf@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [8 x i8] c"Twenty \00"
@.str.1 = [8 x i8] c"Thirty \00"
@.str.2 = [7 x i8] c"Forty \00"
@.str.3 = [7 x i8] c"Fifty \00"
@.str.4 = [7 x i8] c"Sixty \00"
@.str.5 = [9 x i8] c"Seventy \00"
@.str.6 = [8 x i8] c"Eighty \00"
@.str.7 = [8 x i8] c"Ninety \00"
define i32 @showy(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %46
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp eq i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8, %5
%11 = load i32, i32* %2
%12 = icmp eq i32 %11, 3
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %15
15: ; preds = %13, %10
%16 = load i32, i32* %2
%17 = icmp eq i32 %16, 4
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %20
20: ; preds = %18, %15
%21 = load i32, i32* %2
%22 = icmp eq i32 %21, 5
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %25
25: ; preds = %23, %20
%26 = load i32, i32* %2
%27 = icmp eq i32 %26, 6
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %30
30: ; preds = %28, %25
%31 = load i32, i32* %2
%32 = icmp eq i32 %31, 7
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %35
35: ; preds = %33, %30
%36 = load i32, i32* %2
%37 = icmp eq i32 %36, 8
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %40
40: ; preds = %38, %35
%41 = load i32, i32* %2
%42 = icmp eq i32 %41, 9
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
br label %45
45: ; preds = %43, %40
br label %46
46: ; preds = %45, %1
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"Twenty \00"
@.str.1 = [8 x i8] c"Thirty \00"
@.str.2 = [7 x i8] c"Forty \00"
@.str.3 = [7 x i8] c"Fifty \00"
@.str.4 = [7 x i8] c"Sixty \00"
@.str.5 = [9 x i8] c"Seventy \00"
@.str.6 = [8 x i8] c"Eighty \00"
@.str.7 = [8 x i8] c"Ninety \00"
@reltable.showy = [8 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str to i64), i64 ptrtoint ([8 x i32]* @reltable.showy to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.1 to i64), i64 ptrtoint ([8 x i32]* @reltable.showy to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.2 to i64), i64 ptrtoint ([8 x i32]* @reltable.showy to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.3 to i64), i64 ptrtoint ([8 x i32]* @reltable.showy to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.4 to i64), i64 ptrtoint ([8 x i32]* @reltable.showy to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.5 to i64), i64 ptrtoint ([8 x i32]* @reltable.showy to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.6 to i64), i64 ptrtoint ([8 x i32]* @reltable.showy to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.7 to i64), i64 ptrtoint ([8 x i32]* @reltable.showy to i64)) to i32)]
define i32 @showy(i32 %0) {
%2 = add i32 %0, -2
%3 = icmp ult i32 %2, 8
br i1 %3, label %4, label %9
4: ; preds = %1
%5 = sext i32 %2 to i64
%6 = shl i64 %5, 2
%7 = call i8* @llvm.load.relative.i64(i8* bitcast ([8 x i32]* @reltable.showy to i8*), i64 %6)
%8 = tail call i32 @printf(i8* dereferenceable(1) %7)
br label %9
9: ; preds = %1, %4
ret i32 0
}