#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 *);
void print_hours(int twentyfour) {
  switch (twentyfour) {
  case 0:
    printf(" midnight");
    break;
  case 1:
    printf(" one in the morning");
    break;
  case 2:
    printf(" two in the morning");
    break;
  case 3:
    printf(" three in the morning");
    break;
  case 4:
    printf(" four in the morning");
    break;
  case 5:
    printf(" five in the morning");
    break;
  case 6:
    printf(" six in the morning");
    break;
  case 7:
    printf(" seven in the morning");
    break;
  case 8:
    printf(" eight in the morning");
    break;
  case 9:
    printf(" nine in the morning");
    break;
  case 10:
    printf(" ten in the morning");
    break;
  case 11:
    printf(" eleven in the morning");
    break;
  case 12:
    printf(" noon");
    break;
  case 13:
    printf(" one in the afternoon");
    break;
  case 14:
    printf(" two in the afternoon");
    break;
  case 15:
    printf(" three in the afternoon");
    break;
  case 16:
    printf(" four in the evening");
    break;
  case 17:
    printf(" five in the evening");
    break;
  case 18:
    printf(" six in the evening");
    break;
  case 19:
    printf(" seven in the evening");
    break;
  case 20:
    printf(" eight at night");
    break;
  case 21:
    printf(" nine at night");
    break;
  case 22:
    printf(" ten at night");
    break;
  case 23:
    printf(" eleven at night");
    break;
  }
}


x86 assembly (clang, -O0):
<print_hours>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %rax,-0x10(%rbp)
sub    $0x17,%rax
ja     12d3 <print_hours+0x1c3>
mov    -0x10(%rbp),%rax
lea    0xec9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf19(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf12(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf15(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf18(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf1d(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf21(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf25(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf28(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf2d(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf32(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf36(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf39(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf3f(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf34(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf39(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf3e(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf45(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf49(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf4d(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf50(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf55(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf54(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf52(%rip),%rdi
call   1030 <printf@plt>
jmp    12d3 <print_hours+0x1c3>
lea    0xf4f(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_hours>:
cmp    $0x17,%edi
ja     112b <print_hours+0x1b>
movslq %edi,%rax
lea    0x10b1(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1030 <printf@plt>
ret

LLVM IR (-O0):
@.str = [10 x i8] c" midnight\00"
@.str.1 = [20 x i8] c" one in the morning\00"
@.str.2 = [20 x i8] c" two in the morning\00"
@.str.3 = [22 x i8] c" three in the morning\00"
@.str.4 = [21 x i8] c" four in the morning\00"
@.str.5 = [21 x i8] c" five in the morning\00"
@.str.6 = [20 x i8] c" six in the morning\00"
@.str.7 = [22 x i8] c" seven in the morning\00"
@.str.8 = [22 x i8] c" eight in the morning\00"
@.str.9 = [21 x i8] c" nine in the morning\00"
@.str.10 = [20 x i8] c" ten in the morning\00"
@.str.11 = [23 x i8] c" eleven in the morning\00"
@.str.12 = [6 x i8] c" noon\00"
@.str.13 = [22 x i8] c" one in the afternoon\00"
@.str.14 = [22 x i8] c" two in the afternoon\00"
@.str.15 = [24 x i8] c" three in the afternoon\00"
@.str.16 = [21 x i8] c" four in the evening\00"
@.str.17 = [21 x i8] c" five in the evening\00"
@.str.18 = [20 x i8] c" six in the evening\00"
@.str.19 = [22 x i8] c" seven in the evening\00"
@.str.20 = [16 x i8] c" eight at night\00"
@.str.21 = [15 x i8] c" nine at night\00"
@.str.22 = [14 x i8] c" ten at night\00"
@.str.23 = [17 x i8] c" eleven at night\00"
define void @print_hours(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %52 [
i32 0, label %4
i32 1, label %6
i32 2, label %8
i32 3, label %10
i32 4, label %12
i32 5, label %14
i32 6, label %16
i32 7, label %18
i32 8, label %20
i32 9, label %22
i32 10, label %24
i32 11, label %26
i32 12, label %28
i32 13, label %30
i32 14, label %32
i32 15, label %34
i32 16, label %36
i32 17, label %38
i32 18, label %40
i32 19, label %42
i32 20, label %44
i32 21, label %46
i32 22, label %48
i32 23, label %50
]
4: ; preds = %1
%5 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
br label %52
6: ; preds = %1
%7 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
br label %52
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
br label %52
10: ; preds = %1
%11 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
br label %52
12: ; preds = %1
%13 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
br label %52
14: ; preds = %1
%15 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
br label %52
16: ; preds = %1
%17 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
br label %52
18: ; preds = %1
%19 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
br label %52
20: ; preds = %1
%21 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
br label %52
22: ; preds = %1
%23 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
br label %52
24: ; preds = %1
%25 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
br label %52
26: ; preds = %1
%27 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0))
br label %52
28: ; preds = %1
%29 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
br label %52
30: ; preds = %1
%31 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
br label %52
32: ; preds = %1
%33 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0))
br label %52
34: ; preds = %1
%35 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0))
br label %52
36: ; preds = %1
%37 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0))
br label %52
38: ; preds = %1
%39 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0))
br label %52
40: ; preds = %1
%41 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0))
br label %52
42: ; preds = %1
%43 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0))
br label %52
44: ; preds = %1
%45 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0))
br label %52
46: ; preds = %1
%47 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0))
br label %52
48: ; preds = %1
%49 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0))
br label %52
50: ; preds = %1
%51 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.23, i64 0, i64 0))
br label %52
52: ; preds = %1, %50, %48, %46, %44, %42, %40, %38, %36, %34, %32, %30, %28, %26, %24, %22, %20, %18, %16, %14, %12, %10, %8, %6, %4
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c" midnight\00"
@.str.1 = [20 x i8] c" one in the morning\00"
@.str.2 = [20 x i8] c" two in the morning\00"
@.str.3 = [22 x i8] c" three in the morning\00"
@.str.4 = [21 x i8] c" four in the morning\00"
@.str.5 = [21 x i8] c" five in the morning\00"
@.str.6 = [20 x i8] c" six in the morning\00"
@.str.7 = [22 x i8] c" seven in the morning\00"
@.str.8 = [22 x i8] c" eight in the morning\00"
@.str.9 = [21 x i8] c" nine in the morning\00"
@.str.10 = [20 x i8] c" ten in the morning\00"
@.str.11 = [23 x i8] c" eleven in the morning\00"
@.str.12 = [6 x i8] c" noon\00"
@.str.13 = [22 x i8] c" one in the afternoon\00"
@.str.14 = [22 x i8] c" two in the afternoon\00"
@.str.15 = [24 x i8] c" three in the afternoon\00"
@.str.16 = [21 x i8] c" four in the evening\00"
@.str.17 = [21 x i8] c" five in the evening\00"
@.str.18 = [20 x i8] c" six in the evening\00"
@.str.19 = [22 x i8] c" seven in the evening\00"
@.str.20 = [16 x i8] c" eight at night\00"
@.str.21 = [15 x i8] c" nine at night\00"
@.str.22 = [14 x i8] c" ten at night\00"
@.str.23 = [17 x i8] c" eleven at night\00"
@reltable.print_hours = [24 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.1 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.2 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.3 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.4 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.5 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.6 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.7 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.8 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.9 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.10 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @.str.11 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.12 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.13 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.14 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.15 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.16 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.17 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.18 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.19 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.20 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.21 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.22 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.23 to i64), i64 ptrtoint ([24 x i32]* @reltable.print_hours to i64)) to i32)]
define void @print_hours(i32 %0) {
%2 = icmp ult i32 %0, 24
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 ([24 x i32]* @reltable.print_hours to i8*), i64 %5)
%7 = tail call i32 @printf(i8* dereferenceable(1) %6)
br label %8
8: ; preds = %1, %3
ret void
}