#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 d1func(double d, double m1) {
  double t;
  t = d * d;
  t = t * t;
  t = (1.0 - t) / 3.0;
  t = t * t * t / (m1 * (1.0 - m1));
  t = pow(t, 0.125);
  return (t - d);
}


x86 assembly (clang, -O0):
<d1func>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xec0(%rip),%xmm0
subsd  -0x18(%rbp),%xmm0
movsd  0xebb(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xe8e(%rip),%xmm2
subsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xe67(%rip),%xmm1
call   1030 <pow@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x8(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<d1func>:
push   %rax
movsd  %xmm0,(%rsp)
movapd %xmm0,%xmm4
mulsd  %xmm0,%xmm4
mulsd  %xmm4,%xmm4
movsd  0xed6(%rip),%xmm2
movapd %xmm2,%xmm3
subsd  %xmm4,%xmm3
divsd  0xece(%rip),%xmm3
movapd %xmm3,%xmm0
mulsd  %xmm3,%xmm0
mulsd  %xmm3,%xmm0
subsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
divsd  %xmm2,%xmm0
movsd  0xeb6(%rip),%xmm1
call   1030 <pow@plt>
subsd  (%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @d1func(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %3
store double %1, double* %4
%6 = load double, double* %3
%7 = load double, double* %3
%8 = fmul double %6, %7
store double %8, double* %5
%9 = load double, double* %5
%10 = load double, double* %5
%11 = fmul double %9, %10
store double %11, double* %5
%12 = load double, double* %5
%13 = fsub double 1.000000e+00, %12
%14 = fdiv double %13, 3.000000e+00
store double %14, double* %5
%15 = load double, double* %5
%16 = load double, double* %5
%17 = fmul double %15, %16
%18 = load double, double* %5
%19 = fmul double %17, %18
%20 = load double, double* %4
%21 = load double, double* %4
%22 = fsub double 1.000000e+00, %21
%23 = fmul double %20, %22
%24 = fdiv double %19, %23
store double %24, double* %5
%25 = load double, double* %5
%26 = call double @pow(double %25, double 1.250000e-01)
store double %26, double* %5
%27 = load double, double* %5
%28 = load double, double* %3
%29 = fsub double %27, %28
ret double %29
}

LLVM IR (-O2):
define double @d1func(double %0, double %1) {
%3 = fmul double %0, %0
%4 = fmul double %3, %3
%5 = fsub double 1.000000e+00, %4
%6 = fdiv double %5, 3.000000e+00
%7 = fmul double %6, %6
%8 = fmul double %6, %7
%9 = fsub double 1.000000e+00, %1
%10 = fmul double %9, %1
%11 = fdiv double %8, %10
%12 = tail call double @pow(double %11, double 1.250000e-01)
%13 = fsub double %12, %0
ret double %13
}