; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (evolver_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 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@__func__.evolver_rk = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @evolver_rk(ptr noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, double noundef %7, double noundef %8, ptr noundef %9, double noundef %10, ptr noundef %11, i32 noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15) #0 {
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca ptr, align 8
  %28 = alloca double, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca i32, align 4
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca %struct.generic_integrator_workspace, align 8
  %40 = alloca ptr, align 8
  %41 = alloca i16, align 2
  %42 = alloca [2048 x i8], align 16
  %43 = alloca [2048 x i8], align 16
  %44 = alloca i32, align 4
  %45 = alloca [2048 x i8], align 16
  %46 = alloca i32, align 4
  %47 = alloca [2048 x i8], align 16
  %48 = alloca [2048 x i8], align 16
  %49 = alloca [2048 x i8], align 16
  %50 = alloca [2048 x i8], align 16
  %51 = alloca [2048 x i8], align 16
  %52 = alloca [2048 x i8], align 16
  %53 = alloca [2048 x i8], align 16
  %54 = alloca [2048 x i8], align 16
  %55 = alloca [2048 x i8], align 16
  %56 = alloca [2048 x i8], align 16
  %57 = alloca [2048 x i8], align 16
  %58 = alloca [2048 x i8], align 16
  store ptr %0, ptr %18, align 8, !tbaa !5
  store double %1, ptr %19, align 8, !tbaa !9
  store double %2, ptr %20, align 8, !tbaa !9
  store ptr %3, ptr %21, align 8, !tbaa !5
  store ptr %4, ptr %22, align 8, !tbaa !5
  store i32 %5, ptr %23, align 4, !tbaa !11
  store ptr %6, ptr %24, align 8, !tbaa !5
  store double %7, ptr %25, align 8, !tbaa !9
  store double %8, ptr %26, align 8, !tbaa !9
  store ptr %9, ptr %27, align 8, !tbaa !5
  store double %10, ptr %28, align 8, !tbaa !9
  store ptr %11, ptr %29, align 8, !tbaa !5
  store i32 %12, ptr %30, align 4, !tbaa !11
  store ptr %13, ptr %31, align 8, !tbaa !5
  store ptr %14, ptr %32, align 8, !tbaa !5
  store ptr %15, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  store double 0.000000e+00, ptr %36, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 2152, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr %41) #6
  %59 = load double, ptr %19, align 8, !tbaa !9
  %60 = load ptr, ptr %29, align 8, !tbaa !5
  %61 = load i32, ptr %30, align 4, !tbaa !11
  %62 = sub nsw i32 %61, 1
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %60, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = fcmp ogt double %59, %65
  br i1 %66, label %67, label %80

67:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 2048, ptr %42) #6
  %68 = getelementptr inbounds [2048 x i8], ptr %42, i64 0, i64 0
  %69 = load double, ptr %19, align 8, !tbaa !9
  %70 = load ptr, ptr %29, align 8, !tbaa !5
  %71 = load i32, ptr %30, align 4, !tbaa !11
  %72 = sub nsw i32 %71, 1
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds double, ptr %70, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %68, ptr noundef @.str, double noundef %69, double noundef %75)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %43) #6
  %76 = getelementptr inbounds [2048 x i8], ptr %43, i64 0, i64 0
  %77 = getelementptr inbounds [2048 x i8], ptr %42, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %76, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %77)
  %78 = load ptr, ptr %33, align 8, !tbaa !5
  %79 = getelementptr inbounds [2048 x i8], ptr %43, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %78, ptr noundef @.str.3, ptr noundef @__func__.evolver_rk, i32 noundef 44, ptr noundef %79)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %42) #6
  store i32 1, ptr %17, align 4
  store i32 1, ptr %44, align 4
  br label %324

80:                                               ; preds = %16
  store i32 0, ptr %34, align 4, !tbaa !11
  br label %81

81:                                               ; preds = %89, %80
  %82 = load ptr, ptr %29, align 8, !tbaa !5
  %83 = load i32, ptr %34, align 4, !tbaa !11
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds double, ptr %82, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !9
  %87 = load double, ptr %19, align 8, !tbaa !9
  %88 = fcmp olt double %86, %87
  br i1 %88, label %89, label %92

89:                                               ; preds = %81
  %90 = load i32, ptr %34, align 4, !tbaa !11
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %34, align 4, !tbaa !11
  br label %81, !llvm.loop !13

92:                                               ; preds = %81
  %93 = load i32, ptr %23, align 4, !tbaa !11
  %94 = call i32 @initialize_generic_integrator(i32 noundef %93, ptr noundef %39)
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %102

96:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 2048, ptr %45) #6
  %97 = getelementptr inbounds [2048 x i8], ptr %45, i64 0, i64 0
  %98 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %39, i32 0, i32 13
  %99 = getelementptr inbounds [2048 x i8], ptr %98, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %97, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %99)
  %100 = load ptr, ptr %33, align 8, !tbaa !5
  %101 = getelementptr inbounds [2048 x i8], ptr %45, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %100, ptr noundef @.str.3, ptr noundef @__func__.evolver_rk, i32 noundef 52, ptr noundef %101)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %45) #6
  store i32 1, ptr %17, align 4
  store i32 1, ptr %44, align 4
  br label %324

102:                                              ; preds = %92
  %103 = load i32, ptr %23, align 4, !tbaa !11
  %104 = sext i32 %103 to i64
  %105 = mul i64 %104, 8
  %106 = call noalias ptr @malloc(i64 noundef %105) #7
  store ptr %106, ptr %40, align 8, !tbaa !5
  %107 = load ptr, ptr %40, align 8, !tbaa !5
  %108 = icmp eq ptr %107, null
  br i1 %108, label %109, label %118

109:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  %110 = load i32, ptr %23, align 4, !tbaa !11
  %111 = sext i32 %110 to i64
  %112 = mul i64 %111, 8
  %113 = trunc i64 %112 to i32
  store i32 %113, ptr %46, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2048, ptr %47) #6
  %114 = getelementptr inbounds [2048 x i8], ptr %47, i64 0, i64 0
  %115 = load i32, ptr %46, align 4, !tbaa !11
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %114, ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef %115)
  %116 = load ptr, ptr %33, align 8, !tbaa !5
  %117 = getelementptr inbounds [2048 x i8], ptr %47, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %116, ptr noundef @.str.3, ptr noundef @__func__.evolver_rk, i32 noundef 54, ptr noundef %117)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %47) #6
  store i32 1, ptr %17, align 4
  store i32 1, ptr %44, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  br label %324

118:                                              ; preds = %102
  %119 = load double, ptr %19, align 8, !tbaa !9
  store double %119, ptr %35, align 8, !tbaa !9
  store i16 0, ptr %41, align 2, !tbaa !15
  br label %120

120:                                              ; preds = %279, %118
  %121 = load double, ptr %35, align 8, !tbaa !9
  %122 = load double, ptr %20, align 8, !tbaa !9
  %123 = fcmp olt double %121, %122
  br i1 %123, label %124, label %128

124:                                              ; preds = %120
  %125 = load i32, ptr %34, align 4, !tbaa !11
  %126 = load i32, ptr %30, align 4, !tbaa !11
  %127 = icmp slt i32 %125, %126
  br label %128

128:                                              ; preds = %124, %120
  %129 = phi i1 [ false, %120 ], [ %127, %124 ]
  br i1 %129, label %130, label %281

130:                                              ; preds = %128
  %131 = load ptr, ptr %27, align 8, !tbaa !5
  %132 = load double, ptr %35, align 8, !tbaa !9
  %133 = load ptr, ptr %24, align 8, !tbaa !5
  %134 = load ptr, ptr %33, align 8, !tbaa !5
  %135 = call i32 %131(double noundef %132, ptr noundef %133, ptr noundef %38, ptr noundef %134)
  %136 = icmp eq i32 %135, 1
  br i1 %136, label %137, label %142

137:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 2048, ptr %48) #6
  %138 = getelementptr inbounds [2048 x i8], ptr %48, i64 0, i64 0
  %139 = load ptr, ptr %33, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %138, ptr noundef @.str.4, ptr noundef @.str.8, ptr noundef %139)
  %140 = load ptr, ptr %33, align 8, !tbaa !5
  %141 = getelementptr inbounds [2048 x i8], ptr %48, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %140, ptr noundef @.str.3, ptr noundef @__func__.evolver_rk, i32 noundef 67, ptr noundef %141)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %48) #6
  store i32 1, ptr %17, align 4
  store i32 1, ptr %44, align 4
  br label %324

142:                                              ; preds = %130
  %143 = load double, ptr %28, align 8, !tbaa !9
  %144 = load double, ptr %38, align 8, !tbaa !9
  %145 = fmul double %143, %144
  store double %145, ptr %37, align 8, !tbaa !9
  %146 = load double, ptr %37, align 8, !tbaa !9
  %147 = load double, ptr %35, align 8, !tbaa !9
  %148 = fdiv double %146, %147
  %149 = call double @llvm.fabs.f64(double %148)
  %150 = load double, ptr %26, align 8, !tbaa !9
  %151 = fcmp olt double %149, %150
  br i1 %151, label %152, label %162

152:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 2048, ptr %49) #6
  %153 = getelementptr inbounds [2048 x i8], ptr %49, i64 0, i64 0
  %154 = load double, ptr %37, align 8, !tbaa !9
  %155 = load double, ptr %35, align 8, !tbaa !9
  %156 = fdiv double %154, %155
  %157 = call double @llvm.fabs.f64(double %156)
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %153, ptr noundef @.str.9, double noundef %157)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %50) #6
  %158 = getelementptr inbounds [2048 x i8], ptr %50, i64 0, i64 0
  %159 = getelementptr inbounds [2048 x i8], ptr %49, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %158, ptr noundef @.str.1, ptr noundef @.str.10, ptr noundef %159)
  %160 = load ptr, ptr %33, align 8, !tbaa !5
  %161 = getelementptr inbounds [2048 x i8], ptr %50, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %160, ptr noundef @.str.3, ptr noundef @__func__.evolver_rk, i32 noundef 73, ptr noundef %161)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %49) #6
  store i32 1, ptr %17, align 4
  store i32 1, ptr %44, align 4
  br label %324

162:                                              ; preds = %142
  %163 = load double, ptr %35, align 8, !tbaa !9
  %164 = load double, ptr %37, align 8, !tbaa !9
  %165 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %164, double %163)
  %166 = load ptr, ptr %29, align 8, !tbaa !5
  %167 = load i32, ptr %34, align 4, !tbaa !11
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds double, ptr %166, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !9
  %171 = fcmp olt double %165, %170
  br i1 %171, label %172, label %176

172:                                              ; preds = %162
  %173 = load double, ptr %35, align 8, !tbaa !9
  %174 = load double, ptr %37, align 8, !tbaa !9
  %175 = fadd double %173, %174
  store double %175, ptr %36, align 8, !tbaa !9
  br label %182

176:                                              ; preds = %162
  %177 = load ptr, ptr %29, align 8, !tbaa !5
  %178 = load i32, ptr %34, align 4, !tbaa !11
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds double, ptr %177, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !9
  store double %181, ptr %36, align 8, !tbaa !9
  store i16 1, ptr %41, align 2, !tbaa !15
  br label %182

182:                                              ; preds = %176, %172
  %183 = load double, ptr %36, align 8, !tbaa !9
  %184 = load double, ptr %20, align 8, !tbaa !9
  %185 = fcmp ogt double %183, %184
  br i1 %185, label %186, label %188

186:                                              ; preds = %182
  %187 = load double, ptr %20, align 8, !tbaa !9
  store double %187, ptr %36, align 8, !tbaa !9
  store i16 0, ptr %41, align 2, !tbaa !15
  br label %188

188:                                              ; preds = %186, %182
  %189 = load ptr, ptr %32, align 8, !tbaa !5
  %190 = icmp ne ptr %189, null
  br i1 %190, label %191, label %225

191:                                              ; preds = %188
  %192 = load double, ptr %35, align 8, !tbaa !9
  %193 = load double, ptr %19, align 8, !tbaa !9
  %194 = fcmp oeq double %192, %193
  br i1 %194, label %195, label %210

195:                                              ; preds = %191
  %196 = load ptr, ptr %18, align 8, !tbaa !5
  %197 = load double, ptr %35, align 8, !tbaa !9
  %198 = load ptr, ptr %21, align 8, !tbaa !5
  %199 = load ptr, ptr %40, align 8, !tbaa !5
  %200 = load ptr, ptr %24, align 8, !tbaa !5
  %201 = load ptr, ptr %33, align 8, !tbaa !5
  %202 = call i32 %196(double noundef %197, ptr noundef %198, ptr noundef %199, ptr noundef %200, ptr noundef %201)
  %203 = icmp eq i32 %202, 1
  br i1 %203, label %204, label %209

204:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 2048, ptr %51) #6
  %205 = getelementptr inbounds [2048 x i8], ptr %51, i64 0, i64 0
  %206 = load ptr, ptr %33, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %205, ptr noundef @.str.4, ptr noundef @.str.11, ptr noundef %206)
  %207 = load ptr, ptr %33, align 8, !tbaa !5
  %208 = getelementptr inbounds [2048 x i8], ptr %51, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %207, ptr noundef @.str.3, ptr noundef @__func__.evolver_rk, i32 noundef 98, ptr noundef %208)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %51) #6
  store i32 1, ptr %17, align 4
  store i32 1, ptr %44, align 4
  br label %324

209:                                              ; preds = %195
  br label %210

210:                                              ; preds = %209, %191
  %211 = load ptr, ptr %32, align 8, !tbaa !5
  %212 = load double, ptr %35, align 8, !tbaa !9
  %213 = load ptr, ptr %21, align 8, !tbaa !5
  %214 = load ptr, ptr %40, align 8, !tbaa !5
  %215 = load ptr, ptr %24, align 8, !tbaa !5
  %216 = load ptr, ptr %33, align 8, !tbaa !5
  %217 = call i32 %211(double noundef %212, ptr noundef %213, ptr noundef %214, ptr noundef %215, ptr noundef %216)
  %218 = icmp eq i32 %217, 1
  br i1 %218, label %219, label %224

219:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 2048, ptr %52) #6
  %220 = getelementptr inbounds [2048 x i8], ptr %52, i64 0, i64 0
  %221 = load ptr, ptr %33, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %220, ptr noundef @.str.4, ptr noundef @.str.12, ptr noundef %221)
  %222 = load ptr, ptr %33, align 8, !tbaa !5
  %223 = getelementptr inbounds [2048 x i8], ptr %52, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %222, ptr noundef @.str.3, ptr noundef @__func__.evolver_rk, i32 noundef 107, ptr noundef %223)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %52) #6
  store i32 1, ptr %17, align 4
  store i32 1, ptr %44, align 4
  br label %324

224:                                              ; preds = %210
  br label %225

225:                                              ; preds = %224, %188
  %226 = load ptr, ptr %18, align 8, !tbaa !5
  %227 = load double, ptr %35, align 8, !tbaa !9
  %228 = load double, ptr %36, align 8, !tbaa !9
  %229 = load ptr, ptr %21, align 8, !tbaa !5
  %230 = load ptr, ptr %24, align 8, !tbaa !5
  %231 = load double, ptr %25, align 8, !tbaa !9
  %232 = load double, ptr %35, align 8, !tbaa !9
  %233 = load double, ptr %26, align 8, !tbaa !9
  %234 = fmul double %232, %233
  %235 = call i32 @generic_integrator(ptr noundef %226, double noundef %227, double noundef %228, ptr noundef %229, ptr noundef %230, double noundef %231, double noundef %234, ptr noundef %39)
  %236 = icmp eq i32 %235, 1
  br i1 %236, label %237, label %243

237:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 2048, ptr %53) #6
  %238 = getelementptr inbounds [2048 x i8], ptr %53, i64 0, i64 0
  %239 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %39, i32 0, i32 13
  %240 = getelementptr inbounds [2048 x i8], ptr %239, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %238, ptr noundef @.str.4, ptr noundef @.str.13, ptr noundef %240)
  %241 = load ptr, ptr %33, align 8, !tbaa !5
  %242 = getelementptr inbounds [2048 x i8], ptr %53, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %241, ptr noundef @.str.3, ptr noundef @__func__.evolver_rk, i32 noundef 119, ptr noundef %242)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %53) #6
  store i32 1, ptr %17, align 4
  store i32 1, ptr %44, align 4
  br label %324

243:                                              ; preds = %225
  %244 = load i16, ptr %41, align 2, !tbaa !15
  %245 = sext i16 %244 to i32
  %246 = icmp eq i32 %245, 1
  br i1 %246, label %247, label %279

247:                                              ; preds = %243
  %248 = load ptr, ptr %18, align 8, !tbaa !5
  %249 = load double, ptr %36, align 8, !tbaa !9
  %250 = load ptr, ptr %21, align 8, !tbaa !5
  %251 = load ptr, ptr %40, align 8, !tbaa !5
  %252 = load ptr, ptr %24, align 8, !tbaa !5
  %253 = load ptr, ptr %33, align 8, !tbaa !5
  %254 = call i32 %248(double noundef %249, ptr noundef %250, ptr noundef %251, ptr noundef %252, ptr noundef %253)
  %255 = icmp eq i32 %254, 1
  br i1 %255, label %256, label %261

256:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 2048, ptr %54) #6
  %257 = getelementptr inbounds [2048 x i8], ptr %54, i64 0, i64 0
  %258 = load ptr, ptr %33, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %257, ptr noundef @.str.4, ptr noundef @.str.14, ptr noundef %258)
  %259 = load ptr, ptr %33, align 8, !tbaa !5
  %260 = getelementptr inbounds [2048 x i8], ptr %54, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %259, ptr noundef @.str.3, ptr noundef @__func__.evolver_rk, i32 noundef 129, ptr noundef %260)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %54) #6
  store i32 1, ptr %17, align 4
  store i32 1, ptr %44, align 4
  br label %324

261:                                              ; preds = %247
  %262 = load ptr, ptr %31, align 8, !tbaa !5
  %263 = load double, ptr %36, align 8, !tbaa !9
  %264 = load ptr, ptr %21, align 8, !tbaa !5
  %265 = load ptr, ptr %40, align 8, !tbaa !5
  %266 = load i32, ptr %34, align 4, !tbaa !11
  %267 = load ptr, ptr %24, align 8, !tbaa !5
  %268 = load ptr, ptr %33, align 8, !tbaa !5
  %269 = call i32 %262(double noundef %263, ptr noundef %264, ptr noundef %265, i32 noundef %266, ptr noundef %267, ptr noundef %268)
  %270 = icmp eq i32 %269, 1
  br i1 %270, label %271, label %276

271:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 2048, ptr %55) #6
  %272 = getelementptr inbounds [2048 x i8], ptr %55, i64 0, i64 0
  %273 = load ptr, ptr %33, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %272, ptr noundef @.str.4, ptr noundef @.str.15, ptr noundef %273)
  %274 = load ptr, ptr %33, align 8, !tbaa !5
  %275 = getelementptr inbounds [2048 x i8], ptr %55, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %274, ptr noundef @.str.3, ptr noundef @__func__.evolver_rk, i32 noundef 138, ptr noundef %275)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %55) #6
  store i32 1, ptr %17, align 4
  store i32 1, ptr %44, align 4
  br label %324

276:                                              ; preds = %261
  store i16 0, ptr %41, align 2, !tbaa !15
  %277 = load i32, ptr %34, align 4, !tbaa !11
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %34, align 4, !tbaa !11
  br label %279

279:                                              ; preds = %276, %243
  %280 = load double, ptr %36, align 8, !tbaa !9
  store double %280, ptr %35, align 8, !tbaa !9
  br label %120, !llvm.loop !17

281:                                              ; preds = %128
  %282 = load ptr, ptr %18, align 8, !tbaa !5
  %283 = load double, ptr %35, align 8, !tbaa !9
  %284 = load ptr, ptr %21, align 8, !tbaa !5
  %285 = load ptr, ptr %40, align 8, !tbaa !5
  %286 = load ptr, ptr %24, align 8, !tbaa !5
  %287 = load ptr, ptr %33, align 8, !tbaa !5
  %288 = call i32 %282(double noundef %283, ptr noundef %284, ptr noundef %285, ptr noundef %286, ptr noundef %287)
  %289 = icmp eq i32 %288, 1
  br i1 %289, label %290, label %295

290:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 2048, ptr %56) #6
  %291 = getelementptr inbounds [2048 x i8], ptr %56, i64 0, i64 0
  %292 = load ptr, ptr %33, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %291, ptr noundef @.str.4, ptr noundef @.str.11, ptr noundef %292)
  %293 = load ptr, ptr %33, align 8, !tbaa !5
  %294 = getelementptr inbounds [2048 x i8], ptr %56, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %293, ptr noundef @.str.3, ptr noundef @__func__.evolver_rk, i32 noundef 159, ptr noundef %294)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %56) #6
  store i32 1, ptr %17, align 4
  store i32 1, ptr %44, align 4
  br label %324

295:                                              ; preds = %281
  %296 = load ptr, ptr %32, align 8, !tbaa !5
  %297 = icmp ne ptr %296, null
  br i1 %297, label %298, label %313

298:                                              ; preds = %295
  %299 = load ptr, ptr %32, align 8, !tbaa !5
  %300 = load double, ptr %35, align 8, !tbaa !9
  %301 = load ptr, ptr %21, align 8, !tbaa !5
  %302 = load ptr, ptr %40, align 8, !tbaa !5
  %303 = load ptr, ptr %24, align 8, !tbaa !5
  %304 = load ptr, ptr %33, align 8, !tbaa !5
  %305 = call i32 %299(double noundef %300, ptr noundef %301, ptr noundef %302, ptr noundef %303, ptr noundef %304)
  %306 = icmp eq i32 %305, 1
  br i1 %306, label %307, label %312

307:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 2048, ptr %57) #6
  %308 = getelementptr inbounds [2048 x i8], ptr %57, i64 0, i64 0
  %309 = load ptr, ptr %33, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %308, ptr noundef @.str.4, ptr noundef @.str.12, ptr noundef %309)
  %310 = load ptr, ptr %33, align 8, !tbaa !5
  %311 = getelementptr inbounds [2048 x i8], ptr %57, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %310, ptr noundef @.str.3, ptr noundef @__func__.evolver_rk, i32 noundef 168, ptr noundef %311)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %57) #6
  store i32 1, ptr %17, align 4
  store i32 1, ptr %44, align 4
  br label %324

312:                                              ; preds = %298
  br label %313

313:                                              ; preds = %312, %295
  %314 = call i32 @cleanup_generic_integrator(ptr noundef %39)
  %315 = icmp eq i32 %314, 1
  br i1 %315, label %316, label %322

316:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 2048, ptr %58) #6
  %317 = getelementptr inbounds [2048 x i8], ptr %58, i64 0, i64 0
  %318 = getelementptr inbounds %struct.generic_integrator_workspace, ptr %39, i32 0, i32 13
  %319 = getelementptr inbounds [2048 x i8], ptr %318, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %317, ptr noundef @.str.4, ptr noundef @.str.16, ptr noundef %319)
  %320 = load ptr, ptr %33, align 8, !tbaa !5
  %321 = getelementptr inbounds [2048 x i8], ptr %58, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %320, ptr noundef @.str.3, ptr noundef @__func__.evolver_rk, i32 noundef 172, ptr noundef %321)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %58) #6
  store i32 1, ptr %17, align 4
  store i32 1, ptr %44, align 4
  br label %324

322:                                              ; preds = %313
  %323 = load ptr, ptr %40, align 8, !tbaa !5
  call void @free(ptr noundef %323) #6
  store i32 0, ptr %17, align 4
  store i32 1, ptr %44, align 4
  br label %324

324:                                              ; preds = %322, %316, %307, %290, %271, %256, %237, %219, %204, %152, %137, %109, %96, %67
  call void @llvm.lifetime.end.p0(i64 2, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 2152, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  %325 = load i32, ptr %17, align 4
  ret i32 %325
}

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

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

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

declare i32 @initialize_generic_integrator(i32 noundef, ptr noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

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

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

declare i32 @generic_integrator(ptr noundef, double noundef, double noundef, ptr noundef, ptr noundef, double noundef, double noundef, ptr noundef) #2

declare i32 @cleanup_generic_integrator(ptr noundef) #2

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind allocsize(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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = distinct !{!17, !14}


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

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

@.str = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@__func__.evolver_rk = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @evolver_rk(ptr noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr nocapture noundef readnone %4, i32 noundef %5, ptr noundef %6, double noundef %7, double noundef %8, ptr nocapture noundef readonly %9, double noundef %10, ptr nocapture noundef readonly %11, i32 noundef %12, ptr nocapture noundef readonly %13, ptr noundef readonly %14, ptr noundef %15) local_unnamed_addr #0 {
  %17 = alloca double, align 8
  %18 = alloca %struct.generic_integrator_workspace, align 8
  %19 = alloca [2048 x i8], align 16
  %20 = alloca [2048 x i8], align 16
  %21 = alloca [2048 x i8], align 16
  %22 = alloca [2048 x i8], align 16
  %23 = alloca [2048 x i8], align 16
  %24 = alloca [2048 x i8], align 16
  %25 = alloca [2048 x i8], align 16
  %26 = alloca [2048 x i8], align 16
  %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
  %32 = alloca [2048 x i8], align 16
  %33 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 2152, ptr nonnull %18) #6
  %34 = sext i32 %12 to i64
  %35 = getelementptr double, ptr %11, i64 %34
  %36 = getelementptr i8, ptr %35, i64 -8
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = fcmp olt double %37, %1
  br i1 %38, label %39, label %.preheader131

39:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %19) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %19, ptr noundef nonnull @.str, double noundef %1, double noundef %37) #6
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %20) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %20, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, ptr noundef nonnull %19) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %15, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.evolver_rk, i32 noundef 44, ptr noundef nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %19) #6
  br label %124

.preheader131:                                    ; preds = %16, %.preheader131
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader131 ], [ 0, %16 ]
  %40 = getelementptr inbounds double, ptr %11, i64 %indvars.iv
  %41 = load double, ptr %40, align 8, !tbaa !5
  %42 = fcmp olt double %41, %1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br i1 %42, label %.preheader131, label %43, !llvm.loop !9

43:                                               ; preds = %.preheader131
  %44 = trunc nuw nsw i64 %indvars.iv to i32
  %45 = call i32 @initialize_generic_integrator(i32 noundef %5, ptr noundef nonnull %18) #6
  %46 = icmp eq i32 %45, 1
  br i1 %46, label %47, label %49

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %21) #6
  %48 = getelementptr inbounds i8, ptr %18, i64 104
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %21, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %48) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %15, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.evolver_rk, i32 noundef 52, ptr noundef nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %21) #6
  br label %124

49:                                               ; preds = %43
  %50 = sext i32 %5 to i64
  %51 = shl nsw i64 %50, 3
  %52 = call noalias ptr @malloc(i64 noundef %51) #7
  %53 = icmp eq ptr %52, null
  br i1 %53, label %57, label %.preheader

.preheader:                                       ; preds = %49
  %54 = fcmp olt double %1, %2
  %55 = icmp slt i32 %44, %12
  %56 = and i1 %54, %55
  br i1 %56, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %.not130 = icmp eq ptr %14, null
  br label %59

57:                                               ; preds = %49
  %58 = trunc i64 %51 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %22) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %22, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, i32 noundef %58) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %15, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.evolver_rk, i32 noundef 54, ptr noundef nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %22) #6
  br label %124

59:                                               ; preds = %.lr.ph, %106
  %.0114146 = phi i16 [ 0, %.lr.ph ], [ %.3, %106 ]
  %.1116145 = phi i32 [ %44, %.lr.ph ], [ %.2117, %106 ]
  %.0118144 = phi double [ %1, %.lr.ph ], [ %.1120, %106 ]
  %60 = call i32 %9(double noundef %.0118144, ptr noundef %6, ptr noundef nonnull %17, ptr noundef %15) #6
  %61 = icmp eq i32 %60, 1
  br i1 %61, label %62, label %63

62:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %23) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %23, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.8, ptr noundef %15) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %15, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.evolver_rk, i32 noundef 67, ptr noundef nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %23) #6
  br label %124

63:                                               ; preds = %59
  %64 = load double, ptr %17, align 8, !tbaa !5
  %65 = fmul double %64, %10
  %66 = fdiv double %65, %.0118144
  %67 = call double @llvm.fabs.f64(double %66)
  %68 = fcmp olt double %67, %8
  br i1 %68, label %69, label %70

69:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %24) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %24, ptr noundef nonnull @.str.9, double noundef %67) #6
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %25) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %25, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.10, ptr noundef nonnull %24) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %15, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.evolver_rk, i32 noundef 73, ptr noundef nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %24) #6
  br label %124

70:                                               ; preds = %63
  %71 = call double @llvm.fmuladd.f64(double %65, double 2.000000e+00, double %.0118144)
  %72 = sext i32 %.1116145 to i64
  %73 = getelementptr inbounds double, ptr %11, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !5
  %75 = fcmp olt double %71, %74
  %76 = fadd double %.0118144, %65
  %.0119 = select i1 %75, double %76, double %74
  %.1 = select i1 %75, i16 %.0114146, i16 1
  %77 = fcmp ogt double %.0119, %2
  %.1120 = select i1 %77, double %2, double %.0119
  %.2 = select i1 %77, i16 0, i16 %.1
  br i1 %.not130, label %88, label %78

78:                                               ; preds = %70
  %79 = fcmp oeq double %.0118144, %1
  br i1 %79, label %80, label %84

80:                                               ; preds = %78
  %81 = call i32 %0(double noundef %.0118144, ptr noundef %3, ptr noundef nonnull %52, ptr noundef %6, ptr noundef %15) #6
  %82 = icmp eq i32 %81, 1
  br i1 %82, label %83, label %84

83:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %26) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %26, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.11, ptr noundef %15) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %15, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.evolver_rk, i32 noundef 98, ptr noundef nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %26) #6
  br label %124

84:                                               ; preds = %80, %78
  %85 = call i32 %14(double noundef %.0118144, ptr noundef %3, ptr noundef nonnull %52, ptr noundef %6, ptr noundef %15) #6
  %86 = icmp eq i32 %85, 1
  br i1 %86, label %87, label %88

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %27) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %27, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.12, ptr noundef %15) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %15, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.evolver_rk, i32 noundef 107, ptr noundef nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %27) #6
  br label %124

88:                                               ; preds = %84, %70
  %89 = fmul double %.0118144, %8
  %90 = call i32 @generic_integrator(ptr noundef %0, double noundef %.0118144, double noundef %.1120, ptr noundef %3, ptr noundef %6, double noundef %7, double noundef %89, ptr noundef nonnull %18) #6
  %91 = icmp eq i32 %90, 1
  br i1 %91, label %92, label %94

92:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %28) #6
  %93 = getelementptr inbounds i8, ptr %18, i64 104
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %28, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.13, ptr noundef nonnull %93) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %15, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.evolver_rk, i32 noundef 119, ptr noundef nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %28) #6
  br label %124

94:                                               ; preds = %88
  %95 = icmp eq i16 %.2, 1
  br i1 %95, label %96, label %106

96:                                               ; preds = %94
  %97 = call i32 %0(double noundef %.1120, ptr noundef %3, ptr noundef nonnull %52, ptr noundef %6, ptr noundef %15) #6
  %98 = icmp eq i32 %97, 1
  br i1 %98, label %99, label %100

99:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %29) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %29, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.14, ptr noundef %15) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %15, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.evolver_rk, i32 noundef 129, ptr noundef nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %29) #6
  br label %124

100:                                              ; preds = %96
  %101 = call i32 %13(double noundef %.1120, ptr noundef %3, ptr noundef nonnull %52, i32 noundef %.1116145, ptr noundef %6, ptr noundef %15) #6
  %102 = icmp eq i32 %101, 1
  br i1 %102, label %103, label %104

103:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %30) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %30, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.15, ptr noundef %15) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %15, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.evolver_rk, i32 noundef 138, ptr noundef nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %30) #6
  br label %124

104:                                              ; preds = %100
  %105 = add nsw i32 %.1116145, 1
  br label %106

106:                                              ; preds = %104, %94
  %.2117 = phi i32 [ %105, %104 ], [ %.1116145, %94 ]
  %.3 = phi i16 [ 0, %104 ], [ %.2, %94 ]
  %107 = fcmp olt double %.1120, %2
  %108 = icmp slt i32 %.2117, %12
  %109 = select i1 %107, i1 %108, i1 false
  br i1 %109, label %59, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %106, %.preheader
  %.0118.lcssa = phi double [ %1, %.preheader ], [ %.1120, %106 ]
  %110 = call i32 %0(double noundef %.0118.lcssa, ptr noundef %3, ptr noundef nonnull %52, ptr noundef %6, ptr noundef %15) #6
  %111 = icmp eq i32 %110, 1
  br i1 %111, label %112, label %113

112:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %31) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %31, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.11, ptr noundef %15) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %15, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.evolver_rk, i32 noundef 159, ptr noundef nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %31) #6
  br label %124

113:                                              ; preds = %._crit_edge
  %.not = icmp eq ptr %14, null
  br i1 %.not, label %118, label %114

114:                                              ; preds = %113
  %115 = call i32 %14(double noundef %.0118.lcssa, ptr noundef %3, ptr noundef nonnull %52, ptr noundef %6, ptr noundef %15) #6
  %116 = icmp eq i32 %115, 1
  br i1 %116, label %117, label %118

117:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %32) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %32, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.12, ptr noundef %15) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %15, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.evolver_rk, i32 noundef 168, ptr noundef nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %32) #6
  br label %124

118:                                              ; preds = %114, %113
  %119 = call i32 @cleanup_generic_integrator(ptr noundef nonnull %18) #6
  %120 = icmp eq i32 %119, 1
  br i1 %120, label %121, label %123

121:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %33) #6
  %122 = getelementptr inbounds i8, ptr %18, i64 104
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %33, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.16, ptr noundef nonnull %122) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %15, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.evolver_rk, i32 noundef 172, ptr noundef nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %33) #6
  br label %124

123:                                              ; preds = %118
  call void @free(ptr noundef %52) #6
  br label %124

124:                                              ; preds = %123, %121, %117, %112, %103, %99, %92, %87, %83, %69, %62, %57, %47, %39
  %.0 = phi i32 [ 1, %39 ], [ 1, %47 ], [ 1, %57 ], [ 1, %62 ], [ 1, %69 ], [ 1, %83 ], [ 1, %87 ], [ 1, %92 ], [ 1, %99 ], [ 1, %103 ], [ 1, %112 ], [ 1, %117 ], [ 1, %121 ], [ 0, %123 ]
  call void @llvm.lifetime.end.p0(i64 2152, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  ret i32 %.0
}

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

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

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

declare i32 @initialize_generic_integrator(i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 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 nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

declare i32 @generic_integrator(ptr noundef, double noundef, double noundef, ptr noundef, ptr noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #2

declare i32 @cleanup_generic_integrator(ptr noundef) local_unnamed_addr #2

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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