#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*/ derivs_one(double *, double *, double const *);
void integrate_one_rk4(double *y, const double *params, double *output,
                       const double dt, const unsigned N,
                       const unsigned stride) {
  unsigned i, j, k;
  double dt2, dt6;
  double y1[2], y2[2], k1[2], k2[2], k3[2], k4[2];
  dt2 = dt / 2.;
  dt6 = dt / 6.;
  for (j = 0; j < 2; j++)
    output[j] = y[j];
  for (i = 1; i < N; i++) {
    for (j = 0; j < stride; j++) {
      derivs_one(y, k1, params);
      for (k = 0; k < 2; k++)
        y1[k] = y[k] + k1[k] * dt2;
      derivs_one(y1, k2, params);
      for (k = 0; k < 2; k++)
        y2[k] = y[k] + k2[k] * dt2;
      derivs_one(y2, k3, params);
      for (k = 0; k < 2; k++)
        y2[k] = y[k] + k3[k] * dt;
      derivs_one(y2, k4, params);
      for (k = 0; k < 2; k++)
        y[k] += dt6 * (k1[k] + 2. * (k2[k] + k3[k]) + k4[k]);
    }
    for (j = 0; j < 2; j++)
      output[2 * i + j] = y[j];
  }
}


x86 assembly (clang, -O0):
<integrate_one_rk4>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    %r8d,-0x28(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xec8(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xeaa(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x2,-0x30(%rbp)
jae    1196 <integrate_one_rk4+0x86>
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1166 <integrate_one_rk4+0x56>
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jae    13c4 <integrate_one_rk4+0x2b4>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x28(%rbp),%eax
jae    1372 <integrate_one_rk4+0x262>
mov    -0x8(%rbp),%rdi
lea    -0x80(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1030 <derivs_one@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jae    1217 <integrate_one_rk4+0x107>
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x34(%rbp),%eax
movsd  -0x80(%rbp,%rax,8),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x34(%rbp),%eax
movsd  %xmm0,-0x60(%rbp,%rax,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11d4 <integrate_one_rk4+0xc4>
lea    -0x60(%rbp),%rdi
lea    -0x90(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1030 <derivs_one@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jae    1278 <integrate_one_rk4+0x168>
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x34(%rbp),%eax
movsd  -0x90(%rbp,%rax,8),%xmm0
ff ff
movsd  -0x40(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x34(%rbp),%eax
movsd  %xmm0,-0x70(%rbp,%rax,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1232 <integrate_one_rk4+0x122>
lea    -0x70(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1030 <derivs_one@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jae    12d9 <integrate_one_rk4+0x1c9>
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x34(%rbp),%eax
movsd  -0xa0(%rbp,%rax,8),%xmm0
ff ff
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x34(%rbp),%eax
movsd  %xmm0,-0x70(%rbp,%rax,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1293 <integrate_one_rk4+0x183>
lea    -0x70(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1030 <derivs_one@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jae    135f <integrate_one_rk4+0x24f>
movsd  -0x48(%rbp),%xmm0
mov    -0x34(%rbp),%eax
movsd  -0x80(%rbp,%rax,8),%xmm1
mov    -0x34(%rbp),%eax
movsd  -0x90(%rbp,%rax,8),%xmm2
ff ff
mov    -0x34(%rbp),%eax
addsd  -0xa0(%rbp,%rax,8),%xmm2
ff ff
addsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
mov    -0x34(%rbp),%eax
addsd  -0xb0(%rbp,%rax,8),%xmm2
ff ff
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12f4 <integrate_one_rk4+0x1e4>
jmp    1364 <integrate_one_rk4+0x254>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11b0 <integrate_one_rk4+0xa0>
movl   $0x0,-0x30(%rbp)
cmpl   $0x2,-0x30(%rbp)
jae    13b1 <integrate_one_rk4+0x2a1>
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x1,%ecx
add    -0x30(%rbp),%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1379 <integrate_one_rk4+0x269>
jmp    13b6 <integrate_one_rk4+0x2a6>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    119d <integrate_one_rk4+0x8d>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<integrate_one_rk4>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %r8d,0x4(%rsp)
movsd  (%rdi),%xmm1
movsd  %xmm1,(%rdx)
movsd  0x8(%rdi),%xmm1
mov    %rdx,0x18(%rsp)
movsd  %xmm1,0x8(%rdx)
cmp    $0x2,%ecx
jb     12cc <integrate_one_rk4+0x1bc>
mov    %rsi,%rbp
mov    %rdi,%rbx
movsd  0xeac(%rip),%xmm3
movapd %xmm0,%xmm4
divsd  0xea8(%rip),%xmm4
mulsd  %xmm0,%xmm3
mov    %ecx,%eax
mov    %rax,0x10(%rsp)
unpcklpd %xmm3,%xmm3
unpcklpd %xmm0,%xmm0
unpcklpd %xmm4,%xmm4
mov    $0x1,%edx
lea    0x50(%rsp),%r12
lea    0x40(%rsp),%r15
lea    0x60(%rsp),%r13
movapd %xmm4,0x80(%rsp)
movapd %xmm0,0x70(%rsp)
movapd %xmm3,0x20(%rsp)
jmp    11e0 <integrate_one_rk4+0xd0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rbx),%xmm2
mov    0x8(%rsp),%rdx
lea    (%rdx,%rdx,1),%eax
mov    0x18(%rsp),%rcx
movsd  %xmm2,(%rcx,%rax,8)
movsd  0x8(%rbx),%xmm1
movsd  %xmm1,0x8(%rcx,%rax,8)
add    $0x1,%rdx
cmp    0x10(%rsp),%rdx
je     12cc <integrate_one_rk4+0x1bc>
mov    %rdx,0x8(%rsp)
mov    0x4(%rsp),%eax
mov    %eax,%r14d
test   %eax,%eax
je     11b0 <integrate_one_rk4+0xa0>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %rbp,%rdx
call   1030 <derivs_one@plt>
movupd (%rbx),%xmm0
movapd 0x50(%rsp),%xmm1
mulpd  0x20(%rsp),%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0xa0(%rsp)
lea    0xa0(%rsp),%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
call   1030 <derivs_one@plt>
movupd (%rbx),%xmm0
movapd 0x40(%rsp),%xmm1
mulpd  0x20(%rsp),%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x60(%rsp)
mov    %r13,%rdi
lea    0x30(%rsp),%rsi
mov    %rbp,%rdx
call   1030 <derivs_one@plt>
movupd (%rbx),%xmm0
movapd 0x30(%rsp),%xmm1
mulpd  0x70(%rsp),%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x60(%rsp)
mov    %r13,%rdi
lea    0x90(%rsp),%rsi
mov    %rbp,%rdx
call   1030 <derivs_one@plt>
movapd 0x80(%rsp),%xmm4
movapd 0x40(%rsp),%xmm1
addpd  0x30(%rsp),%xmm1
addpd  %xmm1,%xmm1
addpd  0x50(%rsp),%xmm1
addpd  0x90(%rsp),%xmm1
mulpd  %xmm4,%xmm1
movupd (%rbx),%xmm2
addpd  %xmm1,%xmm2
movupd %xmm2,(%rbx)
add    $0xffffffff,%r14d
jne    11f0 <integrate_one_rk4+0xe0>
jmp    11b4 <integrate_one_rk4+0xa4>
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @integrate_one_rk4(double* %0, double* %1, double* nocapture writeonly %2, double %3, i32 %4, i32 %5) {
%7 = alloca <2 x double>
%8 = alloca <2 x double>
%9 = alloca <2 x double>
%10 = alloca <2 x double>
%11 = alloca <2 x double>
%12 = alloca <2 x double>
%13 = bitcast <2 x double>* %7 to i8*
%14 = bitcast <2 x double>* %8 to i8*
%15 = bitcast <2 x double>* %9 to i8*
%16 = bitcast <2 x double>* %10 to i8*
%17 = bitcast <2 x double>* %11 to i8*
%18 = bitcast <2 x double>* %12 to i8*
%19 = fmul double %3, 5.000000e-01
%20 = load double, double* %0
store double %20, double* %2
%21 = getelementptr inbounds double, double* %0, i64 1
%22 = load double, double* %21
%23 = getelementptr inbounds double, double* %2, i64 1
store double %22, double* %23
%24 = fdiv double %3, 6.000000e+00
%25 = icmp ugt i32 %4, 1
br i1 %25, label %26, label %88
26: ; preds = %6
%27 = icmp eq i32 %5, 0
%28 = getelementptr inbounds <2 x double>, <2 x double>* %9, i64 0, i64 0
%29 = getelementptr inbounds <2 x double>, <2 x double>* %7, i64 0, i64 0
%30 = getelementptr inbounds <2 x double>, <2 x double>* %10, i64 0, i64 0
%31 = getelementptr inbounds <2 x double>, <2 x double>* %8, i64 0, i64 0
%32 = getelementptr inbounds <2 x double>, <2 x double>* %11, i64 0, i64 0
%33 = getelementptr inbounds <2 x double>, <2 x double>* %12, i64 0, i64 0
%34 = zext i32 %4 to i64
%35 = bitcast double* %0 to <2 x double>*
%36 = insertelement <2 x double> poison, double %19, i64 0
%37 = shufflevector <2 x double> %36, <2 x double> poison, <2 x i32> zeroinitializer
%38 = bitcast double* %0 to <2 x double>*
%39 = bitcast double* %0 to <2 x double>*
%40 = insertelement <2 x double> poison, double %3, i64 0
%41 = shufflevector <2 x double> %40, <2 x double> poison, <2 x i32> zeroinitializer
%42 = bitcast double* %0 to <2 x double>*
%43 = insertelement <2 x double> poison, double %24, i64 0
%44 = shufflevector <2 x double> %43, <2 x double> poison, <2 x i32> zeroinitializer
%45 = bitcast double* %0 to <2 x double>*
br label %46
46: ; preds = %26, %52
%47 = phi i64 [ 1, %26 ], [ %60, %52 ]
br i1 %27, label %48, label %62
48: ; preds = %46
%49 = load double, double* %0
br label %52
50: ; preds = %62
%51 = extractelement <2 x double> %85, i64 0
br label %52
52: ; preds = %50, %48
%53 = phi double [ %49, %48 ], [ %51, %50 ]
%54 = shl nuw i64 %47, 1
%55 = and i64 %54, 4294967294
%56 = getelementptr inbounds double, double* %2, i64 %55
store double %53, double* %56
%57 = load double, double* %21
%58 = or i64 %55, 1
%59 = getelementptr inbounds double, double* %2, i64 %58
store double %57, double* %59
%60 = add nuw nsw i64 %47, 1
%61 = icmp eq i64 %60, %34
br i1 %61, label %88, label %46
62: ; preds = %46, %62
%63 = phi i32 [ %86, %62 ], [ 0, %46 ]
%64 = call i32 @derivs_one(double* %0, double* %28, double* %1)
%65 = load <2 x double>, <2 x double>* %35
%66 = load <2 x double>, <2 x double>* %9
%67 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %66, <2 x double> %37, <2 x double> %65)
store <2 x double> %67, <2 x double>* %7
%68 = call i32 @derivs_one(double* %29, double* %30, double* %1)
%69 = load <2 x double>, <2 x double>* %38
%70 = load <2 x double>, <2 x double>* %10
%71 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %70, <2 x double> %37, <2 x double> %69)
store <2 x double> %71, <2 x double>* %8
%72 = call i32 @derivs_one(double* %31, double* %32, double* %1)
%73 = load <2 x double>, <2 x double>* %39
%74 = load <2 x double>, <2 x double>* %11
%75 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %74, <2 x double> %41, <2 x double> %73)
store <2 x double> %75, <2 x double>* %8
%76 = call i32 @derivs_one(double* %31, double* %33, double* %1)
%77 = load <2 x double>, <2 x double>* %9
%78 = load <2 x double>, <2 x double>* %10
%79 = load <2 x double>, <2 x double>* %11
%80 = fadd <2 x double> %78, %79
%81 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %80, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %77)
%82 = load <2 x double>, <2 x double>* %12
%83 = fadd <2 x double> %82, %81
%84 = load <2 x double>, <2 x double>* %42
%85 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %44, <2 x double> %83, <2 x double> %84)
store <2 x double> %85, <2 x double>* %45
%86 = add nuw i32 %63, 1
%87 = icmp eq i32 %86, %5
br i1 %87, label %50, label %62
88: ; preds = %52, %6
ret void
}