#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 showh(int t) {
  if (t != 0) {
    if (t == 1)
      printf("One Hundred ");
    if (t == 2)
      printf("Two Hundred ");
    if (t == 3)
      printf("Three Hundred ");
    if (t == 4)
      printf("Four Hundred ");
    if (t == 5)
      printf("Five Hundred ");
    if (t == 6)
      printf("Six Hundred ");
    if (t == 7)
      printf("Seven Hundred ");
    if (t == 8)
      printf("Eight Hundred ");
    if (t == 9)
      printf("Nine Hundred ");
  }
  return 0;
}


x86 assembly (clang, -O0):
<showh>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     11f0 <showh+0xe0>
cmpl   $0x1,-0x4(%rbp)
jne    113b <showh+0x2b>
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x2,-0x4(%rbp)
jne    1151 <showh+0x41>
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x3,-0x4(%rbp)
jne    1167 <showh+0x57>
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x4,-0x4(%rbp)
jne    117d <showh+0x6d>
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x4(%rbp)
jne    1193 <showh+0x83>
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x6,-0x4(%rbp)
jne    11a9 <showh+0x99>
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x7,-0x4(%rbp)
jne    11bf <showh+0xaf>
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x8,-0x4(%rbp)
jne    11d5 <showh+0xc5>
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x9,-0x4(%rbp)
jne    11eb <showh+0xdb>
lea    0xe8a(%rip),%rdi
call   1030 <printf@plt>
jmp    11f0 <showh+0xe0>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<showh>:
add    $0xffffffff,%edi
cmp    $0x8,%edi
ja     1133 <showh+0x23>
push   %rax
movslq %edi,%rax
lea    0xf5d(%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 = [13 x i8] c"One Hundred \00"
@.str.1 = [13 x i8] c"Two Hundred \00"
@.str.2 = [15 x i8] c"Three Hundred \00"
@.str.3 = [14 x i8] c"Four Hundred \00"
@.str.4 = [14 x i8] c"Five Hundred \00"
@.str.5 = [13 x i8] c"Six Hundred \00"
@.str.6 = [15 x i8] c"Seven Hundred \00"
@.str.7 = [15 x i8] c"Eight Hundred \00"
@.str.8 = [14 x i8] c"Nine Hundred \00"
define i32 @showh(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 %51
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8, %5
%11 = load i32, i32* %2
%12 = icmp eq i32 %11, 2
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 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, 3
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 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, 4
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 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, 5
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 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, 6
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 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, 7
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 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, 8
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
br label %45
45: ; preds = %43, %40
%46 = load i32, i32* %2
%47 = icmp eq i32 %46, 9
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
br label %50
50: ; preds = %48, %45
br label %51
51: ; preds = %50, %1
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"One Hundred \00"
@.str.1 = [13 x i8] c"Two Hundred \00"
@.str.2 = [15 x i8] c"Three Hundred \00"
@.str.3 = [14 x i8] c"Four Hundred \00"
@.str.4 = [14 x i8] c"Five Hundred \00"
@.str.5 = [13 x i8] c"Six Hundred \00"
@.str.6 = [15 x i8] c"Seven Hundred \00"
@.str.7 = [15 x i8] c"Eight Hundred \00"
@.str.8 = [14 x i8] c"Nine Hundred \00"
@reltable.showh = [9 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str to i64), i64 ptrtoint ([9 x i32]* @reltable.showh to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.1 to i64), i64 ptrtoint ([9 x i32]* @reltable.showh to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.2 to i64), i64 ptrtoint ([9 x i32]* @reltable.showh to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.3 to i64), i64 ptrtoint ([9 x i32]* @reltable.showh to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.4 to i64), i64 ptrtoint ([9 x i32]* @reltable.showh to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.5 to i64), i64 ptrtoint ([9 x i32]* @reltable.showh to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.6 to i64), i64 ptrtoint ([9 x i32]* @reltable.showh to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.7 to i64), i64 ptrtoint ([9 x i32]* @reltable.showh to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.8 to i64), i64 ptrtoint ([9 x i32]* @reltable.showh to i64)) to i32)]
define i32 @showh(i32 %0) {
%2 = add i32 %0, -1
%3 = icmp ult i32 %2, 9
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 ([9 x i32]* @reltable.showh to i8*), i64 %6)
%8 = tail call i32 @printf(i8* dereferenceable(1) %7)
br label %9
9: ; preds = %1, %4
ret i32 0
}