#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*/ sprintf(char *, char *, unsigned int, unsigned int, double,
                           unsigned int, int, int, int, int, int, int, int,
                           int);
int /*<<< orphan*/ strlen(char *);
int /*<<< orphan*/ write(int, char *, int /*<<< orphan*/);
void write_time_C(int fd, long elapsed_sec, long elapsed_usec,
                  unsigned frame_num, unsigned tot_frame, unsigned sps,
                  unsigned spf) {
  char buf[1024];
  double dclock, frame_per, total_sec;
  int eh, em, es, ems, h, m, s, ms, t;
  dclock = (((elapsed_sec + elapsed_usec * 0.000001) > (0.001))
                ? (elapsed_sec + elapsed_usec * 0.000001)
                : (0.001));
  total_sec = (frame_num > 0) ? dclock * tot_frame / frame_num : dclock;
  frame_per =
      (tot_frame > 0) ? 100.0 * (double)frame_num / (double)tot_frame : 0;
  t = (int)(total_sec * 100.0);
  ms = t % 100;
  t /= 100;
  s = t % 60;
  t /= 60;
  m = t % 60;
  t /= 60;
  h = t;
  t = (int)((total_sec - dclock) * 100.0);
  ems = t % 100;
  t /= 100;
  es = t % 60;
  t /= 60;
  em = t % 60;
  t /= 60;
  eh = t;
  sprintf(buf,
          "{%7d/%7d} %4.1f%% (%6.2fx)  "
          "re:[%02d:%02d:%02d.%02d] to:[%02d:%02d:%02d.%02d]\r",
          frame_num, tot_frame, frame_per,
          (dclock > 0) ? (frame_num * (double)spf) / ((double)sps * dclock)
                       : 0.0,
          eh, em, es, ems, h, m, s, ms);
  write(fd, buf, strlen(buf));
}


x86 assembly (clang, -O0):
<write_time_C>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x4f0,%rsp
mov    0x10(%rbp),%eax
mov    %edi,-0x24(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %ecx,-0x3c(%rbp)
mov    %r8d,-0x40(%rbp)
mov    %r9d,-0x44(%rbp)
cvtsi2sdq -0x30(%rbp),%xmm1
cvtsi2sdq -0x38(%rbp),%xmm0
movsd  0xe99(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe81(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11b2 <write_time_C+0x82>
cvtsi2sdq -0x30(%rbp),%xmm1
cvtsi2sdq -0x38(%rbp),%xmm0
movsd  0xe6b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x498(%rbp)
ff
jmp    11c7 <write_time_C+0x97>
movsd  0xe46(%rip),%xmm0
movsd  %xmm0,-0x498(%rbp)
ff
jmp    11c7 <write_time_C+0x97>
movsd  -0x498(%rbp),%xmm0
ff
movsd  %xmm0,-0x458(%rbp)
ff
cmpl   $0x0,-0x3c(%rbp)
jbe    120e <write_time_C+0xde>
movsd  -0x458(%rbp),%xmm0
ff
mov    -0x40(%rbp),%eax
cvtsi2sd %rax,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x3c(%rbp),%eax
cvtsi2sd %rax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x4a0(%rbp)
ff
jmp    121e <write_time_C+0xee>
movsd  -0x458(%rbp),%xmm0
ff
movsd  %xmm0,-0x4a0(%rbp)
ff
movsd  -0x4a0(%rbp),%xmm0
ff
movsd  %xmm0,-0x468(%rbp)
ff
cmpl   $0x0,-0x40(%rbp)
jbe    1265 <write_time_C+0x135>
mov    -0x3c(%rbp),%eax
cvtsi2sd %rax,%xmm0
movsd  0xdc8(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x40(%rbp),%eax
cvtsi2sd %rax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x4a8(%rbp)
ff
jmp    1275 <write_time_C+0x145>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x4a8(%rbp)
ff
jmp    1275 <write_time_C+0x145>
movsd  -0x4a8(%rbp),%xmm0
ff
movsd  %xmm0,-0x460(%rbp)
ff
movsd  0xd83(%rip),%xmm0
mulsd  -0x468(%rbp),%xmm0
ff
cvttsd2si %xmm0,%eax
mov    %eax,-0x48c(%rbp)
mov    -0x48c(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %edx,-0x488(%rbp)
mov    -0x48c(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,-0x48c(%rbp)
mov    -0x48c(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %edx,-0x484(%rbp)
mov    -0x48c(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %eax,-0x48c(%rbp)
mov    -0x48c(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %edx,-0x480(%rbp)
mov    -0x48c(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %eax,-0x48c(%rbp)
mov    -0x48c(%rbp),%eax
mov    %eax,-0x47c(%rbp)
movsd  -0x468(%rbp),%xmm0
ff
subsd  -0x458(%rbp),%xmm0
ff
movsd  0xcd5(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x48c(%rbp)
mov    -0x48c(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %edx,-0x478(%rbp)
mov    -0x48c(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,-0x48c(%rbp)
mov    -0x48c(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %edx,-0x474(%rbp)
mov    -0x48c(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %eax,-0x48c(%rbp)
mov    -0x48c(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %edx,-0x470(%rbp)
mov    -0x48c(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %eax,-0x48c(%rbp)
mov    -0x48c(%rbp),%eax
mov    %eax,-0x46c(%rbp)
lea    -0x450(%rbp),%rax
mov    %rax,-0x4c0(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x4b8(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0x4b4(%rbp)
movsd  -0x460(%rbp),%xmm0
ff
movsd  %xmm0,-0x4b0(%rbp)
ff
movsd  -0x458(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1447 <write_time_C+0x317>
mov    -0x3c(%rbp),%eax
cvtsi2sd %rax,%xmm0
mov    0x10(%rbp),%eax
cvtsi2sd %rax,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x44(%rbp),%eax
cvtsi2sd %rax,%xmm1
mulsd  -0x458(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x4c8(%rbp)
ff
jmp    1457 <write_time_C+0x327>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x4c8(%rbp)
ff
jmp    1457 <write_time_C+0x327>
movsd  -0x4b0(%rbp),%xmm0
ff
mov    -0x4b4(%rbp),%ecx
mov    -0x4b8(%rbp),%edx
mov    -0x4c0(%rbp),%rdi
movsd  -0x4c8(%rbp),%xmm1
ff
cvttsd2si %xmm1,%rax
mov    %eax,%r8d
mov    -0x46c(%rbp),%r9d
mov    -0x470(%rbp),%r12d
mov    -0x474(%rbp),%r15d
mov    -0x478(%rbp),%r14d
mov    -0x47c(%rbp),%ebx
mov    -0x480(%rbp),%r11d
mov    -0x484(%rbp),%r10d
mov    -0x488(%rbp),%eax
lea    0xb59(%rip),%rsi
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1050 <sprintf@plt>
mov    -0x24(%rbp),%eax
mov    %eax,-0x4d4(%rbp)
lea    -0x450(%rbp),%rax
mov    %rax,-0x4d0(%rbp)
lea    -0x450(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x4d4(%rbp),%edi
mov    -0x4d0(%rbp),%rsi
mov    %eax,%edx
call   1030 <write@plt>
add    $0x4f0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_time_C>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x418,%rsp
cvtsi2sd %rsi,%xmm0
cvtsi2sd %rdx,%xmm1
mulsd  0xead(%rip),%xmm1
addsd  %xmm0,%xmm1
maxsd  0xea9(%rip),%xmm1
mov    %r8d,%r10d
mov    %edi,0xc(%rsp)
mov    %ecx,%eax
mov    %r8d,%edx
movapd %xmm1,%xmm2
test   %ecx,%ecx
je     118b <write_time_C+0x5b>
xorps  %xmm2,%xmm2
cvtsi2sd %rdx,%xmm2
mulsd  %xmm1,%xmm2
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  %xmm0,%xmm2
xorpd  %xmm3,%xmm3
xorpd  %xmm0,%xmm0
test   %r10d,%r10d
je     11b1 <write_time_C+0x81>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
mulsd  0xe68(%rip),%xmm0
cvtsi2sd %rdx,%xmm4
divsd  %xmm4,%xmm0
movsd  0xe57(%rip),%xmm4
movapd %xmm2,%xmm5
mulsd  %xmm4,%xmm5
cvttsd2si %xmm5,%edx
subsd  %xmm1,%xmm2
mulsd  %xmm4,%xmm2
cvttsd2si %xmm2,%esi
xor    %r8d,%r8d
ucomisd %xmm3,%xmm1
jbe    120d <write_time_C+0xdd>
xorps  %xmm2,%xmm2
cvtsi2sd %rax,%xmm2
mov    0x450(%rsp),%eax
xorps  %xmm3,%xmm3
cvtsi2sd %rax,%xmm3
mulsd  %xmm2,%xmm3
mov    %r9d,%eax
xorps  %xmm2,%xmm2
cvtsi2sd %rax,%xmm2
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm3
cvttsd2si %xmm3,%r8
movslq %esi,%r12
imul   $0x57619f1,%r12,%rax
mov    %rax,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rax
sar    $0x7,%eax
add    %esi,%eax
imul   $0x5d34edef,%r12,%r9
mov    %r9,%rsi
shr    $0x3f,%rsi
shr    $0x20,%r9
sar    $0x11,%r9d
add    %esi,%r9d
movslq %eax,%r11
imul   $0xffffffff88888889,%r11,%rax
shr    $0x20,%rax
add    %r11d,%eax
mov    %eax,%esi
shr    $0x1f,%esi
sar    $0x5,%eax
add    %esi,%eax
imul   $0x3c,%eax,%eax
sub    %eax,%r11d
imul   $0x51eb851f,%r12,%rax
mov    %rax,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rax
sar    $0x5,%eax
add    %esi,%eax
movslq %eax,%r13
imul   $0xffffffff88888889,%r13,%rax
shr    $0x20,%rax
add    %r13d,%eax
mov    %eax,%esi
shr    $0x1f,%esi
sar    $0x5,%eax
add    %esi,%eax
imul   $0x3c,%eax,%eax
imul   $0x64,%r13d,%esi
sub    %eax,%r13d
sub    %esi,%r12d
movslq %edx,%rax
imul   $0x57619f1,%rax,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
sar    $0x7,%edx
add    %esi,%edx
imul   $0x5d34edef,%rax,%rbp
mov    %rbp,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rbp
sar    $0x11,%ebp
add    %esi,%ebp
movslq %edx,%rbx
imul   $0xffffffff88888889,%rbx,%rdx
shr    $0x20,%rdx
add    %ebx,%edx
mov    %edx,%esi
shr    $0x1f,%esi
sar    $0x5,%edx
add    %esi,%edx
imul   $0x3c,%edx,%edx
sub    %edx,%ebx
imul   $0x51eb851f,%rax,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
sar    $0x5,%edx
add    %esi,%edx
movslq %edx,%r14
imul   $0xffffffff88888889,%r14,%rdx
shr    $0x20,%rdx
add    %r14d,%edx
mov    %edx,%esi
shr    $0x1f,%esi
sar    $0x5,%edx
add    %esi,%edx
imul   $0x3c,%edx,%edx
imul   $0x64,%r14d,%esi
sub    %edx,%r14d
sub    %esi,%eax
sub    $0x8,%rsp
lea    0xcdf(%rip),%rsi
lea    0x18(%rsp),%r15
mov    %r15,%rdi
mov    %ecx,%edx
mov    %r10d,%ecx
push   %rax
push   %r14
push   %rbx
push   %rbp
push   %r12
push   %r13
push   %r11
call   1050 <sprintf@plt>
add    $0x40,%rsp
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    0xc(%rsp),%edi
mov    %r15,%rsi
mov    %eax,%edx
call   1030 <write@plt>
add    $0x418,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [79 x i8] c"{%7d/%7d} %4.1f%% (%6.2fx) re:[%02d:%02d:%02d.%02d] to:[%02d:%02d:%02d.%02d]\0D\00"
define void @write_time_C(i32 %0, i64 %1, i64 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca i32
%9 = alloca i64
%10 = alloca i64
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [1024 x i8]
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
store i32 %0, i32* %8
store i64 %1, i64* %9
store i64 %2, i64* %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i32 %6, i32* %14
%28 = load i64, i64* %9
%29 = sitofp i64 %28 to double
%30 = load i64, i64* %10
%31 = sitofp i64 %30 to double
%32 = call double @llvm.fmuladd.f64(double %31, double 0x3EB0C6F7A0B5ED8D, double %29)
%33 = fcmp ogt double %32, 1.000000e-03
br i1 %33, label %34, label %40
34: ; preds = %7
%35 = load i64, i64* %9
%36 = sitofp i64 %35 to double
%37 = load i64, i64* %10
%38 = sitofp i64 %37 to double
%39 = call double @llvm.fmuladd.f64(double %38, double 0x3EB0C6F7A0B5ED8D, double %36)
br label %41
40: ; preds = %7
br label %41
41: ; preds = %40, %34
%42 = phi double [ %39, %34 ], [ 1.000000e-03, %40 ]
store double %42, double* %16
%43 = load i32, i32* %11
%44 = icmp ugt i32 %43, 0
br i1 %44, label %45, label %53
45: ; preds = %41
%46 = load double, double* %16
%47 = load i32, i32* %12
%48 = uitofp i32 %47 to double
%49 = fmul double %46, %48
%50 = load i32, i32* %11
%51 = uitofp i32 %50 to double
%52 = fdiv double %49, %51
br label %55
53: ; preds = %41
%54 = load double, double* %16
br label %55
55: ; preds = %53, %45
%56 = phi double [ %52, %45 ], [ %54, %53 ]
store double %56, double* %18
%57 = load i32, i32* %12
%58 = icmp ugt i32 %57, 0
br i1 %58, label %59, label %66
59: ; preds = %55
%60 = load i32, i32* %11
%61 = uitofp i32 %60 to double
%62 = fmul double 1.000000e+02, %61
%63 = load i32, i32* %12
%64 = uitofp i32 %63 to double
%65 = fdiv double %62, %64
br label %67
66: ; preds = %55
br label %67
67: ; preds = %66, %59
%68 = phi double [ %65, %59 ], [ 0.000000e+00, %66 ]
store double %68, double* %17
%69 = load double, double* %18
%70 = fmul double %69, 1.000000e+02
%71 = fptosi double %70 to i32
store i32 %71, i32* %27
%72 = load i32, i32* %27
%73 = srem i32 %72, 100
store i32 %73, i32* %26
%74 = load i32, i32* %27
%75 = sdiv i32 %74, 100
store i32 %75, i32* %27
%76 = load i32, i32* %27
%77 = srem i32 %76, 60
store i32 %77, i32* %25
%78 = load i32, i32* %27
%79 = sdiv i32 %78, 60
store i32 %79, i32* %27
%80 = load i32, i32* %27
%81 = srem i32 %80, 60
store i32 %81, i32* %24
%82 = load i32, i32* %27
%83 = sdiv i32 %82, 60
store i32 %83, i32* %27
%84 = load i32, i32* %27
store i32 %84, i32* %23
%85 = load double, double* %18
%86 = load double, double* %16
%87 = fsub double %85, %86
%88 = fmul double %87, 1.000000e+02
%89 = fptosi double %88 to i32
store i32 %89, i32* %27
%90 = load i32, i32* %27
%91 = srem i32 %90, 100
store i32 %91, i32* %22
%92 = load i32, i32* %27
%93 = sdiv i32 %92, 100
store i32 %93, i32* %27
%94 = load i32, i32* %27
%95 = srem i32 %94, 60
store i32 %95, i32* %21
%96 = load i32, i32* %27
%97 = sdiv i32 %96, 60
store i32 %97, i32* %27
%98 = load i32, i32* %27
%99 = srem i32 %98, 60
store i32 %99, i32* %20
%100 = load i32, i32* %27
%101 = sdiv i32 %100, 60
store i32 %101, i32* %27
%102 = load i32, i32* %27
store i32 %102, i32* %19
%103 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%104 = load i32, i32* %11
%105 = load i32, i32* %12
%106 = load double, double* %17
%107 = load double, double* %16
%108 = fcmp ogt double %107, 0.000000e+00
br i1 %108, label %109, label %120
109: ; preds = %67
%110 = load i32, i32* %11
%111 = uitofp i32 %110 to double
%112 = load i32, i32* %14
%113 = uitofp i32 %112 to double
%114 = fmul double %111, %113
%115 = load i32, i32* %13
%116 = uitofp i32 %115 to double
%117 = load double, double* %16
%118 = fmul double %116, %117
%119 = fdiv double %114, %118
br label %121
120: ; preds = %67
br label %121
121: ; preds = %120, %109
%122 = phi double [ %119, %109 ], [ 0.000000e+00, %120 ]
%123 = fptoui double %122 to i32
%124 = load i32, i32* %19
%125 = load i32, i32* %20
%126 = load i32, i32* %21
%127 = load i32, i32* %22
%128 = load i32, i32* %23
%129 = load i32, i32* %24
%130 = load i32, i32* %25
%131 = load i32, i32* %26
%132 = call i32 @sprintf(i8* %103, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0), i32 %104, i32 %105, double %106, i32 %123, i32 %124, i32 %125, i32 %126, i32 %127, i32 %128, i32 %129, i32 %130, i32 %131)
%133 = load i32, i32* %8
%134 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%135 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%136 = call i32 @strlen(i8* %135)
%137 = call i32 @write(i32 %133, i8* %134, i32 %136)
ret void
}

LLVM IR (-O2):
@.str = [79 x i8] c"{%7d/%7d} %4.1f%% (%6.2fx) re:[%02d:%02d:%02d.%02d] to:[%02d:%02d:%02d.%02d]\0D\00"
define void @write_time_C(i32 %0, i64 %1, i64 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca [1024 x i8]
%9 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%10 = sitofp i64 %1 to double
%11 = sitofp i64 %2 to double
%12 = tail call double @llvm.fmuladd.f64(double %11, double 0x3EB0C6F7A0B5ED8D, double %10)
%13 = fcmp ogt double %12, 1.000000e-03
%14 = select i1 %13, double %12, double 1.000000e-03
%15 = icmp eq i32 %3, 0
br i1 %15, label %21, label %16
16: ; preds = %7
%17 = uitofp i32 %4 to double
%18 = fmul double %14, %17
%19 = uitofp i32 %3 to double
%20 = fdiv double %18, %19
br label %21
21: ; preds = %7, %16
%22 = phi double [ %20, %16 ], [ %14, %7 ]
%23 = icmp eq i32 %4, 0
br i1 %23, label %29, label %24
24: ; preds = %21
%25 = uitofp i32 %3 to double
%26 = fmul double %25, 1.000000e+02
%27 = uitofp i32 %4 to double
%28 = fdiv double %26, %27
br label %29
29: ; preds = %21, %24
%30 = phi double [ %28, %24 ], [ 0.000000e+00, %21 ]
%31 = fmul double %22, 1.000000e+02
%32 = fptosi double %31 to i32
%33 = fsub double %22, %14
%34 = fmul double %33, 1.000000e+02
%35 = fptosi double %34 to i32
%36 = fcmp ogt double %14, 0.000000e+00
br i1 %36, label %37, label %45
37: ; preds = %29
%38 = uitofp i32 %3 to double
%39 = uitofp i32 %6 to double
%40 = fmul double %38, %39
%41 = uitofp i32 %5 to double
%42 = fmul double %14, %41
%43 = fdiv double %40, %42
%44 = fptoui double %43 to i32
br label %45
45: ; preds = %29, %37
%46 = phi i32 [ %44, %37 ], [ 0, %29 ]
%47 = sdiv i32 %35, 6000
%48 = sdiv i32 %35, 360000
%49 = srem i32 %47, 60
%50 = sdiv i32 %35, 100
%51 = srem i32 %50, 60
%52 = srem i32 %35, 100
%53 = sdiv i32 %32, 6000
%54 = sdiv i32 %32, 360000
%55 = srem i32 %53, 60
%56 = sdiv i32 %32, 100
%57 = srem i32 %56, 60
%58 = srem i32 %32, 100
%59 = call i32 @sprintf(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %4, double %30, i32 %46, i32 %48, i32 %49, i32 %51, i32 %52, i32 %54, i32 %55, i32 %57, i32 %58)
%60 = call i32 @strlen(i8* %9)
%61 = call i32 @write(i32 %0, i8* %9, i32 %60)
ret void
}