#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 EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int secs, mins, hours, input;
  printf("Please only input non-negative integers: ");
  scanf(" %d", &input);
  secs = input % 60;
  mins = (input / 60) % 60;
  hours = input / 3600;
  if (secs > 0 && mins > 0 && hours > 0) {
    printf("%d %s, %d %s and %d %s", hours, hours == 1 ? "hour" : "hours", mins,
           mins == 1 ? "minute" : "minutes", secs,
           secs == 1 ? "second" : "seconds");
  } else if (hours == 0 && secs > 0 && mins > 0) {
    printf("%d %s and %d %s", mins, mins == 1 ? "minute" : "minutes", secs,
           secs == 1 ? "second" : "seconds");
  } else if (secs == 0 && mins > 0 && hours > 0) {
    printf("%d %s and %d %s", hours, hours == 1 ? "hour" : "hours", mins,
           mins == 1 ? "minute" : "minutes");
  } else if (mins == 0 && secs > 0 && hours > 0) {
    printf("%d %s and %d %s", hours, hours == 1 ? "hour" : "hours", secs,
           secs == 1 ? "second" : "seconds");
  } else if (mins > 0 && secs == 0 && hours == 0) {
    printf("%d %s", mins, mins == 1 ? "minute" : "minutes");
  } else if (hours > 0 && secs == 0 && mins == 0) {
    printf("%d %s", hours, hours == 1 ? "hour" : "hours");
  } else {
    printf("%d %s", secs, secs == 1 ? "second" : "seconds");
  }
  printf(" is equal to %d %s.\n", input, input == 1 ? "second" : "seconds");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %edx,-0x8(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %edx,-0xc(%rbp)
mov    -0x14(%rbp),%eax
mov    $0xe10,%ecx
cltd
idiv   %ecx
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    1208 <main+0xe8>
cmpl   $0x0,-0xc(%rbp)
jle    1208 <main+0xe8>
cmpl   $0x0,-0x10(%rbp)
jle    1208 <main+0xe8>
mov    -0x10(%rbp),%esi
mov    -0x10(%rbp),%ecx
lea    0xea0(%rip),%rdx
lea    0xe94(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rdx
mov    -0xc(%rbp),%ecx
mov    -0xc(%rbp),%edi
lea    0xe92(%rip),%r8
lea    0xe84(%rip),%rax
cmp    $0x1,%edi
cmove  %rax,%r8
mov    -0x8(%rbp),%r9d
mov    -0x8(%rbp),%r10d
lea    0xe84(%rip),%rax
lea    0xe76(%rip),%rdi
cmp    $0x1,%r10d
cmove  %rdi,%rax
lea    0xe36(%rip),%rdi
mov    %rax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1417 <main+0x2f7>
cmpl   $0x0,-0x10(%rbp)
jne    126f <main+0x14f>
cmpl   $0x0,-0x8(%rbp)
jle    126f <main+0x14f>
cmpl   $0x0,-0xc(%rbp)
jle    126f <main+0x14f>
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%ecx
lea    0xe24(%rip),%rdx
lea    0xe16(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rdx
mov    -0x8(%rbp),%ecx
mov    -0x8(%rbp),%edi
lea    0xe18(%rip),%r8
lea    0xe0a(%rip),%rax
cmp    $0x1,%edi
cmove  %rax,%r8
lea    0xdd2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1412 <main+0x2f2>
cmpl   $0x0,-0x8(%rbp)
jne    12d6 <main+0x1b6>
cmpl   $0x0,-0xc(%rbp)
jle    12d6 <main+0x1b6>
cmpl   $0x0,-0x10(%rbp)
jle    12d6 <main+0x1b6>
mov    -0x10(%rbp),%esi
mov    -0x10(%rbp),%ecx
lea    0xdb0(%rip),%rdx
lea    0xda4(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rdx
mov    -0xc(%rbp),%ecx
mov    -0xc(%rbp),%edi
lea    0xda2(%rip),%r8
lea    0xd94(%rip),%rax
cmp    $0x1,%edi
cmove  %rax,%r8
lea    0xd6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    140d <main+0x2ed>
cmpl   $0x0,-0xc(%rbp)
jne    133d <main+0x21d>
cmpl   $0x0,-0x8(%rbp)
jle    133d <main+0x21d>
cmpl   $0x0,-0x10(%rbp)
jle    133d <main+0x21d>
mov    -0x10(%rbp),%esi
mov    -0x10(%rbp),%ecx
lea    0xd49(%rip),%rdx
lea    0xd3d(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rdx
mov    -0x8(%rbp),%ecx
mov    -0x8(%rbp),%edi
lea    0xd4a(%rip),%r8
lea    0xd3c(%rip),%rax
cmp    $0x1,%edi
cmove  %rax,%r8
lea    0xd04(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1408 <main+0x2e8>
cmpl   $0x0,-0xc(%rbp)
jle    1389 <main+0x269>
cmpl   $0x0,-0x8(%rbp)
jne    1389 <main+0x269>
cmpl   $0x0,-0x10(%rbp)
jne    1389 <main+0x269>
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%ecx
lea    0xcef(%rip),%rdx
lea    0xce1(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rdx
lea    0xcc2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1403 <main+0x2e3>
cmpl   $0x0,-0x10(%rbp)
jle    13d5 <main+0x2b5>
cmpl   $0x0,-0x8(%rbp)
jne    13d5 <main+0x2b5>
cmpl   $0x0,-0xc(%rbp)
jne    13d5 <main+0x2b5>
mov    -0x10(%rbp),%esi
mov    -0x10(%rbp),%ecx
lea    0xc96(%rip),%rdx
lea    0xc8a(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rdx
lea    0xc76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13fe <main+0x2de>
mov    -0x8(%rbp),%esi
mov    -0x8(%rbp),%ecx
lea    0xc84(%rip),%rdx
lea    0xc76(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rdx
lea    0xc48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1403 <main+0x2e3>
jmp    1408 <main+0x2e8>
jmp    140d <main+0x2ed>
jmp    1412 <main+0x2f2>
jmp    1417 <main+0x2f7>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%ecx
lea    0xc42(%rip),%rdx
lea    0xc34(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rdx
lea    0xc35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2b99(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
lea    0x14(%rsp),%rsi
call   1040 <scanf@plt>
movslq 0x14(%rsp),%rax
imul   $0xffffffff88888889,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x3c,%ecx,%edx
mov    %eax,%r9d
sub    %edx,%r9d
movslq %ecx,%rcx
imul   $0xffffffff88888889,%rcx,%rdx
shr    $0x20,%rdx
add    %ecx,%edx
mov    %edx,%esi
shr    $0x1f,%esi
sar    $0x5,%edx
add    %esi,%edx
imul   $0x3c,%edx,%edx
sub    %edx,%ecx
imul   $0xffffffff91a2b3c5,%rax,%rsi
shr    $0x20,%rsi
add    %eax,%esi
mov    %esi,%edx
shr    $0x1f,%edx
sar    $0xb,%esi
add    %edx,%esi
test   %r9d,%r9d
jle    120c <main+0xec>
test   %ecx,%ecx
jle    120c <main+0xec>
cmp    $0xe10,%eax
jl     120c <main+0xec>
add    $0xfffff1f0,%eax
cmp    $0xe10,%eax
lea    0xe86(%rip),%rax
lea    0xe84(%rip),%rdx
cmovb  %rax,%rdx
cmp    $0x1,%ecx
lea    0xe7c(%rip),%rax
lea    0xe7c(%rip),%r8
cmove  %rax,%r8
cmp    $0x1,%r9d
lea    0xe75(%rip),%rax
lea    0xe75(%rip),%rdi
cmove  %rax,%rdi
mov    %rdi,(%rsp)
lea    0xe2e(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    12ab <main+0x18b>
lea    0xe0f(%rax),%edx
cmp    $0x1c1e,%edx
ja     125c <main+0x13c>
test   %r9d,%r9d
jle    125c <main+0x13c>
test   %ecx,%ecx
jle    125c <main+0x13c>
cmp    $0x1,%ecx
lea    0xe23(%rip),%rax
lea    0xe23(%rip),%rdx
cmove  %rax,%rdx
cmp    $0x1,%r9d
lea    0xe1c(%rip),%rax
lea    0xe1c(%rip),%r8
cmove  %rax,%r8
lea    0xde0(%rip),%rdi
mov    %ecx,%esi
mov    %r9d,%ecx
jmp    12a4 <main+0x184>
test   %r9d,%r9d
jne    12e0 <main+0x1c0>
test   %ecx,%ecx
jle    12e0 <main+0x1c0>
cmp    $0xe10,%eax
jl     12e0 <main+0x1c0>
add    $0xfffff1f0,%eax
cmp    $0xe10,%eax
lea    0xdc8(%rip),%rax
lea    0xdc6(%rip),%rdx
cmovb  %rax,%rdx
cmp    $0x1,%ecx
lea    0xdbe(%rip),%rax
lea    0xdbe(%rip),%r8
cmove  %rax,%r8
lea    0xd91(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x14(%rsp),%esi
cmp    $0x1,%esi
lea    0xda6(%rip),%rax
lea    0xda6(%rip),%rdx
cmove  %rax,%rdx
lea    0xda3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2d07(%rip),%rax
mov    (%rax),%eax
add    $0x18,%rsp
ret
test   %ecx,%ecx
jne    132e <main+0x20e>
test   %r9d,%r9d
jle    132e <main+0x20e>
cmp    $0xe10,%eax
jl     132e <main+0x20e>
add    $0xfffff1f0,%eax
cmp    $0xe10,%eax
lea    0xd44(%rip),%rax
lea    0xd42(%rip),%rdx
cmovb  %rax,%rdx
cmp    $0x1,%r9d
lea    0xd48(%rip),%rax
lea    0xd48(%rip),%r8
cmove  %rax,%r8
lea    0xd0c(%rip),%rdi
jmp    1257 <main+0x137>
test   %ecx,%ecx
jle    135f <main+0x23f>
test   %r9d,%r9d
jne    135f <main+0x23f>
cmp    $0x1c1e,%edx
ja     135f <main+0x23f>
cmp    $0x1,%ecx
lea    0xd07(%rip),%rax
lea    0xd07(%rip),%rdx
cmove  %rax,%rdx
lea    0xce4(%rip),%rdi
mov    %ecx,%esi
jmp    13b4 <main+0x294>
cmp    $0xe10,%eax
jl     1394 <main+0x274>
test   %r9d,%r9d
jne    1394 <main+0x274>
test   %ecx,%ecx
jne    1394 <main+0x274>
add    $0xfffff1f0,%eax
cmp    $0xe10,%eax
lea    0xcc5(%rip),%rax
lea    0xcc3(%rip),%rdx
cmovb  %rax,%rdx
lea    0xcad(%rip),%rdi
jmp    13b4 <main+0x294>
cmp    $0x1,%r9d
lea    0xcc0(%rip),%rax
lea    0xcc0(%rip),%rdx
cmove  %rax,%rdx
lea    0xc8e(%rip),%rdi
mov    %r9d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    12ab <main+0x18b>

LLVM IR (-O0):
@.str = [42 x i8] c"Please only input non-negative integers: \00"
@.str.1 = [4 x i8] c" %d\00"
@.str.2 = [23 x i8] c"%d %s, %d %s and %d %s\00"
@.str.3 = [5 x i8] c"hour\00"
@.str.4 = [6 x i8] c"hours\00"
@.str.5 = [7 x i8] c"minute\00"
@.str.6 = [8 x i8] c"minutes\00"
@.str.7 = [7 x i8] c"second\00"
@.str.8 = [8 x i8] c"seconds\00"
@.str.9 = [16 x i8] c"%d %s and %d %s\00"
@.str.10 = [6 x i8] c"%d %s\00"
@.str.11 = [21 x i8] c" is equal to %d %s.\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%8 = load i32, i32* %5
%9 = srem i32 %8, 60
store i32 %9, i32* %2
%10 = load i32, i32* %5
%11 = sdiv i32 %10, 60
%12 = srem i32 %11, 60
store i32 %12, i32* %3
%13 = load i32, i32* %5
%14 = sdiv i32 %13, 3600
store i32 %14, i32* %4
%15 = load i32, i32* %2
%16 = icmp sgt i32 %15, 0
br i1 %16, label %17, label %40
17: ; preds = %0
%18 = load i32, i32* %3
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %40
20: ; preds = %17
%21 = load i32, i32* %4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %40
23: ; preds = %20
%24 = load i32, i32* %4
%25 = load i32, i32* %4
%26 = icmp eq i32 %25, 1
%27 = zext i1 %26 to i64
%28 = select i1 %26, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%29 = load i32, i32* %3
%30 = load i32, i32* %3
%31 = icmp eq i32 %30, 1
%32 = zext i1 %31 to i64
%33 = select i1 %31, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0)
%34 = load i32, i32* %2
%35 = load i32, i32* %2
%36 = icmp eq i32 %35, 1
%37 = zext i1 %36 to i64
%38 = select i1 %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %24, i8* %28, i32 %29, i8* %33, i32 %34, i8* %38)
br label %147
40: ; preds = %20, %17, %0
%41 = load i32, i32* %4
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %61
43: ; preds = %40
%44 = load i32, i32* %2
%45 = icmp sgt i32 %44, 0
br i1 %45, label %46, label %61
46: ; preds = %43
%47 = load i32, i32* %3
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %61
49: ; preds = %46
%50 = load i32, i32* %3
%51 = load i32, i32* %3
%52 = icmp eq i32 %51, 1
%53 = zext i1 %52 to i64
%54 = select i1 %52, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0)
%55 = load i32, i32* %2
%56 = load i32, i32* %2
%57 = icmp eq i32 %56, 1
%58 = zext i1 %57 to i64
%59 = select i1 %57, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0)
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %50, i8* %54, i32 %55, i8* %59)
br label %146
61: ; preds = %46, %43, %40
%62 = load i32, i32* %2
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %82
64: ; preds = %61
%65 = load i32, i32* %3
%66 = icmp sgt i32 %65, 0
br i1 %66, label %67, label %82
67: ; preds = %64
%68 = load i32, i32* %4
%69 = icmp sgt i32 %68, 0
br i1 %69, label %70, label %82
70: ; preds = %67
%71 = load i32, i32* %4
%72 = load i32, i32* %4
%73 = icmp eq i32 %72, 1
%74 = zext i1 %73 to i64
%75 = select i1 %73, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%76 = load i32, i32* %3
%77 = load i32, i32* %3
%78 = icmp eq i32 %77, 1
%79 = zext i1 %78 to i64
%80 = select i1 %78, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0)
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %71, i8* %75, i32 %76, i8* %80)
br label %145
82: ; preds = %67, %64, %61
%83 = load i32, i32* %3
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %103
85: ; preds = %82
%86 = load i32, i32* %2
%87 = icmp sgt i32 %86, 0
br i1 %87, label %88, label %103
88: ; preds = %85
%89 = load i32, i32* %4
%90 = icmp sgt i32 %89, 0
br i1 %90, label %91, label %103
91: ; preds = %88
%92 = load i32, i32* %4
%93 = load i32, i32* %4
%94 = icmp eq i32 %93, 1
%95 = zext i1 %94 to i64
%96 = select i1 %94, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%97 = load i32, i32* %2
%98 = load i32, i32* %2
%99 = icmp eq i32 %98, 1
%100 = zext i1 %99 to i64
%101 = select i1 %99, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0)
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %92, i8* %96, i32 %97, i8* %101)
br label %144
103: ; preds = %88, %85, %82
%104 = load i32, i32* %3
%105 = icmp sgt i32 %104, 0
br i1 %105, label %106, label %119
106: ; preds = %103
%107 = load i32, i32* %2
%108 = icmp eq i32 %107, 0
br i1 %108, label %109, label %119
109: ; preds = %106
%110 = load i32, i32* %4
%111 = icmp eq i32 %110, 0
br i1 %111, label %112, label %119
112: ; preds = %109
%113 = load i32, i32* %3
%114 = load i32, i32* %3
%115 = icmp eq i32 %114, 1
%116 = zext i1 %115 to i64
%117 = select i1 %115, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0)
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %113, i8* %117)
br label %143
119: ; preds = %109, %106, %103
%120 = load i32, i32* %4
%121 = icmp sgt i32 %120, 0
br i1 %121, label %122, label %135
122: ; preds = %119
%123 = load i32, i32* %2
%124 = icmp eq i32 %123, 0
br i1 %124, label %125, label %135
125: ; preds = %122
%126 = load i32, i32* %3
%127 = icmp eq i32 %126, 0
br i1 %127, label %128, label %135
128: ; preds = %125
%129 = load i32, i32* %4
%130 = load i32, i32* %4
%131 = icmp eq i32 %130, 1
%132 = zext i1 %131 to i64
%133 = select i1 %131, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %129, i8* %133)
br label %142
135: ; preds = %125, %122, %119
%136 = load i32, i32* %2
%137 = load i32, i32* %2
%138 = icmp eq i32 %137, 1
%139 = zext i1 %138 to i64
%140 = select i1 %138, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0)
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %136, i8* %140)
br label %142
142: ; preds = %135, %128
br label %143
143: ; preds = %142, %112
br label %144
144: ; preds = %143, %91
br label %145
145: ; preds = %144, %70
br label %146
146: ; preds = %145, %49
br label %147
147: ; preds = %146, %23
%148 = load i32, i32* %5
%149 = load i32, i32* %5
%150 = icmp eq i32 %149, 1
%151 = zext i1 %150 to i64
%152 = select i1 %150, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0)
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 %148, i8* %152)
%154 = load i32, i32* @EXIT_SUCCESS
ret i32 %154
}

LLVM IR (-O2):
@.str = [42 x i8] c"Please only input non-negative integers: \00"
@.str.1 = [4 x i8] c" %d\00"
@.str.2 = [23 x i8] c"%d %s, %d %s and %d %s\00"
@.str.3 = [5 x i8] c"hour\00"
@.str.4 = [6 x i8] c"hours\00"
@.str.5 = [7 x i8] c"minute\00"
@.str.6 = [8 x i8] c"minutes\00"
@.str.7 = [7 x i8] c"second\00"
@.str.8 = [8 x i8] c"seconds\00"
@.str.9 = [16 x i8] c"%d %s and %d %s\00"
@.str.10 = [6 x i8] c"%d %s\00"
@.str.11 = [21 x i8] c" is equal to %d %s.\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = srem i32 %5, 60
%7 = sdiv i32 %5, 60
%8 = srem i32 %7, 60
%9 = sdiv i32 %5, 3600
%10 = icmp sgt i32 %6, 0
%11 = icmp sgt i32 %8, 0
%12 = select i1 %10, i1 %11, i1 false
%13 = icmp sgt i32 %5, 3599
%14 = select i1 %12, i1 %13, i1 false
br i1 %14, label %15, label %24
15: ; preds = %0
%16 = add nsw i32 %5, -3600
%17 = icmp ult i32 %16, 3600
%18 = select i1 %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%19 = icmp eq i32 %8, 1
%20 = select i1 %19, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0)
%21 = icmp eq i32 %6, 1
%22 = select i1 %21, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %9, i8* %18, i32 %8, i8* %20, i32 %6, i8* %22)
br label %76
24: ; preds = %0
%25 = add i32 %5, 3599
%26 = icmp ult i32 %25, 7199
%27 = and i1 %26, %10
%28 = select i1 %27, i1 %11, i1 false
br i1 %28, label %29, label %35
29: ; preds = %24
%30 = icmp eq i32 %8, 1
%31 = select i1 %30, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0)
%32 = icmp eq i32 %6, 1
%33 = select i1 %32, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %8, i8* %31, i32 %6, i8* %33)
br label %76
35: ; preds = %24
%36 = icmp eq i32 %6, 0
%37 = select i1 %36, i1 %11, i1 false
%38 = select i1 %37, i1 %13, i1 false
br i1 %38, label %39, label %46
39: ; preds = %35
%40 = add nsw i32 %5, -3600
%41 = icmp ult i32 %40, 3600
%42 = select i1 %41, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%43 = icmp eq i32 %8, 1
%44 = select i1 %43, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %9, i8* %42, i32 %8, i8* %44)
br label %76
46: ; preds = %35
%47 = icmp eq i32 %8, 0
%48 = select i1 %47, i1 %10, i1 false
%49 = select i1 %48, i1 %13, i1 false
br i1 %49, label %50, label %57
50: ; preds = %46
%51 = add nsw i32 %5, -3600
%52 = icmp ult i32 %51, 3600
%53 = select i1 %52, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%54 = icmp eq i32 %6, 1
%55 = select i1 %54, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %9, i8* %53, i32 %6, i8* %55)
br label %76
57: ; preds = %46
%58 = select i1 %11, i1 %36, i1 false
%59 = select i1 %58, i1 %26, i1 false
br i1 %59, label %60, label %64
60: ; preds = %57
%61 = icmp eq i32 %8, 1
%62 = select i1 %61, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0)
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %8, i8* %62)
br label %76
64: ; preds = %57
%65 = and i1 %13, %36
%66 = select i1 %65, i1 %47, i1 false
br i1 %66, label %67, label %72
67: ; preds = %64
%68 = add nsw i32 %5, -3600
%69 = icmp ult i32 %68, 3600
%70 = select i1 %69, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %9, i8* %70)
br label %76
72: ; preds = %64
%73 = icmp eq i32 %6, 1
%74 = select i1 %73, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0)
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %6, i8* %74)
br label %76
76: ; preds = %29, %50, %67, %72, %60, %39, %15
%77 = load i32, i32* %1
%78 = icmp eq i32 %77, 1
%79 = select i1 %78, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0)
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 %77, i8* %79)
%81 = load i32, i32* @EXIT_SUCCESS
ret i32 %81
}