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


x86 assembly (clang, -O0):
<integrate_one_rk4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%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  0xeb8(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xe9a(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x1,-0x30(%rbp)
jae    11a6 <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    1176 <integrate_one_rk4+0x56>
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jae    13f4 <integrate_one_rk4+0x2d4>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x28(%rbp),%eax
jae    13a2 <integrate_one_rk4+0x282>
mov    -0x8(%rbp),%rdi
lea    -0x60(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <derivs_one@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x1,-0x34(%rbp)
jae    1227 <integrate_one_rk4+0x107>
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x34(%rbp),%eax
movsd  -0x60(%rbp,%rax,8),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x34(%rbp),%eax
movsd  %xmm0,-0x50(%rbp,%rax,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11e4 <integrate_one_rk4+0xc4>
lea    -0x50(%rbp),%rdi
lea    -0x68(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <derivs_one@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x1,-0x34(%rbp)
jae    1282 <integrate_one_rk4+0x162>
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x34(%rbp),%eax
movsd  -0x68(%rbp,%rax,8),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x34(%rbp),%eax
movsd  %xmm0,-0x58(%rbp,%rax,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    123f <integrate_one_rk4+0x11f>
lea    -0x58(%rbp),%rdi
lea    -0x70(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <derivs_one@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x1,-0x34(%rbp)
jae    12dd <integrate_one_rk4+0x1bd>
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x34(%rbp),%eax
movsd  -0x70(%rbp,%rax,8),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x34(%rbp),%eax
movsd  %xmm0,-0x58(%rbp,%rax,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    129a <integrate_one_rk4+0x17a>
lea    -0x58(%rbp),%rdi
lea    -0x78(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <derivs_one@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x1,-0x34(%rbp)
jae    138f <integrate_one_rk4+0x26f>
movsd  -0x48(%rbp),%xmm0
mov    -0x34(%rbp),%eax
movsd  -0x60(%rbp,%rax,8),%xmm1
mov    -0x34(%rbp),%eax
movsd  -0x68(%rbp,%rax,8),%xmm2
mov    -0x34(%rbp),%eax
addsd  -0x70(%rbp,%rax,8),%xmm2
addsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
mov    -0x34(%rbp),%eax
addsd  -0x78(%rbp,%rax,8),%xmm2
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    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    0x2c8c(%rip),%rax
cvtsi2sdl (%rax),%xmm2
movsd  0xca0(%rip),%xmm1
mulsd  %xmm2,%xmm1
cvttsd2si %xmm1,%edi
call   1030 <fmod@plt>
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12f5 <integrate_one_rk4+0x1d5>
jmp    1394 <integrate_one_rk4+0x274>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11c0 <integrate_one_rk4+0xa0>
movl   $0x0,-0x30(%rbp)
cmpl   $0x1,-0x30(%rbp)
jae    13e1 <integrate_one_rk4+0x2c1>
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x0,%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    13a9 <integrate_one_rk4+0x289>
jmp    13e6 <integrate_one_rk4+0x2c6>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11ad <integrate_one_rk4+0x8d>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<integrate_one_rk4>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %r8d,0x4(%rsp)
movapd %xmm0,%xmm1
movsd  (%rdi),%xmm0
mov    %rdx,0x40(%rsp)
movsd  %xmm0,(%rdx)
cmp    $0x2,%ecx
jb     12b3 <integrate_one_rk4+0x193>
mov    %rsi,%rbx
mov    %rdi,%rbp
movsd  0xea5(%rip),%xmm2
mulsd  %xmm1,%xmm2
movapd %xmm1,%xmm3
divsd  0xe9d(%rip),%xmm3
mov    %ecx,%eax
mov    %rax,0x38(%rsp)
mov    $0x1,%ecx
lea    0x28(%rsp),%r14
lea    0x60(%rsp),%r13
lea    0x30(%rsp),%r15
movsd  %xmm3,0x50(%rsp)
movsd  %xmm1,0x48(%rsp)
movsd  %xmm2,0x10(%rsp)
jmp    11c3 <integrate_one_rk4+0xa3>
nopw   0x0(%rax,%rax,1)
movsd  0x0(%rbp),%xmm0
mov    0x8(%rsp),%rcx
mov    0x40(%rsp),%rax
movsd  %xmm0,(%rax,%rcx,8)
add    $0x1,%rcx
cmp    0x38(%rsp),%rcx
je     12b3 <integrate_one_rk4+0x193>
mov    %rcx,0x8(%rsp)
mov    0x4(%rsp),%eax
mov    %eax,%r12d
test   %eax,%eax
je     11a0 <integrate_one_rk4+0x80>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbp,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1040 <derivs_one@plt>
movsd  0x28(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  0x0(%rbp),%xmm0
movsd  %xmm0,0x60(%rsp)
mov    %r13,%rdi
lea    0x20(%rsp),%rsi
mov    %rbx,%rdx
call   1040 <derivs_one@plt>
movsd  0x20(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  0x0(%rbp),%xmm0
movsd  %xmm0,0x30(%rsp)
mov    %r15,%rdi
lea    0x18(%rsp),%rsi
mov    %rbx,%rdx
call   1040 <derivs_one@plt>
movsd  0x18(%rsp),%xmm0
mulsd  0x48(%rsp),%xmm0
addsd  0x0(%rbp),%xmm0
movsd  %xmm0,0x30(%rsp)
mov    %r15,%rdi
lea    0x58(%rsp),%rsi
mov    %rbx,%rdx
call   1040 <derivs_one@plt>
movsd  0x20(%rsp),%xmm0
addsd  0x18(%rsp),%xmm0
addsd  %xmm0,%xmm0
addsd  0x28(%rsp),%xmm0
addsd  0x58(%rsp),%xmm0
mulsd  0x50(%rsp),%xmm0
addsd  0x0(%rbp),%xmm0
movsd  %xmm0,0x0(%rbp)
mov    0x2d52(%rip),%rax
mov    (%rax),%edi
add    %edi,%edi
call   1030 <fmod@plt>
movsd  %xmm0,0x0(%rbp)
add    $0xffffffff,%r12d
jne    11e0 <integrate_one_rk4+0xc0>
jmp    11a5 <integrate_one_rk4+0x85>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@M_PI = global i32 0
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 [1 x double]
%19 = alloca [1 x double]
%20 = alloca [1 x double]
%21 = alloca [1 x double]
%22 = alloca [1 x double]
%23 = alloca [1 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, 1
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 = %209, %44
%46 = load i32, i32* %13
%47 = load i32, i32* %11
%48 = icmp ult i32 %46, %47
br i1 %48, label %49, label %212
49: ; preds = %45
store i32 0, i32* %14
br label %50
50: ; preds = %185, %49
%51 = load i32, i32* %14
%52 = load i32, i32* %12
%53 = icmp ult i32 %51, %52
br i1 %53, label %54, label %188
54: ; preds = %50
%55 = load double*, double** %7
%56 = getelementptr inbounds [1 x double], [1 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, 1
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 [1 x double], [1 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 [1 x double], [1 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 [1 x double], [1 x double]* %18, i64 0, i64 0
%82 = getelementptr inbounds [1 x double], [1 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, 1
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 [1 x double], [1 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 [1 x double], [1 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 [1 x double], [1 x double]* %19, i64 0, i64 0
%108 = getelementptr inbounds [1 x double], [1 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, 1
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 [1 x double], [1 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 [1 x double], [1 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 [1 x double], [1 x double]* %19, i64 0, i64 0
%134 = getelementptr inbounds [1 x double], [1 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 = %181, %132
%138 = load i32, i32* %15
%139 = icmp ult i32 %138, 1
br i1 %139, label %140, label %184
140: ; preds = %137
%141 = load double, double* %17
%142 = load i32, i32* %15
%143 = zext i32 %142 to i64
%144 = getelementptr inbounds [1 x double], [1 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 [1 x double], [1 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 [1 x double], [1 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 [1 x double], [1 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
%167 = load double*, double** %7
%168 = load i32, i32* %15
%169 = zext i32 %168 to i64
%170 = getelementptr inbounds double, double* %167, i64 %169
%171 = load double, double* %170
%172 = load i32, i32* @M_PI
%173 = sitofp i32 %172 to double
%174 = fmul double 2.000000e+00, %173
%175 = fptosi double %174 to i32
%176 = call double @fmod(double %171, i32 %175)
%177 = load double*, double** %7
%178 = load i32, i32* %15
%179 = zext i32 %178 to i64
%180 = getelementptr inbounds double, double* %177, i64 %179
store double %176, double* %180
br label %181
181: ; preds = %140
%182 = load i32, i32* %15
%183 = add i32 %182, 1
store i32 %183, i32* %15
br label %137
184: ; preds = %137
br label %185
185: ; preds = %184
%186 = load i32, i32* %14
%187 = add i32 %186, 1
store i32 %187, i32* %14
br label %50
188: ; preds = %50
store i32 0, i32* %14
br label %189
189: ; preds = %205, %188
%190 = load i32, i32* %14
%191 = icmp ult i32 %190, 1
br i1 %191, label %192, label %208
192: ; preds = %189
%193 = load double*, double** %7
%194 = load i32, i32* %14
%195 = zext i32 %194 to i64
%196 = getelementptr inbounds double, double* %193, i64 %195
%197 = load double, double* %196
%198 = load double*, double** %9
%199 = load i32, i32* %13
%200 = mul i32 1, %199
%201 = load i32, i32* %14
%202 = add i32 %200, %201
%203 = zext i32 %202 to i64
%204 = getelementptr inbounds double, double* %198, i64 %203
store double %197, double* %204
br label %205
205: ; preds = %192
%206 = load i32, i32* %14
%207 = add i32 %206, 1
store i32 %207, i32* %14
br label %189
208: ; preds = %189
br label %209
209: ; preds = %208
%210 = load i32, i32* %13
%211 = add i32 %210, 1
store i32 %211, i32* %13
br label %45
212: ; preds = %45
ret void
}

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