#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 fabs(double);
double pow(double, double);
double sqrt(double);
void gauher(float x[], float w[], int n) {
  void nrerror(char error_text[]);
  int i, its, j, m;
  double p1, p2, p3, pp, z, z1;
  m = (n + 1) / 2;
  for (i = 1; i <= m; i++) {
    if (i == 1) {
      z = sqrt((double)(2 * n + 1)) -
          1.85575 * pow((double)(2 * n + 1), -0.16667);
    } else if (i == 2) {
      z -= 1.14 * pow((double)n, 0.426) / z;
    } else if (i == 3) {
      z = 1.86 * z - 0.86 * x[1];
    } else if (i == 4) {
      z = 1.91 * z - 0.91 * x[2];
    } else {
      z = 2.0 * z - x[i - 2];
    }
    for (its = 1; its <= 10; its++) {
      p1 = 0.7511255444649425;
      p2 = 0.0;
      for (j = 1; j <= n; j++) {
        p3 = p2;
        p2 = p1;
        p1 = z * sqrt(2.0 / j) * p2 - sqrt(((double)(j - 1)) / j) * p3;
      }
      pp = sqrt((double)2 * n) * p2;
      z1 = z;
      z = z1 - p1 / pp;
      if (fabs(z - z1) <= 3.0e-14)
        break;
    }
    if (its > 10)
      nrerror("too many iterations in gauher");
    x[i] = z;
    x[n + 1 - i] = -z;
    w[i] = 2.0 / (pp * pp);
    w[n + 1 - i] = w[i];
  }
}


x86 assembly (clang, -O0):
<gauher>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x24(%rbp)
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     1521 <gauher+0x3f1>
cmpl   $0x1,-0x18(%rbp)
jne    11c4 <gauher+0x94>
mov    -0x14(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
call   1050 <sqrt@plt>
movsd  %xmm0,-0x60(%rbp)
mov    -0x14(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  0xe98(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x60(%rbp),%xmm1
movsd  0xe7e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    1304 <gauher+0x1d4>
cmpl   $0x2,-0x18(%rbp)
jne    1204 <gauher+0xd4>
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  0xe4d(%rip),%xmm1
call   1040 <pow@plt>
movsd  0xe38(%rip),%xmm1
mulsd  %xmm0,%xmm1
divsd  -0x50(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    12ff <gauher+0x1cf>
cmpl   $0x3,-0x18(%rbp)
jne    125d <gauher+0x12d>
movsd  -0x50(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xdf0(%rip),%xmm1
mulsd  %xmm2,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xdc5(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    12fa <gauher+0x1ca>
cmpl   $0x4,-0x18(%rbp)
jne    12b6 <gauher+0x186>
movsd  -0x50(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xd87(%rip),%xmm1
mulsd  %xmm2,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xd5c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    12f5 <gauher+0x1c5>
movsd  -0x50(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm1
cvtss2sd %xmm1,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    12fa <gauher+0x1ca>
jmp    12ff <gauher+0x1cf>
jmp    1304 <gauher+0x1d4>
movl   $0x1,-0x1c(%rbp)
cmpl   $0xa,-0x1c(%rbp)
jg     1469 <gauher+0x339>
movsd  0xd23(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     13e8 <gauher+0x2b8>
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
cvtsi2sdl -0x20(%rbp),%xmm1
movsd  0xce8(%rip),%xmm0
divsd  %xmm1,%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x20(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm0
cvtsi2sdl -0x20(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1050 <sqrt@plt>
movsd  -0x70(%rbp),%xmm2
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1331 <gauher+0x201>
cvtsi2sdl -0x14(%rbp),%xmm1
movsd  0xc5b(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <sqrt@plt>
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
divsd  -0x48(%rbp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm1
subsd  -0x58(%rbp),%xmm1
movaps 0xc25(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  0xc01(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     1456 <gauher+0x326>
jmp    1469 <gauher+0x339>
jmp    145b <gauher+0x32b>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    130b <gauher+0x1db>
cmpl   $0xa,-0x1c(%rbp)
jle    147f <gauher+0x34f>
lea    0xbf6(%rip),%rdi
call   1030 <nrerror@plt>
movsd  -0x50(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movsd  -0x50(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
sub    -0x18(%rbp),%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
movsd  -0x48(%rbp),%xmm1
mulsd  -0x48(%rbp),%xmm1
movsd  0xb74(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
sub    -0x18(%rbp),%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    115e <gauher+0x2e>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gauher>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
test   %edx,%edx
jle    14bf <gauher+0x38f>
mov    %edx,%ebx
mov    %rsi,%r14
mov    %rdi,%r15
lea    0x1(%rbx),%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
cvtsi2sd %edx,%xmm0
lea    (%rbx,%rbx,1),%edx
add    $0x1,%edx
cvtsi2sd %edx,%xmm4
movsd  %xmm0,0x38(%rsp)
movapd %xmm0,%xmm2
addsd  %xmm0,%xmm2
cltq
mov    %rax,0x48(%rsp)
cmp    $0x2,%ecx
mov    $0x1,%eax
cmovge %ecx,%eax
add    $0x1,%eax
mov    %rax,0x40(%rsp)
mov    $0x1,%r12d
movsd  %xmm2,0x28(%rsp)
sqrtsd %xmm2,%xmm1
movsd  %xmm1,0x50(%rsp)
xorps  %xmm1,%xmm1
sqrtsd %xmm4,%xmm1
movsd  %xmm1,0x30(%rsp)
movsd  %xmm4,0x20(%rsp)
jmp    123b <gauher+0x10b>
xchg   %ax,%ax
lea    0xec9(%rip),%rdi
movsd  %xmm2,0x8(%rsp)
movsd  %xmm3,0x10(%rsp)
call   1030 <nrerror@plt>
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
xorps  %xmm0,%xmm0
cvtsd2ss %xmm3,%xmm0
movss  %xmm0,(%r15,%r12,4)
xorps  0xe78(%rip),%xmm0
mov    0x48(%rsp),%rax
sub    %r12,%rax
movss  %xmm0,(%r15,%rax,4)
mulsd  %xmm2,%xmm2
movsd  0xe36(%rip),%xmm0
divsd  %xmm2,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%r14,%r12,4)
movss  %xmm0,(%r14,%rax,4)
add    $0x1,%r12
cmp    0x40(%rsp),%r12
movsd  0x20(%rsp),%xmm4
je     14bf <gauher+0x38f>
lea    -0x1(%r12),%eax
cmp    $0x3,%eax
ja     12b0 <gauher+0x180>
lea    0xe34(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
ucomisd 0xdfb(%rip),%xmm4
movsd  0x30(%rsp),%xmm0
jae    1276 <gauher+0x146>
movsd  0x20(%rsp),%xmm0
call   1050 <sqrt@plt>
movsd  0x20(%rsp),%xmm4
movsd  %xmm0,0x8(%rsp)
movapd %xmm4,%xmm0
movsd  0xda8(%rip),%xmm1
call   1040 <pow@plt>
mulsd  0xda3(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%rsp)
jmp    1353 <gauher+0x223>
cs nopw 0x0(%rax,%rax,1)
nop
movss  -0x8(%r15,%r12,4),%xmm0
cvtss2sd %xmm0,%xmm0
addsd  %xmm3,%xmm3
subsd  %xmm0,%xmm3
jmp    134e <gauher+0x21e>
nopl   0x0(%rax,%rax,1)
movsd  0x38(%rsp),%xmm0
movsd  0xd42(%rip),%xmm1
movsd  %xmm3,0x10(%rsp)
call   1040 <pow@plt>
mulsd  0xd37(%rip),%xmm0
movsd  0x10(%rsp),%xmm1
divsd  %xmm1,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
jmp    1353 <gauher+0x223>
cs nopw 0x0(%rax,%rax,1)
movss  0x4(%r15),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xcee(%rip),%xmm0
mulsd  0xcee(%rip),%xmm3
jmp    134a <gauher+0x21a>
nopl   0x0(%rax)
movss  0x8(%r15),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xcbe(%rip),%xmm0
mulsd  0xcbe(%rip),%xmm3
addsd  %xmm0,%xmm3
movsd  %xmm3,(%rsp)
mov    $0x1,%r13d
nopl   0x0(%rax)
xorpd  %xmm1,%xmm1
movsd  0xcd4(%rip),%xmm4
mov    $0x1,%ebp
jmp    13bc <gauher+0x28c>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  %xmm4,0x18(%rsp)
call   1050 <sqrt@plt>
movsd  0x18(%rsp),%xmm4
movsd  0x8(%rsp),%xmm2
movsd  0x10(%rsp),%xmm1
mulsd  %xmm0,%xmm1
mulsd  (%rsp),%xmm4
mulsd  %xmm2,%xmm4
subsd  %xmm1,%xmm4
lea    0x1(%rbp),%eax
add    $0x2,%ebp
movapd %xmm2,%xmm1
cmp    %ebx,%eax
je     1430 <gauher+0x300>
movsd  %xmm1,0x10(%rsp)
xorps  %xmm2,%xmm2
cvtsi2sd %ebp,%xmm2
movsd  0xc77(%rip),%xmm0
divsd  %xmm2,%xmm0
ucomisd 0xc7b(%rip),%xmm0
movsd  %xmm4,0x8(%rsp)
jb     13f0 <gauher+0x2c0>
xorps  %xmm4,%xmm4
sqrtsd %xmm0,%xmm4
jmp    1405 <gauher+0x2d5>
xchg   %ax,%ax
movsd  %xmm2,0x18(%rsp)
call   1050 <sqrt@plt>
movsd  0x18(%rsp),%xmm2
movapd %xmm0,%xmm4
add    $0xffffffff,%ebp
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
divsd  %xmm2,%xmm0
ucomisd 0xc3d(%rip),%xmm0
jb     1380 <gauher+0x250>
sqrtsd %xmm0,%xmm0
jmp    1391 <gauher+0x261>
nopw   0x0(%rax,%rax,1)
movsd  0x28(%rsp),%xmm0
ucomisd 0xc1a(%rip),%xmm0
movsd  0x50(%rsp),%xmm0
jae    1463 <gauher+0x333>
movsd  0x28(%rsp),%xmm0
movsd  %xmm4,0x18(%rsp)
call   1050 <sqrt@plt>
movsd  0x18(%rsp),%xmm4
movsd  0x8(%rsp),%xmm2
mulsd  %xmm0,%xmm2
divsd  %xmm2,%xmm4
movsd  (%rsp),%xmm1
movapd %xmm1,%xmm3
subsd  %xmm4,%xmm3
movapd %xmm3,%xmm0
subsd  %xmm1,%xmm0
andpd  0xbd8(%rip),%xmm0
movsd  0xbc0(%rip),%xmm1
ucomisd %xmm0,%xmm1
jae    14b0 <gauher+0x380>
add    $0x1,%r13d
movsd  %xmm3,(%rsp)
cmp    $0xb,%r13d
jne    1360 <gauher+0x230>
jmp    11c0 <gauher+0x90>
xchg   %ax,%ax
cmp    $0xb,%r13d
jb     11e4 <gauher+0xb4>
jmp    11c0 <gauher+0x90>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [30 x i8] c"too many iterations in gauher\00"
define void @gauher(float* %0, float* %1, i32 %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
store float* %0, float** %4
store float* %1, float** %5
store i32 %2, i32* %6
%17 = load i32, i32* %6
%18 = add nsw i32 %17, 1
%19 = sdiv i32 %18, 2
store i32 %19, i32* %10
store i32 1, i32* %7
br label %20
20: ; preds = %187, %3
%21 = load i32, i32* %7
%22 = load i32, i32* %10
%23 = icmp sle i32 %21, %22
br i1 %23, label %24, label %190
24: ; preds = %20
%25 = load i32, i32* %7
%26 = icmp eq i32 %25, 1
br i1 %26, label %27, label %39
27: ; preds = %24
%28 = load i32, i32* %6
%29 = mul nsw i32 2, %28
%30 = add nsw i32 %29, 1
%31 = sitofp i32 %30 to double
%32 = call double @sqrt(double %31)
%33 = load i32, i32* %6
%34 = mul nsw i32 2, %33
%35 = add nsw i32 %34, 1
%36 = sitofp i32 %35 to double
%37 = call double @pow(double %36, double -1.666700e-01)
%38 = call double @llvm.fmuladd.f64(double -1.855750e+00, double %37, double %32)
store double %38, double* %15
br label %89
39: ; preds = %24
%40 = load i32, i32* %7
%41 = icmp eq i32 %40, 2
br i1 %41, label %42, label %51
42: ; preds = %39
%43 = load i32, i32* %6
%44 = sitofp i32 %43 to double
%45 = call double @pow(double %44, double 4.260000e-01)
%46 = fmul double 1.140000e+00, %45
%47 = load double, double* %15
%48 = fdiv double %46, %47
%49 = load double, double* %15
%50 = fsub double %49, %48
store double %50, double* %15
br label %88
51: ; preds = %39
%52 = load i32, i32* %7
%53 = icmp eq i32 %52, 3
br i1 %53, label %54, label %63
54: ; preds = %51
%55 = load double, double* %15
%56 = load float*, float** %4
%57 = getelementptr inbounds float, float* %56, i64 1
%58 = load float, float* %57
%59 = fpext float %58 to double
%60 = fmul double 8.600000e-01, %59
%61 = fneg double %60
%62 = call double @llvm.fmuladd.f64(double 1.860000e+00, double %55, double %61)
store double %62, double* %15
br label %87
63: ; preds = %51
%64 = load i32, i32* %7
%65 = icmp eq i32 %64, 4
br i1 %65, label %66, label %75
66: ; preds = %63
%67 = load double, double* %15
%68 = load float*, float** %4
%69 = getelementptr inbounds float, float* %68, i64 2
%70 = load float, float* %69
%71 = fpext float %70 to double
%72 = fmul double 9.100000e-01, %71
%73 = fneg double %72
%74 = call double @llvm.fmuladd.f64(double 1.910000e+00, double %67, double %73)
store double %74, double* %15
br label %86
75: ; preds = %63
%76 = load double, double* %15
%77 = load float*, float** %4
%78 = load i32, i32* %7
%79 = sub nsw i32 %78, 2
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds float, float* %77, i64 %80
%82 = load float, float* %81
%83 = fpext float %82 to double
%84 = fneg double %83
%85 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %76, double %84)
store double %85, double* %15
br label %86
86: ; preds = %75, %66
br label %87
87: ; preds = %86, %54
br label %88
88: ; preds = %87, %42
br label %89
89: ; preds = %88, %27
store i32 1, i32* %8
br label %90
90: ; preds = %142, %89
%91 = load i32, i32* %8
%92 = icmp sle i32 %91, 10
br i1 %92, label %93, label %145
93: ; preds = %90
store double 0x3FE8093870155910, double* %11
store double 0.000000e+00, double* %12
store i32 1, i32* %9
br label %94
94: ; preds = %119, %93
%95 = load i32, i32* %9
%96 = load i32, i32* %6
%97 = icmp sle i32 %95, %96
br i1 %97, label %98, label %122
98: ; preds = %94
%99 = load double, double* %12
store double %99, double* %13
%100 = load double, double* %11
store double %100, double* %12
%101 = load double, double* %15
%102 = load i32, i32* %9
%103 = sitofp i32 %102 to double
%104 = fdiv double 2.000000e+00, %103
%105 = call double @sqrt(double %104)
%106 = fmul double %101, %105
%107 = load double, double* %12
%108 = load i32, i32* %9
%109 = sub nsw i32 %108, 1
%110 = sitofp i32 %109 to double
%111 = load i32, i32* %9
%112 = sitofp i32 %111 to double
%113 = fdiv double %110, %112
%114 = call double @sqrt(double %113)
%115 = load double, double* %13
%116 = fmul double %114, %115
%117 = fneg double %116
%118 = call double @llvm.fmuladd.f64(double %106, double %107, double %117)
store double %118, double* %11
br label %119
119: ; preds = %98
%120 = load i32, i32* %9
%121 = add nsw i32 %120, 1
store i32 %121, i32* %9
br label %94
122: ; preds = %94
%123 = load i32, i32* %6
%124 = sitofp i32 %123 to double
%125 = fmul double 2.000000e+00, %124
%126 = call double @sqrt(double %125)
%127 = load double, double* %12
%128 = fmul double %126, %127
store double %128, double* %14
%129 = load double, double* %15
store double %129, double* %16
%130 = load double, double* %16
%131 = load double, double* %11
%132 = load double, double* %14
%133 = fdiv double %131, %132
%134 = fsub double %130, %133
store double %134, double* %15
%135 = load double, double* %15
%136 = load double, double* %16
%137 = fsub double %135, %136
%138 = call double @llvm.fabs.f64(double %137)
%139 = fcmp ole double %138, 3.000000e-14
br i1 %139, label %140, label %141
140: ; preds = %122
br label %145
141: ; preds = %122
br label %142
142: ; preds = %141
%143 = load i32, i32* %8
%144 = add nsw i32 %143, 1
store i32 %144, i32* %8
br label %90
145: ; preds = %140, %90
%146 = load i32, i32* %8
%147 = icmp sgt i32 %146, 10
br i1 %147, label %148, label %149
148: ; preds = %145
br label %149
149: ; preds = %148, %145
%150 = load double, double* %15
%151 = fptrunc double %150 to float
%152 = load float*, float** %4
%153 = load i32, i32* %7
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds float, float* %152, i64 %154
store float %151, float* %155
%156 = load double, double* %15
%157 = fneg double %156
%158 = fptrunc double %157 to float
%159 = load float*, float** %4
%160 = load i32, i32* %6
%161 = add nsw i32 %160, 1
%162 = load i32, i32* %7
%163 = sub nsw i32 %161, %162
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds float, float* %159, i64 %164
store float %158, float* %165
%166 = load double, double* %14
%167 = load double, double* %14
%168 = fmul double %166, %167
%169 = fdiv double 2.000000e+00, %168
%170 = fptrunc double %169 to float
%171 = load float*, float** %5
%172 = load i32, i32* %7
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds float, float* %171, i64 %173
store float %170, float* %174
%175 = load float*, float** %5
%176 = load i32, i32* %7
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds float, float* %175, i64 %177
%179 = load float, float* %178
%180 = load float*, float** %5
%181 = load i32, i32* %6
%182 = add nsw i32 %181, 1
%183 = load i32, i32* %7
%184 = sub nsw i32 %182, %183
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds float, float* %180, i64 %185
store float %179, float* %186
br label %187
187: ; preds = %149
%188 = load i32, i32* %7
%189 = add nsw i32 %188, 1
store i32 %189, i32* %7
br label %20
190: ; preds = %20
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"too many iterations in gauher\00"
define void @gauher(float* nocapture %0, float* nocapture writeonly %1, i32 %2) {
%4 = add i32 %2, 1
%5 = icmp slt i32 %2, 1
br i1 %5, label %98, label %6
6: ; preds = %3
%7 = sdiv i32 %4, 2
%8 = getelementptr inbounds float, float* %0, i64 2
%9 = getelementptr inbounds float, float* %0, i64 1
%10 = sitofp i32 %2 to double
%11 = shl nuw nsw i32 %2, 1
%12 = or i32 %11, 1
%13 = sitofp i32 %12 to double
%14 = fmul double %10, 2.000000e+00
%15 = sext i32 %4 to i64
%16 = call i32 @llvm.smax.i32(i32 %7, i32 1)
%17 = add nuw nsw i32 %16, 1
%18 = zext i32 %17 to i64
br label %19
19: ; preds = %6, %85
%20 = phi i64 [ 1, %6 ], [ %96, %85 ]
%21 = phi double [ undef, %6 ], [ %75, %85 ]
%22 = trunc i64 %20 to i32
switch i32 %22, label %42 [
i32 1, label %23
i32 2, label %27
i32 3, label %32
i32 4, label %37
]
23: ; preds = %19
%24 = tail call double @sqrt(double %13)
%25 = tail call double @pow(double %13, double -1.666700e-01)
%26 = tail call double @llvm.fmuladd.f64(double %25, double -1.855750e+00, double %24)
br label %49
27: ; preds = %19
%28 = tail call double @pow(double %10, double 4.260000e-01)
%29 = fmul double %28, 1.140000e+00
%30 = fdiv double %29, %21
%31 = fsub double %21, %30
br label %49
32: ; preds = %19
%33 = load float, float* %9
%34 = fpext float %33 to double
%35 = fmul double %34, -8.600000e-01
%36 = tail call double @llvm.fmuladd.f64(double %21, double 1.860000e+00, double %35)
br label %49
37: ; preds = %19
%38 = load float, float* %8
%39 = fpext float %38 to double
%40 = fmul double %39, -9.100000e-01
%41 = tail call double @llvm.fmuladd.f64(double %21, double 1.910000e+00, double %40)
br label %49
42: ; preds = %19
%43 = add nsw i64 %20, -2
%44 = getelementptr inbounds float, float* %0, i64 %43
%45 = load float, float* %44
%46 = fpext float %45 to double
%47 = fneg double %46
%48 = tail call double @llvm.fmuladd.f64(double %21, double 2.000000e+00, double %47)
br label %49
49: ; preds = %27, %37, %42, %32, %23
%50 = phi double [ %48, %42 ], [ %41, %37 ], [ %36, %32 ], [ %31, %27 ], [ %26, %23 ]
br label %51
51: ; preds = %49, %79
%52 = phi double [ %75, %79 ], [ %50, %49 ]
%53 = phi i32 [ %80, %79 ], [ 1, %49 ]
br label %54
54: ; preds = %51, %54
%55 = phi double [ %56, %54 ], [ 0.000000e+00, %51 ]
%56 = phi double [ %68, %54 ], [ 0x3FE8093870155910, %51 ]
%57 = phi i32 [ %69, %54 ], [ 1, %51 ]
%58 = sitofp i32 %57 to double
%59 = fdiv double 2.000000e+00, %58
%60 = tail call double @sqrt(double %59)
%61 = fmul double %52, %60
%62 = add nsw i32 %57, -1
%63 = sitofp i32 %62 to double
%64 = fdiv double %63, %58
%65 = tail call double @sqrt(double %64)
%66 = fneg double %65
%67 = fmul double %55, %66
%68 = tail call double @llvm.fmuladd.f64(double %61, double %56, double %67)
%69 = add nuw i32 %57, 1
%70 = icmp eq i32 %57, %2
br i1 %70, label %71, label %54
71: ; preds = %54
%72 = tail call double @sqrt(double %14)
%73 = fmul double %56, %72
%74 = fdiv double %68, %73
%75 = fsub double %52, %74
%76 = fsub double %75, %52
%77 = tail call double @llvm.fabs.f64(double %76)
%78 = fcmp ugt double %77, 3.000000e-14
br i1 %78, label %79, label %82
79: ; preds = %71
%80 = add nuw nsw i32 %53, 1
%81 = icmp eq i32 %80, 11
br i1 %81, label %84, label %51
82: ; preds = %71
%83 = icmp ugt i32 %53, 10
br i1 %83, label %84, label %85
84: ; preds = %79, %82
tail call void @nrerror(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
br label %85
85: ; preds = %84, %82
%86 = fptrunc double %75 to float
%87 = getelementptr inbounds float, float* %0, i64 %20
store float %86, float* %87
%88 = fneg float %86
%89 = sub nsw i64 %15, %20
%90 = getelementptr inbounds float, float* %0, i64 %89
store float %88, float* %90
%91 = fmul double %73, %73
%92 = fdiv double 2.000000e+00, %91
%93 = fptrunc double %92 to float
%94 = getelementptr inbounds float, float* %1, i64 %20
store float %93, float* %94
%95 = getelementptr inbounds float, float* %1, i64 %89
store float %93, float* %95
%96 = add nuw nsw i64 %20, 1
%97 = icmp eq i64 %96, %18
br i1 %97, label %98, label %19
98: ; preds = %85, %3
ret void
}