; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (dei_rkck)

; 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"

%struct.generic_integrator_workspace = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, [2048 x i8] }

@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [86 x i8], align 1
@__func__.generic_integrator = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [133 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [10 x i8], align 1

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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @generic_integrator(ptr noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4, double noundef %5, double noundef %6, ptr noundef %7) #2 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %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 [2048 x i8], align 16
  %26 = alloca i32, align 4
  %27 = alloca [2048 x i8], align 16
  %28 = alloca [2048 x i8], align 16
  %29 = alloca [2048 x i8], align 16
  %30 = alloca [2048 x i8], align 16
  %31 = alloca [2048 x i8], align 16
  store ptr %0, ptr %10, align 8, !tbaa !5
  store double %1, ptr %11, align 8, !tbaa !9
  store double %2, ptr %12, align 8, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store double %5, ptr %15, align 8, !tbaa !9
  store double %6, ptr %16, align 8, !tbaa !9
  store ptr %7, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %32 = load double, ptr %12, align 8, !tbaa !9
  %33 = load double, ptr %11, align 8, !tbaa !9
  %34 = fsub double %32, %33
  store double %34, ptr %24, align 8, !tbaa !9
  %35 = load double, ptr %11, align 8, !tbaa !9
  store double %35, ptr %20, align 8, !tbaa !9
  %36 = load double, ptr %12, align 8, !tbaa !9
  %37 = load double, ptr %11, align 8, !tbaa !9
  %38 = fsub double %36, %37
  %39 = fcmp ogt double %38, 0.000000e+00
  br i1 %39, label %40, label %42

40:                                               ; preds = %8
  %41 = load double, ptr %24, align 8, !tbaa !9
  br label %45

42:                                               ; preds = %8
  %43 = load double, ptr %24, align 8, !tbaa !9
  %44 = fneg double %43
  br label %45

45:                                               ; preds = %42, %40
  %46 = phi double [ %41, %40 ], [ %44, %42 ]
  store double %46, ptr %23, align 8, !tbaa !9
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %47

47:                                               ; preds = %65, %45
  %48 = load i32, ptr %19, align 4, !tbaa !11
  %49 = load ptr, ptr %17, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 8, !tbaa !13
  %52 = icmp slt i32 %48, %51
  br i1 %52, label %53, label %68

53:                                               ; preds = %47
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = load i32, ptr %19, align 4, !tbaa !11
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %54, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !9
  %59 = load ptr, ptr %17, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !15
  %62 = load i32, ptr %19, align 4, !tbaa !11
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %61, i64 %63
  store double %58, ptr %64, align 8, !tbaa !9
  br label %65

65:                                               ; preds = %53
  %66 = load i32, ptr %19, align 4, !tbaa !11
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %19, align 4, !tbaa !11
  br label %47, !llvm.loop !16

68:                                               ; preds = %47
  store i32 1, ptr %18, align 4, !tbaa !11
  br label %69

69:                                               ; preds = %223, %68
  %70 = load i32, ptr %18, align 4, !tbaa !11
  %71 = icmp sle i32 %70, 100000
  br i1 %71, label %72, label %226

72:                                               ; preds = %69
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = load double, ptr %20, align 8, !tbaa !9
  %75 = load ptr, ptr %17, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %75, i32 0, i32 2
  %77 = load ptr, ptr %76, align 8, !tbaa !15
  %78 = load ptr, ptr %17, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %78, i32 0, i32 3
  %80 = load ptr, ptr %79, align 8, !tbaa !18
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = load ptr, ptr %17, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %82, i32 0, i32 13
  %84 = getelementptr inbounds [2048 x i8], ptr %83, i64 0, i64 0
  %85 = call i32 %73(double noundef %74, ptr noundef %77, ptr noundef %80, ptr noundef %81, ptr noundef %84)
  %86 = icmp eq i32 %85, 1
  br i1 %86, label %87, label %96

87:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 2048, ptr %25) #4
  %88 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  %89 = load ptr, ptr %17, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %89, i32 0, i32 13
  %91 = getelementptr inbounds [2048 x i8], ptr %90, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %88, ptr noundef @.str.13, ptr noundef @.str.14, ptr noundef %91)
  %92 = load ptr, ptr %17, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %92, i32 0, i32 13
  %94 = getelementptr inbounds [2048 x i8], ptr %93, i64 0, i64 0
  %95 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %94, ptr noundef @.str.2, ptr noundef @__func__.generic_integrator, i32 noundef 99, ptr noundef %95)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %25) #4
  store i32 1, ptr %9, align 4
  store i32 1, ptr %26, align 4
  br label %236

96:                                               ; preds = %72
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %97

97:                                               ; preds = %130, %96
  %98 = load i32, ptr %19, align 4, !tbaa !11
  %99 = load ptr, ptr %17, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %99, i32 0, i32 0
  %101 = load i32, ptr %100, align 8, !tbaa !13
  %102 = icmp slt i32 %98, %101
  br i1 %102, label %103, label %133

103:                                              ; preds = %97
  %104 = load ptr, ptr %17, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %104, i32 0, i32 2
  %106 = load ptr, ptr %105, align 8, !tbaa !15
  %107 = load i32, ptr %19, align 4, !tbaa !11
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds double, ptr %106, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !9
  %111 = call double @llvm.fabs.f64(double %110)
  %112 = load ptr, ptr %17, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %112, i32 0, i32 3
  %114 = load ptr, ptr %113, align 8, !tbaa !18
  %115 = load i32, ptr %19, align 4, !tbaa !11
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds double, ptr %114, i64 %116
  %118 = load double, ptr %117, align 8, !tbaa !9
  %119 = load double, ptr %23, align 8, !tbaa !9
  %120 = fmul double %118, %119
  %121 = call double @llvm.fabs.f64(double %120)
  %122 = fadd double %111, %121
  %123 = fadd double %122, 1.000000e-30
  %124 = load ptr, ptr %17, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %124, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !19
  %127 = load i32, ptr %19, align 4, !tbaa !11
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %126, i64 %128
  store double %123, ptr %129, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %103
  %131 = load i32, ptr %19, align 4, !tbaa !11
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %19, align 4, !tbaa !11
  br label %97, !llvm.loop !20

133:                                              ; preds = %97
  %134 = load double, ptr %20, align 8, !tbaa !9
  %135 = load double, ptr %23, align 8, !tbaa !9
  %136 = fadd double %134, %135
  %137 = load double, ptr %12, align 8, !tbaa !9
  %138 = fsub double %136, %137
  %139 = load double, ptr %20, align 8, !tbaa !9
  %140 = load double, ptr %23, align 8, !tbaa !9
  %141 = fadd double %139, %140
  %142 = load double, ptr %11, align 8, !tbaa !9
  %143 = fsub double %141, %142
  %144 = fmul double %138, %143
  %145 = fcmp ogt double %144, 0.000000e+00
  br i1 %145, label %146, label %150

146:                                              ; preds = %133
  %147 = load double, ptr %12, align 8, !tbaa !9
  %148 = load double, ptr %20, align 8, !tbaa !9
  %149 = fsub double %147, %148
  store double %149, ptr %23, align 8, !tbaa !9
  br label %150

150:                                              ; preds = %146, %133
  %151 = load double, ptr %23, align 8, !tbaa !9
  %152 = load double, ptr %15, align 8, !tbaa !9
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = load ptr, ptr %17, align 8, !tbaa !5
  %156 = call i32 @rkqs(ptr noundef %20, double noundef %151, double noundef %152, ptr noundef %22, ptr noundef %21, ptr noundef %153, ptr noundef %154, ptr noundef %155)
  %157 = icmp eq i32 %156, 1
  br i1 %157, label %158, label %167

158:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 2048, ptr %27) #4
  %159 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  %160 = load ptr, ptr %17, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %160, i32 0, i32 13
  %162 = getelementptr inbounds [2048 x i8], ptr %161, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %159, ptr noundef @.str.13, ptr noundef @.str.15, ptr noundef %162)
  %163 = load ptr, ptr %17, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %163, i32 0, i32 13
  %165 = getelementptr inbounds [2048 x i8], ptr %164, i64 0, i64 0
  %166 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %165, ptr noundef @.str.2, ptr noundef @__func__.generic_integrator, i32 noundef 112, ptr noundef %166)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %27) #4
  store i32 1, ptr %9, align 4
  store i32 1, ptr %26, align 4
  br label %236

167:                                              ; preds = %150
  %168 = load double, ptr %20, align 8, !tbaa !9
  %169 = load double, ptr %12, align 8, !tbaa !9
  %170 = fsub double %168, %169
  %171 = load double, ptr %12, align 8, !tbaa !9
  %172 = load double, ptr %11, align 8, !tbaa !9
  %173 = fsub double %171, %172
  %174 = fmul double %170, %173
  %175 = fcmp oge double %174, 0.000000e+00
  br i1 %175, label %176, label %199

176:                                              ; preds = %167
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %177

177:                                              ; preds = %195, %176
  %178 = load i32, ptr %19, align 4, !tbaa !11
  %179 = load ptr, ptr %17, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %179, i32 0, i32 0
  %181 = load i32, ptr %180, align 8, !tbaa !13
  %182 = icmp slt i32 %178, %181
  br i1 %182, label %183, label %198

183:                                              ; preds = %177
  %184 = load ptr, ptr %17, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %184, i32 0, i32 2
  %186 = load ptr, ptr %185, align 8, !tbaa !15
  %187 = load i32, ptr %19, align 4, !tbaa !11
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds double, ptr %186, i64 %188
  %190 = load double, ptr %189, align 8, !tbaa !9
  %191 = load ptr, ptr %13, align 8, !tbaa !5
  %192 = load i32, ptr %19, align 4, !tbaa !11
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds double, ptr %191, i64 %193
  store double %190, ptr %194, align 8, !tbaa !9
  br label %195

195:                                              ; preds = %183
  %196 = load i32, ptr %19, align 4, !tbaa !11
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %19, align 4, !tbaa !11
  br label %177, !llvm.loop !21

198:                                              ; preds = %177
  store i32 0, ptr %9, align 4
  store i32 1, ptr %26, align 4
  br label %236

199:                                              ; preds = %167
  %200 = load double, ptr %21, align 8, !tbaa !9
  %201 = load double, ptr %11, align 8, !tbaa !9
  %202 = fdiv double %200, %201
  %203 = call double @llvm.fabs.f64(double %202)
  %204 = load double, ptr %16, align 8, !tbaa !9
  %205 = fcmp ole double %203, %204
  br i1 %205, label %206, label %221

206:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 2048, ptr %28) #4
  %207 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  %208 = load double, ptr %21, align 8, !tbaa !9
  %209 = load double, ptr %11, align 8, !tbaa !9
  %210 = fdiv double %208, %209
  %211 = call double @llvm.fabs.f64(double %210)
  %212 = load double, ptr %16, align 8, !tbaa !9
  %213 = load double, ptr %11, align 8, !tbaa !9
  %214 = load double, ptr %12, align 8, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %207, ptr noundef @.str.16, double noundef %211, double noundef %212, double noundef %213, double noundef %214)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %29) #4
  %215 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  %216 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %215, ptr noundef @.str.17, ptr noundef @.str.18, ptr noundef %216)
  %217 = load ptr, ptr %17, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %217, i32 0, i32 13
  %219 = getelementptr inbounds [2048 x i8], ptr %218, i64 0, i64 0
  %220 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %219, ptr noundef @.str.2, ptr noundef @__func__.generic_integrator, i32 noundef 123, ptr noundef %220)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %28) #4
  store i32 1, ptr %9, align 4
  store i32 1, ptr %26, align 4
  br label %236

221:                                              ; preds = %199
  %222 = load double, ptr %21, align 8, !tbaa !9
  store double %222, ptr %23, align 8, !tbaa !9
  br label %223

223:                                              ; preds = %221
  %224 = load i32, ptr %18, align 4, !tbaa !11
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %18, align 4, !tbaa !11
  br label %69, !llvm.loop !22

226:                                              ; preds = %69
  call void @llvm.lifetime.start.p0(i64 2048, ptr %30) #4
  %227 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  %228 = load double, ptr %11, align 8, !tbaa !9
  %229 = load double, ptr %12, align 8, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %227, ptr noundef @.str.19, double noundef %228, double noundef %229)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %31) #4
  %230 = getelementptr inbounds [2048 x i8], ptr %31, i64 0, i64 0
  %231 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %230, ptr noundef @.str.20, ptr noundef %231)
  %232 = load ptr, ptr %17, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %232, i32 0, i32 13
  %234 = getelementptr inbounds [2048 x i8], ptr %233, i64 0, i64 0
  %235 = getelementptr inbounds [2048 x i8], ptr %31, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %234, ptr noundef @.str.2, ptr noundef @__func__.generic_integrator, i32 noundef 128, ptr noundef %235)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %31) #4
  store i32 1, ptr %9, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %30) #4
  br label %236

236:                                              ; preds = %226, %206, %198, %158, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  %237 = load i32, ptr %9, align 4
  ret i32 %237
}

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @rkqs(ptr noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"generic_integrator_workspace", !12, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !7, i64 104}
!15 = !{!14, !6, i64 16}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!14, !6, i64 24}
!19 = !{!14, !6, i64 8}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}


; 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"

@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [86 x i8], align 1
@__func__.generic_integrator = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [133 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [10 x i8], align 1

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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @generic_integrator(ptr noundef %0, double noundef %1, double noundef %2, ptr nocapture noundef %3, ptr noundef %4, double noundef %5, double noundef %6, ptr noundef %7) local_unnamed_addr #2 {
  %9 = ptrtoint ptr %3 to i64
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca [2048 x i8], align 16
  %14 = alloca [2048 x i8], align 16
  %15 = alloca [2048 x i8], align 16
  %16 = alloca [2048 x i8], align 16
  %17 = alloca [2048 x i8], align 16
  %18 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %19 = fsub double %2, %1
  store double %1, ptr %10, align 8, !tbaa !5
  %20 = fcmp ogt double %19, 0.000000e+00
  %21 = fneg double %19
  %22 = select i1 %20, double %19, double %21
  %23 = load i32, ptr %7, align 8, !tbaa !9
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph, label %.preheader71

.lr.ph:                                           ; preds = %8
  %25 = getelementptr inbounds i8, ptr %7, i64 16
  %26 = load ptr, ptr %25, align 8, !tbaa !13
  %wide.trip.count = zext nneg i32 %23 to i64
  %min.iters.check = icmp ult i32 %23, 6
  %27 = ptrtoint ptr %26 to i64
  %28 = sub i64 %27, %9
  %diff.check = icmp ult i64 %28, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.ph

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

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %29 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.prol
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.prol
  store double %30, ptr %31, align 8, !tbaa !5
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !14

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %32 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %33 = icmp ugt i64 %32, -4
  br i1 %33, label %.preheader71, label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %34 = getelementptr inbounds double, ptr %3, i64 %index
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %wide.load = load <2 x double>, ptr %34, align 8, !tbaa !5
  %wide.load102 = load <2 x double>, ptr %35, align 8, !tbaa !5
  %36 = getelementptr inbounds double, ptr %26, i64 %index
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  store <2 x double> %wide.load, ptr %36, align 8, !tbaa !5
  store <2 x double> %wide.load102, ptr %37, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %38 = icmp eq i64 %index.next, %n.vec
  br i1 %38, label %middle.block, label %vector.body, !llvm.loop !16

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

.preheader71:                                     ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %8
  %39 = getelementptr inbounds i8, ptr %7, i64 16
  %40 = getelementptr inbounds i8, ptr %7, i64 24
  %41 = getelementptr inbounds i8, ptr %7, i64 104
  %42 = getelementptr inbounds i8, ptr %7, i64 8
  br label %57

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %43 = getelementptr inbounds double, ptr %3, i64 %indvars.iv
  %44 = load double, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds double, ptr %26, i64 %indvars.iv
  store double %44, ptr %45, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %46 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next
  %47 = load double, ptr %46, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.next
  store double %47, ptr %48, align 8, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %49 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next.1
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.next.1
  store double %50, ptr %51, align 8, !tbaa !5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %52 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next.2
  %53 = load double, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.next.2
  store double %53, ptr %54, align 8, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %.preheader71, label %scalar.ph, !llvm.loop !20

55:                                               ; preds = %165
  %56 = add nuw nsw i32 %.06883, 1
  %exitcond94.not = icmp eq i32 %56, 100001
  br i1 %exitcond94.not, label %171, label %57, !llvm.loop !21

57:                                               ; preds = %.preheader71, %55
  %58 = phi double [ %1, %.preheader71 ], [ %134, %55 ]
  %.06584 = phi double [ %22, %.preheader71 ], [ %166, %55 ]
  %.06883 = phi i32 [ 1, %.preheader71 ], [ %56, %55 ]
  %59 = load ptr, ptr %39, align 8, !tbaa !13
  %60 = load ptr, ptr %40, align 8, !tbaa !22
  %61 = call i32 %0(double noundef %58, ptr noundef %59, ptr noundef %60, ptr noundef %4, ptr noundef nonnull %41) #5
  %62 = icmp eq i32 %61, 1
  br i1 %62, label %102, label %.preheader70

.preheader70:                                     ; preds = %57
  %63 = load i32, ptr %7, align 8, !tbaa !9
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %.lr.ph82, label %._crit_edge

.lr.ph82:                                         ; preds = %.preheader70
  %65 = load ptr, ptr %39, align 8, !tbaa !13
  %66 = load ptr, ptr %40, align 8, !tbaa !22
  %67 = load ptr, ptr %42, align 8, !tbaa !23
  %wide.trip.count92 = zext nneg i32 %63 to i64
  %min.iters.check108 = icmp ult i32 %63, 4
  br i1 %min.iters.check108, label %scalar.ph107.preheader, label %vector.memcheck103

scalar.ph107.preheader:                           ; preds = %middle.block106, %vector.memcheck103, %.lr.ph82
  %indvars.iv89.ph = phi i64 [ 0, %vector.memcheck103 ], [ 0, %.lr.ph82 ], [ %n.vec111, %middle.block106 ]
  %xtraiter140 = and i64 %wide.trip.count92, 1
  %lcmp.mod141.not = icmp eq i64 %xtraiter140, 0
  br i1 %lcmp.mod141.not, label %scalar.ph107.prol.loopexit, label %scalar.ph107.prol

scalar.ph107.prol:                                ; preds = %scalar.ph107.preheader
  %68 = getelementptr inbounds double, ptr %65, i64 %indvars.iv89.ph
  %69 = load double, ptr %68, align 8, !tbaa !5
  %70 = call double @llvm.fabs.f64(double %69)
  %71 = getelementptr inbounds double, ptr %66, i64 %indvars.iv89.ph
  %72 = load double, ptr %71, align 8, !tbaa !5
  %73 = fmul double %.06584, %72
  %74 = call double @llvm.fabs.f64(double %73)
  %75 = fadd double %70, %74
  %76 = fadd double %75, 1.000000e-30
  %77 = getelementptr inbounds double, ptr %67, i64 %indvars.iv89.ph
  store double %76, ptr %77, align 8, !tbaa !5
  %indvars.iv.next90.prol = or disjoint i64 %indvars.iv89.ph, 1
  br label %scalar.ph107.prol.loopexit

scalar.ph107.prol.loopexit:                       ; preds = %scalar.ph107.prol, %scalar.ph107.preheader
  %indvars.iv89.unr = phi i64 [ %indvars.iv89.ph, %scalar.ph107.preheader ], [ %indvars.iv.next90.prol, %scalar.ph107.prol ]
  %78 = add nsw i64 %wide.trip.count92, -1
  %79 = icmp eq i64 %indvars.iv89.ph, %78
  br i1 %79, label %._crit_edge, label %scalar.ph107

vector.memcheck103:                               ; preds = %.lr.ph82
  %80 = ptrtoint ptr %67 to i64
  %81 = ptrtoint ptr %66 to i64
  %82 = ptrtoint ptr %65 to i64
  %83 = sub i64 %80, %82
  %diff.check104 = icmp ult i64 %83, 32
  %84 = sub i64 %80, %81
  %diff.check105 = icmp ult i64 %84, 32
  %conflict.rdx = or i1 %diff.check104, %diff.check105
  br i1 %conflict.rdx, label %scalar.ph107.preheader, label %vector.ph109

vector.ph109:                                     ; preds = %vector.memcheck103
  %n.vec111 = and i64 %wide.trip.count92, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %.06584, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body113

vector.body113:                                   ; preds = %vector.body113, %vector.ph109
  %index114 = phi i64 [ 0, %vector.ph109 ], [ %index.next119, %vector.body113 ]
  %85 = getelementptr inbounds double, ptr %65, i64 %index114
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  %wide.load115 = load <2 x double>, ptr %85, align 8, !tbaa !5
  %wide.load116 = load <2 x double>, ptr %86, align 8, !tbaa !5
  %87 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %wide.load115)
  %88 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %wide.load116)
  %89 = getelementptr inbounds double, ptr %66, i64 %index114
  %90 = getelementptr inbounds i8, ptr %89, i64 16
  %wide.load117 = load <2 x double>, ptr %89, align 8, !tbaa !5
  %wide.load118 = load <2 x double>, ptr %90, align 8, !tbaa !5
  %91 = fmul <2 x double> %broadcast.splat, %wide.load117
  %92 = fmul <2 x double> %broadcast.splat, %wide.load118
  %93 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %91)
  %94 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %92)
  %95 = fadd <2 x double> %87, %93
  %96 = fadd <2 x double> %88, %94
  %97 = fadd <2 x double> %95, <double 1.000000e-30, double 1.000000e-30>
  %98 = fadd <2 x double> %96, <double 1.000000e-30, double 1.000000e-30>
  %99 = getelementptr inbounds double, ptr %67, i64 %index114
  %100 = getelementptr inbounds i8, ptr %99, i64 16
  store <2 x double> %97, ptr %99, align 8, !tbaa !5
  store <2 x double> %98, ptr %100, align 8, !tbaa !5
  %index.next119 = add nuw i64 %index114, 4
  %101 = icmp eq i64 %index.next119, %n.vec111
  br i1 %101, label %middle.block106, label %vector.body113, !llvm.loop !24

middle.block106:                                  ; preds = %vector.body113
  %cmp.n120 = icmp eq i64 %n.vec111, %wide.trip.count92
  br i1 %cmp.n120, label %._crit_edge, label %scalar.ph107.preheader

102:                                              ; preds = %57
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.14, ptr noundef nonnull %41) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %41, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.generic_integrator, i32 noundef 99, ptr noundef nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #5
  br label %.loopexit

scalar.ph107:                                     ; preds = %scalar.ph107.prol.loopexit, %scalar.ph107
  %indvars.iv89 = phi i64 [ %indvars.iv.next90.1, %scalar.ph107 ], [ %indvars.iv89.unr, %scalar.ph107.prol.loopexit ]
  %103 = getelementptr inbounds double, ptr %65, i64 %indvars.iv89
  %104 = load double, ptr %103, align 8, !tbaa !5
  %105 = call double @llvm.fabs.f64(double %104)
  %106 = getelementptr inbounds double, ptr %66, i64 %indvars.iv89
  %107 = load double, ptr %106, align 8, !tbaa !5
  %108 = fmul double %.06584, %107
  %109 = call double @llvm.fabs.f64(double %108)
  %110 = fadd double %105, %109
  %111 = fadd double %110, 1.000000e-30
  %112 = getelementptr inbounds double, ptr %67, i64 %indvars.iv89
  store double %111, ptr %112, align 8, !tbaa !5
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %113 = getelementptr inbounds double, ptr %65, i64 %indvars.iv.next90
  %114 = load double, ptr %113, align 8, !tbaa !5
  %115 = call double @llvm.fabs.f64(double %114)
  %116 = getelementptr inbounds double, ptr %66, i64 %indvars.iv.next90
  %117 = load double, ptr %116, align 8, !tbaa !5
  %118 = fmul double %.06584, %117
  %119 = call double @llvm.fabs.f64(double %118)
  %120 = fadd double %115, %119
  %121 = fadd double %120, 1.000000e-30
  %122 = getelementptr inbounds double, ptr %67, i64 %indvars.iv.next90
  store double %121, ptr %122, align 8, !tbaa !5
  %indvars.iv.next90.1 = add nuw nsw i64 %indvars.iv89, 2
  %exitcond93.not.1 = icmp eq i64 %indvars.iv.next90.1, %wide.trip.count92
  br i1 %exitcond93.not.1, label %._crit_edge, label %scalar.ph107, !llvm.loop !25

._crit_edge:                                      ; preds = %scalar.ph107.prol.loopexit, %scalar.ph107, %middle.block106, %.preheader70
  %123 = load double, ptr %10, align 8, !tbaa !5
  %124 = fadd double %.06584, %123
  %125 = fsub double %124, %2
  %126 = fsub double %124, %1
  %127 = fmul double %125, %126
  %128 = fcmp ogt double %127, 0.000000e+00
  %129 = fsub double %2, %123
  %.1 = select i1 %128, double %129, double %.06584
  %130 = call i32 @rkqs(ptr noundef nonnull %10, double noundef %.1, double noundef %5, ptr noundef nonnull %12, ptr noundef nonnull %11, ptr noundef %0, ptr noundef %4, ptr noundef nonnull %7)
  %131 = icmp eq i32 %130, 1
  br i1 %131, label %132, label %133

132:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.15, ptr noundef nonnull %41) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %41, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.generic_integrator, i32 noundef 112, ptr noundef nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #5
  br label %.loopexit

133:                                              ; preds = %._crit_edge
  %134 = load double, ptr %10, align 8, !tbaa !5
  %135 = fsub double %134, %2
  %136 = fmul double %19, %135
  %137 = fcmp ult double %136, 0.000000e+00
  br i1 %137, label %165, label %.preheader

.preheader:                                       ; preds = %133
  %138 = load i32, ptr %7, align 8, !tbaa !9
  %139 = icmp sgt i32 %138, 0
  br i1 %139, label %.lr.ph86, label %.loopexit

.lr.ph86:                                         ; preds = %.preheader
  %140 = load ptr, ptr %39, align 8, !tbaa !13
  %wide.trip.count98 = zext nneg i32 %138 to i64
  %min.iters.check125 = icmp ult i32 %138, 6
  %141 = ptrtoint ptr %140 to i64
  %142 = sub i64 %9, %141
  %diff.check122 = icmp ult i64 %142, 32
  %or.cond138 = select i1 %min.iters.check125, i1 true, i1 %diff.check122
  br i1 %or.cond138, label %scalar.ph124.preheader, label %vector.ph126

vector.ph126:                                     ; preds = %.lr.ph86
  %n.vec128 = and i64 %wide.trip.count98, 2147483644
  br label %vector.body130

vector.body130:                                   ; preds = %vector.body130, %vector.ph126
  %index131 = phi i64 [ 0, %vector.ph126 ], [ %index.next134, %vector.body130 ]
  %143 = getelementptr inbounds double, ptr %140, i64 %index131
  %144 = getelementptr inbounds i8, ptr %143, i64 16
  %wide.load132 = load <2 x double>, ptr %143, align 8, !tbaa !5
  %wide.load133 = load <2 x double>, ptr %144, align 8, !tbaa !5
  %145 = getelementptr inbounds double, ptr %3, i64 %index131
  %146 = getelementptr inbounds i8, ptr %145, i64 16
  store <2 x double> %wide.load132, ptr %145, align 8, !tbaa !5
  store <2 x double> %wide.load133, ptr %146, align 8, !tbaa !5
  %index.next134 = add nuw i64 %index131, 4
  %147 = icmp eq i64 %index.next134, %n.vec128
  br i1 %147, label %middle.block123, label %vector.body130, !llvm.loop !26

middle.block123:                                  ; preds = %vector.body130
  %cmp.n135 = icmp eq i64 %n.vec128, %wide.trip.count98
  br i1 %cmp.n135, label %.loopexit, label %scalar.ph124.preheader

scalar.ph124.preheader:                           ; preds = %middle.block123, %.lr.ph86
  %indvars.iv95.ph = phi i64 [ 0, %.lr.ph86 ], [ %n.vec128, %middle.block123 ]
  %xtraiter143 = and i64 %wide.trip.count98, 3
  %lcmp.mod144.not = icmp eq i64 %xtraiter143, 0
  br i1 %lcmp.mod144.not, label %scalar.ph124.prol.loopexit, label %scalar.ph124.prol

scalar.ph124.prol:                                ; preds = %scalar.ph124.preheader, %scalar.ph124.prol
  %indvars.iv95.prol = phi i64 [ %indvars.iv.next96.prol, %scalar.ph124.prol ], [ %indvars.iv95.ph, %scalar.ph124.preheader ]
  %prol.iter145 = phi i64 [ %prol.iter145.next, %scalar.ph124.prol ], [ 0, %scalar.ph124.preheader ]
  %148 = getelementptr inbounds double, ptr %140, i64 %indvars.iv95.prol
  %149 = load double, ptr %148, align 8, !tbaa !5
  %150 = getelementptr inbounds double, ptr %3, i64 %indvars.iv95.prol
  store double %149, ptr %150, align 8, !tbaa !5
  %indvars.iv.next96.prol = add nuw nsw i64 %indvars.iv95.prol, 1
  %prol.iter145.next = add i64 %prol.iter145, 1
  %prol.iter145.cmp.not = icmp eq i64 %prol.iter145.next, %xtraiter143
  br i1 %prol.iter145.cmp.not, label %scalar.ph124.prol.loopexit, label %scalar.ph124.prol, !llvm.loop !27

scalar.ph124.prol.loopexit:                       ; preds = %scalar.ph124.prol, %scalar.ph124.preheader
  %indvars.iv95.unr = phi i64 [ %indvars.iv95.ph, %scalar.ph124.preheader ], [ %indvars.iv.next96.prol, %scalar.ph124.prol ]
  %151 = sub nsw i64 %indvars.iv95.ph, %wide.trip.count98
  %152 = icmp ugt i64 %151, -4
  br i1 %152, label %.loopexit, label %scalar.ph124

scalar.ph124:                                     ; preds = %scalar.ph124.prol.loopexit, %scalar.ph124
  %indvars.iv95 = phi i64 [ %indvars.iv.next96.3, %scalar.ph124 ], [ %indvars.iv95.unr, %scalar.ph124.prol.loopexit ]
  %153 = getelementptr inbounds double, ptr %140, i64 %indvars.iv95
  %154 = load double, ptr %153, align 8, !tbaa !5
  %155 = getelementptr inbounds double, ptr %3, i64 %indvars.iv95
  store double %154, ptr %155, align 8, !tbaa !5
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %156 = getelementptr inbounds double, ptr %140, i64 %indvars.iv.next96
  %157 = load double, ptr %156, align 8, !tbaa !5
  %158 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next96
  store double %157, ptr %158, align 8, !tbaa !5
  %indvars.iv.next96.1 = add nuw nsw i64 %indvars.iv95, 2
  %159 = getelementptr inbounds double, ptr %140, i64 %indvars.iv.next96.1
  %160 = load double, ptr %159, align 8, !tbaa !5
  %161 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next96.1
  store double %160, ptr %161, align 8, !tbaa !5
  %indvars.iv.next96.2 = add nuw nsw i64 %indvars.iv95, 3
  %162 = getelementptr inbounds double, ptr %140, i64 %indvars.iv.next96.2
  %163 = load double, ptr %162, align 8, !tbaa !5
  %164 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next96.2
  store double %163, ptr %164, align 8, !tbaa !5
  %indvars.iv.next96.3 = add nuw nsw i64 %indvars.iv95, 4
  %exitcond99.not.3 = icmp eq i64 %indvars.iv.next96.3, %wide.trip.count98
  br i1 %exitcond99.not.3, label %.loopexit, label %scalar.ph124, !llvm.loop !28

165:                                              ; preds = %133
  %166 = load double, ptr %11, align 8, !tbaa !5
  %167 = fdiv double %166, %1
  %168 = call double @llvm.fabs.f64(double %167)
  %169 = fcmp ugt double %168, %6
  br i1 %169, label %55, label %170

170:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str.16, double noundef %168, double noundef %6, double noundef %1, double noundef %2) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %16) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %16, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.18, ptr noundef nonnull %15) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %41, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.generic_integrator, i32 noundef 123, ptr noundef nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #5
  br label %.loopexit

171:                                              ; preds = %55
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %17) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %17, ptr noundef nonnull @.str.19, double noundef %1, double noundef %2) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %18) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.20, ptr noundef nonnull %17) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %41, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.generic_integrator, i32 noundef 128, ptr noundef nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %17) #5
  br label %.loopexit

.loopexit:                                        ; preds = %scalar.ph124.prol.loopexit, %scalar.ph124, %middle.block123, %.preheader, %171, %170, %132, %102
  %.0 = phi i32 [ 1, %102 ], [ 1, %132 ], [ 1, %170 ], [ 1, %171 ], [ 0, %.preheader ], [ 0, %middle.block123 ], [ 0, %scalar.ph124 ], [ 0, %scalar.ph124.prol.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  ret i32 %.0
}

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @rkqs(ptr noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"generic_integrator_workspace", !11, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !6, i64 96, !7, i64 104}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !12, i64 16}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !17, !18, !19}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !17, !18}
!21 = distinct !{!21, !17}
!22 = !{!10, !12, i64 24}
!23 = !{!10, !12, i64 8}
!24 = distinct !{!24, !17, !18, !19}
!25 = distinct !{!25, !17, !18}
!26 = distinct !{!26, !17, !18, !19}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !17, !18}


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