#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 wind_decay(double LAI, double Omega, double hc, double s) {
  double p = 2.0 / 3.0;
  double q = 1.0 / 3.0;
  double a;
  a = 0.28 * (pow((LAI * Omega), p)) * (pow(hc, q)) / (pow(s, q));
  return (a);
}


x86 assembly (clang, -O0):
<wind_decay>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  0xedc(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xec7(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe9b(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wind_decay>:
sub    $0x18,%rsp
movsd  %xmm3,0x10(%rsp)
movsd  %xmm2,(%rsp)
mulsd  %xmm1,%xmm0
movsd  0xed5(%rip),%xmm1
call   1030 <pow@plt>
mulsd  0xed0(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xeca(%rip),%xmm1
movsd  (%rsp),%xmm0
call   1030 <pow@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0xea7(%rip),%xmm1
call   1030 <pow@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @wind_decay(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
store double 0x3FE5555555555555, double* %9
store double 0x3FD5555555555555, double* %10
%12 = load double, double* %5
%13 = load double, double* %6
%14 = fmul double %12, %13
%15 = load double, double* %9
%16 = call double @pow(double %14, double %15)
%17 = fmul double 2.800000e-01, %16
%18 = load double, double* %7
%19 = load double, double* %10
%20 = call double @pow(double %18, double %19)
%21 = fmul double %17, %20
%22 = load double, double* %8
%23 = load double, double* %10
%24 = call double @pow(double %22, double %23)
%25 = fdiv double %21, %24
store double %25, double* %11
%26 = load double, double* %11
ret double %26
}

LLVM IR (-O2):
define double @wind_decay(double %0, double %1, double %2, double %3) {
%5 = fmul double %0, %1
%6 = tail call double @pow(double %5, double 0x3FE5555555555555)
%7 = fmul double %6, 2.800000e-01
%8 = tail call double @pow(double %2, double 0x3FD5555555555555)
%9 = fmul double %7, %8
%10 = tail call double @pow(double %3, double 0x3FD5555555555555)
%11 = fdiv double %9, %10
ret double %11
}