#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 get_acc_minlen();
int get_cutoff();
int /*<<< orphan*/ printf(char *, ...);
void display_minute(int minlen) {
  int cutoff;
  cutoff = get_cutoff();
  printf(" (%u) %i ", get_acc_minlen(), minlen);
  if (cutoff == -1) {
    printf("?\n");
  } else {
    printf("%6.4f\n", cutoff / 1e4);
  }
}


x86 assembly (clang, -O0):
<display_minute>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1050 <get_cutoff@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <get_acc_minlen@plt>
mov    %eax,%esi
mov    -0x4(%rbp),%edx
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0xffffffff,-0x8(%rbp)
jne    117c <display_minute+0x4c>
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    119b <display_minute+0x6b>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  0xe77(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xe81(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display_minute>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebp
xor    %eax,%eax
call   1060 <get_cutoff@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1040 <get_acc_minlen@plt>
lea    0xeac(%rip),%rdi
mov    %eax,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
cmp    $0xffffffff,%ebx
je     118c <display_minute+0x4c>
cvtsi2sd %ebx,%xmm0
divsd  0xe88(%rip),%xmm0
lea    0xe93(%rip),%rdi
mov    $0x1,%al
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1050 <printf@plt>
lea    0xe86(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [10 x i8] c" (%u) %i \00"
@.str.1 = [3 x i8] c"?\0A\00"
@.str.2 = [7 x i8] c"%6.4f\0A\00"
define void @display_minute(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = call i32 (...) @get_cutoff()
store i32 %4, i32* %3
%5 = call i32 (...) @get_acc_minlen()
%6 = load i32, i32* %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6)
%8 = load i32, i32* %3
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %17
12: ; preds = %1
%13 = load i32, i32* %3
%14 = sitofp i32 %13 to double
%15 = fdiv double %14, 1.000000e+04
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %15)
br label %17
17: ; preds = %12, %10
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c" (%u) %i \00"
@.str.2 = [7 x i8] c"%6.4f\0A\00"
@str = [2 x i8] c"?\00"
define void @display_minute(i32 %0) {
%2 = tail call i32 (...) @get_cutoff()
%3 = tail call i32 (...) @get_acc_minlen()
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %0)
%5 = icmp eq i32 %2, -1
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
br label %12
8: ; preds = %1
%9 = sitofp i32 %2 to double
%10 = fdiv double %9, 1.000000e+04
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %10)
br label %12
12: ; preds = %8, %6
ret void
}