#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 */
scalar_t__ malloc(int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ strcat(char *, char *);
char *timeToString(int);
char *secondsToDate(int time) {
  int year = 1970;
  int month = 1;
  int day = 1;
  int hour = 1;
  int minute = 0;
  int second = 0;
  while (time > 31449600) {
    year++;
    time -= 31449600;
  }
  while (time > 2419200) {
    month++;
    time -= 2419200;
  }
  while (time > 86400) {
    day++;
    time -= 86400;
  }
  while (time > 3600) {
    hour++;
    time -= 3600;
  }
  while (time > 60) {
    minute++;
    time -= 60;
  }
  while (time > 0) {
    second++;
    time -= 1;
  }
  int total = 4 + 1 + 2 + 1 + 2 + 1 + 2 + 1 + 2 + 1 + 2 + 1;
  char *res = (char *)malloc(sizeof(char) * (total));
  memset(res, 0, total);
  strcat(res, timeToString(year));
  strcat(res, "/");
  if (day < 10)
    strcat(res, "0");
  strcat(res, timeToString(day));
  strcat(res, "/");
  if (month < 10)
    strcat(res, "0");
  strcat(res, timeToString(month));
  strcat(res, " ");
  if (hour < 10)
    strcat(res, "0");
  strcat(res, timeToString(hour));
  strcat(res, ":");
  if (minute < 10)
    strcat(res, "0");
  strcat(res, timeToString(minute));
  strcat(res, ":");
  if (second < 10)
    strcat(res, "0");
  strcat(res, timeToString(second));
  return res;
}


x86 assembly (clang, -O0):
<secondsToDate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x7b2,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x1dfe200,-0x4(%rbp)
jle    119b <secondsToDate+0x5b>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x1dfe200,%eax
mov    %eax,-0x4(%rbp)
jmp    1175 <secondsToDate+0x35>
jmp    11a0 <secondsToDate+0x60>
cmpl   $0x24ea00,-0x4(%rbp)
jle    11c6 <secondsToDate+0x86>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x24ea00,%eax
mov    %eax,-0x4(%rbp)
jmp    11a0 <secondsToDate+0x60>
jmp    11cb <secondsToDate+0x8b>
cmpl   $0x15180,-0x4(%rbp)
jle    11f1 <secondsToDate+0xb1>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x15180,%eax
mov    %eax,-0x4(%rbp)
jmp    11cb <secondsToDate+0x8b>
jmp    11f6 <secondsToDate+0xb6>
cmpl   $0xe10,-0x4(%rbp)
jle    121c <secondsToDate+0xdc>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
sub    $0xe10,%eax
mov    %eax,-0x4(%rbp)
jmp    11f6 <secondsToDate+0xb6>
jmp    1221 <secondsToDate+0xe1>
cmpl   $0x3c,-0x4(%rbp)
jle    1242 <secondsToDate+0x102>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x3c,%eax
mov    %eax,-0x4(%rbp)
jmp    1221 <secondsToDate+0xe1>
jmp    1247 <secondsToDate+0x107>
cmpl   $0x0,-0x4(%rbp)
jle    1268 <secondsToDate+0x128>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1247 <secondsToDate+0x107>
movl   $0x14,-0x20(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%edx
xor    %esi,%esi
call   1040 <memset@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <timeToString@plt>
mov    -0x30(%rbp),%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    0xd49(%rip),%rsi
call   1060 <strcat@plt>
cmpl   $0xa,-0x10(%rbp)
jge    12d6 <secondsToDate+0x196>
mov    -0x28(%rbp),%rdi
lea    0xd31(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%edi
call   1030 <timeToString@plt>
mov    -0x38(%rbp),%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    0xd03(%rip),%rsi
call   1060 <strcat@plt>
cmpl   $0xa,-0xc(%rbp)
jge    131c <secondsToDate+0x1dc>
mov    -0x28(%rbp),%rdi
lea    0xceb(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <timeToString@plt>
mov    -0x40(%rbp),%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    0xcc1(%rip),%rsi
call   1060 <strcat@plt>
cmpl   $0xa,-0x14(%rbp)
jge    1362 <secondsToDate+0x222>
mov    -0x28(%rbp),%rdi
lea    0xca5(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <timeToString@plt>
mov    -0x48(%rbp),%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    0xc7d(%rip),%rsi
call   1060 <strcat@plt>
cmpl   $0xa,-0x18(%rbp)
jge    13a8 <secondsToDate+0x268>
mov    -0x28(%rbp),%rdi
lea    0xc5f(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%edi
call   1030 <timeToString@plt>
mov    -0x50(%rbp),%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    0xc37(%rip),%rsi
call   1060 <strcat@plt>
cmpl   $0xa,-0x1c(%rbp)
jge    13ee <secondsToDate+0x2ae>
mov    -0x28(%rbp),%rdi
lea    0xc19(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x1c(%rbp),%edi
call   1030 <timeToString@plt>
mov    -0x58(%rbp),%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
mov    -0x28(%rbp),%rax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<secondsToDate>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edi,%r12d
mov    $0x7b2,%r14d
cmp    $0x1dfe201,%edi
jl     1199 <secondsToDate+0x59>
cmp    $0x3bfc400,%r12d
mov    $0x3bfc400,%eax
cmovl  %r12d,%eax
neg    %eax
add    %r12d,%eax
add    $0x1dfe1ff,%eax
imul   $0x444888cd,%rax,%r14
shr    $0x37,%r14
imul   $0xfe201e00,%r14d,%eax
add    $0x7b3,%r14d
add    %eax,%r12d
add    $0xfe201e00,%r12d
mov    $0x1,%ebx
cmp    $0x24ea01,%r12d
jl     11ee <secondsToDate+0xae>
cmp    $0x49d400,%r12d
mov    $0x49d400,%eax
cmovl  %r12d,%eax
neg    %eax
add    %r12d,%eax
add    $0x24e9ff,%eax
imul   $0x6ef5de4d,%rax,%rcx
shr    $0x34,%rcx
imul   $0xffdb1600,%ecx,%eax
add    $0x2,%ecx
mov    %rcx,(%rsp)
add    %eax,%r12d
add    $0xffdb1600,%r12d
cmp    $0x15181,%r12d
jge    1200 <secondsToDate+0xc0>
jmp    123a <secondsToDate+0xfa>
mov    $0x1,%eax
mov    %rax,(%rsp)
cmp    $0x15181,%r12d
jl     123a <secondsToDate+0xfa>
cmp    $0x2a300,%r12d
mov    $0x2a300,%eax
cmovl  %r12d,%eax
neg    %eax
add    %r12d,%eax
add    $0x1517f,%eax
mov    $0xc22e4507,%ebx
imul   %rax,%rbx
shr    $0x30,%rbx
imul   $0xfffeae80,%ebx,%eax
add    $0x2,%ebx
add    %eax,%r12d
add    $0xfffeae80,%r12d
mov    $0x1,%r13d
cmp    $0xe11,%r12d
jl     1286 <secondsToDate+0x146>
cmp    $0x1c20,%r12d
mov    $0x1c20,%eax
cmovl  %r12d,%eax
neg    %eax
add    %r12d,%eax
add    $0xe0f,%eax
mov    $0x91a2b3c5,%r13d
imul   %rax,%r13
shr    $0x2b,%r13
imul   $0xfffff1f0,%r13d,%eax
add    $0x2,%r13d
add    %eax,%r12d
add    $0xfffff1f0,%r12d
xor    %eax,%eax
cmp    $0x3d,%r12d
jl     12c2 <secondsToDate+0x182>
cmp    $0x78,%r12d
mov    $0x78,%ecx
cmovl  %r12d,%ecx
neg    %ecx
add    %r12d,%ecx
add    $0x3b,%ecx
mov    $0x88888889,%r15d
imul   %rcx,%r15
shr    $0x25,%r15
imul   $0xffffffc4,%r15d,%ecx
add    $0x1,%r15d
add    %ecx,%r12d
add    $0xffffffc4,%r12d
jmp    12c5 <secondsToDate+0x185>
xor    %r15d,%r15d
test   %r12d,%r12d
cmovs  %eax,%r12d
mov    $0x14,%edi
call   1050 <malloc@plt>
mov    %rax,%rbp
mov    %rax,%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1040 <memset@plt>
mov    %r14d,%edi
call   1030 <timeToString@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
lea    0xcfe(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcat@plt>
cmp    $0x9,%ebx
ja     131e <secondsToDate+0x1de>
lea    0xcec(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcat@plt>
mov    %ebx,%edi
call   1030 <timeToString@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
lea    0xcc9(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcat@plt>
mov    (%rsp),%rbx
cmp    $0x9,%ebx
ja     1357 <secondsToDate+0x217>
lea    0xcb3(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcat@plt>
mov    %ebx,%edi
call   1030 <timeToString@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
lea    0xc94(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcat@plt>
cmp    $0x9,%r13d
ja     138d <secondsToDate+0x24d>
lea    0xc7d(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcat@plt>
mov    %r13d,%edi
call   1030 <timeToString@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
lea    0xc5f(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcat@plt>
cmp    $0x9,%r15d
ja     13c4 <secondsToDate+0x284>
lea    0xc46(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcat@plt>
mov    %r15d,%edi
call   1030 <timeToString@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
lea    0xc28(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcat@plt>
cmp    $0x9,%r12d
ja     13fb <secondsToDate+0x2bb>
lea    0xc0f(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcat@plt>
mov    %r12d,%edi
call   1030 <timeToString@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
mov    %rbp,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"/\00"
@.str.1 = [2 x i8] c"0\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [2 x i8] c":\00"
define i8* @secondsToDate(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
store i32 %0, i32* %2
store i32 1970, i32* %3
store i32 1, i32* %4
store i32 1, i32* %5
store i32 1, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
br label %11
11: ; preds = %14, %1
%12 = load i32, i32* %2
%13 = icmp sgt i32 %12, 31449600
br i1 %13, label %14, label %19
14: ; preds = %11
%15 = load i32, i32* %3
%16 = add nsw i32 %15, 1
store i32 %16, i32* %3
%17 = load i32, i32* %2
%18 = sub nsw i32 %17, 31449600
store i32 %18, i32* %2
br label %11
19: ; preds = %11
br label %20
20: ; preds = %23, %19
%21 = load i32, i32* %2
%22 = icmp sgt i32 %21, 2419200
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = load i32, i32* %4
%25 = add nsw i32 %24, 1
store i32 %25, i32* %4
%26 = load i32, i32* %2
%27 = sub nsw i32 %26, 2419200
store i32 %27, i32* %2
br label %20
28: ; preds = %20
br label %29
29: ; preds = %32, %28
%30 = load i32, i32* %2
%31 = icmp sgt i32 %30, 86400
br i1 %31, label %32, label %37
32: ; preds = %29
%33 = load i32, i32* %5
%34 = add nsw i32 %33, 1
store i32 %34, i32* %5
%35 = load i32, i32* %2
%36 = sub nsw i32 %35, 86400
store i32 %36, i32* %2
br label %29
37: ; preds = %29
br label %38
38: ; preds = %41, %37
%39 = load i32, i32* %2
%40 = icmp sgt i32 %39, 3600
br i1 %40, label %41, label %46
41: ; preds = %38
%42 = load i32, i32* %6
%43 = add nsw i32 %42, 1
store i32 %43, i32* %6
%44 = load i32, i32* %2
%45 = sub nsw i32 %44, 3600
store i32 %45, i32* %2
br label %38
46: ; preds = %38
br label %47
47: ; preds = %50, %46
%48 = load i32, i32* %2
%49 = icmp sgt i32 %48, 60
br i1 %49, label %50, label %55
50: ; preds = %47
%51 = load i32, i32* %7
%52 = add nsw i32 %51, 1
store i32 %52, i32* %7
%53 = load i32, i32* %2
%54 = sub nsw i32 %53, 60
store i32 %54, i32* %2
br label %47
55: ; preds = %47
br label %56
56: ; preds = %59, %55
%57 = load i32, i32* %2
%58 = icmp sgt i32 %57, 0
br i1 %58, label %59, label %64
59: ; preds = %56
%60 = load i32, i32* %8
%61 = add nsw i32 %60, 1
store i32 %61, i32* %8
%62 = load i32, i32* %2
%63 = sub nsw i32 %62, 1
store i32 %63, i32* %2
br label %56
64: ; preds = %56
store i32 20, i32* %9
%65 = load i32, i32* %9
%66 = sext i32 %65 to i64
%67 = mul i64 1, %66
%68 = trunc i64 %67 to i32
%69 = call i64 @malloc(i32 %68)
%70 = inttoptr i64 %69 to i8*
store i8* %70, i8** %10
%71 = load i8*, i8** %10
%72 = load i32, i32* %9
%73 = call i32 @memset(i8* %71, i32 0, i32 %72)
%74 = load i8*, i8** %10
%75 = load i32, i32* %3
%76 = call i8* @timeToString(i32 %75)
%77 = call i32 @strcat(i8* %74, i8* %76)
%78 = load i8*, i8** %10
%79 = call i32 @strcat(i8* %78, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%80 = load i32, i32* %5
%81 = icmp slt i32 %80, 10
br i1 %81, label %82, label %85
82: ; preds = %64
%83 = load i8*, i8** %10
%84 = call i32 @strcat(i8* %83, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %85
85: ; preds = %82, %64
%86 = load i8*, i8** %10
%87 = load i32, i32* %5
%88 = call i8* @timeToString(i32 %87)
%89 = call i32 @strcat(i8* %86, i8* %88)
%90 = load i8*, i8** %10
%91 = call i32 @strcat(i8* %90, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%92 = load i32, i32* %4
%93 = icmp slt i32 %92, 10
br i1 %93, label %94, label %97
94: ; preds = %85
%95 = load i8*, i8** %10
%96 = call i32 @strcat(i8* %95, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %97
97: ; preds = %94, %85
%98 = load i8*, i8** %10
%99 = load i32, i32* %4
%100 = call i8* @timeToString(i32 %99)
%101 = call i32 @strcat(i8* %98, i8* %100)
%102 = load i8*, i8** %10
%103 = call i32 @strcat(i8* %102, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%104 = load i32, i32* %6
%105 = icmp slt i32 %104, 10
br i1 %105, label %106, label %109
106: ; preds = %97
%107 = load i8*, i8** %10
%108 = call i32 @strcat(i8* %107, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %109
109: ; preds = %106, %97
%110 = load i8*, i8** %10
%111 = load i32, i32* %6
%112 = call i8* @timeToString(i32 %111)
%113 = call i32 @strcat(i8* %110, i8* %112)
%114 = load i8*, i8** %10
%115 = call i32 @strcat(i8* %114, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%116 = load i32, i32* %7
%117 = icmp slt i32 %116, 10
br i1 %117, label %118, label %121
118: ; preds = %109
%119 = load i8*, i8** %10
%120 = call i32 @strcat(i8* %119, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %121
121: ; preds = %118, %109
%122 = load i8*, i8** %10
%123 = load i32, i32* %7
%124 = call i8* @timeToString(i32 %123)
%125 = call i32 @strcat(i8* %122, i8* %124)
%126 = load i8*, i8** %10
%127 = call i32 @strcat(i8* %126, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%128 = load i32, i32* %8
%129 = icmp slt i32 %128, 10
br i1 %129, label %130, label %133
130: ; preds = %121
%131 = load i8*, i8** %10
%132 = call i32 @strcat(i8* %131, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %133
133: ; preds = %130, %121
%134 = load i8*, i8** %10
%135 = load i32, i32* %8
%136 = call i8* @timeToString(i32 %135)
%137 = call i32 @strcat(i8* %134, i8* %136)
%138 = load i8*, i8** %10
ret i8* %138
}

LLVM IR (-O2):
@.str = [2 x i8] c"/\00"
@.str.1 = [2 x i8] c"0\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [2 x i8] c":\00"
define i8* @secondsToDate(i32 %0) {
%2 = icmp sgt i32 %0, 31449600
br i1 %2, label %3, label %12
3: ; preds = %1
%4 = add nuw i32 %0, 31449599
%5 = call i32 @llvm.smin.i32(i32 %0, i32 62899200)
%6 = sub nuw i32 %4, %5
%7 = udiv i32 %6, 31449600
%8 = add nuw nsw i32 %7, 1971
%9 = mul nsw i32 %7, -31449600
%10 = add nsw i32 %0, -31449600
%11 = add nsw i32 %9, %10
br label %12
12: ; preds = %3, %1
%13 = phi i32 [ 1970, %1 ], [ %8, %3 ]
%14 = phi i32 [ %0, %1 ], [ %11, %3 ]
%15 = icmp sgt i32 %14, 2419200
br i1 %15, label %16, label %25
16: ; preds = %12
%17 = add nuw nsw i32 %14, 2419199
%18 = call i32 @llvm.smin.i32(i32 %14, i32 4838400)
%19 = sub nuw nsw i32 %17, %18
%20 = udiv i32 %19, 2419200
%21 = add nuw nsw i32 %20, 2
%22 = mul nsw i32 %20, -2419200
%23 = add nsw i32 %14, -2419200
%24 = add nsw i32 %22, %23
br label %25
25: ; preds = %16, %12
%26 = phi i32 [ 1, %12 ], [ %21, %16 ]
%27 = phi i32 [ %14, %12 ], [ %24, %16 ]
%28 = icmp sgt i32 %27, 86400
br i1 %28, label %29, label %38
29: ; preds = %25
%30 = add nuw nsw i32 %27, 86399
%31 = call i32 @llvm.smin.i32(i32 %27, i32 172800)
%32 = sub nuw nsw i32 %30, %31
%33 = udiv i32 %32, 86400
%34 = add nuw nsw i32 %33, 2
%35 = mul nsw i32 %33, -86400
%36 = add nsw i32 %27, -86400
%37 = add nsw i32 %35, %36
br label %38
38: ; preds = %29, %25
%39 = phi i32 [ 1, %25 ], [ %34, %29 ]
%40 = phi i32 [ %27, %25 ], [ %37, %29 ]
%41 = icmp sgt i32 %40, 3600
br i1 %41, label %42, label %51
42: ; preds = %38
%43 = add nuw nsw i32 %40, 3599
%44 = call i32 @llvm.smin.i32(i32 %40, i32 7200)
%45 = sub nuw nsw i32 %43, %44
%46 = udiv i32 %45, 3600
%47 = add nuw nsw i32 %46, 2
%48 = mul nsw i32 %46, -3600
%49 = add nsw i32 %40, -3600
%50 = add nsw i32 %48, %49
br label %51
51: ; preds = %42, %38
%52 = phi i32 [ 1, %38 ], [ %47, %42 ]
%53 = phi i32 [ %40, %38 ], [ %50, %42 ]
%54 = icmp sgt i32 %53, 60
br i1 %54, label %55, label %64
55: ; preds = %51
%56 = add nuw nsw i32 %53, 59
%57 = call i32 @llvm.smin.i32(i32 %53, i32 120)
%58 = sub nuw nsw i32 %56, %57
%59 = udiv i32 %58, 60
%60 = add nuw nsw i32 %59, 1
%61 = mul nsw i32 %59, -60
%62 = add nsw i32 %53, -60
%63 = add nsw i32 %61, %62
br label %64
64: ; preds = %55, %51
%65 = phi i32 [ 0, %51 ], [ %60, %55 ]
%66 = phi i32 [ %53, %51 ], [ %63, %55 ]
%67 = icmp sgt i32 %66, 0
%68 = select i1 %67, i32 %66, i32 0
%69 = tail call i64 @malloc(i32 20)
%70 = inttoptr i64 %69 to i8*
%71 = tail call i32 @memset(i8* %70, i32 0, i32 20)
%72 = tail call i8* @timeToString(i32 %13)
%73 = tail call i32 @strcat(i8* %70, i8* %72)
%74 = tail call i32 @strcat(i8* %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%75 = icmp ult i32 %39, 10
br i1 %75, label %76, label %78
76: ; preds = %64
%77 = tail call i32 @strcat(i8* %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %78
78: ; preds = %76, %64
%79 = tail call i8* @timeToString(i32 %39)
%80 = tail call i32 @strcat(i8* %70, i8* %79)
%81 = tail call i32 @strcat(i8* %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%82 = icmp ult i32 %26, 10
br i1 %82, label %83, label %85
83: ; preds = %78
%84 = tail call i32 @strcat(i8* %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %85
85: ; preds = %83, %78
%86 = tail call i8* @timeToString(i32 %26)
%87 = tail call i32 @strcat(i8* %70, i8* %86)
%88 = tail call i32 @strcat(i8* %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%89 = icmp ult i32 %52, 10
br i1 %89, label %90, label %92
90: ; preds = %85
%91 = tail call i32 @strcat(i8* %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %92
92: ; preds = %90, %85
%93 = tail call i8* @timeToString(i32 %52)
%94 = tail call i32 @strcat(i8* %70, i8* %93)
%95 = tail call i32 @strcat(i8* %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%96 = icmp ult i32 %65, 10
br i1 %96, label %97, label %99
97: ; preds = %92
%98 = tail call i32 @strcat(i8* %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %99
99: ; preds = %97, %92
%100 = tail call i8* @timeToString(i32 %65)
%101 = tail call i32 @strcat(i8* %70, i8* %100)
%102 = tail call i32 @strcat(i8* %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%103 = icmp ult i32 %68, 10
br i1 %103, label %104, label %106
104: ; preds = %99
%105 = tail call i32 @strcat(i8* %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %106
106: ; preds = %104, %99
%107 = tail call i8* @timeToString(i32 %68)
%108 = tail call i32 @strcat(i8* %70, i8* %107)
ret i8* %70
}