#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 *);
int /*<<< orphan*/ test(double, double, double, double, double, double, double,
                        double);
int main() {
  test(1.5, 2.4, 5.1, -3.1, -3.8, 1.2, 0, 0);
  test(1.5, 2.4, 5.1, -3.1, -3.8, 1.2, 0, 1);
  test(1.5, 2.4, 5.1, -3.1, -3.8, 1.2, 3, 1);
  printf("\n");
  test(0.1, 0.1111111111111111, 12.5, 33.333333333333336, 25, 11.11111111111111,
       5.414285714285714, 14.349206349206348);
  printf("\n");
  test(0.1, 0.1111111111111111, 12.5, 33.333333333333336, -12.5,
       16.666666666666668, 5.414285714285714, 14.349206349206348);
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xf19(%rip),%xmm0
movsd  0xf19(%rip),%xmm1
movsd  0xf19(%rip),%xmm2
movsd  0xf19(%rip),%xmm3
movsd  0xf19(%rip),%xmm4
movsd  0xf19(%rip),%xmm5
xorps  %xmm7,%xmm7
movaps %xmm7,%xmm6
call   1040 <test@plt>
movsd  0xede(%rip),%xmm0
movsd  0xede(%rip),%xmm1
movsd  0xede(%rip),%xmm2
movsd  0xede(%rip),%xmm3
movsd  0xede(%rip),%xmm4
movsd  0xede(%rip),%xmm5
xorps  %xmm6,%xmm6
movsd  0xee3(%rip),%xmm7
call   1040 <test@plt>
movsd  0xe9e(%rip),%xmm0
movsd  0xe9e(%rip),%xmm1
movsd  0xe9e(%rip),%xmm2
movsd  0xe9e(%rip),%xmm3
movsd  0xe9e(%rip),%xmm4
movsd  0xe9e(%rip),%xmm5
movsd  0xe9e(%rip),%xmm6
movsd  0xe9e(%rip),%xmm7
call   1040 <test@plt>
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
movsd  0xdfd(%rip),%xmm0
movsd  0xdfd(%rip),%xmm1
movsd  0xdfd(%rip),%xmm2
movsd  0xdfd(%rip),%xmm3
movsd  0xe1d(%rip),%xmm4
movsd  0xe1d(%rip),%xmm5
movsd  0xdfd(%rip),%xmm6
movsd  0xdfd(%rip),%xmm7
call   1040 <test@plt>
lea    0xe49(%rip),%rdi
call   1030 <printf@plt>
movsd  0xdac(%rip),%xmm0
movsd  0xdac(%rip),%xmm1
movsd  0xdac(%rip),%xmm2
movsd  0xdac(%rip),%xmm3
movsd  0xdac(%rip),%xmm4
movsd  0xdac(%rip),%xmm5
movsd  0xdac(%rip),%xmm6
movsd  0xdac(%rip),%xmm7
call   1040 <test@plt>
lea    0xdf8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movsd  0xed7(%rip),%xmm0
movsd  0xed7(%rip),%xmm1
movsd  0xed7(%rip),%xmm2
movsd  0xed7(%rip),%xmm3
movsd  0xed7(%rip),%xmm4
movsd  0xed7(%rip),%xmm5
xorps  %xmm6,%xmm6
xorps  %xmm7,%xmm7
call   1040 <test@plt>
movsd  0xecc(%rip),%xmm7
xorps  %xmm6,%xmm6
movsd  0xe91(%rip),%xmm0
movsd  0xe91(%rip),%xmm1
movsd  0xe91(%rip),%xmm2
movsd  0xe91(%rip),%xmm3
movsd  0xe91(%rip),%xmm4
movsd  0xe91(%rip),%xmm5
call   1040 <test@plt>
movsd  0xe94(%rip),%xmm6
movsd  0xe54(%rip),%xmm0
movsd  0xe54(%rip),%xmm1
movsd  0xe54(%rip),%xmm2
movsd  0xe54(%rip),%xmm3
movsd  0xe54(%rip),%xmm4
movsd  0xe54(%rip),%xmm5
movsd  0xe54(%rip),%xmm7
call   1040 <test@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsd  0xe4d(%rip),%xmm0
movsd  0xe4d(%rip),%xmm1
movsd  0xe4d(%rip),%xmm2
movsd  0xe4d(%rip),%xmm3
movsd  0xe4d(%rip),%xmm4
movsd  0xe4d(%rip),%xmm5
movsd  0xe4d(%rip),%xmm6
movsd  0xe4d(%rip),%xmm7
call   1040 <test@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsd  0xe3e(%rip),%xmm4
movsd  0xe3e(%rip),%xmm5
movsd  0xdee(%rip),%xmm0
movsd  0xdee(%rip),%xmm1
movsd  0xdee(%rip),%xmm2
movsd  0xdee(%rip),%xmm3
movsd  0xdfe(%rip),%xmm6
movsd  0xdfe(%rip),%xmm7
call   1040 <test@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @test(double 1.500000e+00, double 2.400000e+00, double 5.100000e+00, double -3.100000e+00, double -3.800000e+00, double 1.200000e+00, double 0.000000e+00, double 0.000000e+00)
%3 = call i32 @test(double 1.500000e+00, double 2.400000e+00, double 5.100000e+00, double -3.100000e+00, double -3.800000e+00, double 1.200000e+00, double 0.000000e+00, double 1.000000e+00)
%4 = call i32 @test(double 1.500000e+00, double 2.400000e+00, double 5.100000e+00, double -3.100000e+00, double -3.800000e+00, double 1.200000e+00, double 3.000000e+00, double 1.000000e+00)
%5 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @test(double 1.000000e-01, double 0x3FBC71C71C71C71C, double 1.250000e+01, double 0x4040AAAAAAAAAAAB, double 2.500000e+01, double 0x402638E38E38E38E, double 0x4015A83A83A83A83, double 0x402CB2CB2CB2CB2C)
%7 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @test(double 1.000000e-01, double 0x3FBC71C71C71C71C, double 1.250000e+01, double 0x4040AAAAAAAAAAAB, double -1.250000e+01, double 0x4030AAAAAAAAAAAB, double 0x4015A83A83A83A83, double 0x402CB2CB2CB2CB2C)
%9 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @test(double 1.500000e+00, double 2.400000e+00, double 5.100000e+00, double -3.100000e+00, double -3.800000e+00, double 1.200000e+00, double 0.000000e+00, double 0.000000e+00)
%2 = tail call i32 @test(double 1.500000e+00, double 2.400000e+00, double 5.100000e+00, double -3.100000e+00, double -3.800000e+00, double 1.200000e+00, double 0.000000e+00, double 1.000000e+00)
%3 = tail call i32 @test(double 1.500000e+00, double 2.400000e+00, double 5.100000e+00, double -3.100000e+00, double -3.800000e+00, double 1.200000e+00, double 3.000000e+00, double 1.000000e+00)
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @test(double 1.000000e-01, double 0x3FBC71C71C71C71C, double 1.250000e+01, double 0x4040AAAAAAAAAAAB, double 2.500000e+01, double 0x402638E38E38E38E, double 0x4015A83A83A83A83, double 0x402CB2CB2CB2CB2C)
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @test(double 1.000000e-01, double 0x3FBC71C71C71C71C, double 1.250000e+01, double 0x4040AAAAAAAAAAAB, double -1.250000e+01, double 0x4030AAAAAAAAAAAB, double 0x4015A83A83A83A83, double 0x402CB2CB2CB2CB2C)
%8 = tail call i32 @putchar(i32 10)
ret i32 0
}