#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ run_test(double, double, double, double, double, double);
int main(void) {
  run_test(-1.0, -1.0, 1.5, 1.0, 1.0, 2.0);
  run_test(1.0, -1.0, 1.5, -1.0, 1.0, 2.0);
  run_test(-1.0, 1.0, 1.5, 1.0, -1.0, 2.0);
  run_test(1.0, 1.0, 1.5, -1.0, -1.0, 2.0);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xed9(%rip),%xmm1
movsd  0xec9(%rip),%xmm2
movsd  0xeb9(%rip),%xmm4
movsd  0xec9(%rip),%xmm5
movaps %xmm1,%xmm0
movaps %xmm4,%xmm3
call   1030 <run_test@plt>
movsd  0xe9e(%rip),%xmm4
movsd  0xea6(%rip),%xmm3
movsd  0xe96(%rip),%xmm2
movsd  0xe9e(%rip),%xmm5
movaps %xmm4,%xmm0
movaps %xmm3,%xmm1
call   1030 <run_test@plt>
movsd  0xe83(%rip),%xmm4
movsd  0xe6b(%rip),%xmm3
movsd  0xe6b(%rip),%xmm2
movsd  0xe73(%rip),%xmm5
movaps %xmm4,%xmm0
movaps %xmm3,%xmm1
call   1030 <run_test@plt>
movsd  0xe48(%rip),%xmm1
movsd  0xe48(%rip),%xmm2
movsd  0xe48(%rip),%xmm4
movsd  0xe48(%rip),%xmm5
movaps %xmm1,%xmm0
movaps %xmm4,%xmm3
call   1030 <run_test@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
movsd  0xed7(%rip),%xmm0
movsd  0xed7(%rip),%xmm2
movsd  0xed7(%rip),%xmm3
movsd  0xed7(%rip),%xmm5
movaps %xmm0,%xmm1
movaps %xmm3,%xmm4
call   1030 <run_test@plt>
movsd  0xebc(%rip),%xmm0
movsd  0xea4(%rip),%xmm1
movsd  0xea4(%rip),%xmm2
movaps %xmm1,%xmm3
movaps %xmm0,%xmm4
movsd  0xea6(%rip),%xmm5
call   1030 <run_test@plt>
movsd  0xe81(%rip),%xmm0
movsd  0xe89(%rip),%xmm1
movsd  0xe79(%rip),%xmm2
movaps %xmm1,%xmm3
movaps %xmm0,%xmm4
movsd  0xe7b(%rip),%xmm5
call   1030 <run_test@plt>
movsd  0xe66(%rip),%xmm0
movaps %xmm0,%xmm1
movsd  0xe53(%rip),%xmm2
movsd  0xe43(%rip),%xmm3
movaps %xmm3,%xmm4
movsd  0xe50(%rip),%xmm5
call   1030 <run_test@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @run_test(double -1.000000e+00, double -1.000000e+00, double 1.500000e+00, double 1.000000e+00, double 1.000000e+00, double 2.000000e+00)
%3 = call i32 @run_test(double 1.000000e+00, double -1.000000e+00, double 1.500000e+00, double -1.000000e+00, double 1.000000e+00, double 2.000000e+00)
%4 = call i32 @run_test(double -1.000000e+00, double 1.000000e+00, double 1.500000e+00, double 1.000000e+00, double -1.000000e+00, double 2.000000e+00)
%5 = call i32 @run_test(double 1.000000e+00, double 1.000000e+00, double 1.500000e+00, double -1.000000e+00, double -1.000000e+00, double 2.000000e+00)
%6 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @run_test(double -1.000000e+00, double -1.000000e+00, double 1.500000e+00, double 1.000000e+00, double 1.000000e+00, double 2.000000e+00)
%2 = tail call i32 @run_test(double 1.000000e+00, double -1.000000e+00, double 1.500000e+00, double -1.000000e+00, double 1.000000e+00, double 2.000000e+00)
%3 = tail call i32 @run_test(double -1.000000e+00, double 1.000000e+00, double 1.500000e+00, double 1.000000e+00, double -1.000000e+00, double 2.000000e+00)
%4 = tail call i32 @run_test(double 1.000000e+00, double 1.000000e+00, double 1.500000e+00, double -1.000000e+00, double -1.000000e+00, double 2.000000e+00)
%5 = tail call i32 @exit(i32 0)
unreachable
}