#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 /*<<< orphan*/ gaudry_pm_mult(double *, double *, double const *);
int /*<<< orphan*/ gaudry_pm_square(double *, double const *);
void gaudry_pm_recip(double out[5], const double z[5]) {
  int i;
  double t7[5];
  double t8[5];
  double z2_5_0[5];
  double z2_10_0[5];
  double z2_25_0[5];
  double z2_50_0[5];
  gaudry_pm_square(t7, z);
  for (i = 0; i < 3; ++i) {
    gaudry_pm_mult(t8, t7, z);
    gaudry_pm_square(t7, t8);
  }
  gaudry_pm_mult(z2_5_0, t7, z);
  gaudry_pm_square(t8, z2_5_0);
  gaudry_pm_square(t7, t8);
  gaudry_pm_square(t8, t7);
  gaudry_pm_square(t7, t8);
  gaudry_pm_square(t8, t7);
  gaudry_pm_mult(z2_10_0, t8, z2_5_0);
  gaudry_pm_square(t8, z2_10_0);
  for (i = 0; i < 4; ++i) {
    gaudry_pm_square(t7, t8);
    gaudry_pm_square(t8, t7);
  }
  gaudry_pm_square(t7, t8);
  gaudry_pm_mult(t8, t7, z2_10_0);
  gaudry_pm_square(t7, t8);
  gaudry_pm_square(t8, t7);
  gaudry_pm_square(t7, t8);
  gaudry_pm_square(t8, t7);
  gaudry_pm_square(t7, t8);
  gaudry_pm_mult(z2_25_0, t7, z2_5_0);
  gaudry_pm_square(t8, z2_25_0);
  for (i = 0; i < 12; ++i) {
    gaudry_pm_square(t7, t8);
    gaudry_pm_square(t8, t7);
  }
  gaudry_pm_mult(z2_50_0, t8, z2_25_0);
  gaudry_pm_square(t8, z2_50_0);
  for (i = 0; i < 24; ++i) {
    gaudry_pm_square(t7, t8);
    gaudry_pm_square(t8, t7);
  }
  gaudry_pm_square(t7, t8);
  gaudry_pm_mult(t8, t7, z2_50_0);
  for (i = 0; i < 12; ++i) {
    gaudry_pm_square(t7, t8);
    gaudry_pm_square(t8, t7);
  }
  gaudry_pm_square(t7, t8);
  gaudry_pm_mult(t8, t7, z2_25_0);
  gaudry_pm_square(t7, t8);
  gaudry_pm_square(t8, t7);
  gaudry_pm_mult(out, t8, z);
}


x86 assembly (clang, -O0):
<gaudry_pm_recip>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    117d <gaudry_pm_recip+0x5d>
lea    -0x70(%rbp),%rdi
lea    -0x40(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1030 <gaudry_pm_mult@plt>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1147 <gaudry_pm_recip+0x27>
lea    -0xa0(%rbp),%rdi
lea    -0x40(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1030 <gaudry_pm_mult@plt>
lea    -0x70(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x70(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x70(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0xd0(%rbp),%rdi
lea    -0x70(%rbp),%rsi
lea    -0xa0(%rbp),%rdx
call   1030 <gaudry_pm_mult@plt>
lea    -0x70(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jge    1235 <gaudry_pm_recip+0x115>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x70(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1203 <gaudry_pm_recip+0xe3>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x70(%rbp),%rdi
lea    -0x40(%rbp),%rsi
lea    -0xd0(%rbp),%rdx
call   1030 <gaudry_pm_mult@plt>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x70(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x70(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x100(%rbp),%rdi
lea    -0x40(%rbp),%rsi
lea    -0xa0(%rbp),%rdx
call   1030 <gaudry_pm_mult@plt>
lea    -0x70(%rbp),%rdi
lea    -0x100(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0xc,-0x14(%rbp)
jge    12f7 <gaudry_pm_recip+0x1d7>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x70(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12c5 <gaudry_pm_recip+0x1a5>
lea    -0x130(%rbp),%rdi
lea    -0x70(%rbp),%rsi
lea    -0x100(%rbp),%rdx
call   1030 <gaudry_pm_mult@plt>
lea    -0x70(%rbp),%rdi
lea    -0x130(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x18,-0x14(%rbp)
jge    1357 <gaudry_pm_recip+0x237>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x70(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1325 <gaudry_pm_recip+0x205>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x70(%rbp),%rdi
lea    -0x40(%rbp),%rsi
lea    -0x130(%rbp),%rdx
call   1030 <gaudry_pm_mult@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0xc,-0x14(%rbp)
jge    13b1 <gaudry_pm_recip+0x291>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x70(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    137f <gaudry_pm_recip+0x25f>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x70(%rbp),%rdi
lea    -0x40(%rbp),%rsi
lea    -0x100(%rbp),%rdx
call   1030 <gaudry_pm_mult@plt>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
lea    -0x70(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <gaudry_pm_square@plt>
mov    -0x8(%rbp),%rdi
lea    -0x70(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1030 <gaudry_pm_mult@plt>
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gaudry_pm_recip>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x128,%rsp
mov    %rsi,%r15
mov    %rdi,0x8(%rsp)
lea    0xa0(%rsp),%r12
mov    %r12,%rdi
call   1040 <gaudry_pm_square@plt>
lea    0x70(%rsp),%rbx
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   1030 <gaudry_pm_mult@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   1030 <gaudry_pm_mult@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   1030 <gaudry_pm_mult@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
lea    0x100(%rsp),%r14
mov    %r14,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   1030 <gaudry_pm_mult@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
lea    0xd0(%rsp),%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <gaudry_pm_mult@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %rbp,%rdx
call   1030 <gaudry_pm_mult@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
lea    0x40(%rsp),%r13
mov    %r13,%rdi
mov    %r12,%rsi
mov    %r14,%rdx
call   1030 <gaudry_pm_mult@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
lea    0x10(%rsp),%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
call   1030 <gaudry_pm_mult@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1040 <gaudry_pm_square@plt>
mov    $0x18,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
add    $0xffffffff,%ebp
jne    1400 <gaudry_pm_recip+0x2e0>
lea    0xa0(%rsp),%r12
lea    0x70(%rsp),%rbx
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
lea    0x10(%rsp),%rdx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1030 <gaudry_pm_mult@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
lea    0x40(%rsp),%rdx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1030 <gaudry_pm_mult@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <gaudry_pm_square@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <gaudry_pm_square@plt>
mov    0x8(%rsp),%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
call   1030 <gaudry_pm_mult@plt>
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @gaudry_pm_recip(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
%5 = alloca i32
%6 = alloca [5 x double]
%7 = alloca [5 x double]
%8 = alloca [5 x double]
%9 = alloca [5 x double]
%10 = alloca [5 x double]
%11 = alloca [5 x double]
store double* %0, double** %3
store double* %1, double** %4
%12 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%13 = load double*, double** %4
%14 = call i32 @gaudry_pm_square(double* %12, double* %13)
store i32 0, i32* %5
br label %15
15: ; preds = %26, %2
%16 = load i32, i32* %5
%17 = icmp slt i32 %16, 3
br i1 %17, label %18, label %29
18: ; preds = %15
%19 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%20 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%21 = load double*, double** %4
%22 = call i32 @gaudry_pm_mult(double* %19, double* %20, double* %21)
%23 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%24 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%25 = call i32 @gaudry_pm_square(double* %23, double* %24)
br label %26
26: ; preds = %18
%27 = load i32, i32* %5
%28 = add nsw i32 %27, 1
store i32 %28, i32* %5
br label %15
29: ; preds = %15
%30 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 0
%31 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%32 = load double*, double** %4
%33 = call i32 @gaudry_pm_mult(double* %30, double* %31, double* %32)
%34 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%35 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 0
%36 = call i32 @gaudry_pm_square(double* %34, double* %35)
%37 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%38 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%39 = call i32 @gaudry_pm_square(double* %37, double* %38)
%40 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%41 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%42 = call i32 @gaudry_pm_square(double* %40, double* %41)
%43 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%44 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%45 = call i32 @gaudry_pm_square(double* %43, double* %44)
%46 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%47 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%48 = call i32 @gaudry_pm_square(double* %46, double* %47)
%49 = getelementptr inbounds [5 x double], [5 x double]* %9, i64 0, i64 0
%50 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%51 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 0
%52 = call i32 @gaudry_pm_mult(double* %49, double* %50, double* %51)
%53 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%54 = getelementptr inbounds [5 x double], [5 x double]* %9, i64 0, i64 0
%55 = call i32 @gaudry_pm_square(double* %53, double* %54)
store i32 0, i32* %5
br label %56
56: ; preds = %66, %29
%57 = load i32, i32* %5
%58 = icmp slt i32 %57, 4
br i1 %58, label %59, label %69
59: ; preds = %56
%60 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%61 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%62 = call i32 @gaudry_pm_square(double* %60, double* %61)
%63 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%64 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%65 = call i32 @gaudry_pm_square(double* %63, double* %64)
br label %66
66: ; preds = %59
%67 = load i32, i32* %5
%68 = add nsw i32 %67, 1
store i32 %68, i32* %5
br label %56
69: ; preds = %56
%70 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%71 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%72 = call i32 @gaudry_pm_square(double* %70, double* %71)
%73 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%74 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%75 = getelementptr inbounds [5 x double], [5 x double]* %9, i64 0, i64 0
%76 = call i32 @gaudry_pm_mult(double* %73, double* %74, double* %75)
%77 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%78 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%79 = call i32 @gaudry_pm_square(double* %77, double* %78)
%80 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%81 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%82 = call i32 @gaudry_pm_square(double* %80, double* %81)
%83 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%84 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%85 = call i32 @gaudry_pm_square(double* %83, double* %84)
%86 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%87 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%88 = call i32 @gaudry_pm_square(double* %86, double* %87)
%89 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%90 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%91 = call i32 @gaudry_pm_square(double* %89, double* %90)
%92 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%93 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%94 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 0
%95 = call i32 @gaudry_pm_mult(double* %92, double* %93, double* %94)
%96 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%97 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%98 = call i32 @gaudry_pm_square(double* %96, double* %97)
store i32 0, i32* %5
br label %99
99: ; preds = %109, %69
%100 = load i32, i32* %5
%101 = icmp slt i32 %100, 12
br i1 %101, label %102, label %112
102: ; preds = %99
%103 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%104 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%105 = call i32 @gaudry_pm_square(double* %103, double* %104)
%106 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%107 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%108 = call i32 @gaudry_pm_square(double* %106, double* %107)
br label %109
109: ; preds = %102
%110 = load i32, i32* %5
%111 = add nsw i32 %110, 1
store i32 %111, i32* %5
br label %99
112: ; preds = %99
%113 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
%114 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%115 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%116 = call i32 @gaudry_pm_mult(double* %113, double* %114, double* %115)
%117 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%118 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
%119 = call i32 @gaudry_pm_square(double* %117, double* %118)
store i32 0, i32* %5
br label %120
120: ; preds = %130, %112
%121 = load i32, i32* %5
%122 = icmp slt i32 %121, 24
br i1 %122, label %123, label %133
123: ; preds = %120
%124 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%125 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%126 = call i32 @gaudry_pm_square(double* %124, double* %125)
%127 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%128 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%129 = call i32 @gaudry_pm_square(double* %127, double* %128)
br label %130
130: ; preds = %123
%131 = load i32, i32* %5
%132 = add nsw i32 %131, 1
store i32 %132, i32* %5
br label %120
133: ; preds = %120
%134 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%135 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%136 = call i32 @gaudry_pm_square(double* %134, double* %135)
%137 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%138 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%139 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
%140 = call i32 @gaudry_pm_mult(double* %137, double* %138, double* %139)
store i32 0, i32* %5
br label %141
141: ; preds = %151, %133
%142 = load i32, i32* %5
%143 = icmp slt i32 %142, 12
br i1 %143, label %144, label %154
144: ; preds = %141
%145 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%146 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%147 = call i32 @gaudry_pm_square(double* %145, double* %146)
%148 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%149 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%150 = call i32 @gaudry_pm_square(double* %148, double* %149)
br label %151
151: ; preds = %144
%152 = load i32, i32* %5
%153 = add nsw i32 %152, 1
store i32 %153, i32* %5
br label %141
154: ; preds = %141
%155 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%156 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%157 = call i32 @gaudry_pm_square(double* %155, double* %156)
%158 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%159 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%160 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%161 = call i32 @gaudry_pm_mult(double* %158, double* %159, double* %160)
%162 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%163 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%164 = call i32 @gaudry_pm_square(double* %162, double* %163)
%165 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%166 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%167 = call i32 @gaudry_pm_square(double* %165, double* %166)
%168 = load double*, double** %3
%169 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%170 = load double*, double** %4
%171 = call i32 @gaudry_pm_mult(double* %168, double* %169, double* %170)
ret void
}

LLVM IR (-O2):
define void @gaudry_pm_recip(double* %0, double* %1) {
%3 = alloca [5 x double]
%4 = alloca [5 x double]
%5 = alloca [5 x double]
%6 = alloca [5 x double]
%7 = alloca [5 x double]
%8 = alloca [5 x double]
%9 = bitcast [5 x double]* %3 to i8*
%10 = bitcast [5 x double]* %4 to i8*
%11 = bitcast [5 x double]* %5 to i8*
%12 = bitcast [5 x double]* %6 to i8*
%13 = bitcast [5 x double]* %7 to i8*
%14 = bitcast [5 x double]* %8 to i8*
%15 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 0
%16 = call i32 @gaudry_pm_square(double* %15, double* %1)
%17 = getelementptr inbounds [5 x double], [5 x double]* %4, i64 0, i64 0
%18 = call i32 @gaudry_pm_mult(double* %17, double* %15, double* %1)
%19 = call i32 @gaudry_pm_square(double* %15, double* %17)
%20 = call i32 @gaudry_pm_mult(double* %17, double* %15, double* %1)
%21 = call i32 @gaudry_pm_square(double* %15, double* %17)
%22 = call i32 @gaudry_pm_mult(double* %17, double* %15, double* %1)
%23 = call i32 @gaudry_pm_square(double* %15, double* %17)
%24 = getelementptr inbounds [5 x double], [5 x double]* %5, i64 0, i64 0
%25 = call i32 @gaudry_pm_mult(double* %24, double* %15, double* %1)
%26 = call i32 @gaudry_pm_square(double* %17, double* %24)
%27 = call i32 @gaudry_pm_square(double* %15, double* %17)
%28 = call i32 @gaudry_pm_square(double* %17, double* %15)
%29 = call i32 @gaudry_pm_square(double* %15, double* %17)
%30 = call i32 @gaudry_pm_square(double* %17, double* %15)
%31 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%32 = call i32 @gaudry_pm_mult(double* %31, double* %17, double* %24)
%33 = call i32 @gaudry_pm_square(double* %17, double* %31)
%34 = call i32 @gaudry_pm_square(double* %15, double* %17)
%35 = call i32 @gaudry_pm_square(double* %17, double* %15)
%36 = call i32 @gaudry_pm_square(double* %15, double* %17)
%37 = call i32 @gaudry_pm_square(double* %17, double* %15)
%38 = call i32 @gaudry_pm_square(double* %15, double* %17)
%39 = call i32 @gaudry_pm_square(double* %17, double* %15)
%40 = call i32 @gaudry_pm_square(double* %15, double* %17)
%41 = call i32 @gaudry_pm_square(double* %17, double* %15)
%42 = call i32 @gaudry_pm_square(double* %15, double* %17)
%43 = call i32 @gaudry_pm_mult(double* %17, double* %15, double* %31)
%44 = call i32 @gaudry_pm_square(double* %15, double* %17)
%45 = call i32 @gaudry_pm_square(double* %17, double* %15)
%46 = call i32 @gaudry_pm_square(double* %15, double* %17)
%47 = call i32 @gaudry_pm_square(double* %17, double* %15)
%48 = call i32 @gaudry_pm_square(double* %15, double* %17)
%49 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%50 = call i32 @gaudry_pm_mult(double* %49, double* %15, double* %24)
%51 = call i32 @gaudry_pm_square(double* %17, double* %49)
%52 = call i32 @gaudry_pm_square(double* %15, double* %17)
%53 = call i32 @gaudry_pm_square(double* %17, double* %15)
%54 = call i32 @gaudry_pm_square(double* %15, double* %17)
%55 = call i32 @gaudry_pm_square(double* %17, double* %15)
%56 = call i32 @gaudry_pm_square(double* %15, double* %17)
%57 = call i32 @gaudry_pm_square(double* %17, double* %15)
%58 = call i32 @gaudry_pm_square(double* %15, double* %17)
%59 = call i32 @gaudry_pm_square(double* %17, double* %15)
%60 = call i32 @gaudry_pm_square(double* %15, double* %17)
%61 = call i32 @gaudry_pm_square(double* %17, double* %15)
%62 = call i32 @gaudry_pm_square(double* %15, double* %17)
%63 = call i32 @gaudry_pm_square(double* %17, double* %15)
%64 = call i32 @gaudry_pm_square(double* %15, double* %17)
%65 = call i32 @gaudry_pm_square(double* %17, double* %15)
%66 = call i32 @gaudry_pm_square(double* %15, double* %17)
%67 = call i32 @gaudry_pm_square(double* %17, double* %15)
%68 = call i32 @gaudry_pm_square(double* %15, double* %17)
%69 = call i32 @gaudry_pm_square(double* %17, double* %15)
%70 = call i32 @gaudry_pm_square(double* %15, double* %17)
%71 = call i32 @gaudry_pm_square(double* %17, double* %15)
%72 = call i32 @gaudry_pm_square(double* %15, double* %17)
%73 = call i32 @gaudry_pm_square(double* %17, double* %15)
%74 = call i32 @gaudry_pm_square(double* %15, double* %17)
%75 = call i32 @gaudry_pm_square(double* %17, double* %15)
%76 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 0
%77 = call i32 @gaudry_pm_mult(double* %76, double* %17, double* %49)
%78 = call i32 @gaudry_pm_square(double* %17, double* %76)
br label %79
79: ; preds = %2, %79
%80 = phi i32 [ 0, %2 ], [ %83, %79 ]
%81 = call i32 @gaudry_pm_square(double* %15, double* %17)
%82 = call i32 @gaudry_pm_square(double* %17, double* %15)
%83 = add nuw nsw i32 %80, 1
%84 = icmp eq i32 %83, 24
br i1 %84, label %85, label %79
85: ; preds = %79
%86 = call i32 @gaudry_pm_square(double* %15, double* %17)
%87 = call i32 @gaudry_pm_mult(double* %17, double* %15, double* %76)
%88 = call i32 @gaudry_pm_square(double* %15, double* %17)
%89 = call i32 @gaudry_pm_square(double* %17, double* %15)
%90 = call i32 @gaudry_pm_square(double* %15, double* %17)
%91 = call i32 @gaudry_pm_square(double* %17, double* %15)
%92 = call i32 @gaudry_pm_square(double* %15, double* %17)
%93 = call i32 @gaudry_pm_square(double* %17, double* %15)
%94 = call i32 @gaudry_pm_square(double* %15, double* %17)
%95 = call i32 @gaudry_pm_square(double* %17, double* %15)
%96 = call i32 @gaudry_pm_square(double* %15, double* %17)
%97 = call i32 @gaudry_pm_square(double* %17, double* %15)
%98 = call i32 @gaudry_pm_square(double* %15, double* %17)
%99 = call i32 @gaudry_pm_square(double* %17, double* %15)
%100 = call i32 @gaudry_pm_square(double* %15, double* %17)
%101 = call i32 @gaudry_pm_square(double* %17, double* %15)
%102 = call i32 @gaudry_pm_square(double* %15, double* %17)
%103 = call i32 @gaudry_pm_square(double* %17, double* %15)
%104 = call i32 @gaudry_pm_square(double* %15, double* %17)
%105 = call i32 @gaudry_pm_square(double* %17, double* %15)
%106 = call i32 @gaudry_pm_square(double* %15, double* %17)
%107 = call i32 @gaudry_pm_square(double* %17, double* %15)
%108 = call i32 @gaudry_pm_square(double* %15, double* %17)
%109 = call i32 @gaudry_pm_square(double* %17, double* %15)
%110 = call i32 @gaudry_pm_square(double* %15, double* %17)
%111 = call i32 @gaudry_pm_square(double* %17, double* %15)
%112 = call i32 @gaudry_pm_square(double* %15, double* %17)
%113 = call i32 @gaudry_pm_mult(double* %17, double* %15, double* %49)
%114 = call i32 @gaudry_pm_square(double* %15, double* %17)
%115 = call i32 @gaudry_pm_square(double* %17, double* %15)
%116 = call i32 @gaudry_pm_mult(double* %0, double* %17, double* %1)
ret void
}