#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 sqrt(double);
double tgamma(double);
double class(int n, double alpha, double beta, double *b, double *a) {
  int nm1 = n - 1;
  double ab = alpha + beta;
  double abi = ab + 2.0;
  double abi2;
  double bbaa = beta * beta - alpha * alpha;
  double a1 = alpha + 1;
  double b1 = beta + 1;
  double muzero = pow(2.0, ab + 1.0) * tgamma(a1) * tgamma(b1) / tgamma(abi);
  int i;
  a[0] = (beta - alpha) / abi;
  b[0] = sqrt(4.0 * a1 * b1 / (ab + 3.0) / abi / abi);
  for (i = 1; i < nm1; ++i) {
    int i1 = i + 1;
    abi = 2.0 * i1 + ab;
    abi2 = abi * abi;
    a[i] = bbaa / (abi - 2.0) / abi;
    b[i] = sqrt(4.0 * i1 * (alpha + i1) * (beta + i1) * (ab + i1) /
                (abi2 - 1.0) / abi2);
  }
  abi += 2.0;
  a[nm1] = bbaa / (abi - 2.0) / abi;
  b[nm1] = 0.0;
  return muzero;
}


x86 assembly (clang, -O0):
<class>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x2c(%rbp)
movsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xea0(%rip),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe5e(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe4c(%rip),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xe3a(%rip),%xmm1
addsd  -0x38(%rbp),%xmm1
movsd  0xe25(%rip),%xmm0
call   1040 <pow@plt>
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
call   1030 <tgamma@plt>
movaps %xmm0,%xmm1
movsd  -0x88(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x60(%rbp),%xmm0
call   1030 <tgamma@plt>
movaps %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1030 <tgamma@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
divsd  -0x40(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  0xd9d(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  0xd83(%rip),%xmm1
addsd  -0x38(%rbp),%xmm1
divsd  %xmm1,%xmm0
divsd  -0x40(%rbp),%xmm0
divsd  -0x40(%rbp),%xmm0
call   1050 <sqrt@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x6c(%rbp)
mov    -0x6c(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    138c <class+0x25c>
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x70(%rbp)
cvtsi2sdl -0x70(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0xd1f(%rip),%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
divsd  -0x40(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
cvtsi2sdl -0x70(%rbp),%xmm1
movsd  0xcf0(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm1
cvtsi2sdl -0x70(%rbp),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
cvtsi2sdl -0x70(%rbp),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x38(%rbp),%xmm1
cvtsi2sdl -0x70(%rbp),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  0xcb9(%rip),%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
divsd  -0x48(%rbp),%xmm0
call   1050 <sqrt@plt>
mov    -0x20(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    12a4 <class+0x174>
movsd  0xc7c(%rip),%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0xc60(%rip),%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
divsd  -0x40(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x68(%rbp),%xmm0
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<class>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rdx,%r14
mov    %rsi,%r13
movsd  %xmm1,0x38(%rsp)
movapd %xmm0,%xmm3
movsd  %xmm0,0x30(%rsp)
mov    %edi,%r15d
addsd  %xmm1,%xmm0
movsd  0xe9d(%rip),%xmm2
addsd  %xmm0,%xmm2
movsd  %xmm2,0x8(%rsp)
movapd %xmm0,%xmm2
movsd  %xmm0,0x28(%rsp)
movapd %xmm3,%xmm0
mulsd  %xmm3,%xmm0
movsd  %xmm0,0x40(%rsp)
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xe6d(%rip),%xmm0
addsd  %xmm0,%xmm3
movsd  %xmm3,0x18(%rsp)
movapd %xmm1,%xmm3
addsd  %xmm0,%xmm3
movsd  %xmm3,0x20(%rsp)
addsd  %xmm2,%xmm0
call   1040 <exp2@plt>
movsd  %xmm0,0x60(%rsp)
movsd  0x18(%rsp),%xmm0
call   1030 <tgamma@plt>
movsd  %xmm0,0x58(%rsp)
movsd  0x20(%rsp),%xmm0
call   1030 <tgamma@plt>
movsd  %xmm0,0x50(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <tgamma@plt>
movsd  0x8(%rsp),%xmm6
movsd  %xmm0,0x48(%rsp)
movsd  0x38(%rsp),%xmm0
subsd  0x30(%rsp),%xmm0
divsd  %xmm6,%xmm0
movsd  %xmm0,(%r14)
movsd  0x18(%rsp),%xmm1
mulsd  0xdf2(%rip),%xmm1
mulsd  0x20(%rsp),%xmm1
movsd  0xdec(%rip),%xmm0
addsd  0x28(%rsp),%xmm0
divsd  %xmm0,%xmm1
divsd  %xmm6,%xmm1
divsd  %xmm6,%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
movapd %xmm1,%xmm0
jb     1252 <class+0x122>
sqrtsd %xmm0,%xmm0
jmp    125d <class+0x12d>
call   1050 <sqrt@plt>
movsd  0x8(%rsp),%xmm6
lea    -0x1(%r15),%r12d
movsd  0x10(%rsp),%xmm8
subsd  0x40(%rsp),%xmm8
movsd  %xmm0,0x0(%r13)
cmp    $0x3,%r15d
jl     138a <class+0x25a>
mov    %r12d,%r15d
mov    $0x1,%ebx
movsd  0xd91(%rip),%xmm7
movsd  0xd79(%rip),%xmm4
movsd  0xd88(%rip),%xmm9
xorpd  %xmm10,%xmm10
movsd  %xmm8,0x10(%rsp)
jmp    12f9 <class+0x1c9>
xchg   %ax,%ax
movsd  %xmm6,0x8(%rsp)
call   1050 <sqrt@plt>
xorpd  %xmm10,%xmm10
movsd  0xd5f(%rip),%xmm9
movsd  0xd3f(%rip),%xmm4
movsd  0xd47(%rip),%xmm7
movsd  0x8(%rsp),%xmm6
movsd  0x10(%rsp),%xmm8
movsd  %xmm0,0x0(%r13,%rbx,8)
mov    %rbp,%rbx
cmp    %rbp,%r15
je     138a <class+0x25a>
lea    0x1(%rbx),%rbp
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
movapd %xmm0,%xmm6
addsd  %xmm0,%xmm6
movsd  0x28(%rsp),%xmm5
addsd  %xmm5,%xmm6
movapd %xmm6,%xmm1
mulsd  %xmm6,%xmm1
movapd %xmm6,%xmm2
addsd  %xmm7,%xmm2
movapd %xmm8,%xmm3
divsd  %xmm2,%xmm3
divsd  %xmm6,%xmm3
movsd  %xmm3,(%r14,%rbx,8)
movapd %xmm0,%xmm2
mulsd  %xmm4,%xmm2
movapd %xmm0,%xmm3
addsd  0x30(%rsp),%xmm3
mulsd  %xmm2,%xmm3
movapd %xmm5,%xmm2
addsd  %xmm0,%xmm2
addsd  0x38(%rsp),%xmm0
mulsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm0
movapd %xmm1,%xmm2
addsd  %xmm9,%xmm2
divsd  %xmm2,%xmm0
divsd  %xmm1,%xmm0
ucomisd %xmm10,%xmm0
jb     12b0 <class+0x180>
sqrtsd %xmm0,%xmm0
jmp    12e6 <class+0x1b6>
movsd  0x60(%rsp),%xmm0
mulsd  0x58(%rsp),%xmm0
mulsd  0x50(%rsp),%xmm0
addsd  0xc5c(%rip),%xmm6
divsd  0x48(%rsp),%xmm0
movsd  0xc6e(%rip),%xmm1
addsd  %xmm6,%xmm1
divsd  %xmm1,%xmm8
divsd  %xmm6,%xmm8
movslq %r12d,%rax
movsd  %xmm8,(%r14,%rax,8)
movq   $0x0,0x0(%r13,%rax,8)
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define double @class(i32 %0, double %1, double %2, double* %3, double* %4) {
%6 = alloca i32
%7 = alloca double
%8 = alloca double
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca i32
%20 = alloca i32
store i32 %0, i32* %6
store double %1, double* %7
store double %2, double* %8
store double* %3, double** %9
store double* %4, double** %10
%21 = load i32, i32* %6
%22 = sub nsw i32 %21, 1
store i32 %22, i32* %11
%23 = load double, double* %7
%24 = load double, double* %8
%25 = fadd double %23, %24
store double %25, double* %12
%26 = load double, double* %12
%27 = fadd double %26, 2.000000e+00
store double %27, double* %13
%28 = load double, double* %8
%29 = load double, double* %8
%30 = load double, double* %7
%31 = load double, double* %7
%32 = fmul double %30, %31
%33 = fneg double %32
%34 = call double @llvm.fmuladd.f64(double %28, double %29, double %33)
store double %34, double* %15
%35 = load double, double* %7
%36 = fadd double %35, 1.000000e+00
store double %36, double* %16
%37 = load double, double* %8
%38 = fadd double %37, 1.000000e+00
store double %38, double* %17
%39 = load double, double* %12
%40 = fadd double %39, 1.000000e+00
%41 = call double @pow(double 2.000000e+00, double %40)
%42 = load double, double* %16
%43 = call double @tgamma(double %42)
%44 = fmul double %41, %43
%45 = load double, double* %17
%46 = call double @tgamma(double %45)
%47 = fmul double %44, %46
%48 = load double, double* %13
%49 = call double @tgamma(double %48)
%50 = fdiv double %47, %49
store double %50, double* %18
%51 = load double, double* %8
%52 = load double, double* %7
%53 = fsub double %51, %52
%54 = load double, double* %13
%55 = fdiv double %53, %54
%56 = load double*, double** %10
%57 = getelementptr inbounds double, double* %56, i64 0
store double %55, double* %57
%58 = load double, double* %16
%59 = fmul double 4.000000e+00, %58
%60 = load double, double* %17
%61 = fmul double %59, %60
%62 = load double, double* %12
%63 = fadd double %62, 3.000000e+00
%64 = fdiv double %61, %63
%65 = load double, double* %13
%66 = fdiv double %64, %65
%67 = load double, double* %13
%68 = fdiv double %66, %67
%69 = call double @sqrt(double %68)
%70 = load double*, double** %9
%71 = getelementptr inbounds double, double* %70, i64 0
store double %69, double* %71
store i32 1, i32* %19
br label %72
72: ; preds = %124, %5
%73 = load i32, i32* %19
%74 = load i32, i32* %11
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %127
76: ; preds = %72
%77 = load i32, i32* %19
%78 = add nsw i32 %77, 1
store i32 %78, i32* %20
%79 = load i32, i32* %20
%80 = sitofp i32 %79 to double
%81 = load double, double* %12
%82 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %80, double %81)
store double %82, double* %13
%83 = load double, double* %13
%84 = load double, double* %13
%85 = fmul double %83, %84
store double %85, double* %14
%86 = load double, double* %15
%87 = load double, double* %13
%88 = fsub double %87, 2.000000e+00
%89 = fdiv double %86, %88
%90 = load double, double* %13
%91 = fdiv double %89, %90
%92 = load double*, double** %10
%93 = load i32, i32* %19
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, double* %92, i64 %94
store double %91, double* %95
%96 = load i32, i32* %20
%97 = sitofp i32 %96 to double
%98 = fmul double 4.000000e+00, %97
%99 = load double, double* %7
%100 = load i32, i32* %20
%101 = sitofp i32 %100 to double
%102 = fadd double %99, %101
%103 = fmul double %98, %102
%104 = load double, double* %8
%105 = load i32, i32* %20
%106 = sitofp i32 %105 to double
%107 = fadd double %104, %106
%108 = fmul double %103, %107
%109 = load double, double* %12
%110 = load i32, i32* %20
%111 = sitofp i32 %110 to double
%112 = fadd double %109, %111
%113 = fmul double %108, %112
%114 = load double, double* %14
%115 = fsub double %114, 1.000000e+00
%116 = fdiv double %113, %115
%117 = load double, double* %14
%118 = fdiv double %116, %117
%119 = call double @sqrt(double %118)
%120 = load double*, double** %9
%121 = load i32, i32* %19
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds double, double* %120, i64 %122
store double %119, double* %123
br label %124
124: ; preds = %76
%125 = load i32, i32* %19
%126 = add nsw i32 %125, 1
store i32 %126, i32* %19
br label %72
127: ; preds = %72
%128 = load double, double* %13
%129 = fadd double %128, 2.000000e+00
store double %129, double* %13
%130 = load double, double* %15
%131 = load double, double* %13
%132 = fsub double %131, 2.000000e+00
%133 = fdiv double %130, %132
%134 = load double, double* %13
%135 = fdiv double %133, %134
%136 = load double*, double** %10
%137 = load i32, i32* %11
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds double, double* %136, i64 %138
store double %135, double* %139
%140 = load double*, double** %9
%141 = load i32, i32* %11
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds double, double* %140, i64 %142
store double 0.000000e+00, double* %143
%144 = load double, double* %18
ret double %144
}

LLVM IR (-O2):
define double @class(i32 %0, double %1, double %2, double* nocapture writeonly %3, double* nocapture writeonly %4) {
%6 = add i32 %0, -1
%7 = fadd double %1, %2
%8 = fadd double %7, 2.000000e+00
%9 = fneg double %1
%10 = fmul double %9, %1
%11 = tail call double @llvm.fmuladd.f64(double %2, double %2, double %10)
%12 = fadd double %1, 1.000000e+00
%13 = fadd double %2, 1.000000e+00
%14 = fadd double %7, 1.000000e+00
%15 = tail call double @exp2(double %14)
%16 = tail call double @tgamma(double %12)
%17 = tail call double @tgamma(double %13)
%18 = tail call double @tgamma(double %8)
%19 = fsub double %2, %1
%20 = fdiv double %19, %8
store double %20, double* %4
%21 = fmul double %12, 4.000000e+00
%22 = fmul double %21, %13
%23 = fadd double %7, 3.000000e+00
%24 = fdiv double %22, %23
%25 = fdiv double %24, %8
%26 = fdiv double %25, %8
%27 = tail call double @sqrt(double %26)
store double %27, double* %3
%28 = icmp sgt i32 %0, 2
br i1 %28, label %29, label %55
29: ; preds = %5
%30 = zext i32 %6 to i64
br label %31
31: ; preds = %29, %31
%32 = phi i64 [ 1, %29 ], [ %33, %31 ]
%33 = add nuw nsw i64 %32, 1
%34 = trunc i64 %33 to i32
%35 = sitofp i32 %34 to double
%36 = tail call double @llvm.fmuladd.f64(double %35, double 2.000000e+00, double %7)
%37 = fmul double %36, %36
%38 = fadd double %36, -2.000000e+00
%39 = fdiv double %11, %38
%40 = fdiv double %39, %36
%41 = getelementptr inbounds double, double* %4, i64 %32
store double %40, double* %41
%42 = fmul double %35, 4.000000e+00
%43 = fadd double %35, %1
%44 = fmul double %42, %43
%45 = fadd double %35, %2
%46 = fmul double %45, %44
%47 = fadd double %7, %35
%48 = fmul double %47, %46
%49 = fadd double %37, -1.000000e+00
%50 = fdiv double %48, %49
%51 = fdiv double %50, %37
%52 = tail call double @sqrt(double %51)
%53 = getelementptr inbounds double, double* %3, i64 %32
store double %52, double* %53
%54 = icmp eq i64 %33, %30
br i1 %54, label %55, label %31
55: ; preds = %31, %5
%56 = phi double [ %8, %5 ], [ %36, %31 ]
%57 = fmul double %15, %16
%58 = fmul double %57, %17
%59 = fdiv double %58, %18
%60 = fadd double %56, 2.000000e+00
%61 = fadd double %60, -2.000000e+00
%62 = fdiv double %11, %61
%63 = fdiv double %62, %60
%64 = sext i32 %6 to i64
%65 = getelementptr inbounds double, double* %4, i64 %64
store double %63, double* %65
%66 = getelementptr inbounds double, double* %3, i64 %64
store double 0.000000e+00, double* %66
ret double %59
}