#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*/ fflush(int /*<<< orphan*/);
size_t fscache_dirty();
size_t max(size_t, size_t);
int /*<<< orphan*/ millisleep(long long const);
size_t min(size_t, size_t const);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ pt_size(double);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ stdout;
void *prog_thr(void *_) {
  const static int samples_per_sec = 1, avrage_window_sec = 2;
  const static size_t sample_no = samples_per_sec * avrage_window_sec;
  const static long long sleep_dur = 1000 / samples_per_sec;
  size_t idx;
  size_t dirty_hist[sample_no];
  size_t head = 0;
  size_t biggest_size = dirty_hist[head] = fscache_dirty();
  for (idx = 0;; idx++) {
    millisleep(sleep_dur);
    if (dirty_hist[head] == 0)
      continue;
    head = (head + 1) % sample_no;
    dirty_hist[head] = fscache_dirty();
    biggest_size = max(biggest_size, dirty_hist[head]);
    size_t done = biggest_size - dirty_hist[head];
    int done_percent = ((double)done / biggest_size) * 100;
    size_t sample_count = min(idx + 1, sample_no);
    size_t oldest_sample =
        dirty_hist[(head + sample_no + 1 - sample_count) % sample_no];
    long long window_duration = sleep_dur * sample_count;
    double speed =
        ((double)oldest_sample - dirty_hist[head]) / (window_duration / 1000);
    putchar('\r');
    pt_size(done);
    printf(" / ");
    pt_size(biggest_size);
    putchar(' ');
    printf("%i%% | ", done_percent);
    pt_size(speed);
    printf("/s | ETA: ");
    if (dirty_hist[head] >= oldest_sample)
      printf("--:--:--");
    else {
      int eta = dirty_hist[head] / speed;
      int hours = eta / 60 / 60, minutes = (eta / 60) % 60, seconds = eta % 60;
      printf("%02i:%02i:%02i", hours, minutes, seconds);
    }
    printf("          ");
    fflush(stdout);
  }
  return NULL;
}


x86 assembly (clang, -O0):
<prog_thr>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsp,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
mov    $0x0,%al
call   1040 <fscache_dirty@plt>
mov    -0x20(%rbp),%rcx
mov    %rax,-0x80(%rbp,%rcx,8)
mov    %rax,-0x28(%rbp)
movq   $0x0,-0x10(%rbp)
mov    $0x3e8,%edi
call   1080 <millisleep@plt>
mov    -0x20(%rbp),%rax
cmpq   $0x0,-0x80(%rbp,%rax,8)
jne    11d9 <prog_thr+0x59>
jmp    14b3 <prog_thr+0x333>
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,%eax
and    $0x1,%eax
mov    %rax,-0x20(%rbp)
xor    %eax,%eax
mov    %al,-0xa1(%rbp)
call   1040 <fscache_dirty@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,-0x80(%rbp,%rax,8)
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    -0x80(%rbp,%rax,8),%rsi
call   1070 <max@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    -0x80(%rbp,%rcx,8),%rcx
sub    %rcx,%rax
mov    %rax,-0x30(%rbp)
movq   -0x30(%rbp),%xmm0
movaps 0xdc9(%rip),%xmm3
movaps %xmm3,-0xa0(%rbp)
punpckldq %xmm3,%xmm0
movapd 0xdc6(%rip),%xmm2
movaps %xmm2,-0x90(%rbp)
subpd  %xmm2,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movq   -0x28(%rbp),%xmm1
punpckldq %xmm3,%xmm1
subpd  %xmm2,%xmm1
movaps %xmm1,%xmm2
unpckhpd %xmm1,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  0xd9c(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
mov    $0x2,%esi
call   1060 <min@plt>
movaps -0xa0(%rbp),%xmm3
movaps -0x90(%rbp),%xmm2
mov    %rax,-0x40(%rbp)
mov    -0x20(%rbp),%eax
mov    -0x40(%rbp),%ecx
not    %ecx
add    %eax,%ecx
mov    %ecx,%eax
and    $0x1,%eax
mov    -0x80(%rbp,%rax,8),%rax
mov    %rax,-0x48(%rbp)
mov    -0x40(%rbp),%rax
imul   $0x3e8,%rax,%rax
mov    %rax,-0x50(%rbp)
movq   -0x48(%rbp),%xmm0
punpckldq %xmm3,%xmm0
subpd  %xmm2,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movq   -0x80(%rbp,%rax,8),%xmm1
punpckldq %xmm3,%xmm1
subpd  %xmm2,%xmm1
movaps %xmm1,%xmm2
unpckhpd %xmm1,%xmm1
addsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mov    -0x50(%rbp),%rax
movabs $0x20c49ba5e353f7cf,%rcx
9b c4 20
imul   %rcx
mov    %rdx,%rax
mov    %rax,%rdx
shr    $0x3f,%rdx
sar    $0x7,%rax
add    %rdx,%rax
cvtsi2sd %rax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    $0xd,%edi
call   1030 <putchar@plt>
movaps -0xa0(%rbp),%xmm2
movaps -0x90(%rbp),%xmm1
movq   -0x30(%rbp),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
call   1090 <pt_size@plt>
mov    -0xa1(%rbp),%al
lea    0xcbb(%rip),%rdi
call   1050 <printf@plt>
movaps -0xa0(%rbp),%xmm2
movaps -0x90(%rbp),%xmm1
movq   -0x28(%rbp),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
call   1090 <pt_size@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    -0x34(%rbp),%esi
lea    0xc7b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsd  -0x58(%rbp),%xmm0
call   1090 <pt_size@plt>
lea    0xc6b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rax
mov    -0x80(%rbp,%rax,8),%rax
cmp    -0x48(%rbp),%rax
jb     140e <prog_thr+0x28e>
lea    0xc55(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1497 <prog_thr+0x317>
mov    -0x20(%rbp),%rax
movq   -0x80(%rbp,%rax,8),%xmm0
movaps 0xbe1(%rip),%xmm1
punpckldq %xmm1,%xmm0
movapd 0xbe5(%rip),%xmm1
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x58(%rbp),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %eax,-0x60(%rbp)
mov    -0x5c(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %edx,-0x64(%rbp)
mov    -0x5c(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %edx,-0x68(%rbp)
mov    -0x60(%rbp),%esi
mov    -0x64(%rbp),%edx
mov    -0x68(%rbp),%ecx
lea    0xbd0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xbd1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2b34(%rip),%rax
mov    (%rax),%edi
call   10a0 <fflush@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    11ba <prog_thr+0x3a>

x86 assembly (clang, -O2):
<prog_thr>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
xor    %eax,%eax
call   1040 <fscache_dirty@plt>
mov    %rax,%rbx
mov    %rax,(%rsp)
xor    %r12d,%r12d
xor    %r13d,%r13d
jmp    1240 <prog_thr+0xc0>
movapd 0x20(%rsp),%xmm0
divsd  0x10(%rsp),%xmm0
cvttsd2si %xmm0,%eax
movslq %eax,%rcx
imul   $0xffffffff91a2b3c5,%rcx,%rsi
shr    $0x20,%rsi
add    %ecx,%esi
mov    %esi,%eax
shr    $0x1f,%eax
sar    $0xb,%esi
add    %eax,%esi
imul   $0xffffffff88888889,%rcx,%rax
shr    $0x20,%rax
add    %ecx,%eax
mov    %eax,%edx
shr    $0x1f,%edx
sar    $0x5,%eax
add    %edx,%eax
movslq %eax,%rdx
imul   $0xffffffff88888889,%rdx,%rax
shr    $0x20,%rax
add    %edx,%eax
mov    %eax,%edi
shr    $0x1f,%edi
sar    $0x5,%eax
add    %edi,%eax
imul   $0x3c,%eax,%eax
imul   $0x3c,%edx,%edi
sub    %eax,%edx
sub    %edi,%ecx
lea    0xe35(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe36(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2db1(%rip),%rax
mov    (%rax),%edi
call   10a0 <fflush@plt>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r13
mov    $0x3e8,%edi
call   1080 <millisleep@plt>
cmpq   $0x0,(%rsp,%r12,8)
je     1240 <prog_thr+0xc0>
mov    %r12d,%ebp
not    %r12d
and    $0x1,%r12d
xor    %eax,%eax
call   1040 <fscache_dirty@plt>
mov    %rax,%r14
mov    %rax,(%rsp,%r12,8)
mov    %rbx,%rdi
mov    %rax,%rsi
call   1070 <max@plt>
mov    %rax,%rbx
sub    %r14,%rax
movq   %rax,%xmm0
movdqa 0xd75(%rip),%xmm3
punpckldq %xmm3,%xmm0
movapd 0xd79(%rip),%xmm4
subpd  %xmm4,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,%xmm2
movapd %xmm1,0x30(%rsp)
movq   %rbx,%xmm0
punpckldq %xmm3,%xmm0
subpd  %xmm4,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,0x40(%rsp)
movapd %xmm2,%xmm0
divsd  %xmm1,%xmm0
mulsd  0xd40(%rip),%xmm0
cvttsd2si %xmm0,%r15d
mov    $0x2,%esi
mov    %r13,%rdi
call   1060 <min@plt>
add    %eax,%ebp
and    $0x1,%ebp
mov    (%rsp,%rbp,8),%rbp
imul   $0x3e8,%rax,%rax
movq   %rbp,%xmm0
movdqa 0xcf1(%rip),%xmm3
punpckldq %xmm3,%xmm0
movapd 0xcf5(%rip),%xmm4
subpd  %xmm4,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,%xmm2
movq   %r14,%xmm0
punpckldq %xmm3,%xmm0
subpd  %xmm4,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,0x20(%rsp)
subsd  %xmm1,%xmm2
movabs $0x20c49ba5e353f7cf,%rcx
9b c4 20
imul   %rcx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x7,%rdx
add    %rax,%rdx
xorps  %xmm0,%xmm0
cvtsi2sd %rdx,%xmm0
divsd  %xmm0,%xmm2
movapd %xmm2,0x10(%rsp)
mov    $0xd,%edi
call   1030 <putchar@plt>
movaps 0x30(%rsp),%xmm0
call   1090 <pt_size@plt>
lea    0xc8e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movaps 0x40(%rsp),%xmm0
call   1090 <pt_size@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
lea    0xc70(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movapd 0x10(%rsp),%xmm0
call   1090 <pt_size@plt>
lea    0xc5c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %rbp,%r14
jb     11a7 <prog_thr+0x27>
lea    0xc50(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    121a <prog_thr+0x9a>

LLVM IR (-O0):
@prog_thr.samples_per_sec = internal constant i32 1
@prog_thr.avrage_window_sec = internal constant i32 2
@prog_thr.sample_no = internal constant i64 2
@prog_thr.sleep_dur = internal constant i64 1000
@.str = [4 x i8] c" / \00"
@.str.1 = [8 x i8] c"%i%% | \00"
@.str.2 = [11 x i8] c"/s | ETA: \00"
@.str.3 = [9 x i8] c"--:--:--\00"
@.str.4 = [15 x i8] c"%02i:%02i:%02i\00"
@.str.5 = [11 x i8] c" \00"
@stdout = global i32 0
define i8* @prog_thr(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i32
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca double
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i8* %0, i8** %2
%17 = call i8* @llvm.stacksave()
store i8* %17, i8** %4
%18 = alloca i64, i64 2
store i64 0, i64* %5
%19 = call i64 (...) @fscache_dirty()
%20 = load i64, i64* %5
%21 = getelementptr inbounds i64, i64* %18, i64 %20
store i64 %19, i64* %21
store i64 %19, i64* %6
store i64 0, i64* %3
br label %22
22: ; preds = %122, %1
%23 = call i32 @millisleep(i64 1000)
%24 = load i64, i64* %5
%25 = getelementptr inbounds i64, i64* %18, i64 %24
%26 = load i64, i64* %25
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %22
br label %122
29: ; preds = %22
%30 = load i64, i64* %5
%31 = add i64 %30, 1
%32 = urem i64 %31, 2
store i64 %32, i64* %5
%33 = call i64 (...) @fscache_dirty()
%34 = load i64, i64* %5
%35 = getelementptr inbounds i64, i64* %18, i64 %34
store i64 %33, i64* %35
%36 = load i64, i64* %6
%37 = load i64, i64* %5
%38 = getelementptr inbounds i64, i64* %18, i64 %37
%39 = load i64, i64* %38
%40 = call i64 @max(i64 %36, i64 %39)
store i64 %40, i64* %6
%41 = load i64, i64* %6
%42 = load i64, i64* %5
%43 = getelementptr inbounds i64, i64* %18, i64 %42
%44 = load i64, i64* %43
%45 = sub i64 %41, %44
store i64 %45, i64* %7
%46 = load i64, i64* %7
%47 = uitofp i64 %46 to double
%48 = load i64, i64* %6
%49 = uitofp i64 %48 to double
%50 = fdiv double %47, %49
%51 = fmul double %50, 1.000000e+02
%52 = fptosi double %51 to i32
store i32 %52, i32* %8
%53 = load i64, i64* %3
%54 = add i64 %53, 1
%55 = call i64 @min(i64 %54, i64 2)
store i64 %55, i64* %9
%56 = load i64, i64* %5
%57 = add i64 %56, 2
%58 = add i64 %57, 1
%59 = load i64, i64* %9
%60 = sub i64 %58, %59
%61 = urem i64 %60, 2
%62 = getelementptr inbounds i64, i64* %18, i64 %61
%63 = load i64, i64* %62
store i64 %63, i64* %10
%64 = load i64, i64* %9
%65 = mul i64 1000, %64
store i64 %65, i64* %11
%66 = load i64, i64* %10
%67 = uitofp i64 %66 to double
%68 = load i64, i64* %5
%69 = getelementptr inbounds i64, i64* %18, i64 %68
%70 = load i64, i64* %69
%71 = uitofp i64 %70 to double
%72 = fsub double %67, %71
%73 = load i64, i64* %11
%74 = sdiv i64 %73, 1000
%75 = sitofp i64 %74 to double
%76 = fdiv double %72, %75
store double %76, double* %12
%77 = call i32 @putchar(i8 signext 13)
%78 = load i64, i64* %7
%79 = uitofp i64 %78 to double
%80 = call i32 @pt_size(double %79)
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%82 = load i64, i64* %6
%83 = uitofp i64 %82 to double
%84 = call i32 @pt_size(double %83)
%85 = call i32 @putchar(i8 signext 32)
%86 = load i32, i32* %8
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %86)
%88 = load double, double* %12
%89 = call i32 @pt_size(double %88)
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%91 = load i64, i64* %5
%92 = getelementptr inbounds i64, i64* %18, i64 %91
%93 = load i64, i64* %92
%94 = load i64, i64* %10
%95 = icmp uge i64 %93, %94
br i1 %95, label %96, label %98
96: ; preds = %29
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %118
98: ; preds = %29
%99 = load i64, i64* %5
%100 = getelementptr inbounds i64, i64* %18, i64 %99
%101 = load i64, i64* %100
%102 = uitofp i64 %101 to double
%103 = load double, double* %12
%104 = fdiv double %102, %103
%105 = fptosi double %104 to i32
store i32 %105, i32* %13
%106 = load i32, i32* %13
%107 = sdiv i32 %106, 60
%108 = sdiv i32 %107, 60
store i32 %108, i32* %14
%109 = load i32, i32* %13
%110 = sdiv i32 %109, 60
%111 = srem i32 %110, 60
store i32 %111, i32* %15
%112 = load i32, i32* %13
%113 = srem i32 %112, 60
store i32 %113, i32* %16
%114 = load i32, i32* %14
%115 = load i32, i32* %15
%116 = load i32, i32* %16
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %114, i32 %115, i32 %116)
br label %118
118: ; preds = %98, %96
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%120 = load i32, i32* @stdout
%121 = call i32 @fflush(i32 %120)
br label %122
122: ; preds = %118, %28
%123 = load i64, i64* %3
%124 = add i64 %123, 1
store i64 %124, i64* %3
br label %22
}

LLVM IR (-O2):
@.str = [4 x i8] c" / \00"
@.str.1 = [8 x i8] c"%i%% | \00"
@.str.2 = [11 x i8] c"/s | ETA: \00"
@.str.3 = [9 x i8] c"--:--:--\00"
@.str.4 = [15 x i8] c"%02i:%02i:%02i\00"
@.str.5 = [11 x i8] c" \00"
@stdout = global i32 0
define noalias i8* @prog_thr(i8* nocapture readnone %0) {
%2 = alloca [2 x i64]
%3 = getelementptr inbounds [2 x i64], [2 x i64]* %2, i64 0, i64 0
%4 = tail call i64 (...) @fscache_dirty()
store i64 %4, i64* %3
br label %5
5: ; preds = %61, %1
%6 = phi i64 [ %22, %61 ], [ %4, %1 ]
%7 = phi i64 [ %19, %61 ], [ 0, %1 ]
%8 = phi i64 [ %29, %61 ], [ 0, %1 ]
%9 = getelementptr inbounds [2 x i64], [2 x i64]* %2, i64 0, i64 %7
br label %10
10: ; preds = %5, %15
%11 = phi i64 [ %16, %15 ], [ %8, %5 ]
%12 = tail call i32 @millisleep(i64 1000)
%13 = load i64, i64* %9
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = add i64 %11, 1
br label %10
17: ; preds = %10
%18 = and i64 %7, 1
%19 = xor i64 %18, 1
%20 = tail call i64 (...) @fscache_dirty()
%21 = getelementptr inbounds [2 x i64], [2 x i64]* %2, i64 0, i64 %19
store i64 %20, i64* %21
%22 = tail call i64 @max(i64 %6, i64 %20)
%23 = sub i64 %22, %20
%24 = uitofp i64 %23 to double
%25 = uitofp i64 %22 to double
%26 = fdiv double %24, %25
%27 = fmul double %26, 1.000000e+02
%28 = fptosi double %27 to i32
%29 = add i64 %11, 1
%30 = tail call i64 @min(i64 %29, i64 2)
%31 = add i64 %30, %7
%32 = and i64 %31, 1
%33 = getelementptr inbounds [2 x i64], [2 x i64]* %2, i64 0, i64 %32
%34 = load i64, i64* %33
%35 = mul i64 %30, 1000
%36 = uitofp i64 %34 to double
%37 = uitofp i64 %20 to double
%38 = fsub double %36, %37
%39 = sdiv i64 %35, 1000
%40 = sitofp i64 %39 to double
%41 = fdiv double %38, %40
%42 = tail call i32 @putchar(i8 signext 13)
%43 = tail call i32 @pt_size(double %24)
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%45 = tail call i32 @pt_size(double %25)
%46 = tail call i32 @putchar(i8 signext 32)
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %28)
%48 = tail call i32 @pt_size(double %41)
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%50 = icmp ult i64 %20, %34
br i1 %50, label %53, label %51
51: ; preds = %17
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %61
53: ; preds = %17
%54 = fdiv double %37, %41
%55 = fptosi double %54 to i32
%56 = sdiv i32 %55, 60
%57 = sdiv i32 %55, 3600
%58 = srem i32 %56, 60
%59 = srem i32 %55, 60
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %57, i32 %58, i32 %59)
br label %61
61: ; preds = %53, %51
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%63 = load i32, i32* @stdout
%64 = tail call i32 @fflush(i32 %63)
br label %5
}