#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_minutes(int min) {
  switch (min) {
  case 5:
    printf(" five past");
    break;
  case 10:
    printf(" ten past");
    break;
  case 15:
    printf(" quarter past");
    break;
  case 20:
    printf(" twenty past");
    break;
  case 25:
    printf(" twenty five past");
    break;
  case 30:
    printf(" half past");
    break;
  case 35:
    printf(" twenty five to");
    break;
  case 40:
    printf(" twenty to");
    break;
  case 45:
    printf(" quarter to");
    break;
  case 50:
    printf(" ten to");
    break;
  case 55:
    printf(" five to");
    break;
  }
}


x86 assembly (clang, -O0):
<print_minutes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xfffffffb,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x32,%eax
ja     11fa <print_minutes+0xea>
mov    -0x10(%rbp),%rax
lea    0xec5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xfad(%rip),%rdi
call   1030 <printf@plt>
jmp    11fa <print_minutes+0xea>
lea    0xf70(%rip),%rdi
call   1030 <printf@plt>
jmp    11fa <print_minutes+0xea>
lea    0xf69(%rip),%rdi
call   1030 <printf@plt>
jmp    11fa <print_minutes+0xea>
lea    0xf66(%rip),%rdi
call   1030 <printf@plt>
jmp    11fa <print_minutes+0xea>
lea    0xf62(%rip),%rdi
call   1030 <printf@plt>
jmp    11fa <print_minutes+0xea>
lea    0xf63(%rip),%rdi
call   1030 <printf@plt>
jmp    11fa <print_minutes+0xea>
lea    0xf5d(%rip),%rdi
call   1030 <printf@plt>
jmp    11fa <print_minutes+0xea>
lea    0xf5c(%rip),%rdi
call   1030 <printf@plt>
jmp    11fa <print_minutes+0xea>
lea    0xf56(%rip),%rdi
call   1030 <printf@plt>
jmp    11fa <print_minutes+0xea>
lea    0xf51(%rip),%rdi
call   1030 <printf@plt>
jmp    11fa <print_minutes+0xea>
lea    0xf20(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_minutes>:
mov    %edi,%eax
add    $0xfffffffb,%eax
cmp    $0x32,%eax
ja     113d <print_minutes+0x2d>
lea    0xfd7(%rip),%rdi
lea    0xed8(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf94(%rip),%rdi
jmp    1030 <printf@plt>
ret
lea    0xf91(%rip),%rdi
jmp    1030 <printf@plt>
lea    0xf93(%rip),%rdi
jmp    1030 <printf@plt>
lea    0xf94(%rip),%rdi
jmp    1030 <printf@plt>
lea    0xf9a(%rip),%rdi
jmp    1030 <printf@plt>
lea    0xf99(%rip),%rdi
jmp    1030 <printf@plt>
lea    0xf9d(%rip),%rdi
jmp    1030 <printf@plt>
lea    0xf9c(%rip),%rdi
jmp    1030 <printf@plt>
lea    0xf9c(%rip),%rdi
jmp    1030 <printf@plt>
lea    0xf70(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [11 x i8] c" five past\00"
@.str.1 = [10 x i8] c" ten past\00"
@.str.2 = [14 x i8] c" quarter past\00"
@.str.3 = [13 x i8] c" twenty past\00"
@.str.4 = [18 x i8] c" twenty five past\00"
@.str.5 = [11 x i8] c" half past\00"
@.str.6 = [16 x i8] c" twenty five to\00"
@.str.7 = [11 x i8] c" twenty to\00"
@.str.8 = [12 x i8] c" quarter to\00"
@.str.9 = [8 x i8] c" ten to\00"
@.str.10 = [9 x i8] c" five to\00"
define void @print_minutes(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %26 [
i32 5, label %4
i32 10, label %6
i32 15, label %8
i32 20, label %10
i32 25, label %12
i32 30, label %14
i32 35, label %16
i32 40, label %18
i32 45, label %20
i32 50, label %22
i32 55, label %24
]
4: ; preds = %1
%5 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
br label %26
6: ; preds = %1
%7 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %26
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
br label %26
10: ; preds = %1
%11 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
br label %26
12: ; preds = %1
%13 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
br label %26
14: ; preds = %1
%15 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
br label %26
16: ; preds = %1
%17 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
br label %26
18: ; preds = %1
%19 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
br label %26
20: ; preds = %1
%21 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
br label %26
22: ; preds = %1
%23 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
br label %26
24: ; preds = %1
%25 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
br label %26
26: ; preds = %1, %24, %22, %20, %18, %16, %14, %12, %10, %8, %6, %4
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c" five past\00"
@.str.1 = [10 x i8] c" ten past\00"
@.str.2 = [14 x i8] c" quarter past\00"
@.str.3 = [13 x i8] c" twenty past\00"
@.str.4 = [18 x i8] c" twenty five past\00"
@.str.5 = [11 x i8] c" half past\00"
@.str.6 = [16 x i8] c" twenty five to\00"
@.str.7 = [11 x i8] c" twenty to\00"
@.str.8 = [12 x i8] c" quarter to\00"
@.str.9 = [8 x i8] c" ten to\00"
@.str.10 = [9 x i8] c" five to\00"
define void @print_minutes(i32 %0) {
switch i32 %0, label %15 [
i32 5, label %12
i32 10, label %2
i32 15, label %3
i32 20, label %4
i32 25, label %5
i32 30, label %6
i32 35, label %7
i32 40, label %8
i32 45, label %9
i32 50, label %10
i32 55, label %11
]
2: ; preds = %1
br label %12
3: ; preds = %1
br label %12
4: ; preds = %1
br label %12
5: ; preds = %1
br label %12
6: ; preds = %1
br label %12
7: ; preds = %1
br label %12
8: ; preds = %1
br label %12
9: ; preds = %1
br label %12
10: ; preds = %1
br label %12
11: ; preds = %1
br label %12
12: ; preds = %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11
%13 = phi i8* [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), %11 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), %10 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), %9 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), %1 ]
%14 = tail call i32 @printf(i8* dereferenceable(1) %13)
br label %15
15: ; preds = %12, %1
ret void
}