#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*/ c(double, double, double);
double fmin(int /*<<< orphan*/, int /*<<< orphan*/);
double u(double, double, double);
double v(double, double, double);
double ea(double x, double y) {
  return fmin(c(x * 1.7 + 0.3, y + 0.7, 0.15),
              c(u(x, y, 0.25) * 1.7, v(x, y, 0.25) + 0.65, 0.15));
}


x86 assembly (clang, -O0):
<ea>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xeb9(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xebd(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xea9(%rip),%xmm1
addsd  -0x10(%rbp),%xmm1
movsd  0xe7c(%rip),%xmm2
call   1050 <c@plt>
mov    %eax,-0x14(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xe72(%rip),%xmm2
call   1060 <u@plt>
movsd  0xe6d(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xe4a(%rip),%xmm2
call   1030 <v@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xe2d(%rip),%xmm2
addsd  %xmm2,%xmm1
movsd  0xe19(%rip),%xmm2
call   1050 <c@plt>
mov    -0x14(%rbp),%edi
mov    %eax,%esi
call   1040 <fmin@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ea>:
push   %rbx
sub    $0x20,%rsp
movapd %xmm1,%xmm2
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x10(%rsp)
mulsd  0xea3(%rip),%xmm0
addsd  0xea3(%rip),%xmm0
movsd  0xea3(%rip),%xmm1
addsd  %xmm2,%xmm1
movsd  0xe9f(%rip),%xmm2
call   1050 <c@plt>
mov    %eax,%ebx
movsd  0xe98(%rip),%xmm2
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
call   1060 <u@plt>
mulsd  0xe5f(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xe65(%rip),%xmm2
call   1030 <v@plt>
movapd %xmm0,%xmm1
addsd  0xe5c(%rip),%xmm1
movsd  0x18(%rsp),%xmm0
movsd  0xe3e(%rip),%xmm2
call   1050 <c@plt>
mov    %ebx,%edi
mov    %eax,%esi
add    $0x20,%rsp
pop    %rbx
jmp    1040 <fmin@plt>

LLVM IR (-O0):
define double @ea(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = call double @llvm.fmuladd.f64(double %5, double 1.700000e+00, double 3.000000e-01)
%7 = load double, double* %4
%8 = fadd double %7, 0x3FE6666666666666
%9 = call i32 @c(double %6, double %8, double 1.500000e-01)
%10 = load double, double* %3
%11 = load double, double* %4
%12 = call double @u(double %10, double %11, double 2.500000e-01)
%13 = fmul double %12, 1.700000e+00
%14 = load double, double* %3
%15 = load double, double* %4
%16 = call double @v(double %14, double %15, double 2.500000e-01)
%17 = fadd double %16, 6.500000e-01
%18 = call i32 @c(double %13, double %17, double 1.500000e-01)
%19 = call double @fmin(i32 %9, i32 %18)
ret double %19
}

LLVM IR (-O2):
define double @ea(double %0, double %1) {
%3 = tail call double @llvm.fmuladd.f64(double %0, double 1.700000e+00, double 3.000000e-01)
%4 = fadd double %1, 0x3FE6666666666666
%5 = tail call i32 @c(double %3, double %4, double 1.500000e-01)
%6 = tail call double @u(double %0, double %1, double 2.500000e-01)
%7 = fmul double %6, 1.700000e+00
%8 = tail call double @v(double %0, double %1, double 2.500000e-01)
%9 = fadd double %8, 6.500000e-01
%10 = tail call i32 @c(double %7, double %9, double 1.500000e-01)
%11 = tail call double @fmin(i32 %5, i32 %10)
ret double %11
}