#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 dp1(double);
int pow(int, int);
void solve1(double *q1, double *p1, double dt, double Nsteps) {
  int i;
  double a0 = -pow(2, 1 / 3) / (2 - pow(2, 1 / 3));
  double a1 = 1 / (2 - pow(2, 1 / 3));
  for (i = 0; i < Nsteps - 1; i++) {
    p1[i + 1] = p1[i] + 0.5 * a0 * dt * dp1(q1[i]);
    q1[i + 1] = q1[i] + a0 * dt * p1[i + 1];
    p1[i + 1] = p1[i + 1] + 0.5 * a0 * dt * dp1(q1[i + 1]);
    p1[i + 1] = p1[i + 1] + 0.5 * a1 * dt * dp1(q1[i + 1]);
    q1[i + 1] = q1[i + 1] + a1 * dt * p1[i + 1];
    p1[i + 1] = p1[i + 1] + 0.5 * a1 * dt * dp1(q1[i + 1]);
    p1[i + 1] = p1[i + 1] + 0.5 * a0 * dt * dp1(q1[i + 1]);
    q1[i + 1] = q1[i + 1] + a0 * dt * p1[i + 1];
    p1[i + 1] = p1[i + 1] + 0.5 * a0 * dt * dp1(q1[i + 1]);
  }
}


x86 assembly (clang, -O0):
<solve1>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
mov    $0x2,%edi
xor    %esi,%esi
call   1040 <pow@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x3c(%rbp)
mov    $0x2,%edi
xor    %esi,%esi
call   1040 <pow@plt>
mov    %eax,%edx
mov    -0x3c(%rbp),%eax
mov    $0x2,%ecx
sub    %edx,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    $0x2,%edi
xor    %esi,%esi
call   1040 <pow@plt>
mov    $0x2,%ecx
sub    %eax,%ecx
mov    $0x1,%eax
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x24(%rbp)
cvtsi2sdl -0x24(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xe4d(%rip),%xmm2
subsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    1538 <solve1+0x418>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xe2a(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <dp1@plt>
movsd  -0xa0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x98(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xd74(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <dp1@plt>
movsd  -0x90(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x88(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xcff(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <dp1@plt>
movsd  -0x80(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xc4b(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <dp1@plt>
movsd  -0x70(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xbdf(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <dp1@plt>
movsd  -0x60(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x58(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xb2b(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <dp1@plt>
movsd  -0x50(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11a1 <solve1+0x81>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<solve1>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x30,%rsp
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
mov    $0x2,%ebp
xor    %r12d,%r12d
mov    $0x2,%edi
xor    %esi,%esi
call   1040 <pow@plt>
mov    %eax,%r15d
mov    $0x2,%edi
xor    %esi,%esi
call   1040 <pow@plt>
mov    $0x2,%ecx
sub    %eax,%ecx
mov    %r15d,%eax
cltd
idiv   %ecx
mov    %eax,%r15d
mov    $0x2,%edi
xor    %esi,%esi
call   1040 <pow@plt>
movsd  0x10(%rsp),%xmm1
sub    %eax,%ebp
add    $0xffffffff,%eax
cmp    $0x3,%eax
cmovae %r12d,%ebp
addsd  0xe6a(%rip),%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jbe    1320 <solve1+0x200>
neg    %r15d
xorps  %xmm0,%xmm0
cvtsi2sd %r15d,%xmm0
cvtsi2sd %ebp,%xmm2
movsd  0xe4d(%rip),%xmm3
movapd %xmm0,%xmm4
mulsd  %xmm3,%xmm4
movsd  (%rsp),%xmm5
mulsd  %xmm5,%xmm4
movsd  %xmm4,0x8(%rsp)
mulsd  %xmm5,%xmm0
movsd  %xmm0,0x20(%rsp)
mulsd  %xmm2,%xmm3
mulsd  %xmm5,%xmm3
movsd  %xmm3,0x18(%rsp)
mulsd  %xmm5,%xmm2
movsd  %xmm2,0x28(%rsp)
movsd  (%r14),%xmm0
mov    $0x1,%ebp
movsd  %xmm1,0x10(%rsp)
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  %xmm0,(%rsp)
movsd  -0x8(%rbx,%rbp,8),%xmm0
call   1030 <dp1@plt>
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%r14,%rbp,8)
mulsd  0x20(%rsp),%xmm0
addsd  -0x8(%rbx,%rbp,8),%xmm0
movsd  %xmm0,(%rbx,%rbp,8)
movsd  (%r14,%rbp,8),%xmm1
movsd  %xmm1,(%rsp)
call   1030 <dp1@plt>
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  %xmm0,(%r14,%rbp,8)
movsd  (%rbx,%rbp,8),%xmm0
call   1030 <dp1@plt>
mulsd  0x18(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%r14,%rbp,8)
mulsd  0x28(%rsp),%xmm0
addsd  (%rbx,%rbp,8),%xmm0
movsd  %xmm0,(%rbx,%rbp,8)
movsd  (%r14,%rbp,8),%xmm1
movsd  %xmm1,(%rsp)
call   1030 <dp1@plt>
mulsd  0x18(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  %xmm0,(%r14,%rbp,8)
movsd  (%rbx,%rbp,8),%xmm0
call   1030 <dp1@plt>
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%r14,%rbp,8)
mulsd  0x20(%rsp),%xmm0
addsd  (%rbx,%rbp,8),%xmm0
movsd  %xmm0,(%rbx,%rbp,8)
movsd  (%r14,%rbp,8),%xmm1
movsd  %xmm1,(%rsp)
call   1030 <dp1@plt>
movsd  0x10(%rsp),%xmm1
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
xorps  %xmm2,%xmm2
cvtsi2sd %ebp,%xmm2
movsd  %xmm0,(%r14,%rbp,8)
add    $0x1,%rbp
ucomisd %xmm2,%xmm1
ja     1210 <solve1+0xf0>
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @solve1(double* nocapture %0, double* nocapture %1, double %2, double %3) {
%5 = tail call i32 @pow(i32 2, i32 0)
%6 = tail call i32 @pow(i32 2, i32 0)
%7 = sub nsw i32 2, %6
%8 = sdiv i32 %5, %7
%9 = sub nsw i32 0, %8
%10 = sitofp i32 %9 to double
%11 = tail call i32 @pow(i32 2, i32 0)
%12 = sub nsw i32 2, %11
%13 = add i32 %11, -1
%14 = icmp ult i32 %13, 3
%15 = select i1 %14, i32 %12, i32 0
%16 = sitofp i32 %15 to double
%17 = fadd double %3, -1.000000e+00
%18 = fcmp ogt double %17, 0.000000e+00
br i1 %18, label %19, label %61
19: ; preds = %4
%20 = fmul double %10, 5.000000e-01
%21 = fmul double %20, %2
%22 = fmul double %10, %2
%23 = fmul double %16, 5.000000e-01
%24 = fmul double %23, %2
%25 = fmul double %16, %2
%26 = load double, double* %1
br label %27
27: ; preds = %19, %27
%28 = phi double [ %26, %19 ], [ %57, %27 ]
%29 = phi i64 [ 0, %19 ], [ %34, %27 ]
%30 = getelementptr inbounds double, double* %0, i64 %29
%31 = load double, double* %30
%32 = tail call double @dp1(double %31)
%33 = tail call double @llvm.fmuladd.f64(double %21, double %32, double %28)
%34 = add nuw i64 %29, 1
%35 = getelementptr inbounds double, double* %1, i64 %34
store double %33, double* %35
%36 = load double, double* %30
%37 = tail call double @llvm.fmuladd.f64(double %22, double %33, double %36)
%38 = getelementptr inbounds double, double* %0, i64 %34
store double %37, double* %38
%39 = load double, double* %35
%40 = tail call double @dp1(double %37)
%41 = tail call double @llvm.fmuladd.f64(double %21, double %40, double %39)
store double %41, double* %35
%42 = load double, double* %38
%43 = tail call double @dp1(double %42)
%44 = tail call double @llvm.fmuladd.f64(double %24, double %43, double %41)
store double %44, double* %35
%45 = load double, double* %38
%46 = tail call double @llvm.fmuladd.f64(double %25, double %44, double %45)
store double %46, double* %38
%47 = load double, double* %35
%48 = tail call double @dp1(double %46)
%49 = tail call double @llvm.fmuladd.f64(double %24, double %48, double %47)
store double %49, double* %35
%50 = load double, double* %38
%51 = tail call double @dp1(double %50)
%52 = tail call double @llvm.fmuladd.f64(double %21, double %51, double %49)
store double %52, double* %35
%53 = load double, double* %38
%54 = tail call double @llvm.fmuladd.f64(double %22, double %52, double %53)
store double %54, double* %38
%55 = load double, double* %35
%56 = tail call double @dp1(double %54)
%57 = tail call double @llvm.fmuladd.f64(double %21, double %56, double %55)
store double %57, double* %35
%58 = trunc i64 %34 to i32
%59 = sitofp i32 %58 to double
%60 = fcmp ogt double %17, %59
br i1 %60, label %27, label %61
61: ; preds = %27, %4
ret void
}