#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*/ dotest1(int, double, double);
int /*<<< orphan*/ dotest2(int, double, double);
int /*<<< orphan*/ printf(char *);
int main() {
  printf("dist\n");
  dotest1(144, 0.3, 311.83146449201496);
  dotest1(92, 0.5, 92.12909477605366);
  printf("speed\n");
  dotest2(159, 0.8, 153.79671564846308);
  dotest2(164, 0.7, 147.91115701756493);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xefa(%rip),%rdi
call   1030 <printf@plt>
mov    $0x90,%edi
movsd  0xed8(%rip),%xmm0
movsd  0xed8(%rip),%xmm1
call   1040 <dotest1@plt>
mov    $0x5c,%edi
movsd  0xeae(%rip),%xmm0
movsd  0xeae(%rip),%xmm1
call   1040 <dotest1@plt>
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
mov    $0x9f,%edi
movsd  0xe78(%rip),%xmm0
movsd  0xe78(%rip),%xmm1
call   1050 <dotest2@plt>
mov    $0xa4,%edi
movsd  0xe4e(%rip),%xmm0
movsd  0xe4e(%rip),%xmm1
call   1050 <dotest2@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf08(%rip),%rdi
call   1030 <puts@plt>
movsd  0xebb(%rip),%xmm0
movsd  0xebb(%rip),%xmm1
mov    $0x90,%edi
call   1040 <dotest1@plt>
movsd  0xeb1(%rip),%xmm0
movsd  0xeb1(%rip),%xmm1
mov    $0x5c,%edi
call   1040 <dotest1@plt>
lea    0xecd(%rip),%rdi
call   1030 <puts@plt>
movsd  0xe9b(%rip),%xmm0
movsd  0xe9b(%rip),%xmm1
mov    $0x9f,%edi
call   1050 <dotest2@plt>
movsd  0xe91(%rip),%xmm0
movsd  0xe91(%rip),%xmm1
mov    $0xa4,%edi
call   1050 <dotest2@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"dist\0A\00"
@.str.1 = [7 x i8] c"speed\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @dotest1(i32 144, double 3.000000e-01, double 0x40737D4DADB60FD5)
%4 = call i32 @dotest1(i32 92, double 5.000000e-01, double 0x4057084316BC4F09)
%5 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @dotest2(i32 159, double 8.000000e-01, double 0x4063397EB1D0CB88)
%7 = call i32 @dotest2(i32 164, double 0x3FE6666666666666, double 0x40627D2832C2FECB)
ret i32 0
}

LLVM IR (-O2):
@str = [5 x i8] c"dist\00"
@str.2 = [6 x i8] c"speed\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @dotest1(i32 144, double 3.000000e-01, double 0x40737D4DADB60FD5)
%3 = tail call i32 @dotest1(i32 92, double 5.000000e-01, double 0x4057084316BC4F09)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.2, i64 0, i64 0))
%5 = tail call i32 @dotest2(i32 159, double 8.000000e-01, double 0x4063397EB1D0CB88)
%6 = tail call i32 @dotest2(i32 164, double 0x3FE6666666666666, double 0x40627D2832C2FECB)
ret i32 0
}