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


x86 assembly (clang, -O0):
<pearsonIIIStandardize>:
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,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
ucomisd -0x28(%rbp),%xmm0
jb     11f0 <pearsonIIIStandardize+0xe0>
movsd  -0x8(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
cvttsd2si %xmm0,%edi
movsd  0xe9c(%rip),%xmm0
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe7b(%rip),%xmm2
mulsd  -0x20(%rbp),%xmm2
movsd  0xe76(%rip),%xmm1
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  0xe66(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe4d(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
cvttsd2si %xmm0,%edi
movsd  0xe34(%rip),%xmm0
call   1030 <pow@plt>
movsd  -0x40(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    11fd <pearsonIIIStandardize+0xed>
movsd  0xe08(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pearsonIIIStandardize>:
push   %rax
movsd  (%rdi),%xmm1
ucomisd %xmm1,%xmm0
jae    1125 <pearsonIIIStandardize+0x15>
movsd  0xedd(%rip),%xmm0
pop    %rax
ret
subsd  %xmm1,%xmm0
divsd  0x8(%rdi),%xmm0
movsd  0x10(%rdi),%xmm1
movsd  %xmm1,(%rsp)
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
movsd  0xec0(%rip),%xmm0
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rsp),%xmm1
mulsd  0xeaf(%rip),%xmm1
movsd  0xeaf(%rip),%xmm2
divsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
addsd  0xea7(%rip),%xmm2
movsd  %xmm2,(%rsp)
cvttsd2si %xmm1,%edi
movsd  0xe9e(%rip),%xmm0
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  (%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @pearsonIIIStandardize(double %0, double* %1) {
%3 = alloca double
%4 = alloca double*
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
store double %0, double* %3
store double* %1, double** %4
%10 = load double*, double** %4
%11 = getelementptr inbounds double, double* %10, i64 0
%12 = load double, double* %11
store double %12, double* %7
%13 = load double*, double** %4
%14 = getelementptr inbounds double, double* %13, i64 1
%15 = load double, double* %14
store double %15, double* %5
%16 = load double*, double** %4
%17 = getelementptr inbounds double, double* %16, i64 2
%18 = load double, double* %17
store double %18, double* %6
%19 = load double, double* %3
%20 = load double, double* %7
%21 = fcmp oge double %19, %20
br i1 %21, label %22, label %45
22: ; preds = %2
%23 = load double, double* %3
%24 = load double, double* %7
%25 = fsub double %23, %24
%26 = load double, double* %5
%27 = fdiv double %25, %26
store double %27, double* %8
%28 = load double, double* %8
%29 = load double, double* %6
%30 = fdiv double %28, %29
%31 = fptosi double %30 to i32
%32 = call i32 @pow(i32 %31, double 0x3FD555555555554F)
%33 = sitofp i32 %32 to double
%34 = load double, double* %6
%35 = fmul double 9.000000e+00, %34
%36 = fdiv double 1.000000e+00, %35
%37 = fadd double %33, %36
%38 = fsub double %37, 1.000000e+00
%39 = load double, double* %6
%40 = fmul double 9.000000e+00, %39
%41 = fptosi double %40 to i32
%42 = call i32 @pow(i32 %41, double 5.000000e-01)
%43 = sitofp i32 %42 to double
%44 = fmul double %38, %43
store double %44, double* %9
br label %46
45: ; preds = %2
store double 0xC008B8CBB720443C, double* %9
br label %46
46: ; preds = %45, %22
%47 = load double, double* %9
ret double %47
}

LLVM IR (-O2):
define double @pearsonIIIStandardize(double %0, double* nocapture %1) {
%3 = load double, double* %1
%4 = getelementptr inbounds double, double* %1, i64 2
%5 = load double, double* %4
%6 = fcmp ugt double %3, %0
br i1 %6, label %24, label %7
7: ; preds = %2
%8 = getelementptr inbounds double, double* %1, i64 1
%9 = load double, double* %8
%10 = fsub double %0, %3
%11 = fdiv double %10, %9
%12 = fdiv double %11, %5
%13 = fptosi double %12 to i32
%14 = tail call i32 @pow(i32 %13, double 0x3FD555555555554F)
%15 = sitofp i32 %14 to double
%16 = fmul double %5, 9.000000e+00
%17 = fdiv double 1.000000e+00, %16
%18 = fadd double %17, %15
%19 = fadd double %18, -1.000000e+00
%20 = fptosi double %16 to i32
%21 = tail call i32 @pow(i32 %20, double 5.000000e-01)
%22 = sitofp i32 %21 to double
%23 = fmul double %19, %22
br label %24
24: ; preds = %2, %7
%25 = phi double [ %23, %7 ], [ 0xC008B8CBB720443C, %2 ]
ret double %25
}