#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 atan(double const);
double log(double);
double pow(double, double);
double psi_m_unstable(double zeta, double zeta0) {
  const double x = pow((1.0 - 15.0 * zeta), 0.25);
  const double x0 = pow((1.0 - 15.0 * zeta0), 0.25);
  double psi_m = 2.0 * log((1.0 + x) / (1.0 + x0)) +
                 log((1.0 + x * x) / (1.0 + x0 * x0)) - 2.0 * atan(x) +
                 2.0 * atan(x0);
  return psi_m;
}


x86 assembly (clang, -O0):
<psi_m_unstable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xec1(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xea5(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xea1(%rip),%xmm1
call   1050 <pow@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe92(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe76(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xe72(%rip),%xmm1
call   1050 <pow@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  0xe58(%rip),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  0xe4b(%rip),%xmm1
addsd  -0x20(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1040 <log@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe22(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xe08(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1040 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1030 <atan@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1030 <atan@plt>
movsd  -0x30(%rbp),%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<psi_m_unstable>:
sub    $0x38,%rsp
movsd  %xmm1,0x8(%rsp)
mulsd  0xebe(%rip),%xmm0
addsd  0xebe(%rip),%xmm0
movsd  0xebe(%rip),%xmm1
call   1050 <pow@plt>
movapd %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0xe95(%rip),%xmm0
addsd  0xe95(%rip),%xmm0
movsd  0xe95(%rip),%xmm1
call   1050 <pow@plt>
movapd %xmm0,%xmm1
movapd %xmm0,0x20(%rsp)
movapd 0x10(%rsp),%xmm0
movsd  0xe70(%rip),%xmm2
addsd  %xmm2,%xmm0
addsd  %xmm1,%xmm2
divsd  %xmm2,%xmm0
call   1040 <log@plt>
movsd  %xmm0,0x8(%rsp)
movapd 0x10(%rsp),%xmm0
unpcklpd 0x20(%rsp),%xmm0
mulpd  %xmm0,%xmm0
addpd  0xe59(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
divsd  %xmm1,%xmm0
call   1040 <log@plt>
movsd  0x8(%rsp),%xmm1
addsd  %xmm1,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movapd 0x10(%rsp),%xmm0
call   1030 <atan@plt>
addsd  %xmm0,%xmm0
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movapd 0x20(%rsp),%xmm0
call   1030 <atan@plt>
addsd  %xmm0,%xmm0
addsd  0x8(%rsp),%xmm0
add    $0x38,%rsp
ret

LLVM IR (-O0):
define double @psi_m_unstable(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 = call double @llvm.fmuladd.f64(double -1.500000e+01, double %8, double 1.000000e+00)
%10 = call double @pow(double %9, double 2.500000e-01)
store double %10, double* %5
%11 = load double, double* %4
%12 = call double @llvm.fmuladd.f64(double -1.500000e+01, double %11, double 1.000000e+00)
%13 = call double @pow(double %12, double 2.500000e-01)
store double %13, double* %6
%14 = load double, double* %5
%15 = fadd double 1.000000e+00, %14
%16 = load double, double* %6
%17 = fadd double 1.000000e+00, %16
%18 = fdiv double %15, %17
%19 = call double @log(double %18)
%20 = load double, double* %5
%21 = load double, double* %5
%22 = call double @llvm.fmuladd.f64(double %20, double %21, double 1.000000e+00)
%23 = load double, double* %6
%24 = load double, double* %6
%25 = call double @llvm.fmuladd.f64(double %23, double %24, double 1.000000e+00)
%26 = fdiv double %22, %25
%27 = call double @log(double %26)
%28 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %19, double %27)
%29 = load double, double* %5
%30 = call double @atan(double %29)
%31 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %30, double %28)
%32 = load double, double* %6
%33 = call double @atan(double %32)
%34 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %33, double %31)
store double %34, double* %7
%35 = load double, double* %7
ret double %35
}

LLVM IR (-O2):
define double @psi_m_unstable(double %0, double %1) {
%3 = tail call double @llvm.fmuladd.f64(double %0, double -1.500000e+01, double 1.000000e+00)
%4 = tail call double @pow(double %3, double 2.500000e-01)
%5 = tail call double @llvm.fmuladd.f64(double %1, double -1.500000e+01, double 1.000000e+00)
%6 = tail call double @pow(double %5, double 2.500000e-01)
%7 = fadd double %4, 1.000000e+00
%8 = fadd double %6, 1.000000e+00
%9 = fdiv double %7, %8
%10 = tail call double @log(double %9)
%11 = insertelement <2 x double> poison, double %4, i64 0
%12 = insertelement <2 x double> %11, double %6, i64 1
%13 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %12, <2 x double> %12, <2 x double> <double 1.000000e+00, double 1.000000e+00>)
%14 = extractelement <2 x double> %13, i64 0
%15 = extractelement <2 x double> %13, i64 1
%16 = fdiv double %14, %15
%17 = tail call double @log(double %16)
%18 = tail call double @llvm.fmuladd.f64(double %10, double 2.000000e+00, double %17)
%19 = tail call double @atan(double %4)
%20 = tail call double @llvm.fmuladd.f64(double %19, double -2.000000e+00, double %18)
%21 = tail call double @atan(double %6)
%22 = tail call double @llvm.fmuladd.f64(double %21, double 2.000000e+00, double %20)
ret double %22
}