#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, double, double, double,
                           double, double, ...);
int /*<<< orphan*/ printf(char *, double, double, double, double, double, ...);
int /*<<< orphan*/ runge4(double, double *, double);
int sqrt(int);
void RK4(char *fout, double t, double tmax, double step, double x_0,
         double zx_0, double v_0, double zv_0) {
  double y[4];
  int i;
  double E;
  FILE *file;
  file = fopen(fout, "w");
  y[0] = x_0;
  y[1] = zx_0;
  y[2] = v_0;
  y[3] = zv_0;
  E = (y[1] * y[1] + y[3] * y[3]) / 2.0 +
      (-1) / (sqrt(1 + 2 * y[0] * y[0] + 2 * y[2] * y[2]));
  fprintf(file, "0\t%e\t%e\t%e\t%e\t%e\n", y[0], y[1], y[2], y[3], E);
  printf("0\t%e\t%e\t%e\t%e\t%e\n", y[0], y[1], y[2], y[3], E);
  for (i = 1; i * step <= tmax; i++) {
    t = i * step;
    runge4(t, y, step);
    E = (y[1] * y[1] + y[3] * y[3]) / 2.0 +
        (-1) / (sqrt(1 + 2 * y[0] * y[0] + 2 * y[2] * y[2]));
    fprintf(file, "%f\t%e\t%e\t%e\t%e\t%e\n", t, y[0], y[1], y[2], y[3], E);
    printf("%f\t%e\t%e\t%e\t%e\t%e\n", t, y[0], y[1], y[2], y[3], E);
  }
  fclose(file);
}


x86 assembly (clang, -O0):
<RK4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
movsd  %xmm4,-0x30(%rbp)
movsd  %xmm5,-0x38(%rbp)
movsd  %xmm6,-0x40(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe73(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x78(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe0e(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xdfd(%rip),%xmm1
mulsd  -0x60(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xdef(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xddb(%rip),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1080 <sqrt@plt>
movsd  -0x80(%rbp),%xmm0
mov    %eax,%ecx
mov    $0xffffffff,%eax
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x78(%rbp),%rdi
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm3
movsd  -0x70(%rbp),%xmm4
lea    0xd92(%rip),%rsi
mov    $0x5,%al
call   1060 <fprintf@plt>
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm3
movsd  -0x70(%rbp),%xmm4
lea    0xd6b(%rip),%rdi
mov    $0x5,%al
call   1050 <printf@plt>
movl   $0x1,-0x64(%rbp)
cvtsi2sdl -0x64(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     13ee <RK4+0x28e>
cvtsi2sdl -0x64(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
lea    -0x60(%rbp),%rdi
movsd  -0x20(%rbp),%xmm1
call   1030 <runge4@plt>
movsd  -0x58(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xcec(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xcd8(%rip),%xmm1
mulsd  -0x60(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xcca(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xcb6(%rip),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1080 <sqrt@plt>
movsd  -0x88(%rbp),%xmm0
ff
mov    %eax,%ecx
mov    $0xffffffff,%eax
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x78(%rbp),%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm3
movsd  -0x48(%rbp),%xmm4
movsd  -0x70(%rbp),%xmm5
lea    0xc77(%rip),%rsi
mov    $0x6,%al
call   1060 <fprintf@plt>
movsd  -0x10(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm3
movsd  -0x48(%rbp),%xmm4
movsd  -0x70(%rbp),%xmm5
lea    0xc4b(%rip),%rdi
mov    $0x6,%al
call   1050 <printf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    12b5 <RK4+0x155>
mov    -0x78(%rbp),%rdi
call   1040 <fclose@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<RK4>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x68,%rsp
movsd  %xmm6,0x10(%rsp)
movsd  %xmm5,0x50(%rsp)
movsd  %xmm4,0x8(%rsp)
movsd  %xmm3,0x58(%rsp)
movsd  %xmm2,0x18(%rsp)
movsd  %xmm1,0x60(%rsp)
lea    0xe7b(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%r15
movsd  0x58(%rsp),%xmm3
movsd  %xmm3,0x20(%rsp)
movsd  0x8(%rsp),%xmm1
movsd  %xmm1,0x28(%rsp)
movsd  0x50(%rsp),%xmm2
movsd  %xmm2,0x30(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x38(%rsp)
mulsd  %xmm0,%xmm0
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
mulsd  0xe1f(%rip),%xmm1
movsd  %xmm1,0x48(%rsp)
movapd %xmm3,%xmm0
addsd  %xmm3,%xmm0
mulsd  %xmm3,%xmm0
addsd  0xe0d(%rip),%xmm0
movapd %xmm2,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvttsd2si %xmm1,%edi
call   1080 <sqrt@plt>
mov    %eax,%ecx
mov    $0xffffffff,%eax
cltd
idiv   %ecx
xorps  %xmm4,%xmm4
cvtsi2sd %eax,%xmm4
addsd  0x48(%rsp),%xmm4
movsd  %xmm4,0x48(%rsp)
lea    0xdda(%rip),%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
movsd  0x58(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x50(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
mov    $0x5,%al
call   1060 <fprintf@plt>
mov    %rbx,%rdi
movsd  0x58(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x50(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
movsd  0x48(%rsp),%xmm4
mov    $0x5,%al
call   1050 <printf@plt>
movsd  0x60(%rsp),%xmm1
ucomisd 0x18(%rsp),%xmm1
jb     13bd <RK4+0x25d>
mov    $0x2,%ebp
lea    0x20(%rsp),%r14
lea    0xd7c(%rip),%rbx
movsd  0x18(%rsp),%xmm0
xchg   %ax,%ax
movsd  %xmm0,0x10(%rsp)
mov    %r14,%rdi
movsd  0x18(%rsp),%xmm1
call   1030 <runge4@plt>
movsd  0x20(%rsp),%xmm0
movsd  0x28(%rsp),%xmm2
movsd  0x38(%rsp),%xmm1
mulsd  %xmm1,%xmm1
mulsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
mulsd  0xd16(%rip),%xmm2
movsd  %xmm2,0x8(%rsp)
movapd %xmm0,%xmm1
addsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
addsd  0xd04(%rip),%xmm1
movsd  0x30(%rsp),%xmm0
movapd %xmm0,%xmm2
addsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
cvttsd2si %xmm2,%edi
call   1080 <sqrt@plt>
mov    %eax,%ecx
mov    $0xffffffff,%eax
cltd
idiv   %ecx
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x8(%rsp),%xmm0
movapd %xmm0,%xmm5
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm1
movsd  0x28(%rsp),%xmm2
movsd  0x30(%rsp),%xmm3
movsd  0x38(%rsp),%xmm4
mov    %r15,%rdi
mov    %rbx,%rsi
movsd  0x10(%rsp),%xmm0
mov    $0x6,%al
call   1060 <fprintf@plt>
movsd  0x20(%rsp),%xmm1
movsd  0x28(%rsp),%xmm2
movsd  0x30(%rsp),%xmm3
movsd  0x38(%rsp),%xmm4
mov    %rbx,%rdi
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm5
mov    $0x6,%al
call   1050 <printf@plt>
movsd  0x60(%rsp),%xmm1
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
mulsd  0x18(%rsp),%xmm0
add    $0x1,%ebp
ucomisd %xmm0,%xmm1
jae    12b0 <RK4+0x150>
mov    %r15,%rdi
call   1040 <fclose@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"w\00"
@.str.1 = [18 x i8] c"0\09%e\09%e\09%e\09%e\09%e\0A\00"
@.str.2 = [19 x i8] c"%f\09%e\09%e\09%e\09%e\09%e\0A\00"
define void @RK4(i8* %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = alloca i8*
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca [4 x double]
%18 = alloca i32
%19 = alloca double
%20 = alloca i32*
store i8* %0, i8** %9
store double %1, double* %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
%21 = load i8*, i8** %9
%22 = call i32* @fopen(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %22, i32** %20
%23 = load double, double* %13
%24 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
store double %23, double* %24
%25 = load double, double* %14
%26 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
store double %25, double* %26
%27 = load double, double* %15
%28 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
store double %27, double* %28
%29 = load double, double* %16
%30 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 3
store double %29, double* %30
%31 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%32 = load double, double* %31
%33 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%34 = load double, double* %33
%35 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 3
%36 = load double, double* %35
%37 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 3
%38 = load double, double* %37
%39 = fmul double %36, %38
%40 = call double @llvm.fmuladd.f64(double %32, double %34, double %39)
%41 = fdiv double %40, 2.000000e+00
%42 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%43 = load double, double* %42
%44 = fmul double 2.000000e+00, %43
%45 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%46 = load double, double* %45
%47 = call double @llvm.fmuladd.f64(double %44, double %46, double 1.000000e+00)
%48 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%49 = load double, double* %48
%50 = fmul double 2.000000e+00, %49
%51 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%52 = load double, double* %51
%53 = call double @llvm.fmuladd.f64(double %50, double %52, double %47)
%54 = fptosi double %53 to i32
%55 = call i32 @sqrt(i32 %54)
%56 = sdiv i32 -1, %55
%57 = sitofp i32 %56 to double
%58 = fadd double %41, %57
store double %58, double* %19
%59 = load i32*, i32** %20
%60 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%61 = load double, double* %60
%62 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%63 = load double, double* %62
%64 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%65 = load double, double* %64
%66 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 3
%67 = load double, double* %66
%68 = load double, double* %19
%69 = call i32 (i32*, i8*, double, double, double, double, double, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), double %61, double %63, double %65, double %67, double %68)
%70 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%71 = load double, double* %70
%72 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%73 = load double, double* %72
%74 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%75 = load double, double* %74
%76 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 3
%77 = load double, double* %76
%78 = load double, double* %19
%79 = call i32 (i8*, double, double, double, double, double, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), double %71, double %73, double %75, double %77, double %78)
store i32 1, i32* %18
br label %80
80: ; preds = %147, %8
%81 = load i32, i32* %18
%82 = sitofp i32 %81 to double
%83 = load double, double* %12
%84 = fmul double %82, %83
%85 = load double, double* %11
%86 = fcmp ole double %84, %85
br i1 %86, label %87, label %150
87: ; preds = %80
%88 = load i32, i32* %18
%89 = sitofp i32 %88 to double
%90 = load double, double* %12
%91 = fmul double %89, %90
store double %91, double* %10
%92 = load double, double* %10
%93 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%94 = load double, double* %12
%95 = call i32 @runge4(double %92, double* %93, double %94)
%96 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%97 = load double, double* %96
%98 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%99 = load double, double* %98
%100 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 3
%101 = load double, double* %100
%102 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 3
%103 = load double, double* %102
%104 = fmul double %101, %103
%105 = call double @llvm.fmuladd.f64(double %97, double %99, double %104)
%106 = fdiv double %105, 2.000000e+00
%107 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%108 = load double, double* %107
%109 = fmul double 2.000000e+00, %108
%110 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%111 = load double, double* %110
%112 = call double @llvm.fmuladd.f64(double %109, double %111, double 1.000000e+00)
%113 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%114 = load double, double* %113
%115 = fmul double 2.000000e+00, %114
%116 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%117 = load double, double* %116
%118 = call double @llvm.fmuladd.f64(double %115, double %117, double %112)
%119 = fptosi double %118 to i32
%120 = call i32 @sqrt(i32 %119)
%121 = sdiv i32 -1, %120
%122 = sitofp i32 %121 to double
%123 = fadd double %106, %122
store double %123, double* %19
%124 = load i32*, i32** %20
%125 = load double, double* %10
%126 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%127 = load double, double* %126
%128 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%129 = load double, double* %128
%130 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%131 = load double, double* %130
%132 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 3
%133 = load double, double* %132
%134 = load double, double* %19
%135 = call i32 (i32*, i8*, double, double, double, double, double, ...) @fprintf(i32* %124, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), double %125, double %127, double %129, double %131, double %133, double %134)
%136 = load double, double* %10
%137 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%138 = load double, double* %137
%139 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%140 = load double, double* %139
%141 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%142 = load double, double* %141
%143 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 3
%144 = load double, double* %143
%145 = load double, double* %19
%146 = call i32 (i8*, double, double, double, double, double, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), double %136, double %138, double %140, double %142, double %144, double %145)
br label %147
147: ; preds = %87
%148 = load i32, i32* %18
%149 = add nsw i32 %148, 1
store i32 %149, i32* %18
br label %80
150: ; preds = %80
%151 = load i32*, i32** %20
%152 = call i32 @fclose(i32* %151)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"w\00"
@.str.1 = [18 x i8] c"0\09%e\09%e\09%e\09%e\09%e\0A\00"
@.str.2 = [19 x i8] c"%f\09%e\09%e\09%e\09%e\09%e\0A\00"
define void @RK4(i8* nocapture %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = alloca [4 x double]
%10 = bitcast [4 x double]* %9 to i8*
%11 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 0
store double %4, double* %12
%13 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 1
store double %5, double* %13
%14 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 2
store double %6, double* %14
%15 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 3
store double %7, double* %15
%16 = fmul double %7, %7
%17 = tail call double @llvm.fmuladd.f64(double %5, double %5, double %16)
%18 = fmul double %17, 5.000000e-01
%19 = fmul double %4, 2.000000e+00
%20 = tail call double @llvm.fmuladd.f64(double %19, double %4, double 1.000000e+00)
%21 = fmul double %6, 2.000000e+00
%22 = tail call double @llvm.fmuladd.f64(double %21, double %6, double %20)
%23 = fptosi double %22 to i32
%24 = tail call i32 @sqrt(i32 %23)
%25 = sdiv i32 -1, %24
%26 = sitofp i32 %25 to double
%27 = fadd double %18, %26
%28 = tail call i32 (i32*, i8*, double, double, double, double, double, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), double %4, double %5, double %6, double %7, double %27)
%29 = tail call i32 (i8*, double, double, double, double, double, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), double %4, double %5, double %6, double %7, double %27)
%30 = fcmp ugt double %3, %2
br i1 %30, label %65, label %31
31: ; preds = %8, %31
%32 = phi double [ %63, %31 ], [ %3, %8 ]
%33 = phi i32 [ %61, %31 ], [ 1, %8 ]
%34 = call i32 @runge4(double %32, double* %12, double %3)
%35 = load double, double* %13
%36 = load double, double* %15
%37 = fmul double %36, %36
%38 = call double @llvm.fmuladd.f64(double %35, double %35, double %37)
%39 = fmul double %38, 5.000000e-01
%40 = load double, double* %12
%41 = fmul double %40, 2.000000e+00
%42 = call double @llvm.fmuladd.f64(double %41, double %40, double 1.000000e+00)
%43 = load double, double* %14
%44 = fmul double %43, 2.000000e+00
%45 = call double @llvm.fmuladd.f64(double %44, double %43, double %42)
%46 = fptosi double %45 to i32
%47 = call i32 @sqrt(i32 %46)
%48 = sdiv i32 -1, %47
%49 = sitofp i32 %48 to double
%50 = fadd double %39, %49
%51 = load double, double* %12
%52 = load double, double* %13
%53 = load double, double* %14
%54 = load double, double* %15
%55 = call i32 (i32*, i8*, double, double, double, double, double, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), double %32, double %51, double %52, double %53, double %54, double %50)
%56 = load double, double* %12
%57 = load double, double* %13
%58 = load double, double* %14
%59 = load double, double* %15
%60 = call i32 (i8*, double, double, double, double, double, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), double %32, double %56, double %57, double %58, double %59, double %50)
%61 = add nuw nsw i32 %33, 1
%62 = sitofp i32 %61 to double
%63 = fmul double %62, %3
%64 = fcmp ugt double %63, %2
br i1 %64, label %65, label %31
65: ; preds = %31, %8
%66 = call i32 @fclose(i32* %11)
ret void
}