#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(double, int);
double **init_matrix(double **arr, int N, double delta_x, double beta,
                     double *a, double *b, double *d, double *r) {
  int i, j;
  for (i = 0; i < N; i++)
    for (j = 0; j < N; j++)
      arr[i][j] = 0.0;
  for (i = 0; i < N; i++) {
    arr[i][i] = (-2 / pow(delta_x, 2)) - beta;
    d[i] = arr[i][i];
    if (i < N - 1) {
      arr[i + 1][i] = 1 / pow(delta_x, 2);
      b[i] = arr[i + 1][i];
      arr[i][i + 1] = 1 / pow(delta_x, 2);
      a[i] = arr[i][i + 1];
    }
    r[i] = 0;
  }
  arr[0][0] = 1;
  d[0] = 1;
  arr[N - 1][N - 1] = 1;
  d[N - 1] = 1;
  arr[N - 1][N - 2] = -1;
  b[N - 2] = -1;
  arr[0][1] = 0;
  a[0] = 0;
  r[0] = 1;
  return arr;
}


x86 assembly (clang, -O0):
<init_matrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movsd  %xmm0,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1198 <init_matrix+0x88>
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1185 <init_matrix+0x75>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x48(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1153 <init_matrix+0x43>
jmp    118a <init_matrix+0x7a>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1140 <init_matrix+0x30>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12ef <init_matrix+0x1df>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mov    %eax,%ecx
mov    $0xfffffffe,%eax
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
subsd  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    12d1 <init_matrix+0x1c1>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mov    %eax,%ecx
mov    $0x1,%eax
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mov    %eax,%ecx
mov    $0x1,%eax
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    119f <init_matrix+0x8f>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsd  0xd02(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
movsd  0xcf2(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xccc(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xcb2(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0xc(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  0xc93(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  0xc79(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x28(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x40(%rbp),%rax
movsd  0xc46(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_matrix>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r9,%r12
mov    %r8,0x30(%rsp)
mov    %rcx,0x18(%rsp)
mov    %rdx,0x20(%rsp)
movsd  %xmm1,0x40(%rsp)
mov    %rdi,%r13
test   %esi,%esi
jle    134e <init_matrix+0x22e>
mov    %r12,0x38(%rsp)
mov    %rsi,0x10(%rsp)
mov    %esi,%r15d
lea    0x0(,%r15,8),%rbp
lea    -0x1(%r15),%rax
mov    %r15d,%r14d
and    $0x7,%r14d
cmp    $0x7,%rax
mov    %r15,0x28(%rsp)
movsd  %xmm0,0x8(%rsp)
jae    118a <init_matrix+0x6a>
xor    %r12d,%r12d
jmp    1225 <init_matrix+0x105>
and    $0xfffffff8,%r15d
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x0(%r13,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x8(%r13,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x10(%r13,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x18(%r13,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x20(%r13,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x28(%r13,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x30(%r13,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x38(%r13,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
add    $0x8,%r12
cmp    %r12,%r15
jne    11a0 <init_matrix+0x80>
test   %r14,%r14
je     1257 <init_matrix+0x137>
lea    0x0(,%r12,8),%r15
add    %r13,%r15
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    (%r15,%rbx,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
jne    1240 <init_matrix+0x120>
mov    0x10(%rsp),%rsi
test   %esi,%esi
mov    0x38(%rsp),%r12
movsd  0x8(%rsp),%xmm0
jle    134e <init_matrix+0x22e>
lea    -0x1(%rsi),%r15d
xor    %r14d,%r14d
xor    %ebp,%ebp
jmp    130a <init_matrix+0x1ea>
nopl   (%rax)
movsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
lea    0x1(%rax),%ecx
cmp    $0x3,%ecx
cmovae %r14d,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
lea    0x1(%rbp),%rbx
mov    0x8(%r13,%rbp,8),%rax
movsd  %xmm0,(%rax,%rbp,8)
mov    0x18(%rsp),%rax
movsd  %xmm0,(%rax,%rbp,8)
movsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
lea    0x1(%rax),%ecx
cmp    $0x3,%ecx
cmovae %r14d,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    0x0(%r13,%rbp,8),%rax
movsd  %xmm0,0x8(%rax,%rbp,8)
mov    0x20(%rsp),%rax
movsd  %xmm0,(%rax,%rbp,8)
movsd  0x8(%rsp),%xmm0
mov    0x28(%rsp),%rax
movq   $0x0,(%r12,%rbp,8)
mov    %rbx,%rbp
cmp    %rax,%rbx
je     1356 <init_matrix+0x236>
mov    $0x2,%edi
call   1040 <pow@plt>
mov    %eax,%ecx
mov    $0xfffffffe,%eax
cltd
idiv   %ecx
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
subsd  0x40(%rsp),%xmm0
mov    0x0(%r13,%rbp,8),%rax
movsd  %xmm0,(%rax,%rbp,8)
mov    0x30(%rsp),%rax
movsd  %xmm0,(%rax,%rbp,8)
cmp    %r15,%rbp
jl     1280 <init_matrix+0x160>
lea    0x1(%rbp),%rbx
jmp    12ef <init_matrix+0x1cf>
lea    -0x1(%rsi),%eax
movslq %eax,%r15
jmp    135b <init_matrix+0x23b>
mov    0x10(%rsp),%rsi
mov    0x0(%r13),%rax
movabs $0x3ff0000000000000,%rcx
mov    %rcx,(%rax)
mov    0x30(%rsp),%rdi
mov    %rcx,(%rdi)
mov    0x0(%r13,%r15,8),%rdx
mov    %rcx,(%rdx,%r15,8)
mov    %rcx,(%rdi,%r15,8)
movslq %esi,%rsi
movabs $0xbff0000000000000,%rdi
mov    %rdi,-0x10(%rdx,%rsi,8)
mov    0x18(%rsp),%rdx
mov    %rdi,-0x10(%rdx,%rsi,8)
movq   $0x0,0x8(%rax)
mov    0x20(%rsp),%rax
movq   $0x0,(%rax)
mov    %rcx,(%r12)
mov    %r13,%rax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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