#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 */
char *findHour(int);
char *findMin(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int h;
  scanf("%d", &h);
  int m;
  scanf("%d", &m);
  int arr[12];
  arr[0] = 12;
  char *time = "";
  if (m == 00) {
    printf("%s", findHour(h));
    printf(" o' clock");
  } else if (m > 0 && m < 30) {
    printf("%s", findMin(m));
    printf("%s", findHour(h));
  } else if (m == 30) {
    printf("%s", findMin(m));
    printf("%s", findHour(h));
  } else if (m > 30 && m < 60) {
    printf("%s", findMin(m));
    printf("%s", findHour(h + 1));
  } else {
    return 0;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1060 <scanf@plt>
lea    0xe9a(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1060 <scanf@plt>
movl   $0xc,-0x40(%rbp)
lea    0xe85(%rip),%rax
mov    %rax,-0x48(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    11b7 <main+0x77>
mov    -0x8(%rbp),%edi
call   1040 <findHour@plt>
mov    %rax,%rsi
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12ac <main+0x16c>
cmpl   $0x0,-0xc(%rbp)
jle    1202 <main+0xc2>
cmpl   $0x1e,-0xc(%rbp)
jge    1202 <main+0xc2>
mov    -0xc(%rbp),%edi
call   1050 <findMin@plt>
mov    %rax,%rsi
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
call   1040 <findHour@plt>
mov    %rax,%rsi
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12a7 <main+0x167>
cmpl   $0x1e,-0xc(%rbp)
jne    1243 <main+0x103>
mov    -0xc(%rbp),%edi
call   1050 <findMin@plt>
mov    %rax,%rsi
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
call   1040 <findHour@plt>
mov    %rax,%rsi
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12a2 <main+0x162>
cmpl   $0x1e,-0xc(%rbp)
jle    1291 <main+0x151>
cmpl   $0x3c,-0xc(%rbp)
jge    1291 <main+0x151>
mov    -0xc(%rbp),%edi
call   1050 <findMin@plt>
mov    %rax,%rsi
lea    0xd9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
add    $0x1,%edi
call   1040 <findHour@plt>
mov    %rax,%rsi
lea    0xd7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129d <main+0x15d>
movl   $0x0,-0x4(%rbp)
jmp    12b3 <main+0x173>
jmp    12a2 <main+0x162>
jmp    12a7 <main+0x167>
jmp    12ac <main+0x16c>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xeb4(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    0xc(%rsp),%edi
test   %edi,%edi
je     1178 <main+0x38>
lea    -0x1(%rdi),%eax
cmp    $0x1c,%eax
ja     11a2 <main+0x62>
jmp    11ac <main+0x6c>
mov    0x8(%rsp),%edi
call   1040 <findHour@plt>
lea    0xe7b(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe6d(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    11db <main+0x9b>
cmp    $0x1e,%edi
jne    11e3 <main+0xa3>
mov    $0x1e,%edi
call   1050 <findMin@plt>
lea    0xe4b(%rip),%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%edi
call   1040 <findHour@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret
lea    -0x1f(%rdi),%eax
cmp    $0x1c,%eax
ja     11db <main+0x9b>
call   1050 <findMin@plt>
lea    0xe0c(%rip),%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%edi
add    $0x1,%edi
jmp    11c9 <main+0x89>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [10 x i8] c" o' clock\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [12 x i32]
%5 = alloca i8*
store i32 0, i32* %1
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%8 = getelementptr inbounds [12 x i32], [12 x i32]* %4, i64 0, i64 0
store i32 12, i32* %8
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8** %5
%9 = load i32, i32* %3
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %0
%12 = load i32, i32* %2
%13 = call i8* @findHour(i32 %12)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %13)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %57
16: ; preds = %0
%17 = load i32, i32* %3
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %29
19: ; preds = %16
%20 = load i32, i32* %3
%21 = icmp slt i32 %20, 30
br i1 %21, label %22, label %29
22: ; preds = %19
%23 = load i32, i32* %3
%24 = call i8* @findMin(i32 %23)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %24)
%26 = load i32, i32* %2
%27 = call i8* @findHour(i32 %26)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %27)
br label %56
29: ; preds = %19, %16
%30 = load i32, i32* %3
%31 = icmp eq i32 %30, 30
br i1 %31, label %32, label %39
32: ; preds = %29
%33 = load i32, i32* %3
%34 = call i8* @findMin(i32 %33)
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %34)
%36 = load i32, i32* %2
%37 = call i8* @findHour(i32 %36)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %37)
br label %55
39: ; preds = %29
%40 = load i32, i32* %3
%41 = icmp sgt i32 %40, 30
br i1 %41, label %42, label %53
42: ; preds = %39
%43 = load i32, i32* %3
%44 = icmp slt i32 %43, 60
br i1 %44, label %45, label %53
45: ; preds = %42
%46 = load i32, i32* %3
%47 = call i8* @findMin(i32 %46)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %47)
%49 = load i32, i32* %2
%50 = add nsw i32 %49, 1
%51 = call i8* @findHour(i32 %50)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %51)
br label %54
53: ; preds = %42, %39
store i32 0, i32* %1
br label %58
54: ; preds = %45
br label %55
55: ; preds = %54, %32
br label %56
56: ; preds = %55, %22
br label %57
57: ; preds = %56, %11
store i32 0, i32* %1
br label %58
58: ; preds = %57, %53
%59 = load i32, i32* %1
ret i32 %59
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [10 x i8] c" o' clock\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%5 = bitcast i32* %2 to i8*
%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
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %0
%10 = load i32, i32* %1
%11 = call i8* @findHour(i32 %10)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %11)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %41
14: ; preds = %0
%15 = add i32 %7, -1
%16 = icmp ult i32 %15, 29
br i1 %16, label %17, label %23
17: ; preds = %14
%18 = call i8* @findMin(i32 %7)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %18)
%20 = load i32, i32* %1
%21 = call i8* @findHour(i32 %20)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %21)
br label %41
23: ; preds = %14
%24 = icmp eq i32 %7, 30
br i1 %24, label %25, label %31
25: ; preds = %23
%26 = call i8* @findMin(i32 30)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%28 = load i32, i32* %1
%29 = call i8* @findHour(i32 %28)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %29)
br label %41
31: ; preds = %23
%32 = add i32 %7, -31
%33 = icmp ult i32 %32, 29
br i1 %33, label %34, label %41
34: ; preds = %31
%35 = call i8* @findMin(i32 %7)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %35)
%37 = load i32, i32* %1
%38 = add nsw i32 %37, 1
%39 = call i8* @findHour(i32 %38)
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %39)
br label %41
41: ; preds = %9, %25, %34, %17, %31
ret i32 0
}