#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 *, char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int a, b;
  scanf("%d", &a);
  scanf("%d", &b);
  char *arr[30] = {"one",         "two",        "three",        "four",
                   "five",        "six",        "seven",        "eight",
                   "nine",        "ten",        "eleven",       "twelve",
                   "thirteen",    "fourteen",   "fifteen",      "sixteen",
                   "seventeen",   "eighteen",   "nineteen",     "twenty",
                   "twenty one",  "twenty two", "twenty three", "twenty four",
                   "twenty five", "twenty six", "twenty seven", "twenty eight",
                   "twenty nine"};
  if (b == 0) {
    printf("%s o' clock ", arr[a - 1]);
  } else if (b == 1) {
    printf("%s minute past %s ", arr[b - 1], arr[a - 1]);
  } else if (b == 15) {
    printf("quarter past %s", arr[a - 1]);
  } else if (b < 30 && b > 1 && b != 15) {
    printf("%s minutes past %s ", arr[b - 1], arr[a - 1]);
  } else if (b == 30) {
    printf("half past %s", arr[a - 1]);
  } else if (b == 45) {
    printf("quarter to %s", arr[a + 1 - 1]);
  } else if (b > 30 && b < 59 && b != 45) {
    printf("%s minutes to %s", arr[60 - b - 1], arr[a + 1 - 1]);
  }
  if (b == 59) {
    printf("%s minute to %s", arr[60 - b - 1], arr[a + 1 - 1]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeb7(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xea7(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
lea    -0x100(%rbp),%rdi
lea    0x2bc0(%rip),%rsi
mov    $0xf0,%edx
call   1040 <memcpy@plt>
cmpl   $0x0,-0xc(%rbp)
jne    11a7 <main+0x77>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x100(%rbp,%rax,8),%rsi
ff
lea    0xf2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1331 <main+0x201>
cmpl   $0x1,-0xc(%rbp)
jne    11e4 <main+0xb4>
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x100(%rbp,%rax,8),%rsi
ff
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x100(%rbp,%rax,8),%rdx
ff
lea    0xefb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    132c <main+0x1fc>
cmpl   $0xf,-0xc(%rbp)
jne    1211 <main+0xe1>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x100(%rbp,%rax,8),%rsi
ff
lea    0xee1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1327 <main+0x1f7>
cmpl   $0x1e,-0xc(%rbp)
jge    1262 <main+0x132>
cmpl   $0x1,-0xc(%rbp)
jle    1262 <main+0x132>
cmpl   $0xf,-0xc(%rbp)
je     1262 <main+0x132>
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x100(%rbp,%rax,8),%rsi
ff
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x100(%rbp,%rax,8),%rdx
ff
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1322 <main+0x1f2>
cmpl   $0x1e,-0xc(%rbp)
jne    128f <main+0x15f>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x100(%rbp,%rax,8),%rsi
ff
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    131d <main+0x1ed>
cmpl   $0x2d,-0xc(%rbp)
jne    12bf <main+0x18f>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
sub    $0x1,%eax
cltq
mov    -0x100(%rbp,%rax,8),%rsi
ff
lea    0xe64(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1318 <main+0x1e8>
cmpl   $0x1e,-0xc(%rbp)
jle    1313 <main+0x1e3>
cmpl   $0x3b,-0xc(%rbp)
jge    1313 <main+0x1e3>
cmpl   $0x2d,-0xc(%rbp)
je     1313 <main+0x1e3>
mov    $0x3c,%eax
sub    -0xc(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x100(%rbp,%rax,8),%rsi
ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
sub    $0x1,%eax
cltq
mov    -0x100(%rbp,%rax,8),%rdx
ff
lea    0xe19(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1318 <main+0x1e8>
jmp    131d <main+0x1ed>
jmp    1322 <main+0x1f2>
jmp    1327 <main+0x1f7>
jmp    132c <main+0x1fc>
jmp    1331 <main+0x201>
cmpl   $0x3b,-0xc(%rbp)
jne    1371 <main+0x241>
mov    $0x3c,%eax
sub    -0xc(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x100(%rbp,%rax,8),%rsi
ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
sub    $0x1,%eax
cltq
mov    -0x100(%rbp,%rax,8),%rdx
ff
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0xf,%rax
je     1173 <main+0x53>
cmp    $0x1,%eax
je     1194 <main+0x74>
test   %eax,%eax
jne    11b5 <main+0x95>
movslq 0x8(%rsp),%rax
lea    0x2bcb(%rip),%rcx
mov    -0x8(%rcx,%rax,8),%rsi
lea    0xf55(%rip),%rdi
jmp    118b <main+0x6b>
movslq 0x8(%rsp),%rax
lea    0x2bb1(%rip),%rcx
mov    -0x8(%rcx,%rax,8),%rsi
lea    0xf5b(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    11e3 <main+0xc3>
movslq 0x8(%rsp),%rax
lea    0x2b90(%rip),%rcx
mov    -0x8(%rcx,%rax,8),%rdx
lea    0xf27(%rip),%rdi
lea    0xeae(%rip),%rsi
jmp    11dc <main+0xbc>
lea    -0x2(%rax),%ecx
cmp    $0x1b,%ecx
ja     1217 <main+0xf7>
add    $0xffffffff,%eax
lea    0x2b69(%rip),%rcx
mov    (%rcx,%rax,8),%rsi
movslq 0x8(%rsp),%rax
mov    -0x8(%rcx,%rax,8),%rdx
lea    0xf1a(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
cmpl   $0x3b,0xc(%rsp)
jne    120f <main+0xef>
movslq 0x8(%rsp),%rax
lea    0x2b3a(%rip),%rcx
mov    (%rcx,%rax,8),%rdx
lea    0xf35(%rip),%rdi
lea    0xe59(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret
cmp    $0x2d,%eax
je     123e <main+0x11e>
cmp    $0x1e,%eax
jne    125a <main+0x13a>
movslq 0x8(%rsp),%rax
lea    0x2b03(%rip),%rcx
mov    -0x8(%rcx,%rax,8),%rsi
lea    0xed1(%rip),%rdi
jmp    118b <main+0x6b>
movslq 0x8(%rsp),%rax
lea    0x2ae6(%rip),%rcx
mov    (%rcx,%rax,8),%rsi
lea    0xec2(%rip),%rdi
jmp    118b <main+0x6b>
lea    -0x1f(%rax),%ecx
cmp    $0x1b,%ecx
ja     11e3 <main+0xc3>
mov    $0x3b,%ecx
sub    %rax,%rcx
lea    0x2abf(%rip),%rax
mov    (%rax,%rcx,8),%rsi
movslq 0x8(%rsp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xea0(%rip),%rdi
jmp    11dc <main+0xbc>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"one\00"
@.str.2 = [4 x i8] c"two\00"
@.str.3 = [6 x i8] c"three\00"
@.str.4 = [5 x i8] c"four\00"
@.str.5 = [5 x i8] c"five\00"
@.str.6 = [4 x i8] c"six\00"
@.str.7 = [6 x i8] c"seven\00"
@.str.8 = [6 x i8] c"eight\00"
@.str.9 = [5 x i8] c"nine\00"
@.str.10 = [4 x i8] c"ten\00"
@.str.11 = [7 x i8] c"eleven\00"
@.str.12 = [7 x i8] c"twelve\00"
@.str.13 = [9 x i8] c"thirteen\00"
@.str.14 = [9 x i8] c"fourteen\00"
@.str.15 = [8 x i8] c"fifteen\00"
@.str.16 = [8 x i8] c"sixteen\00"
@.str.17 = [10 x i8] c"seventeen\00"
@.str.18 = [9 x i8] c"eighteen\00"
@.str.19 = [9 x i8] c"nineteen\00"
@.str.20 = [7 x i8] c"twenty\00"
@.str.21 = [11 x i8] c"twenty one\00"
@.str.22 = [11 x i8] c"twenty two\00"
@.str.23 = [13 x i8] c"twenty three\00"
@.str.24 = [12 x i8] c"twenty four\00"
@.str.25 = [12 x i8] c"twenty five\00"
@.str.26 = [11 x i8] c"twenty six\00"
@.str.27 = [13 x i8] c"twenty seven\00"
@.str.28 = [13 x i8] c"twenty eight\00"
@.str.29 = [12 x i8] c"twenty nine\00"
@__const.main.arr = [30 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.29, i32 0, i32 0), i8* null]
@.str.30 = [13 x i8] c"%s o' clock \00"
@.str.31 = [19 x i8] c"%s minute past %s \00"
@.str.32 = [16 x i8] c"quarter past %s\00"
@.str.33 = [20 x i8] c"%s minutes past %s \00"
@.str.34 = [13 x i8] c"half past %s\00"
@.str.35 = [14 x i8] c"quarter to %s\00"
@.str.36 = [17 x i8] c"%s minutes to %s\00"
@.str.37 = [16 x i8] c"%s minute to %s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [30 x i8*]
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%7 = bitcast [30 x i8*]* %4 to i8*
%8 = load i32, i32* %3
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %17
10: ; preds = %0
%11 = load i32, i32* %2
%12 = sub nsw i32 %11, 1
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [30 x i8*], [30 x i8*]* %4, i64 0, i64 %13
%15 = load i8*, i8** %14
%16 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.30, i64 0, i64 0), i8* %15)
br label %113
17: ; preds = %0
%18 = load i32, i32* %3
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %32
20: ; preds = %17
%21 = load i32, i32* %3
%22 = sub nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [30 x i8*], [30 x i8*]* %4, i64 0, i64 %23
%25 = load i8*, i8** %24
%26 = load i32, i32* %2
%27 = sub nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [30 x i8*], [30 x i8*]* %4, i64 0, i64 %28
%30 = load i8*, i8** %29
%31 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.31, i64 0, i64 0), i8* %25, i8* %30)
br label %112
32: ; preds = %17
%33 = load i32, i32* %3
%34 = icmp eq i32 %33, 15
br i1 %34, label %35, label %42
35: ; preds = %32
%36 = load i32, i32* %2
%37 = sub nsw i32 %36, 1
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [30 x i8*], [30 x i8*]* %4, i64 0, i64 %38
%40 = load i8*, i8** %39
%41 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.32, i64 0, i64 0), i8* %40)
br label %111
42: ; preds = %32
%43 = load i32, i32* %3
%44 = icmp slt i32 %43, 30
br i1 %44, label %45, label %63
45: ; preds = %42
%46 = load i32, i32* %3
%47 = icmp sgt i32 %46, 1
br i1 %47, label %48, label %63
48: ; preds = %45
%49 = load i32, i32* %3
%50 = icmp ne i32 %49, 15
br i1 %50, label %51, label %63
51: ; preds = %48
%52 = load i32, i32* %3
%53 = sub nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [30 x i8*], [30 x i8*]* %4, i64 0, i64 %54
%56 = load i8*, i8** %55
%57 = load i32, i32* %2
%58 = sub nsw i32 %57, 1
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [30 x i8*], [30 x i8*]* %4, i64 0, i64 %59
%61 = load i8*, i8** %60
%62 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.33, i64 0, i64 0), i8* %56, i8* %61)
br label %110
63: ; preds = %48, %45, %42
%64 = load i32, i32* %3
%65 = icmp eq i32 %64, 30
br i1 %65, label %66, label %73
66: ; preds = %63
%67 = load i32, i32* %2
%68 = sub nsw i32 %67, 1
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [30 x i8*], [30 x i8*]* %4, i64 0, i64 %69
%71 = load i8*, i8** %70
%72 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.34, i64 0, i64 0), i8* %71)
br label %109
73: ; preds = %63
%74 = load i32, i32* %3
%75 = icmp eq i32 %74, 45
br i1 %75, label %76, label %84
76: ; preds = %73
%77 = load i32, i32* %2
%78 = add nsw i32 %77, 1
%79 = sub nsw i32 %78, 1
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [30 x i8*], [30 x i8*]* %4, i64 0, i64 %80
%82 = load i8*, i8** %81
%83 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.35, i64 0, i64 0), i8* %82)
br label %108
84: ; preds = %73
%85 = load i32, i32* %3
%86 = icmp sgt i32 %85, 30
br i1 %86, label %87, label %107
87: ; preds = %84
%88 = load i32, i32* %3
%89 = icmp slt i32 %88, 59
br i1 %89, label %90, label %107
90: ; preds = %87
%91 = load i32, i32* %3
%92 = icmp ne i32 %91, 45
br i1 %92, label %93, label %107
93: ; preds = %90
%94 = load i32, i32* %3
%95 = sub nsw i32 60, %94
%96 = sub nsw i32 %95, 1
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [30 x i8*], [30 x i8*]* %4, i64 0, i64 %97
%99 = load i8*, i8** %98
%100 = load i32, i32* %2
%101 = add nsw i32 %100, 1
%102 = sub nsw i32 %101, 1
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [30 x i8*], [30 x i8*]* %4, i64 0, i64 %103
%105 = load i8*, i8** %104
%106 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.36, i64 0, i64 0), i8* %99, i8* %105)
br label %107
107: ; preds = %93, %90, %87, %84
br label %108
108: ; preds = %107, %76
br label %109
109: ; preds = %108, %66
br label %110
110: ; preds = %109, %51
br label %111
111: ; preds = %110, %35
br label %112
112: ; preds = %111, %20
br label %113
113: ; preds = %112, %10
%114 = load i32, i32* %3
%115 = icmp eq i32 %114, 59
br i1 %115, label %116, label %130
116: ; preds = %113
%117 = load i32, i32* %3
%118 = sub nsw i32 60, %117
%119 = sub nsw i32 %118, 1
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [30 x i8*], [30 x i8*]* %4, i64 0, i64 %120
%122 = load i8*, i8** %121
%123 = load i32, i32* %2
%124 = add nsw i32 %123, 1
%125 = sub nsw i32 %124, 1
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [30 x i8*], [30 x i8*]* %4, i64 0, i64 %126
%128 = load i8*, i8** %127
%129 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.37, i64 0, i64 0), i8* %122, i8* %128)
br label %130
130: ; preds = %116, %113
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"one\00"
@.str.2 = [4 x i8] c"two\00"
@.str.3 = [6 x i8] c"three\00"
@.str.4 = [5 x i8] c"four\00"
@.str.5 = [5 x i8] c"five\00"
@.str.6 = [4 x i8] c"six\00"
@.str.7 = [6 x i8] c"seven\00"
@.str.8 = [6 x i8] c"eight\00"
@.str.9 = [5 x i8] c"nine\00"
@.str.10 = [4 x i8] c"ten\00"
@.str.11 = [7 x i8] c"eleven\00"
@.str.12 = [7 x i8] c"twelve\00"
@.str.13 = [9 x i8] c"thirteen\00"
@.str.14 = [9 x i8] c"fourteen\00"
@.str.15 = [8 x i8] c"fifteen\00"
@.str.16 = [8 x i8] c"sixteen\00"
@.str.17 = [10 x i8] c"seventeen\00"
@.str.18 = [9 x i8] c"eighteen\00"
@.str.19 = [9 x i8] c"nineteen\00"
@.str.20 = [7 x i8] c"twenty\00"
@.str.21 = [11 x i8] c"twenty one\00"
@.str.22 = [11 x i8] c"twenty two\00"
@.str.23 = [13 x i8] c"twenty three\00"
@.str.24 = [12 x i8] c"twenty four\00"
@.str.25 = [12 x i8] c"twenty five\00"
@.str.26 = [11 x i8] c"twenty six\00"
@.str.27 = [13 x i8] c"twenty seven\00"
@.str.28 = [13 x i8] c"twenty eight\00"
@.str.29 = [12 x i8] c"twenty nine\00"
@__const.main.arr = [30 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.29, i32 0, i32 0), i8* null]
@.str.30 = [13 x i8] c"%s o' clock \00"
@.str.31 = [19 x i8] c"%s minute past %s \00"
@.str.32 = [16 x i8] c"quarter past %s\00"
@.str.33 = [20 x i8] c"%s minutes past %s \00"
@.str.34 = [13 x i8] c"half past %s\00"
@.str.35 = [14 x i8] c"quarter to %s\00"
@.str.36 = [17 x i8] c"%s minutes to %s\00"
@.str.37 = [16 x i8] c"%s minute to %s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%7 = load i32, i32* %2
switch i32 %7, label %29 [
i32 0, label %8
i32 1, label %15
i32 15, label %22
]
8: ; preds = %0
%9 = load i32, i32* %1
%10 = add nsw i32 %9, -1
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [30 x i8*], [30 x i8*]* @__const.main.arr, i64 0, i64 %11
%13 = load i8*, i8** %12
%14 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.30, i64 0, i64 0), i8* %13)
br label %70
15: ; preds = %0
%16 = load i32, i32* %1
%17 = add nsw i32 %16, -1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [30 x i8*], [30 x i8*]* @__const.main.arr, i64 0, i64 %18
%20 = load i8*, i8** %19
%21 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.31, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %20)
br label %70
22: ; preds = %0
%23 = load i32, i32* %1
%24 = add nsw i32 %23, -1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [30 x i8*], [30 x i8*]* @__const.main.arr, i64 0, i64 %25
%27 = load i8*, i8** %26
%28 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.32, i64 0, i64 0), i8* %27)
br label %70
29: ; preds = %0
%30 = add i32 %7, -2
%31 = icmp ult i32 %30, 28
br i1 %31, label %32, label %43
32: ; preds = %29
%33 = add nsw i32 %7, -1
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds [30 x i8*], [30 x i8*]* @__const.main.arr, i64 0, i64 %34
%36 = load i8*, i8** %35
%37 = load i32, i32* %1
%38 = add nsw i32 %37, -1
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [30 x i8*], [30 x i8*]* @__const.main.arr, i64 0, i64 %39
%41 = load i8*, i8** %40
%42 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.33, i64 0, i64 0), i8* %36, i8* %41)
br label %70
43: ; preds = %29
switch i32 %7, label %57 [
i32 30, label %44
i32 45, label %51
]
44: ; preds = %43
%45 = load i32, i32* %1
%46 = add nsw i32 %45, -1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [30 x i8*], [30 x i8*]* @__const.main.arr, i64 0, i64 %47
%49 = load i8*, i8** %48
%50 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.34, i64 0, i64 0), i8* %49)
br label %70
51: ; preds = %43
%52 = load i32, i32* %1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [30 x i8*], [30 x i8*]* @__const.main.arr, i64 0, i64 %53
%55 = load i8*, i8** %54
%56 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.35, i64 0, i64 0), i8* %55)
br label %70
57: ; preds = %43
%58 = add i32 %7, -31
%59 = icmp ult i32 %58, 28
br i1 %59, label %60, label %70
60: ; preds = %57
%61 = sub nuw nsw i32 59, %7
%62 = zext i32 %61 to i64
%63 = getelementptr inbounds [30 x i8*], [30 x i8*]* @__const.main.arr, i64 0, i64 %62
%64 = load i8*, i8** %63
%65 = load i32, i32* %1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [30 x i8*], [30 x i8*]* @__const.main.arr, i64 0, i64 %66
%68 = load i8*, i8** %67
%69 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.36, i64 0, i64 0), i8* %64, i8* %68)
br label %70
70: ; preds = %15, %32, %51, %60, %57, %44, %22, %8
%71 = load i32, i32* %2
%72 = icmp eq i32 %71, 59
br i1 %72, label %73, label %79
73: ; preds = %70
%74 = load i32, i32* %1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [30 x i8*], [30 x i8*]* @__const.main.arr, i64 0, i64 %75
%77 = load i8*, i8** %76
%78 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.37, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %77)
br label %79
79: ; preds = %73, %70
ret i32 0
}