#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 */
double pow(double, double);
double sin(double);
double f_10(double x, double y) {
  double p, z, t;
  p = (x * x + y * y);
  z = pow(p, 0.25);
  t = sin(50.0 * pow(p, 0.1));
  t = t * t + 1.0;
  return z * t;
}


x86 assembly (clang, -O0):
<f_10>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xeb8(%rip),%xmm1
call   1040 <pow@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xe99(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe81(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe55(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f_10>:
sub    $0x18,%rsp
mulsd  %xmm1,%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xec2(%rip),%xmm1
call   1040 <pow@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0xeb7(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1040 <pow@plt>
mulsd  0xeac(%rip),%xmm0
call   1030 <sin@plt>
mulsd  %xmm0,%xmm0
addsd  0xea3(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @f_10(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %3
store double %1, double* %4
%8 = load double, double* %3
%9 = load double, double* %3
%10 = load double, double* %4
%11 = load double, double* %4
%12 = fmul double %10, %11
%13 = call double @llvm.fmuladd.f64(double %8, double %9, double %12)
store double %13, double* %5
%14 = load double, double* %5
%15 = call double @pow(double %14, double 2.500000e-01)
store double %15, double* %6
%16 = load double, double* %5
%17 = call double @pow(double %16, double 1.000000e-01)
%18 = fmul double 5.000000e+01, %17
%19 = call double @sin(double %18)
store double %19, double* %7
%20 = load double, double* %7
%21 = load double, double* %7
%22 = call double @llvm.fmuladd.f64(double %20, double %21, double 1.000000e+00)
store double %22, double* %7
%23 = load double, double* %6
%24 = load double, double* %7
%25 = fmul double %23, %24
ret double %25
}

LLVM IR (-O2):
define double @f_10(double %0, double %1) {
%3 = fmul double %1, %1
%4 = tail call double @llvm.fmuladd.f64(double %0, double %0, double %3)
%5 = tail call double @pow(double %4, double 2.500000e-01)
%6 = tail call double @pow(double %4, double 1.000000e-01)
%7 = fmul double %6, 5.000000e+01
%8 = tail call double @sin(double %7)
%9 = tail call double @llvm.fmuladd.f64(double %8, double %8, double 1.000000e+00)
%10 = fmul double %5, %9
ret double %10
}