#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 */
float pow(double, double);
float sqrt(float);
float E_z_value(float z, float omega_m, float omega_l, float w) {
  float Ez;
  Ez = sqrt(omega_m * pow((1.0 + z), 3.0) +
            omega_l * pow((1.0 + z), (3.0 * (1.0 + w))));
  return Ez;
}


x86 assembly (clang, -O0):
<E_z_value>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xeb1(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0xe9d(%rip),%xmm1
call   1030 <pow@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe80(%rip),%xmm0
addsd  %xmm1,%xmm0
movss  -0x10(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xe6b(%rip),%xmm2
addsd  %xmm1,%xmm2
movsd  0xe57(%rip),%xmm1
mulsd  %xmm2,%xmm1
call   1030 <pow@plt>
movss  -0x20(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm2
movaps %xmm0,%xmm3
movss  -0x18(%rbp),%xmm0
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1040 <sqrt@plt>
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<E_z_value>:
sub    $0x18,%rsp
movss  %xmm3,0x4(%rsp)
movss  %xmm2,0x8(%rsp)
movss  %xmm1,0xc(%rsp)
cvtss2sd %xmm0,%xmm0
addsd  0xebe(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xeb8(%rip),%xmm1
call   1030 <pow@plt>
movss  %xmm0,(%rsp)
movss  0x4(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
addsd  0xe91(%rip),%xmm1
mulsd  0xe91(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
call   1030 <pow@plt>
mulss  0x8(%rsp),%xmm0
movss  (%rsp),%xmm1
mulss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm1
movaps %xmm1,%xmm0
jb     11ab <E_z_value+0x8b>
sqrtss %xmm0,%xmm0
add    $0x18,%rsp
ret
add    $0x18,%rsp
jmp    1040 <sqrt@plt>

LLVM IR (-O0):
define float @E_z_value(float %0, float %1, float %2, float %3) {
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
store float %0, float* %5
store float %1, float* %6
store float %2, float* %7
store float %3, float* %8
%10 = load float, float* %6
%11 = load float, float* %5
%12 = fpext float %11 to double
%13 = fadd double 1.000000e+00, %12
%14 = call float @pow(double %13, double 3.000000e+00)
%15 = load float, float* %7
%16 = load float, float* %5
%17 = fpext float %16 to double
%18 = fadd double 1.000000e+00, %17
%19 = load float, float* %8
%20 = fpext float %19 to double
%21 = fadd double 1.000000e+00, %20
%22 = fmul double 3.000000e+00, %21
%23 = call float @pow(double %18, double %22)
%24 = fmul float %15, %23
%25 = call float @llvm.fmuladd.f32(float %10, float %14, float %24)
%26 = call float @sqrt(float %25)
store float %26, float* %9
%27 = load float, float* %9
ret float %27
}

LLVM IR (-O2):
define float @E_z_value(float %0, float %1, float %2, float %3) {
%5 = fpext float %0 to double
%6 = fadd double %5, 1.000000e+00
%7 = tail call float @pow(double %6, double 3.000000e+00)
%8 = fpext float %3 to double
%9 = fadd double %8, 1.000000e+00
%10 = fmul double %9, 3.000000e+00
%11 = tail call float @pow(double %6, double %10)
%12 = fmul float %11, %2
%13 = tail call float @llvm.fmuladd.f32(float %1, float %7, float %12)
%14 = tail call float @sqrt(float %13)
ret float %14
}