; LLVM IR from HRI-EU/Rcs :: src/RcsCore (Rcs_dynamics)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@runge_kutta_2_3.initRK = external hidden global i8, align 1
@runge_kutta_2_3.t_merk = external hidden global double, align 8
@runge_kutta_2_3.dt_merk = external hidden global double, align 8
@runge_kutta_2_3.init_test = external hidden global i32, align 4
@runge_kutta_2_3.XP_merk1 = external hidden global ptr, align 8
@runge_kutta_2_3.XP_merk2 = external hidden global ptr, align 8
@Rcs_calloc = external global ptr, align 8
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@__func__.runge_kutta_2_3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @runge_kutta_2_3(i32 noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #0 {
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  store i32 %0, ptr %10, align 4, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !9
  store ptr %2, ptr %12, align 8, !tbaa !9
  store double %3, ptr %13, align 8, !tbaa !11
  store double %4, ptr %14, align 8, !tbaa !11
  store ptr %5, ptr %15, align 8, !tbaa !9
  store ptr %6, ptr %16, align 8, !tbaa !9
  store ptr %7, ptr %17, align 8, !tbaa !9
  store ptr %8, ptr %18, align 8, !tbaa !9
  %43 = load i8, ptr @runge_kutta_2_3.initRK, align 1, !tbaa !13, !range !15, !noundef !16
  %44 = trunc i8 %43 to i1
  br i1 %44, label %70, label %45

45:                                               ; preds = %9
  store i8 1, ptr @runge_kutta_2_3.initRK, align 1, !tbaa !13
  %46 = load double, ptr %13, align 8, !tbaa !11
  store double %46, ptr @runge_kutta_2_3.t_merk, align 8, !tbaa !11
  %47 = load double, ptr %14, align 8, !tbaa !11
  store double %47, ptr @runge_kutta_2_3.dt_merk, align 8, !tbaa !11
  %48 = load ptr, ptr %18, align 8, !tbaa !9
  %49 = load i32, ptr %48, align 4, !tbaa !5
  store i32 %49, ptr @runge_kutta_2_3.init_test, align 4, !tbaa !5
  %50 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !9
  %51 = load i32, ptr %10, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = call ptr %50(i64 noundef %52, i64 noundef 8)
  store ptr %53, ptr @runge_kutta_2_3.XP_merk1, align 8, !tbaa !9
  %54 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !9
  %55 = load i32, ptr %10, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = call ptr %54(i64 noundef %56, i64 noundef 8)
  store ptr %57, ptr @runge_kutta_2_3.XP_merk2, align 8, !tbaa !9
  %58 = load i32, ptr @runge_kutta_2_3.init_test, align 4, !tbaa !5
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %69, label %60

60:                                               ; preds = %45
  br label %61

61:                                               ; preds = %60
  %62 = load ptr, ptr @stderr, align 8, !tbaa !9
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @__func__.runge_kutta_2_3, i32 noundef 86) #7
  %64 = load ptr, ptr @stderr, align 8, !tbaa !9
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.2) #7
  %66 = load ptr, ptr @stderr, align 8, !tbaa !9
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.3) #7
  call void @print_trace()
  call void @exit(i32 noundef 1) #8
  unreachable

68:                                               ; No predecessors!
  br label %69

69:                                               ; preds = %68, %45
  br label %70

70:                                               ; preds = %69, %9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  store double 2.500000e-01, ptr %19, align 8, !tbaa !11
  store double -2.362500e-01, ptr %20, align 8, !tbaa !11
  store double 9.112500e-01, ptr %21, align 8, !tbaa !11
  store double 0x3FCEBE344AB3DC5F, ptr %22, align 8, !tbaa !11
  store double 0x3F9F07C1F07C1F08, ptr %23, align 8, !tbaa !11
  store double 0x3FE75834DDCF27F0, ptr %24, align 8, !tbaa !11
  store double 0x3FCEBE344AB3DC5F, ptr %25, align 8, !tbaa !11
  store double 0x3F9F07C1F07C1F08, ptr %26, align 8, !tbaa !11
  store double 0x3FE75834DDCF27F0, ptr %27, align 8, !tbaa !11
  store double 0x3FD0329161F9ADD4, ptr %28, align 8, !tbaa !11
  store double 0x3FE84FBDDF6C2FA7, ptr %29, align 8, !tbaa !11
  store double 0xBF8A41A41A41A41A, ptr %30, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %71 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !9
  %72 = load i32, ptr %10, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = call ptr %71(i64 noundef %73, i64 noundef 8)
  store ptr %74, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %75 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !9
  %76 = load i32, ptr %10, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = call ptr %75(i64 noundef %77, i64 noundef 8)
  store ptr %78, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %79 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !9
  %80 = load i32, ptr %10, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = call ptr %79(i64 noundef %81, i64 noundef 8)
  store ptr %82, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %83 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !9
  %84 = load i32, ptr %10, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = call ptr %83(i64 noundef %85, i64 noundef 8)
  store ptr %86, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %87 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !9
  %88 = load i32, ptr %10, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = call ptr %87(i64 noundef %89, i64 noundef 8)
  store ptr %90, ptr %35, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %91 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !9
  %92 = load i32, ptr %10, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = call ptr %91(i64 noundef %93, i64 noundef 8)
  store ptr %94, ptr %36, align 8, !tbaa !9
  %95 = load ptr, ptr %18, align 8, !tbaa !9
  %96 = icmp eq ptr %95, null
  br i1 %96, label %97, label %123

97:                                               ; preds = %70
  %98 = load double, ptr @runge_kutta_2_3.t_merk, align 8, !tbaa !11
  %99 = load double, ptr %13, align 8, !tbaa !11
  %100 = fsub double %98, %99
  %101 = call double @llvm.fabs.f64(double %100)
  %102 = load double, ptr @runge_kutta_2_3.dt_merk, align 8, !tbaa !11
  %103 = fdiv double %102, 1.000000e+01
  %104 = fcmp olt double %101, %103
  br i1 %104, label %105, label %111

105:                                              ; preds = %97
  %106 = load ptr, ptr %31, align 8, !tbaa !9
  %107 = load ptr, ptr @runge_kutta_2_3.XP_merk1, align 8, !tbaa !9
  %108 = load i32, ptr %10, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = mul i64 %109, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %106, ptr align 8 %107, i64 %110, i1 false)
  br label %122

111:                                              ; preds = %97
  %112 = load ptr, ptr %31, align 8, !tbaa !9
  %113 = load ptr, ptr @runge_kutta_2_3.XP_merk2, align 8, !tbaa !9
  %114 = load i32, ptr %10, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = mul i64 %115, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %112, ptr align 8 %113, i64 %116, i1 false)
  %117 = load ptr, ptr @runge_kutta_2_3.XP_merk1, align 8, !tbaa !9
  %118 = load ptr, ptr @runge_kutta_2_3.XP_merk2, align 8, !tbaa !9
  %119 = load i32, ptr %10, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = mul i64 %120, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %117, ptr align 8 %118, i64 %121, i1 false)
  br label %122

122:                                              ; preds = %111, %105
  br label %134

123:                                              ; preds = %70
  %124 = load ptr, ptr %11, align 8, !tbaa !9
  %125 = load ptr, ptr %15, align 8, !tbaa !9
  %126 = load ptr, ptr %12, align 8, !tbaa !9
  %127 = load ptr, ptr @runge_kutta_2_3.XP_merk1, align 8, !tbaa !9
  %128 = load double, ptr %14, align 8, !tbaa !11
  call void %124(ptr noundef %125, ptr noundef %126, ptr noundef %127, double noundef %128)
  %129 = load ptr, ptr %31, align 8, !tbaa !9
  %130 = load ptr, ptr @runge_kutta_2_3.XP_merk1, align 8, !tbaa !9
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = mul i64 %132, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %129, ptr align 8 %130, i64 %133, i1 false)
  store ptr null, ptr %18, align 8, !tbaa !9
  br label %134

134:                                              ; preds = %123, %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  store i32 0, ptr %37, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %159, %134
  %136 = load i32, ptr %37, align 4, !tbaa !5
  %137 = load i32, ptr %10, align 4, !tbaa !5
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  br label %162

140:                                              ; preds = %135
  %141 = load ptr, ptr %15, align 8, !tbaa !9
  %142 = load i32, ptr %37, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds double, ptr %141, i64 %143
  %145 = load double, ptr %144, align 8, !tbaa !11
  %146 = load double, ptr %14, align 8, !tbaa !11
  %147 = load double, ptr %19, align 8, !tbaa !11
  %148 = load ptr, ptr %31, align 8, !tbaa !9
  %149 = load i32, ptr %37, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds double, ptr %148, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !11
  %153 = fmul double %147, %152
  %154 = call double @llvm.fmuladd.f64(double %146, double %153, double %145)
  %155 = load ptr, ptr %36, align 8, !tbaa !9
  %156 = load i32, ptr %37, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds double, ptr %155, i64 %157
  store double %154, ptr %158, align 8, !tbaa !11
  br label %159

159:                                              ; preds = %140
  %160 = load i32, ptr %37, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %37, align 4, !tbaa !5
  br label %135, !llvm.loop !17

162:                                              ; preds = %139
  %163 = load ptr, ptr %11, align 8, !tbaa !9
  %164 = load ptr, ptr %36, align 8, !tbaa !9
  %165 = load ptr, ptr %12, align 8, !tbaa !9
  %166 = load ptr, ptr %32, align 8, !tbaa !9
  %167 = load double, ptr %14, align 8, !tbaa !11
  call void %163(ptr noundef %164, ptr noundef %165, ptr noundef %166, double noundef %167)
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  store i32 0, ptr %38, align 4, !tbaa !5
  br label %168

168:                                              ; preds = %199, %162
  %169 = load i32, ptr %38, align 4, !tbaa !5
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = icmp slt i32 %169, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  br label %202

173:                                              ; preds = %168
  %174 = load ptr, ptr %15, align 8, !tbaa !9
  %175 = load i32, ptr %38, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds double, ptr %174, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !11
  %179 = load double, ptr %14, align 8, !tbaa !11
  %180 = load double, ptr %20, align 8, !tbaa !11
  %181 = load ptr, ptr %31, align 8, !tbaa !9
  %182 = load i32, ptr %38, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds double, ptr %181, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !11
  %186 = load double, ptr %21, align 8, !tbaa !11
  %187 = load ptr, ptr %32, align 8, !tbaa !9
  %188 = load i32, ptr %38, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds double, ptr %187, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !11
  %192 = fmul double %186, %191
  %193 = call double @llvm.fmuladd.f64(double %180, double %185, double %192)
  %194 = call double @llvm.fmuladd.f64(double %179, double %193, double %178)
  %195 = load ptr, ptr %36, align 8, !tbaa !9
  %196 = load i32, ptr %38, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds double, ptr %195, i64 %197
  store double %194, ptr %198, align 8, !tbaa !11
  br label %199

199:                                              ; preds = %173
  %200 = load i32, ptr %38, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %38, align 4, !tbaa !5
  br label %168, !llvm.loop !19

202:                                              ; preds = %172
  %203 = load ptr, ptr %11, align 8, !tbaa !9
  %204 = load ptr, ptr %36, align 8, !tbaa !9
  %205 = load ptr, ptr %12, align 8, !tbaa !9
  %206 = load ptr, ptr %33, align 8, !tbaa !9
  %207 = load double, ptr %14, align 8, !tbaa !11
  call void %203(ptr noundef %204, ptr noundef %205, ptr noundef %206, double noundef %207)
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  store i32 0, ptr %39, align 4, !tbaa !5
  br label %208

208:                                              ; preds = %246, %202
  %209 = load i32, ptr %39, align 4, !tbaa !5
  %210 = load i32, ptr %10, align 4, !tbaa !5
  %211 = icmp slt i32 %209, %210
  br i1 %211, label %213, label %212

212:                                              ; preds = %208
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %249

213:                                              ; preds = %208
  %214 = load ptr, ptr %15, align 8, !tbaa !9
  %215 = load i32, ptr %39, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds double, ptr %214, i64 %216
  %218 = load double, ptr %217, align 8, !tbaa !11
  %219 = load double, ptr %14, align 8, !tbaa !11
  %220 = load double, ptr %22, align 8, !tbaa !11
  %221 = load ptr, ptr %31, align 8, !tbaa !9
  %222 = load i32, ptr %39, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds double, ptr %221, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !11
  %226 = load double, ptr %23, align 8, !tbaa !11
  %227 = load ptr, ptr %32, align 8, !tbaa !9
  %228 = load i32, ptr %39, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds double, ptr %227, i64 %229
  %231 = load double, ptr %230, align 8, !tbaa !11
  %232 = fmul double %226, %231
  %233 = call double @llvm.fmuladd.f64(double %220, double %225, double %232)
  %234 = load double, ptr %24, align 8, !tbaa !11
  %235 = load ptr, ptr %33, align 8, !tbaa !9
  %236 = load i32, ptr %39, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds double, ptr %235, i64 %237
  %239 = load double, ptr %238, align 8, !tbaa !11
  %240 = call double @llvm.fmuladd.f64(double %234, double %239, double %233)
  %241 = call double @llvm.fmuladd.f64(double %219, double %240, double %218)
  %242 = load ptr, ptr %36, align 8, !tbaa !9
  %243 = load i32, ptr %39, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds double, ptr %242, i64 %244
  store double %241, ptr %245, align 8, !tbaa !11
  br label %246

246:                                              ; preds = %213
  %247 = load i32, ptr %39, align 4, !tbaa !5
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %39, align 4, !tbaa !5
  br label %208, !llvm.loop !20

249:                                              ; preds = %212
  %250 = load ptr, ptr %11, align 8, !tbaa !9
  %251 = load ptr, ptr %36, align 8, !tbaa !9
  %252 = load ptr, ptr %12, align 8, !tbaa !9
  %253 = load ptr, ptr %34, align 8, !tbaa !9
  %254 = load double, ptr %14, align 8, !tbaa !11
  call void %250(ptr noundef %251, ptr noundef %252, ptr noundef %253, double noundef %254)
  %255 = load ptr, ptr @runge_kutta_2_3.XP_merk2, align 8, !tbaa !9
  %256 = load ptr, ptr %34, align 8, !tbaa !9
  %257 = load i32, ptr %10, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = mul i64 %258, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %255, ptr align 8 %256, i64 %259, i1 false)
  %260 = load double, ptr %13, align 8, !tbaa !11
  store double %260, ptr @runge_kutta_2_3.t_merk, align 8, !tbaa !11
  %261 = load double, ptr %14, align 8, !tbaa !11
  store double %261, ptr @runge_kutta_2_3.dt_merk, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  store i32 0, ptr %40, align 4, !tbaa !5
  br label %262

262:                                              ; preds = %300, %249
  %263 = load i32, ptr %40, align 4, !tbaa !5
  %264 = load i32, ptr %10, align 4, !tbaa !5
  %265 = icmp slt i32 %263, %264
  br i1 %265, label %267, label %266

266:                                              ; preds = %262
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %303

267:                                              ; preds = %262
  %268 = load ptr, ptr %15, align 8, !tbaa !9
  %269 = load i32, ptr %40, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds double, ptr %268, i64 %270
  %272 = load double, ptr %271, align 8, !tbaa !11
  %273 = load double, ptr %14, align 8, !tbaa !11
  %274 = load double, ptr %25, align 8, !tbaa !11
  %275 = load ptr, ptr %31, align 8, !tbaa !9
  %276 = load i32, ptr %40, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds double, ptr %275, i64 %277
  %279 = load double, ptr %278, align 8, !tbaa !11
  %280 = load double, ptr %26, align 8, !tbaa !11
  %281 = load ptr, ptr %32, align 8, !tbaa !9
  %282 = load i32, ptr %40, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds double, ptr %281, i64 %283
  %285 = load double, ptr %284, align 8, !tbaa !11
  %286 = fmul double %280, %285
  %287 = call double @llvm.fmuladd.f64(double %274, double %279, double %286)
  %288 = load double, ptr %27, align 8, !tbaa !11
  %289 = load ptr, ptr %33, align 8, !tbaa !9
  %290 = load i32, ptr %40, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds double, ptr %289, i64 %291
  %293 = load double, ptr %292, align 8, !tbaa !11
  %294 = call double @llvm.fmuladd.f64(double %288, double %293, double %287)
  %295 = call double @llvm.fmuladd.f64(double %273, double %294, double %272)
  %296 = load ptr, ptr %16, align 8, !tbaa !9
  %297 = load i32, ptr %40, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds double, ptr %296, i64 %298
  store double %295, ptr %299, align 8, !tbaa !11
  br label %300

300:                                              ; preds = %267
  %301 = load i32, ptr %40, align 4, !tbaa !5
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %40, align 4, !tbaa !5
  br label %262, !llvm.loop !21

303:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  store i32 0, ptr %41, align 4, !tbaa !5
  br label %304

304:                                              ; preds = %342, %303
  %305 = load i32, ptr %41, align 4, !tbaa !5
  %306 = load i32, ptr %10, align 4, !tbaa !5
  %307 = icmp slt i32 %305, %306
  br i1 %307, label %309, label %308

308:                                              ; preds = %304
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %345

309:                                              ; preds = %304
  %310 = load ptr, ptr %15, align 8, !tbaa !9
  %311 = load i32, ptr %41, align 4, !tbaa !5
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds double, ptr %310, i64 %312
  %314 = load double, ptr %313, align 8, !tbaa !11
  %315 = load double, ptr %14, align 8, !tbaa !11
  %316 = load double, ptr %28, align 8, !tbaa !11
  %317 = load ptr, ptr %31, align 8, !tbaa !9
  %318 = load i32, ptr %41, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds double, ptr %317, i64 %319
  %321 = load double, ptr %320, align 8, !tbaa !11
  %322 = load double, ptr %29, align 8, !tbaa !11
  %323 = load ptr, ptr %33, align 8, !tbaa !9
  %324 = load i32, ptr %41, align 4, !tbaa !5
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds double, ptr %323, i64 %325
  %327 = load double, ptr %326, align 8, !tbaa !11
  %328 = fmul double %322, %327
  %329 = call double @llvm.fmuladd.f64(double %316, double %321, double %328)
  %330 = load double, ptr %30, align 8, !tbaa !11
  %331 = load ptr, ptr %34, align 8, !tbaa !9
  %332 = load i32, ptr %41, align 4, !tbaa !5
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds double, ptr %331, i64 %333
  %335 = load double, ptr %334, align 8, !tbaa !11
  %336 = call double @llvm.fmuladd.f64(double %330, double %335, double %329)
  %337 = call double @llvm.fmuladd.f64(double %315, double %336, double %314)
  %338 = load ptr, ptr %35, align 8, !tbaa !9
  %339 = load i32, ptr %41, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds double, ptr %338, i64 %340
  store double %337, ptr %341, align 8, !tbaa !11
  br label %342

342:                                              ; preds = %309
  %343 = load i32, ptr %41, align 4, !tbaa !5
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr %41, align 4, !tbaa !5
  br label %304, !llvm.loop !22

345:                                              ; preds = %308
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  store i32 0, ptr %42, align 4, !tbaa !5
  br label %346

346:                                              ; preds = %367, %345
  %347 = load i32, ptr %42, align 4, !tbaa !5
  %348 = load i32, ptr %10, align 4, !tbaa !5
  %349 = icmp slt i32 %347, %348
  br i1 %349, label %351, label %350

350:                                              ; preds = %346
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  br label %370

351:                                              ; preds = %346
  %352 = load ptr, ptr %35, align 8, !tbaa !9
  %353 = load i32, ptr %42, align 4, !tbaa !5
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds double, ptr %352, i64 %354
  %356 = load double, ptr %355, align 8, !tbaa !11
  %357 = load ptr, ptr %16, align 8, !tbaa !9
  %358 = load i32, ptr %42, align 4, !tbaa !5
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds double, ptr %357, i64 %359
  %361 = load double, ptr %360, align 8, !tbaa !11
  %362 = fsub double %356, %361
  %363 = load ptr, ptr %17, align 8, !tbaa !9
  %364 = load i32, ptr %42, align 4, !tbaa !5
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds double, ptr %363, i64 %365
  store double %362, ptr %366, align 8, !tbaa !11
  br label %367

367:                                              ; preds = %351
  %368 = load i32, ptr %42, align 4, !tbaa !5
  %369 = add nsw i32 %368, 1
  store i32 %369, ptr %42, align 4, !tbaa !5
  br label %346, !llvm.loop !23

370:                                              ; preds = %350
  %371 = load ptr, ptr %31, align 8, !tbaa !9
  call void @free(ptr noundef %371) #7
  %372 = load ptr, ptr %32, align 8, !tbaa !9
  call void @free(ptr noundef %372) #7
  %373 = load ptr, ptr %33, align 8, !tbaa !9
  call void @free(ptr noundef %373) #7
  %374 = load ptr, ptr %34, align 8, !tbaa !9
  call void @free(ptr noundef %374) #7
  %375 = load ptr, ptr %35, align 8, !tbaa !9
  call void @free(ptr noundef %375) #7
  %376 = load ptr, ptr %36, align 8, !tbaa !9
  call void @free(ptr noundef %376) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  ret void
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

declare void @print_trace() #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@runge_kutta_2_3.initRK = external hidden local_unnamed_addr global i8, align 1
@runge_kutta_2_3.t_merk = external hidden local_unnamed_addr global double, align 8
@runge_kutta_2_3.dt_merk = external hidden local_unnamed_addr global double, align 8
@runge_kutta_2_3.init_test = external hidden local_unnamed_addr global i32, align 4
@runge_kutta_2_3.XP_merk1 = external hidden local_unnamed_addr global ptr, align 8
@runge_kutta_2_3.XP_merk2 = external hidden local_unnamed_addr global ptr, align 8
@Rcs_calloc = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@__func__.runge_kutta_2_3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @runge_kutta_2_3(i32 noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, double noundef %3, double noundef %4, ptr noundef %5, ptr nocapture noundef %6, ptr nocapture noundef writeonly %7, ptr noundef readonly %8) local_unnamed_addr #0 {
  %10 = ptrtoint ptr %6 to i64
  %11 = ptrtoint ptr %7 to i64
  %12 = ptrtoint ptr %5 to i64
  %13 = ptrtoint ptr %6 to i64
  %14 = ptrtoint ptr %5 to i64
  %15 = load i8, ptr @runge_kutta_2_3.initRK, align 1, !tbaa !5, !range !9, !noundef !10
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %._crit_edge183, label %17

._crit_edge183:                                   ; preds = %9
  %.pre = sext i32 %0 to i64
  br label %32

17:                                               ; preds = %9
  store i8 1, ptr @runge_kutta_2_3.initRK, align 1, !tbaa !5
  store double %3, ptr @runge_kutta_2_3.t_merk, align 8, !tbaa !11
  store double %4, ptr @runge_kutta_2_3.dt_merk, align 8, !tbaa !11
  %18 = load i32, ptr %8, align 4, !tbaa !13
  store i32 %18, ptr @runge_kutta_2_3.init_test, align 4, !tbaa !13
  %19 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !15
  %20 = sext i32 %0 to i64
  %21 = tail call ptr %19(i64 noundef %20, i64 noundef 8) #8
  store ptr %21, ptr @runge_kutta_2_3.XP_merk1, align 8, !tbaa !15
  %22 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !15
  %23 = tail call ptr %22(i64 noundef %20, i64 noundef 8) #8
  store ptr %23, ptr @runge_kutta_2_3.XP_merk2, align 8, !tbaa !15
  %24 = load i32, ptr @runge_kutta_2_3.init_test, align 4, !tbaa !13
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %25, label %32

25:                                               ; preds = %17
  %26 = load ptr, ptr @stderr, align 8, !tbaa !15
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.runge_kutta_2_3, i32 noundef 86) #9
  %28 = load ptr, ptr @stderr, align 8, !tbaa !15
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.2) #9
  %30 = load ptr, ptr @stderr, align 8, !tbaa !15
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.3) #9
  tail call void @print_trace() #8
  tail call void @exit(i32 noundef 1) #10
  unreachable

32:                                               ; preds = %._crit_edge183, %17
  %.pre-phi = phi i64 [ %.pre, %._crit_edge183 ], [ %20, %17 ]
  %33 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !15
  %34 = tail call ptr %33(i64 noundef %.pre-phi, i64 noundef 8) #8
  %35 = ptrtoint ptr %34 to i64
  %36 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !15
  %37 = tail call ptr %36(i64 noundef %.pre-phi, i64 noundef 8) #8
  %38 = ptrtoint ptr %37 to i64
  %39 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !15
  %40 = tail call ptr %39(i64 noundef %.pre-phi, i64 noundef 8) #8
  %41 = ptrtoint ptr %40 to i64
  %42 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !15
  %43 = tail call ptr %42(i64 noundef %.pre-phi, i64 noundef 8) #8
  %44 = ptrtoint ptr %43 to i64
  %45 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !15
  %46 = tail call ptr %45(i64 noundef %.pre-phi, i64 noundef 8) #8
  %47 = ptrtoint ptr %46 to i64
  %48 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !15
  %49 = tail call ptr %48(i64 noundef %.pre-phi, i64 noundef 8) #8
  %50 = ptrtoint ptr %49 to i64
  %51 = icmp eq ptr %8, null
  br i1 %51, label %52, label %66

52:                                               ; preds = %32
  %53 = load double, ptr @runge_kutta_2_3.t_merk, align 8, !tbaa !11
  %54 = fsub double %53, %3
  %55 = tail call double @llvm.fabs.f64(double %54)
  %56 = load double, ptr @runge_kutta_2_3.dt_merk, align 8, !tbaa !11
  %57 = fdiv double %56, 1.000000e+01
  %58 = fcmp olt double %55, %57
  %59 = shl nsw i64 %.pre-phi, 3
  br i1 %58, label %60, label %62

60:                                               ; preds = %52
  %61 = load ptr, ptr @runge_kutta_2_3.XP_merk1, align 8, !tbaa !15
  tail call void @llvm.memmove.p0.p0.i64(ptr align 8 %34, ptr align 8 %61, i64 %59, i1 false)
  br label %70

62:                                               ; preds = %52
  %63 = load ptr, ptr @runge_kutta_2_3.XP_merk2, align 8, !tbaa !15
  tail call void @llvm.memmove.p0.p0.i64(ptr align 8 %34, ptr align 8 %63, i64 %59, i1 false)
  %64 = load ptr, ptr @runge_kutta_2_3.XP_merk1, align 8, !tbaa !15
  %65 = load ptr, ptr @runge_kutta_2_3.XP_merk2, align 8, !tbaa !15
  tail call void @llvm.memmove.p0.p0.i64(ptr align 8 %64, ptr align 8 %65, i64 %59, i1 false)
  br label %70

66:                                               ; preds = %32
  %67 = load ptr, ptr @runge_kutta_2_3.XP_merk1, align 8, !tbaa !15
  tail call void %1(ptr noundef %5, ptr noundef %2, ptr noundef %67, double noundef %4) #8
  %68 = load ptr, ptr @runge_kutta_2_3.XP_merk1, align 8, !tbaa !15
  %69 = shl nsw i64 %.pre-phi, 3
  tail call void @llvm.memmove.p0.p0.i64(ptr align 8 %34, ptr align 8 %68, i64 %69, i1 false)
  br label %70

70:                                               ; preds = %60, %62, %66
  %71 = icmp sgt i32 %0, 0
  br i1 %71, label %.lr.ph.preheader, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %70
  tail call void %1(ptr noundef %49, ptr noundef %2, ptr noundef %37, double noundef %4) #8
  br label %._crit_edge144.thread

.lr.ph.preheader:                                 ; preds = %70
  %wide.trip.count = zext nneg i32 %0 to i64
  %min.iters.check = icmp ult i32 %0, 6
  br i1 %min.iters.check, label %.lr.ph.preheader312, label %vector.memcheck

.lr.ph.preheader312:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader312
  %72 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.ph
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = getelementptr inbounds double, ptr %34, i64 %indvars.iv.ph
  %75 = load double, ptr %74, align 8, !tbaa !11
  %76 = fmul double %75, 2.500000e-01
  %77 = tail call double @llvm.fmuladd.f64(double %4, double %76, double %73)
  %78 = getelementptr inbounds double, ptr %49, i64 %indvars.iv.ph
  store double %77, ptr %78, align 8, !tbaa !11
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader312
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader312 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %79 = add nsw i64 %wide.trip.count, -1
  %80 = icmp eq i64 %indvars.iv.ph, %79
  br i1 %80, label %._crit_edge, label %.lr.ph

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %81 = sub i64 %50, %14
  %diff.check = icmp ult i64 %81, 32
  %82 = sub i64 %50, %35
  %diff.check184 = icmp ult i64 %82, 32
  %conflict.rdx = or i1 %diff.check, %diff.check184
  br i1 %conflict.rdx, label %.lr.ph.preheader312, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %4, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %83 = getelementptr inbounds double, ptr %5, i64 %index
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  %wide.load = load <2 x double>, ptr %83, align 8, !tbaa !11
  %wide.load185 = load <2 x double>, ptr %84, align 8, !tbaa !11
  %85 = getelementptr inbounds double, ptr %34, i64 %index
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  %wide.load186 = load <2 x double>, ptr %85, align 8, !tbaa !11
  %wide.load187 = load <2 x double>, ptr %86, align 8, !tbaa !11
  %87 = fmul <2 x double> %wide.load186, <double 2.500000e-01, double 2.500000e-01>
  %88 = fmul <2 x double> %wide.load187, <double 2.500000e-01, double 2.500000e-01>
  %89 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %87, <2 x double> %wide.load)
  %90 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %88, <2 x double> %wide.load185)
  %91 = getelementptr inbounds double, ptr %49, i64 %index
  %92 = getelementptr inbounds i8, ptr %91, i64 16
  store <2 x double> %89, ptr %91, align 8, !tbaa !11
  store <2 x double> %90, ptr %92, align 8, !tbaa !11
  %index.next = add nuw i64 %index, 4
  %93 = icmp eq i64 %index.next, %n.vec
  br i1 %93, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader312

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block
  tail call void %1(ptr noundef nonnull %49, ptr noundef %2, ptr noundef %37, double noundef %4) #8
  br i1 %71, label %.lr.ph143.preheader, label %._crit_edge144.thread

.lr.ph143.preheader:                              ; preds = %._crit_edge
  %wide.trip.count161 = zext nneg i32 %0 to i64
  %min.iters.check196 = icmp ult i32 %0, 6
  br i1 %min.iters.check196, label %.lr.ph143.preheader311, label %vector.memcheck188

.lr.ph143.preheader311:                           ; preds = %middle.block194, %vector.memcheck188, %.lr.ph143.preheader
  %indvars.iv158.ph = phi i64 [ 0, %vector.memcheck188 ], [ 0, %.lr.ph143.preheader ], [ %n.vec199, %middle.block194 ]
  %xtraiter313 = and i64 %wide.trip.count, 1
  %lcmp.mod314.not = icmp eq i64 %xtraiter313, 0
  br i1 %lcmp.mod314.not, label %.lr.ph143.prol.loopexit, label %.lr.ph143.prol

.lr.ph143.prol:                                   ; preds = %.lr.ph143.preheader311
  %94 = getelementptr inbounds double, ptr %5, i64 %indvars.iv158.ph
  %95 = load double, ptr %94, align 8, !tbaa !11
  %96 = getelementptr inbounds double, ptr %34, i64 %indvars.iv158.ph
  %97 = load double, ptr %96, align 8, !tbaa !11
  %98 = getelementptr inbounds double, ptr %37, i64 %indvars.iv158.ph
  %99 = load double, ptr %98, align 8, !tbaa !11
  %100 = fmul double %99, 9.112500e-01
  %101 = tail call double @llvm.fmuladd.f64(double %97, double -2.362500e-01, double %100)
  %102 = tail call double @llvm.fmuladd.f64(double %4, double %101, double %95)
  %103 = getelementptr inbounds double, ptr %49, i64 %indvars.iv158.ph
  store double %102, ptr %103, align 8, !tbaa !11
  %indvars.iv.next159.prol = or disjoint i64 %indvars.iv158.ph, 1
  br label %.lr.ph143.prol.loopexit

.lr.ph143.prol.loopexit:                          ; preds = %.lr.ph143.prol, %.lr.ph143.preheader311
  %indvars.iv158.unr = phi i64 [ %indvars.iv158.ph, %.lr.ph143.preheader311 ], [ %indvars.iv.next159.prol, %.lr.ph143.prol ]
  %104 = add nsw i64 %wide.trip.count, -1
  %105 = icmp eq i64 %indvars.iv158.ph, %104
  br i1 %105, label %._crit_edge144, label %.lr.ph143

vector.memcheck188:                               ; preds = %.lr.ph143.preheader
  %106 = sub i64 %50, %14
  %diff.check189 = icmp ult i64 %106, 32
  %107 = sub i64 %50, %35
  %diff.check190 = icmp ult i64 %107, 32
  %conflict.rdx191 = or i1 %diff.check189, %diff.check190
  %108 = sub i64 %50, %38
  %diff.check192 = icmp ult i64 %108, 32
  %conflict.rdx193 = or i1 %conflict.rdx191, %diff.check192
  br i1 %conflict.rdx193, label %.lr.ph143.preheader311, label %vector.ph197

vector.ph197:                                     ; preds = %vector.memcheck188
  %n.vec199 = and i64 %wide.trip.count, 2147483644
  %broadcast.splatinsert209 = insertelement <2 x double> poison, double %4, i64 0
  %broadcast.splat210 = shufflevector <2 x double> %broadcast.splatinsert209, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body201

vector.body201:                                   ; preds = %vector.body201, %vector.ph197
  %index202 = phi i64 [ 0, %vector.ph197 ], [ %index.next211, %vector.body201 ]
  %109 = getelementptr inbounds double, ptr %5, i64 %index202
  %110 = getelementptr inbounds i8, ptr %109, i64 16
  %wide.load203 = load <2 x double>, ptr %109, align 8, !tbaa !11
  %wide.load204 = load <2 x double>, ptr %110, align 8, !tbaa !11
  %111 = getelementptr inbounds double, ptr %34, i64 %index202
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  %wide.load205 = load <2 x double>, ptr %111, align 8, !tbaa !11
  %wide.load206 = load <2 x double>, ptr %112, align 8, !tbaa !11
  %113 = getelementptr inbounds double, ptr %37, i64 %index202
  %114 = getelementptr inbounds i8, ptr %113, i64 16
  %wide.load207 = load <2 x double>, ptr %113, align 8, !tbaa !11
  %wide.load208 = load <2 x double>, ptr %114, align 8, !tbaa !11
  %115 = fmul <2 x double> %wide.load207, <double 9.112500e-01, double 9.112500e-01>
  %116 = fmul <2 x double> %wide.load208, <double 9.112500e-01, double 9.112500e-01>
  %117 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load205, <2 x double> <double -2.362500e-01, double -2.362500e-01>, <2 x double> %115)
  %118 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load206, <2 x double> <double -2.362500e-01, double -2.362500e-01>, <2 x double> %116)
  %119 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat210, <2 x double> %117, <2 x double> %wide.load203)
  %120 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat210, <2 x double> %118, <2 x double> %wide.load204)
  %121 = getelementptr inbounds double, ptr %49, i64 %index202
  %122 = getelementptr inbounds i8, ptr %121, i64 16
  store <2 x double> %119, ptr %121, align 8, !tbaa !11
  store <2 x double> %120, ptr %122, align 8, !tbaa !11
  %index.next211 = add nuw i64 %index202, 4
  %123 = icmp eq i64 %index.next211, %n.vec199
  br i1 %123, label %middle.block194, label %vector.body201, !llvm.loop !21

middle.block194:                                  ; preds = %vector.body201
  %cmp.n212 = icmp eq i64 %n.vec199, %wide.trip.count
  br i1 %cmp.n212, label %._crit_edge144, label %.lr.ph143.preheader311

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %124 = getelementptr inbounds double, ptr %5, i64 %indvars.iv
  %125 = load double, ptr %124, align 8, !tbaa !11
  %126 = getelementptr inbounds double, ptr %34, i64 %indvars.iv
  %127 = load double, ptr %126, align 8, !tbaa !11
  %128 = fmul double %127, 2.500000e-01
  %129 = tail call double @llvm.fmuladd.f64(double %4, double %128, double %125)
  %130 = getelementptr inbounds double, ptr %49, i64 %indvars.iv
  store double %129, ptr %130, align 8, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %131 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.next
  %132 = load double, ptr %131, align 8, !tbaa !11
  %133 = getelementptr inbounds double, ptr %34, i64 %indvars.iv.next
  %134 = load double, ptr %133, align 8, !tbaa !11
  %135 = fmul double %134, 2.500000e-01
  %136 = tail call double @llvm.fmuladd.f64(double %4, double %135, double %132)
  %137 = getelementptr inbounds double, ptr %49, i64 %indvars.iv.next
  store double %136, ptr %137, align 8, !tbaa !11
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge, label %.lr.ph, !llvm.loop !22

._crit_edge144.thread:                            ; preds = %._crit_edge.thread, %._crit_edge
  tail call void %1(ptr noundef %49, ptr noundef %2, ptr noundef %40, double noundef %4) #8
  br label %._crit_edge148

._crit_edge144:                                   ; preds = %.lr.ph143.prol.loopexit, %.lr.ph143, %middle.block194
  tail call void %1(ptr noundef nonnull %49, ptr noundef %2, ptr noundef %40, double noundef %4) #8
  br i1 %71, label %.lr.ph147.preheader, label %._crit_edge156.critedge

.lr.ph147.preheader:                              ; preds = %._crit_edge144
  %wide.trip.count166 = zext nneg i32 %0 to i64
  %min.iters.check223 = icmp ult i32 %0, 6
  br i1 %min.iters.check223, label %.lr.ph147.preheader310, label %vector.memcheck213

.lr.ph147.preheader310:                           ; preds = %middle.block221, %vector.memcheck213, %.lr.ph147.preheader
  %indvars.iv163.ph = phi i64 [ 0, %vector.memcheck213 ], [ 0, %.lr.ph147.preheader ], [ %n.vec226, %middle.block221 ]
  br label %.lr.ph147

vector.memcheck213:                               ; preds = %.lr.ph147.preheader
  %138 = sub i64 %50, %14
  %diff.check214 = icmp ult i64 %138, 16
  %139 = sub i64 %50, %35
  %diff.check215 = icmp ult i64 %139, 16
  %conflict.rdx216 = or i1 %diff.check214, %diff.check215
  %140 = sub i64 %50, %38
  %diff.check217 = icmp ult i64 %140, 16
  %conflict.rdx218 = or i1 %conflict.rdx216, %diff.check217
  %141 = sub i64 %50, %41
  %diff.check219 = icmp ult i64 %141, 16
  %conflict.rdx220 = or i1 %conflict.rdx218, %diff.check219
  br i1 %conflict.rdx220, label %.lr.ph147.preheader310, label %vector.ph224

vector.ph224:                                     ; preds = %vector.memcheck213
  %n.vec226 = and i64 %wide.trip.count, 2147483646
  %broadcast.splatinsert234 = insertelement <2 x double> poison, double %4, i64 0
  %broadcast.splat235 = shufflevector <2 x double> %broadcast.splatinsert234, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body228

vector.body228:                                   ; preds = %vector.body228, %vector.ph224
  %index229 = phi i64 [ 0, %vector.ph224 ], [ %index.next236, %vector.body228 ]
  %142 = getelementptr inbounds double, ptr %5, i64 %index229
  %wide.load230 = load <2 x double>, ptr %142, align 8, !tbaa !11
  %143 = getelementptr inbounds double, ptr %34, i64 %index229
  %wide.load231 = load <2 x double>, ptr %143, align 8, !tbaa !11
  %144 = getelementptr inbounds double, ptr %37, i64 %index229
  %wide.load232 = load <2 x double>, ptr %144, align 8, !tbaa !11
  %145 = fmul <2 x double> %wide.load232, <double 0x3F9F07C1F07C1F08, double 0x3F9F07C1F07C1F08>
  %146 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load231, <2 x double> <double 0x3FCEBE344AB3DC5F, double 0x3FCEBE344AB3DC5F>, <2 x double> %145)
  %147 = getelementptr inbounds double, ptr %40, i64 %index229
  %wide.load233 = load <2 x double>, ptr %147, align 8, !tbaa !11
  %148 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load233, <2 x double> <double 0x3FE75834DDCF27F0, double 0x3FE75834DDCF27F0>, <2 x double> %146)
  %149 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat235, <2 x double> %148, <2 x double> %wide.load230)
  %150 = getelementptr inbounds double, ptr %49, i64 %index229
  store <2 x double> %149, ptr %150, align 8, !tbaa !11
  %index.next236 = add nuw i64 %index229, 2
  %151 = icmp eq i64 %index.next236, %n.vec226
  br i1 %151, label %middle.block221, label %vector.body228, !llvm.loop !23

middle.block221:                                  ; preds = %vector.body228
  %cmp.n237 = icmp eq i64 %n.vec226, %wide.trip.count
  br i1 %cmp.n237, label %._crit_edge148, label %.lr.ph147.preheader310

.lr.ph143:                                        ; preds = %.lr.ph143.prol.loopexit, %.lr.ph143
  %indvars.iv158 = phi i64 [ %indvars.iv.next159.1, %.lr.ph143 ], [ %indvars.iv158.unr, %.lr.ph143.prol.loopexit ]
  %152 = getelementptr inbounds double, ptr %5, i64 %indvars.iv158
  %153 = load double, ptr %152, align 8, !tbaa !11
  %154 = getelementptr inbounds double, ptr %34, i64 %indvars.iv158
  %155 = load double, ptr %154, align 8, !tbaa !11
  %156 = getelementptr inbounds double, ptr %37, i64 %indvars.iv158
  %157 = load double, ptr %156, align 8, !tbaa !11
  %158 = fmul double %157, 9.112500e-01
  %159 = tail call double @llvm.fmuladd.f64(double %155, double -2.362500e-01, double %158)
  %160 = tail call double @llvm.fmuladd.f64(double %4, double %159, double %153)
  %161 = getelementptr inbounds double, ptr %49, i64 %indvars.iv158
  store double %160, ptr %161, align 8, !tbaa !11
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %162 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.next159
  %163 = load double, ptr %162, align 8, !tbaa !11
  %164 = getelementptr inbounds double, ptr %34, i64 %indvars.iv.next159
  %165 = load double, ptr %164, align 8, !tbaa !11
  %166 = getelementptr inbounds double, ptr %37, i64 %indvars.iv.next159
  %167 = load double, ptr %166, align 8, !tbaa !11
  %168 = fmul double %167, 9.112500e-01
  %169 = tail call double @llvm.fmuladd.f64(double %165, double -2.362500e-01, double %168)
  %170 = tail call double @llvm.fmuladd.f64(double %4, double %169, double %163)
  %171 = getelementptr inbounds double, ptr %49, i64 %indvars.iv.next159
  store double %170, ptr %171, align 8, !tbaa !11
  %indvars.iv.next159.1 = add nuw nsw i64 %indvars.iv158, 2
  %exitcond162.not.1 = icmp eq i64 %indvars.iv.next159.1, %wide.trip.count161
  br i1 %exitcond162.not.1, label %._crit_edge144, label %.lr.ph143, !llvm.loop !24

._crit_edge148:                                   ; preds = %.lr.ph147, %middle.block221, %._crit_edge144.thread
  tail call void %1(ptr noundef %49, ptr noundef %2, ptr noundef %43, double noundef %4) #8
  %172 = load ptr, ptr @runge_kutta_2_3.XP_merk2, align 8, !tbaa !15
  %173 = shl nsw i64 %.pre-phi, 3
  tail call void @llvm.memmove.p0.p0.i64(ptr align 8 %172, ptr align 8 %43, i64 %173, i1 false)
  store double %3, ptr @runge_kutta_2_3.t_merk, align 8, !tbaa !11
  store double %4, ptr @runge_kutta_2_3.dt_merk, align 8, !tbaa !11
  br i1 %71, label %.lr.ph151.preheader, label %._crit_edge156

.lr.ph151.preheader:                              ; preds = %._crit_edge148
  %wide.trip.count171 = zext nneg i32 %0 to i64
  %min.iters.check248 = icmp ult i32 %0, 6
  br i1 %min.iters.check248, label %.lr.ph151.preheader309, label %vector.memcheck238

.lr.ph151.preheader309:                           ; preds = %middle.block246, %vector.memcheck238, %.lr.ph151.preheader
  %indvars.iv168.ph = phi i64 [ 0, %vector.memcheck238 ], [ 0, %.lr.ph151.preheader ], [ %n.vec251, %middle.block246 ]
  br label %.lr.ph151

vector.memcheck238:                               ; preds = %.lr.ph151.preheader
  %174 = sub i64 %13, %12
  %diff.check239 = icmp ult i64 %174, 16
  %175 = sub i64 %13, %35
  %diff.check240 = icmp ult i64 %175, 16
  %conflict.rdx241 = or i1 %diff.check239, %diff.check240
  %176 = sub i64 %13, %38
  %diff.check242 = icmp ult i64 %176, 16
  %conflict.rdx243 = or i1 %conflict.rdx241, %diff.check242
  %177 = sub i64 %13, %41
  %diff.check244 = icmp ult i64 %177, 16
  %conflict.rdx245 = or i1 %conflict.rdx243, %diff.check244
  br i1 %conflict.rdx245, label %.lr.ph151.preheader309, label %vector.ph249

vector.ph249:                                     ; preds = %vector.memcheck238
  %n.vec251 = and i64 %wide.trip.count171, 2147483646
  %broadcast.splatinsert259 = insertelement <2 x double> poison, double %4, i64 0
  %broadcast.splat260 = shufflevector <2 x double> %broadcast.splatinsert259, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body253

vector.body253:                                   ; preds = %vector.body253, %vector.ph249
  %index254 = phi i64 [ 0, %vector.ph249 ], [ %index.next261, %vector.body253 ]
  %178 = getelementptr inbounds double, ptr %5, i64 %index254
  %wide.load255 = load <2 x double>, ptr %178, align 8, !tbaa !11
  %179 = getelementptr inbounds double, ptr %34, i64 %index254
  %wide.load256 = load <2 x double>, ptr %179, align 8, !tbaa !11
  %180 = getelementptr inbounds double, ptr %37, i64 %index254
  %wide.load257 = load <2 x double>, ptr %180, align 8, !tbaa !11
  %181 = fmul <2 x double> %wide.load257, <double 0x3F9F07C1F07C1F08, double 0x3F9F07C1F07C1F08>
  %182 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load256, <2 x double> <double 0x3FCEBE344AB3DC5F, double 0x3FCEBE344AB3DC5F>, <2 x double> %181)
  %183 = getelementptr inbounds double, ptr %40, i64 %index254
  %wide.load258 = load <2 x double>, ptr %183, align 8, !tbaa !11
  %184 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load258, <2 x double> <double 0x3FE75834DDCF27F0, double 0x3FE75834DDCF27F0>, <2 x double> %182)
  %185 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat260, <2 x double> %184, <2 x double> %wide.load255)
  %186 = getelementptr inbounds double, ptr %6, i64 %index254
  store <2 x double> %185, ptr %186, align 8, !tbaa !11
  %index.next261 = add nuw i64 %index254, 2
  %187 = icmp eq i64 %index.next261, %n.vec251
  br i1 %187, label %middle.block246, label %vector.body253, !llvm.loop !25

middle.block246:                                  ; preds = %vector.body253
  %cmp.n262 = icmp eq i64 %n.vec251, %wide.trip.count171
  br i1 %cmp.n262, label %.preheader139, label %.lr.ph151.preheader309

.lr.ph147:                                        ; preds = %.lr.ph147.preheader310, %.lr.ph147
  %indvars.iv163 = phi i64 [ %indvars.iv.next164, %.lr.ph147 ], [ %indvars.iv163.ph, %.lr.ph147.preheader310 ]
  %188 = getelementptr inbounds double, ptr %5, i64 %indvars.iv163
  %189 = load double, ptr %188, align 8, !tbaa !11
  %190 = getelementptr inbounds double, ptr %34, i64 %indvars.iv163
  %191 = load double, ptr %190, align 8, !tbaa !11
  %192 = getelementptr inbounds double, ptr %37, i64 %indvars.iv163
  %193 = load double, ptr %192, align 8, !tbaa !11
  %194 = fmul double %193, 0x3F9F07C1F07C1F08
  %195 = tail call double @llvm.fmuladd.f64(double %191, double 0x3FCEBE344AB3DC5F, double %194)
  %196 = getelementptr inbounds double, ptr %40, i64 %indvars.iv163
  %197 = load double, ptr %196, align 8, !tbaa !11
  %198 = tail call double @llvm.fmuladd.f64(double %197, double 0x3FE75834DDCF27F0, double %195)
  %199 = tail call double @llvm.fmuladd.f64(double %4, double %198, double %189)
  %200 = getelementptr inbounds double, ptr %49, i64 %indvars.iv163
  store double %199, ptr %200, align 8, !tbaa !11
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %exitcond167.not = icmp eq i64 %indvars.iv.next164, %wide.trip.count166
  br i1 %exitcond167.not, label %._crit_edge148, label %.lr.ph147, !llvm.loop !26

.preheader139:                                    ; preds = %.lr.ph151, %middle.block246
  br i1 %71, label %.lr.ph153.preheader, label %._crit_edge156

.lr.ph153.preheader:                              ; preds = %.preheader139
  %wide.trip.count176 = zext nneg i32 %0 to i64
  %min.iters.check273 = icmp ult i32 %0, 6
  br i1 %min.iters.check273, label %.lr.ph153.preheader308, label %vector.memcheck263

.lr.ph153.preheader308:                           ; preds = %middle.block271, %vector.memcheck263, %.lr.ph153.preheader
  %indvars.iv173.ph = phi i64 [ 0, %vector.memcheck263 ], [ 0, %.lr.ph153.preheader ], [ %n.vec276, %middle.block271 ]
  br label %.lr.ph153

vector.memcheck263:                               ; preds = %.lr.ph153.preheader
  %201 = sub i64 %47, %12
  %diff.check264 = icmp ult i64 %201, 16
  %202 = sub i64 %47, %35
  %diff.check265 = icmp ult i64 %202, 16
  %conflict.rdx266 = or i1 %diff.check264, %diff.check265
  %203 = sub i64 %47, %41
  %diff.check267 = icmp ult i64 %203, 16
  %conflict.rdx268 = or i1 %conflict.rdx266, %diff.check267
  %204 = sub i64 %47, %44
  %diff.check269 = icmp ult i64 %204, 16
  %conflict.rdx270 = or i1 %conflict.rdx268, %diff.check269
  br i1 %conflict.rdx270, label %.lr.ph153.preheader308, label %vector.ph274

vector.ph274:                                     ; preds = %vector.memcheck263
  %n.vec276 = and i64 %wide.trip.count171, 2147483646
  %broadcast.splatinsert284 = insertelement <2 x double> poison, double %4, i64 0
  %broadcast.splat285 = shufflevector <2 x double> %broadcast.splatinsert284, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body278

vector.body278:                                   ; preds = %vector.body278, %vector.ph274
  %index279 = phi i64 [ 0, %vector.ph274 ], [ %index.next286, %vector.body278 ]
  %205 = getelementptr inbounds double, ptr %5, i64 %index279
  %wide.load280 = load <2 x double>, ptr %205, align 8, !tbaa !11
  %206 = getelementptr inbounds double, ptr %34, i64 %index279
  %wide.load281 = load <2 x double>, ptr %206, align 8, !tbaa !11
  %207 = getelementptr inbounds double, ptr %40, i64 %index279
  %wide.load282 = load <2 x double>, ptr %207, align 8, !tbaa !11
  %208 = fmul <2 x double> %wide.load282, <double 0x3FE84FBDDF6C2FA7, double 0x3FE84FBDDF6C2FA7>
  %209 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load281, <2 x double> <double 0x3FD0329161F9ADD4, double 0x3FD0329161F9ADD4>, <2 x double> %208)
  %210 = getelementptr inbounds double, ptr %43, i64 %index279
  %wide.load283 = load <2 x double>, ptr %210, align 8, !tbaa !11
  %211 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load283, <2 x double> <double 0xBF8A41A41A41A41A, double 0xBF8A41A41A41A41A>, <2 x double> %209)
  %212 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat285, <2 x double> %211, <2 x double> %wide.load280)
  %213 = getelementptr inbounds double, ptr %46, i64 %index279
  store <2 x double> %212, ptr %213, align 8, !tbaa !11
  %index.next286 = add nuw i64 %index279, 2
  %214 = icmp eq i64 %index.next286, %n.vec276
  br i1 %214, label %middle.block271, label %vector.body278, !llvm.loop !27

middle.block271:                                  ; preds = %vector.body278
  %cmp.n287 = icmp eq i64 %n.vec276, %wide.trip.count171
  br i1 %cmp.n287, label %.preheader, label %.lr.ph153.preheader308

.lr.ph151:                                        ; preds = %.lr.ph151.preheader309, %.lr.ph151
  %indvars.iv168 = phi i64 [ %indvars.iv.next169, %.lr.ph151 ], [ %indvars.iv168.ph, %.lr.ph151.preheader309 ]
  %215 = getelementptr inbounds double, ptr %5, i64 %indvars.iv168
  %216 = load double, ptr %215, align 8, !tbaa !11
  %217 = getelementptr inbounds double, ptr %34, i64 %indvars.iv168
  %218 = load double, ptr %217, align 8, !tbaa !11
  %219 = getelementptr inbounds double, ptr %37, i64 %indvars.iv168
  %220 = load double, ptr %219, align 8, !tbaa !11
  %221 = fmul double %220, 0x3F9F07C1F07C1F08
  %222 = tail call double @llvm.fmuladd.f64(double %218, double 0x3FCEBE344AB3DC5F, double %221)
  %223 = getelementptr inbounds double, ptr %40, i64 %indvars.iv168
  %224 = load double, ptr %223, align 8, !tbaa !11
  %225 = tail call double @llvm.fmuladd.f64(double %224, double 0x3FE75834DDCF27F0, double %222)
  %226 = tail call double @llvm.fmuladd.f64(double %4, double %225, double %216)
  %227 = getelementptr inbounds double, ptr %6, i64 %indvars.iv168
  store double %226, ptr %227, align 8, !tbaa !11
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %exitcond172.not = icmp eq i64 %indvars.iv.next169, %wide.trip.count171
  br i1 %exitcond172.not, label %.preheader139, label %.lr.ph151, !llvm.loop !28

.preheader:                                       ; preds = %.lr.ph153, %middle.block271
  br i1 %71, label %.lr.ph155.preheader, label %._crit_edge156

.lr.ph155.preheader:                              ; preds = %.preheader
  %wide.trip.count181 = zext nneg i32 %0 to i64
  %min.iters.check294 = icmp ult i32 %0, 8
  br i1 %min.iters.check294, label %.lr.ph155.preheader307, label %vector.memcheck288

.lr.ph155.preheader307:                           ; preds = %middle.block292, %vector.memcheck288, %.lr.ph155.preheader
  %indvars.iv178.ph = phi i64 [ 0, %vector.memcheck288 ], [ 0, %.lr.ph155.preheader ], [ %n.vec297, %middle.block292 ]
  %xtraiter315 = and i64 %wide.trip.count171, 3
  %lcmp.mod316.not = icmp eq i64 %xtraiter315, 0
  br i1 %lcmp.mod316.not, label %.lr.ph155.prol.loopexit, label %.lr.ph155.prol

.lr.ph155.prol:                                   ; preds = %.lr.ph155.preheader307, %.lr.ph155.prol
  %indvars.iv178.prol = phi i64 [ %indvars.iv.next179.prol, %.lr.ph155.prol ], [ %indvars.iv178.ph, %.lr.ph155.preheader307 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph155.prol ], [ 0, %.lr.ph155.preheader307 ]
  %228 = getelementptr inbounds double, ptr %46, i64 %indvars.iv178.prol
  %229 = load double, ptr %228, align 8, !tbaa !11
  %230 = getelementptr inbounds double, ptr %6, i64 %indvars.iv178.prol
  %231 = load double, ptr %230, align 8, !tbaa !11
  %232 = fsub double %229, %231
  %233 = getelementptr inbounds double, ptr %7, i64 %indvars.iv178.prol
  store double %232, ptr %233, align 8, !tbaa !11
  %indvars.iv.next179.prol = add nuw nsw i64 %indvars.iv178.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter315
  br i1 %prol.iter.cmp.not, label %.lr.ph155.prol.loopexit, label %.lr.ph155.prol, !llvm.loop !29

.lr.ph155.prol.loopexit:                          ; preds = %.lr.ph155.prol, %.lr.ph155.preheader307
  %indvars.iv178.unr = phi i64 [ %indvars.iv178.ph, %.lr.ph155.preheader307 ], [ %indvars.iv.next179.prol, %.lr.ph155.prol ]
  %234 = sub nsw i64 %indvars.iv178.ph, %wide.trip.count171
  %235 = icmp ugt i64 %234, -4
  br i1 %235, label %._crit_edge156, label %.lr.ph155

vector.memcheck288:                               ; preds = %.lr.ph155.preheader
  %236 = sub i64 %11, %47
  %diff.check289 = icmp ult i64 %236, 32
  %237 = sub i64 %11, %10
  %diff.check290 = icmp ult i64 %237, 32
  %conflict.rdx291 = or i1 %diff.check289, %diff.check290
  br i1 %conflict.rdx291, label %.lr.ph155.preheader307, label %vector.ph295

vector.ph295:                                     ; preds = %vector.memcheck288
  %n.vec297 = and i64 %wide.trip.count171, 2147483644
  br label %vector.body299

vector.body299:                                   ; preds = %vector.body299, %vector.ph295
  %index300 = phi i64 [ 0, %vector.ph295 ], [ %index.next305, %vector.body299 ]
  %238 = getelementptr inbounds double, ptr %46, i64 %index300
  %239 = getelementptr inbounds i8, ptr %238, i64 16
  %wide.load301 = load <2 x double>, ptr %238, align 8, !tbaa !11
  %wide.load302 = load <2 x double>, ptr %239, align 8, !tbaa !11
  %240 = getelementptr inbounds double, ptr %6, i64 %index300
  %241 = getelementptr inbounds i8, ptr %240, i64 16
  %wide.load303 = load <2 x double>, ptr %240, align 8, !tbaa !11
  %wide.load304 = load <2 x double>, ptr %241, align 8, !tbaa !11
  %242 = fsub <2 x double> %wide.load301, %wide.load303
  %243 = fsub <2 x double> %wide.load302, %wide.load304
  %244 = getelementptr inbounds double, ptr %7, i64 %index300
  %245 = getelementptr inbounds i8, ptr %244, i64 16
  store <2 x double> %242, ptr %244, align 8, !tbaa !11
  store <2 x double> %243, ptr %245, align 8, !tbaa !11
  %index.next305 = add nuw i64 %index300, 4
  %246 = icmp eq i64 %index.next305, %n.vec297
  br i1 %246, label %middle.block292, label %vector.body299, !llvm.loop !31

middle.block292:                                  ; preds = %vector.body299
  %cmp.n306 = icmp eq i64 %n.vec297, %wide.trip.count171
  br i1 %cmp.n306, label %._crit_edge156, label %.lr.ph155.preheader307

.lr.ph153:                                        ; preds = %.lr.ph153.preheader308, %.lr.ph153
  %indvars.iv173 = phi i64 [ %indvars.iv.next174, %.lr.ph153 ], [ %indvars.iv173.ph, %.lr.ph153.preheader308 ]
  %247 = getelementptr inbounds double, ptr %5, i64 %indvars.iv173
  %248 = load double, ptr %247, align 8, !tbaa !11
  %249 = getelementptr inbounds double, ptr %34, i64 %indvars.iv173
  %250 = load double, ptr %249, align 8, !tbaa !11
  %251 = getelementptr inbounds double, ptr %40, i64 %indvars.iv173
  %252 = load double, ptr %251, align 8, !tbaa !11
  %253 = fmul double %252, 0x3FE84FBDDF6C2FA7
  %254 = tail call double @llvm.fmuladd.f64(double %250, double 0x3FD0329161F9ADD4, double %253)
  %255 = getelementptr inbounds double, ptr %43, i64 %indvars.iv173
  %256 = load double, ptr %255, align 8, !tbaa !11
  %257 = tail call double @llvm.fmuladd.f64(double %256, double 0xBF8A41A41A41A41A, double %254)
  %258 = tail call double @llvm.fmuladd.f64(double %4, double %257, double %248)
  %259 = getelementptr inbounds double, ptr %46, i64 %indvars.iv173
  store double %258, ptr %259, align 8, !tbaa !11
  %indvars.iv.next174 = add nuw nsw i64 %indvars.iv173, 1
  %exitcond177.not = icmp eq i64 %indvars.iv.next174, %wide.trip.count176
  br i1 %exitcond177.not, label %.preheader, label %.lr.ph153, !llvm.loop !32

._crit_edge156.critedge:                          ; preds = %._crit_edge144
  tail call void %1(ptr noundef %49, ptr noundef %2, ptr noundef %43, double noundef %4) #8
  %260 = load ptr, ptr @runge_kutta_2_3.XP_merk2, align 8, !tbaa !15
  %261 = shl nsw i64 %.pre-phi, 3
  tail call void @llvm.memmove.p0.p0.i64(ptr align 8 %260, ptr align 8 %43, i64 %261, i1 false)
  store double %3, ptr @runge_kutta_2_3.t_merk, align 8, !tbaa !11
  store double %4, ptr @runge_kutta_2_3.dt_merk, align 8, !tbaa !11
  br label %._crit_edge156

._crit_edge156:                                   ; preds = %.lr.ph155.prol.loopexit, %.lr.ph155, %middle.block292, %._crit_edge156.critedge, %._crit_edge148, %.preheader139, %.preheader
  tail call void @free(ptr noundef %34) #8
  tail call void @free(ptr noundef %37) #8
  tail call void @free(ptr noundef %40) #8
  tail call void @free(ptr noundef %43) #8
  tail call void @free(ptr noundef %46) #8
  tail call void @free(ptr noundef %49) #8
  ret void

.lr.ph155:                                        ; preds = %.lr.ph155.prol.loopexit, %.lr.ph155
  %indvars.iv178 = phi i64 [ %indvars.iv.next179.3, %.lr.ph155 ], [ %indvars.iv178.unr, %.lr.ph155.prol.loopexit ]
  %262 = getelementptr inbounds double, ptr %46, i64 %indvars.iv178
  %263 = load double, ptr %262, align 8, !tbaa !11
  %264 = getelementptr inbounds double, ptr %6, i64 %indvars.iv178
  %265 = load double, ptr %264, align 8, !tbaa !11
  %266 = fsub double %263, %265
  %267 = getelementptr inbounds double, ptr %7, i64 %indvars.iv178
  store double %266, ptr %267, align 8, !tbaa !11
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  %268 = getelementptr inbounds double, ptr %46, i64 %indvars.iv.next179
  %269 = load double, ptr %268, align 8, !tbaa !11
  %270 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next179
  %271 = load double, ptr %270, align 8, !tbaa !11
  %272 = fsub double %269, %271
  %273 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next179
  store double %272, ptr %273, align 8, !tbaa !11
  %indvars.iv.next179.1 = add nuw nsw i64 %indvars.iv178, 2
  %274 = getelementptr inbounds double, ptr %46, i64 %indvars.iv.next179.1
  %275 = load double, ptr %274, align 8, !tbaa !11
  %276 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next179.1
  %277 = load double, ptr %276, align 8, !tbaa !11
  %278 = fsub double %275, %277
  %279 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next179.1
  store double %278, ptr %279, align 8, !tbaa !11
  %indvars.iv.next179.2 = add nuw nsw i64 %indvars.iv178, 3
  %280 = getelementptr inbounds double, ptr %46, i64 %indvars.iv.next179.2
  %281 = load double, ptr %280, align 8, !tbaa !11
  %282 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next179.2
  %283 = load double, ptr %282, align 8, !tbaa !11
  %284 = fsub double %281, %283
  %285 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next179.2
  store double %284, ptr %285, align 8, !tbaa !11
  %indvars.iv.next179.3 = add nuw nsw i64 %indvars.iv178, 4
  %exitcond182.not.3 = icmp eq i64 %indvars.iv.next179.3, %wide.trip.count181
  br i1 %exitcond182.not.3, label %._crit_edge156, label %.lr.ph155, !llvm.loop !33
}

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

declare void @print_trace() local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #4

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #7

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { cold nounwind }
attributes #10 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"_Bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = distinct !{!17, !18, !19, !20}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !18, !19, !20}
!22 = distinct !{!22, !18, !19}
!23 = distinct !{!23, !18, !19, !20}
!24 = distinct !{!24, !18, !19}
!25 = distinct !{!25, !18, !19, !20}
!26 = distinct !{!26, !18, !19}
!27 = distinct !{!27, !18, !19, !20}
!28 = distinct !{!28, !18, !19}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.unroll.disable"}
!31 = distinct !{!31, !18, !19, !20}
!32 = distinct !{!32, !18, !19}
!33 = distinct !{!33, !18, !19}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass