#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 */
int pow(int, double);
double gammaStandardize(double value, double params[]) {
  double alfa, beta, y, z;
  alfa = params[0];
  beta = params[1];
  y = value / alfa / beta;
  z = (pow(y, 0.333333333333333) + 1 / (9 * beta) - 1) * pow(9 * beta, 0.5);
  return (z);
}


x86 assembly (clang, -O0):
<gammaStandardize>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
cvttsd2si -0x28(%rbp),%edi
movsd  0xebb(%rip),%xmm0
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe9a(%rip),%xmm2
mulsd  -0x20(%rbp),%xmm2
movsd  0xe95(%rip),%xmm1
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  0xe85(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe6c(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
cvttsd2si %xmm0,%edi
movsd  0xe53(%rip),%xmm0
call   1030 <pow@plt>
movsd  -0x38(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gammaStandardize>:
push   %rax
divsd  (%rdi),%xmm0
movsd  0x8(%rdi),%xmm1
movsd  %xmm1,(%rsp)
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
movsd  0xed1(%rip),%xmm0
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rsp),%xmm1
mulsd  0xec0(%rip),%xmm1
movsd  0xec0(%rip),%xmm2
divsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
addsd  0xeb8(%rip),%xmm2
movsd  %xmm2,(%rsp)
cvttsd2si %xmm1,%edi
movsd  0xeaf(%rip),%xmm0
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  (%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @gammaStandardize(double %0, double* %1) {
%3 = alloca double
%4 = alloca double*
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %3
store double* %1, double** %4
%9 = load double*, double** %4
%10 = getelementptr inbounds double, double* %9, i64 0
%11 = load double, double* %10
store double %11, double* %5
%12 = load double*, double** %4
%13 = getelementptr inbounds double, double* %12, i64 1
%14 = load double, double* %13
store double %14, double* %6
%15 = load double, double* %3
%16 = load double, double* %5
%17 = fdiv double %15, %16
%18 = load double, double* %6
%19 = fdiv double %17, %18
store double %19, double* %7
%20 = load double, double* %7
%21 = fptosi double %20 to i32
%22 = call i32 @pow(i32 %21, double 0x3FD555555555554F)
%23 = sitofp i32 %22 to double
%24 = load double, double* %6
%25 = fmul double 9.000000e+00, %24
%26 = fdiv double 1.000000e+00, %25
%27 = fadd double %23, %26
%28 = fsub double %27, 1.000000e+00
%29 = load double, double* %6
%30 = fmul double 9.000000e+00, %29
%31 = fptosi double %30 to i32
%32 = call i32 @pow(i32 %31, double 5.000000e-01)
%33 = sitofp i32 %32 to double
%34 = fmul double %28, %33
store double %34, double* %8
%35 = load double, double* %8
ret double %35
}

LLVM IR (-O2):
define double @gammaStandardize(double %0, double* nocapture %1) {
%3 = load double, double* %1
%4 = getelementptr inbounds double, double* %1, i64 1
%5 = load double, double* %4
%6 = fdiv double %0, %3
%7 = fdiv double %6, %5
%8 = fptosi double %7 to i32
%9 = tail call i32 @pow(i32 %8, double 0x3FD555555555554F)
%10 = sitofp i32 %9 to double
%11 = fmul double %5, 9.000000e+00
%12 = fdiv double 1.000000e+00, %11
%13 = fadd double %12, %10
%14 = fadd double %13, -1.000000e+00
%15 = fptosi double %11 to i32
%16 = tail call i32 @pow(i32 %15, double 5.000000e-01)
%17 = sitofp i32 %16 to double
%18 = fmul double %14, %17
ret double %18
}