#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*/ printf(char *, ...);
void print_output(char filename[], unsigned long dist, unsigned long x1,
                  unsigned long y1, unsigned long x2, unsigned long y2,
                  float time_sec) {
  printf("File: %s   Distance: %lu  (%lu, %lu) (%lu, %lu)\n", filename, dist,
         x1, y1, x2, y2);
  printf("Time: %.2f seconds\n", time_sec);
}


x86 assembly (clang, -O0):
<print_output>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movss  %xmm0,-0x34(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0x30(%rbp),%rax
lea    0xeac(%rip),%rdi
mov    %rax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xec2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_output>:
sub    $0x18,%rsp
movss  %xmm0,0x14(%rsp)
mov    %r8,%rax
mov    %rcx,%r8
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    %r9,(%rsp)
lea    0xecc(%rip),%rdi
mov    %rax,%r9
xor    %eax,%eax
call   1030 <printf@plt>
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xee2(%rip),%rdi
mov    $0x1,%al
add    $0x18,%rsp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [49 x i8] c"File: %s Distance: %lu (%lu, %lu) (%lu, %lu)\0A\00"
@.str.1 = [20 x i8] c"Time: %.2f seconds\0A\00"
define void @print_output(i8* %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, float %6) {
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
%14 = alloca float
store i8* %0, i8** %8
store i64 %1, i64* %9
store i64 %2, i64* %10
store i64 %3, i64* %11
store i64 %4, i64* %12
store i64 %5, i64* %13
store float %6, float* %14
%15 = load i8*, i8** %8
%16 = load i64, i64* %9
%17 = load i64, i64* %10
%18 = load i64, i64* %11
%19 = load i64, i64* %12
%20 = load i64, i64* %13
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i8* %15, i64 %16, i64 %17, i64 %18, i64 %19, i64 %20)
%22 = load float, float* %14
%23 = fpext float %22 to double
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), double %23)
ret void
}

LLVM IR (-O2):
@.str = [49 x i8] c"File: %s Distance: %lu (%lu, %lu) (%lu, %lu)\0A\00"
@.str.1 = [20 x i8] c"Time: %.2f seconds\0A\00"
define void @print_output(i8* %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, float %6) {
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i8* %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5)
%9 = fpext float %6 to double
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), double %9)
ret void
}