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

; 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.jacobian = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [10 x i8], align 1
@__func__.initialize_jacobian = external hidden unnamed_addr constant [20 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [67 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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #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) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @initialize_jacobian(ptr noundef %0, i32 noundef %1, ptr noundef %2) #3 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [2048 x i8], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [2048 x i8], align 16
  %14 = alloca i32, align 4
  %15 = alloca [2048 x i8], align 16
  %16 = alloca i32, align 4
  %17 = alloca [2048 x i8], align 16
  %18 = alloca i32, align 4
  %19 = alloca [2048 x i8], align 16
  %20 = alloca i32, align 4
  %21 = alloca [2048 x i8], align 16
  %22 = alloca i32, align 4
  %23 = alloca [2048 x i8], align 16
  %24 = alloca i32, align 4
  %25 = alloca [2048 x i8], align 16
  %26 = alloca i32, align 4
  %27 = alloca [2048 x i8], align 16
  %28 = alloca i32, align 4
  %29 = alloca [2048 x i8], align 16
  %30 = alloca i32, align 4
  %31 = alloca [2048 x i8], align 16
  %32 = alloca i32, align 4
  %33 = alloca [2048 x i8], align 16
  %34 = alloca [2048 x i8], align 16
  %35 = alloca [2048 x i8], align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = icmp sgt i32 %36, 15
  br i1 %37, label %38, label %41

38:                                               ; preds = %3
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.jacobian, ptr %39, i32 0, i32 5
  store i32 1, ptr %40, align 8, !tbaa !11
  br label %44

41:                                               ; preds = %3
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.jacobian, ptr %42, i32 0, i32 5
  store i32 0, ptr %43, align 8, !tbaa !11
  br label %44

44:                                               ; preds = %41, %38
  %45 = load i32, ptr %6, align 4, !tbaa !9
  %46 = mul nsw i32 3, %45
  %47 = sitofp i32 %46 to double
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = sitofp i32 %48 to double
  %50 = fmul double 2.000000e-01, %49
  %51 = load i32, ptr %6, align 4, !tbaa !9
  %52 = sitofp i32 %51 to double
  %53 = fmul double %50, %52
  %54 = fcmp olt double %47, %53
  br i1 %54, label %55, label %62

55:                                               ; preds = %44
  %56 = load i32, ptr %6, align 4, !tbaa !9
  %57 = sitofp i32 %56 to double
  %58 = fmul double 2.000000e-01, %57
  %59 = load i32, ptr %6, align 4, !tbaa !9
  %60 = sitofp i32 %59 to double
  %61 = fmul double %58, %60
  br label %66

62:                                               ; preds = %44
  %63 = load i32, ptr %6, align 4, !tbaa !9
  %64 = mul nsw i32 3, %63
  %65 = sitofp i32 %64 to double
  br label %66

66:                                               ; preds = %62, %55
  %67 = phi double [ %61, %55 ], [ %65, %62 ]
  %68 = fptosi double %67 to i32
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.jacobian, ptr %69, i32 0, i32 7
  store i32 %68, ptr %70, align 8, !tbaa !13
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.jacobian, ptr %71, i32 0, i32 7
  %73 = load i32, ptr %72, align 8, !tbaa !13
  %74 = mul nsw i32 12, %73
  %75 = sdiv i32 %74, 5
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.jacobian, ptr %76, i32 0, i32 13
  store i32 %75, ptr %77, align 8, !tbaa !14
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.jacobian, ptr %78, i32 0, i32 8
  store i32 0, ptr %79, align 4, !tbaa !15
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.jacobian, ptr %80, i32 0, i32 9
  store i32 4, ptr %81, align 8, !tbaa !16
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.jacobian, ptr %82, i32 0, i32 10
  store i32 0, ptr %83, align 4, !tbaa !17
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.jacobian, ptr %84, i32 0, i32 11
  store i32 0, ptr %85, align 8, !tbaa !18
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.jacobian, ptr %86, i32 0, i32 6
  store i32 0, ptr %87, align 4, !tbaa !19
  %88 = load i32, ptr %6, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = mul i64 8, %90
  %92 = call noalias ptr @malloc(i64 noundef %91) #5
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.jacobian, ptr %93, i32 0, i32 0
  store ptr %92, ptr %94, align 8, !tbaa !20
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.jacobian, ptr %95, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !20
  %98 = icmp eq ptr %97, null
  br i1 %98, label %99, label %109

99:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %100 = load i32, ptr %6, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  %102 = sext i32 %101 to i64
  %103 = mul i64 8, %102
  %104 = trunc i64 %103 to i32
  store i32 %104, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %10) #4
  %105 = getelementptr inbounds [2048 x i8], ptr %10, i64 0, i64 0
  %106 = load i32, ptr %9, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %105, ptr noundef @.str, ptr noundef @.str.38, i32 noundef %106)
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds [2048 x i8], ptr %10, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %107, ptr noundef @.str.2, ptr noundef @__func__.initialize_jacobian, i32 noundef 1538, ptr noundef %108)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %10) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %523

109:                                              ; preds = %66
  %110 = load i32, ptr %6, align 4, !tbaa !9
  %111 = load i32, ptr %6, align 4, !tbaa !9
  %112 = mul nsw i32 %110, %111
  %113 = add nsw i32 %112, 1
  %114 = sext i32 %113 to i64
  %115 = mul i64 8, %114
  %116 = call noalias ptr @malloc(i64 noundef %115) #5
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.jacobian, ptr %117, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !20
  %120 = getelementptr inbounds ptr, ptr %119, i64 1
  store ptr %116, ptr %120, align 8, !tbaa !5
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.jacobian, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !20
  %124 = getelementptr inbounds ptr, ptr %123, i64 1
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = icmp eq ptr %125, null
  br i1 %126, label %127, label %139

127:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %128 = load i32, ptr %6, align 4, !tbaa !9
  %129 = load i32, ptr %6, align 4, !tbaa !9
  %130 = mul nsw i32 %128, %129
  %131 = add nsw i32 %130, 1
  %132 = sext i32 %131 to i64
  %133 = mul i64 8, %132
  %134 = trunc i64 %133 to i32
  store i32 %134, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %13) #4
  %135 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  %136 = load i32, ptr %12, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %135, ptr noundef @.str, ptr noundef @.str.39, i32 noundef %136)
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %137, ptr noundef @.str.2, ptr noundef @__func__.initialize_jacobian, i32 noundef 1539, ptr noundef %138)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %13) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %523

139:                                              ; preds = %109
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.jacobian, ptr %140, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !20
  %143 = getelementptr inbounds ptr, ptr %142, i64 0
  store ptr null, ptr %143, align 8, !tbaa !5
  store i32 2, ptr %8, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %166, %139
  %145 = load i32, ptr %8, align 4, !tbaa !9
  %146 = load i32, ptr %6, align 4, !tbaa !9
  %147 = icmp sle i32 %145, %146
  br i1 %147, label %148, label %169

148:                                              ; preds = %144
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.jacobian, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !20
  %152 = load i32, ptr %8, align 4, !tbaa !9
  %153 = sub nsw i32 %152, 1
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds ptr, ptr %151, i64 %154
  %156 = load ptr, ptr %155, align 8, !tbaa !5
  %157 = load i32, ptr %6, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds double, ptr %156, i64 %158
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.jacobian, ptr %160, i32 0, i32 0
  %162 = load ptr, ptr %161, align 8, !tbaa !20
  %163 = load i32, ptr %8, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds ptr, ptr %162, i64 %164
  store ptr %159, ptr %165, align 8, !tbaa !5
  br label %166

166:                                              ; preds = %148
  %167 = load i32, ptr %8, align 4, !tbaa !9
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %8, align 4, !tbaa !9
  br label %144, !llvm.loop !21

169:                                              ; preds = %144
  %170 = load i32, ptr %6, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  %172 = sext i32 %171 to i64
  %173 = mul i64 8, %172
  %174 = call noalias ptr @malloc(i64 noundef %173) #5
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.jacobian, ptr %175, i32 0, i32 2
  store ptr %174, ptr %176, align 8, !tbaa !23
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.jacobian, ptr %177, i32 0, i32 2
  %179 = load ptr, ptr %178, align 8, !tbaa !23
  %180 = icmp eq ptr %179, null
  br i1 %180, label %181, label %191

181:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %182 = load i32, ptr %6, align 4, !tbaa !9
  %183 = add nsw i32 %182, 1
  %184 = sext i32 %183 to i64
  %185 = mul i64 8, %184
  %186 = trunc i64 %185 to i32
  store i32 %186, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %15) #4
  %187 = getelementptr inbounds [2048 x i8], ptr %15, i64 0, i64 0
  %188 = load i32, ptr %14, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %187, ptr noundef @.str, ptr noundef @.str.40, i32 noundef %188)
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = getelementptr inbounds [2048 x i8], ptr %15, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %189, ptr noundef @.str.2, ptr noundef @__func__.initialize_jacobian, i32 noundef 1543, ptr noundef %190)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %15) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %523

191:                                              ; preds = %169
  %192 = load i32, ptr %6, align 4, !tbaa !9
  %193 = load i32, ptr %6, align 4, !tbaa !9
  %194 = mul nsw i32 %192, %193
  %195 = add nsw i32 %194, 1
  %196 = sext i32 %195 to i64
  %197 = mul i64 8, %196
  %198 = call noalias ptr @malloc(i64 noundef %197) #5
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.jacobian, ptr %199, i32 0, i32 2
  %201 = load ptr, ptr %200, align 8, !tbaa !23
  %202 = getelementptr inbounds ptr, ptr %201, i64 1
  store ptr %198, ptr %202, align 8, !tbaa !5
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.jacobian, ptr %203, i32 0, i32 2
  %205 = load ptr, ptr %204, align 8, !tbaa !23
  %206 = getelementptr inbounds ptr, ptr %205, i64 1
  %207 = load ptr, ptr %206, align 8, !tbaa !5
  %208 = icmp eq ptr %207, null
  br i1 %208, label %209, label %221

209:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %210 = load i32, ptr %6, align 4, !tbaa !9
  %211 = load i32, ptr %6, align 4, !tbaa !9
  %212 = mul nsw i32 %210, %211
  %213 = add nsw i32 %212, 1
  %214 = sext i32 %213 to i64
  %215 = mul i64 8, %214
  %216 = trunc i64 %215 to i32
  store i32 %216, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %17) #4
  %217 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  %218 = load i32, ptr %16, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %217, ptr noundef @.str, ptr noundef @.str.41, i32 noundef %218)
  %219 = load ptr, ptr %7, align 8, !tbaa !5
  %220 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %219, ptr noundef @.str.2, ptr noundef @__func__.initialize_jacobian, i32 noundef 1544, ptr noundef %220)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %17) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %523

221:                                              ; preds = %191
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.jacobian, ptr %222, i32 0, i32 2
  %224 = load ptr, ptr %223, align 8, !tbaa !23
  %225 = getelementptr inbounds ptr, ptr %224, i64 0
  store ptr null, ptr %225, align 8, !tbaa !5
  store i32 2, ptr %8, align 4, !tbaa !9
  br label %226

226:                                              ; preds = %248, %221
  %227 = load i32, ptr %8, align 4, !tbaa !9
  %228 = load i32, ptr %6, align 4, !tbaa !9
  %229 = icmp sle i32 %227, %228
  br i1 %229, label %230, label %251

230:                                              ; preds = %226
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.jacobian, ptr %231, i32 0, i32 2
  %233 = load ptr, ptr %232, align 8, !tbaa !23
  %234 = load i32, ptr %8, align 4, !tbaa !9
  %235 = sub nsw i32 %234, 1
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds ptr, ptr %233, i64 %236
  %238 = load ptr, ptr %237, align 8, !tbaa !5
  %239 = load i32, ptr %6, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds double, ptr %238, i64 %240
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.jacobian, ptr %242, i32 0, i32 2
  %244 = load ptr, ptr %243, align 8, !tbaa !23
  %245 = load i32, ptr %8, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds ptr, ptr %244, i64 %246
  store ptr %241, ptr %247, align 8, !tbaa !5
  br label %248

248:                                              ; preds = %230
  %249 = load i32, ptr %8, align 4, !tbaa !9
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %8, align 4, !tbaa !9
  br label %226, !llvm.loop !24

251:                                              ; preds = %226
  %252 = load i32, ptr %6, align 4, !tbaa !9
  %253 = add nsw i32 %252, 1
  %254 = sext i32 %253 to i64
  %255 = mul i64 8, %254
  %256 = call noalias ptr @malloc(i64 noundef %255) #5
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.jacobian, ptr %257, i32 0, i32 3
  store ptr %256, ptr %258, align 8, !tbaa !25
  %259 = load ptr, ptr %5, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.jacobian, ptr %259, i32 0, i32 3
  %261 = load ptr, ptr %260, align 8, !tbaa !25
  %262 = icmp eq ptr %261, null
  br i1 %262, label %263, label %273

263:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %264 = load i32, ptr %6, align 4, !tbaa !9
  %265 = add nsw i32 %264, 1
  %266 = sext i32 %265 to i64
  %267 = mul i64 8, %266
  %268 = trunc i64 %267 to i32
  store i32 %268, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %19) #4
  %269 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  %270 = load i32, ptr %18, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %269, ptr noundef @.str, ptr noundef @.str.42, i32 noundef %270)
  %271 = load ptr, ptr %7, align 8, !tbaa !5
  %272 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %271, ptr noundef @.str.2, ptr noundef @__func__.initialize_jacobian, i32 noundef 1548, ptr noundef %272)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %19) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %523

273:                                              ; preds = %251
  %274 = load i32, ptr %6, align 4, !tbaa !9
  %275 = add nsw i32 %274, 1
  %276 = sext i32 %275 to i64
  %277 = mul i64 8, %276
  %278 = call noalias ptr @malloc(i64 noundef %277) #5
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.jacobian, ptr %279, i32 0, i32 1
  store ptr %278, ptr %280, align 8, !tbaa !26
  %281 = load ptr, ptr %5, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.jacobian, ptr %281, i32 0, i32 1
  %283 = load ptr, ptr %282, align 8, !tbaa !26
  %284 = icmp eq ptr %283, null
  br i1 %284, label %285, label %295

285:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %286 = load i32, ptr %6, align 4, !tbaa !9
  %287 = add nsw i32 %286, 1
  %288 = sext i32 %287 to i64
  %289 = mul i64 8, %288
  %290 = trunc i64 %289 to i32
  store i32 %290, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %21) #4
  %291 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  %292 = load i32, ptr %20, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %291, ptr noundef @.str, ptr noundef @.str.43, i32 noundef %292)
  %293 = load ptr, ptr %7, align 8, !tbaa !5
  %294 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %293, ptr noundef @.str.2, ptr noundef @__func__.initialize_jacobian, i32 noundef 1549, ptr noundef %294)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %21) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %523

295:                                              ; preds = %273
  %296 = load i32, ptr %6, align 4, !tbaa !9
  %297 = add nsw i32 %296, 1
  %298 = sext i32 %297 to i64
  %299 = mul i64 4, %298
  %300 = call noalias ptr @malloc(i64 noundef %299) #5
  %301 = load ptr, ptr %5, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.jacobian, ptr %301, i32 0, i32 4
  store ptr %300, ptr %302, align 8, !tbaa !27
  %303 = load ptr, ptr %5, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.jacobian, ptr %303, i32 0, i32 4
  %305 = load ptr, ptr %304, align 8, !tbaa !27
  %306 = icmp eq ptr %305, null
  br i1 %306, label %307, label %317

307:                                              ; preds = %295
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %308 = load i32, ptr %6, align 4, !tbaa !9
  %309 = add nsw i32 %308, 1
  %310 = sext i32 %309 to i64
  %311 = mul i64 4, %310
  %312 = trunc i64 %311 to i32
  store i32 %312, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %23) #4
  %313 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  %314 = load i32, ptr %22, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %313, ptr noundef @.str, ptr noundef @.str.44, i32 noundef %314)
  %315 = load ptr, ptr %7, align 8, !tbaa !5
  %316 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %315, ptr noundef @.str.2, ptr noundef @__func__.initialize_jacobian, i32 noundef 1550, ptr noundef %316)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %23) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %523

317:                                              ; preds = %295
  %318 = load ptr, ptr %5, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.jacobian, ptr %318, i32 0, i32 5
  %320 = load i32, ptr %319, align 8, !tbaa !11
  %321 = icmp ne i32 %320, 0
  br i1 %321, label %322, label %507

322:                                              ; preds = %317
  %323 = load ptr, ptr %5, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.jacobian, ptr %323, i32 0, i32 6
  store i32 1, ptr %324, align 4, !tbaa !19
  %325 = load ptr, ptr %5, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.jacobian, ptr %325, i32 0, i32 4
  %327 = load ptr, ptr %326, align 8, !tbaa !27
  %328 = load i32, ptr %6, align 4, !tbaa !9
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds i32, ptr %327, i64 %329
  %331 = getelementptr inbounds i32, ptr %330, i64 1
  %332 = load ptr, ptr %5, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.jacobian, ptr %332, i32 0, i32 18
  store ptr %331, ptr %333, align 8, !tbaa !28
  %334 = load ptr, ptr %5, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.jacobian, ptr %334, i32 0, i32 18
  %336 = load ptr, ptr %335, align 8, !tbaa !28
  %337 = load ptr, ptr %5, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.jacobian, ptr %337, i32 0, i32 7
  %339 = load i32, ptr %338, align 8, !tbaa !13
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds double, ptr %336, i64 %340
  %342 = load ptr, ptr %5, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.jacobian, ptr %342, i32 0, i32 14
  store ptr %341, ptr %343, align 8, !tbaa !29
  %344 = load ptr, ptr %5, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.jacobian, ptr %344, i32 0, i32 14
  %346 = load ptr, ptr %345, align 8, !tbaa !29
  %347 = load i32, ptr %6, align 4, !tbaa !9
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds i32, ptr %346, i64 %348
  %350 = load ptr, ptr %5, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.jacobian, ptr %350, i32 0, i32 15
  store ptr %349, ptr %351, align 8, !tbaa !30
  %352 = load ptr, ptr %5, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.jacobian, ptr %352, i32 0, i32 15
  %354 = load ptr, ptr %353, align 8, !tbaa !30
  %355 = load i32, ptr %6, align 4, !tbaa !9
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds i32, ptr %354, i64 %356
  %358 = load ptr, ptr %5, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.jacobian, ptr %358, i32 0, i32 20
  store ptr %357, ptr %359, align 8, !tbaa !31
  %360 = load ptr, ptr %5, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.jacobian, ptr %360, i32 0, i32 20
  %362 = load ptr, ptr %361, align 8, !tbaa !31
  %363 = load i32, ptr %6, align 4, !tbaa !9
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds i32, ptr %362, i64 %364
  %366 = getelementptr inbounds i32, ptr %365, i64 1
  %367 = load ptr, ptr %5, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.jacobian, ptr %367, i32 0, i32 21
  store ptr %366, ptr %368, align 8, !tbaa !32
  %369 = load ptr, ptr %5, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.jacobian, ptr %369, i32 0, i32 7
  %371 = load i32, ptr %370, align 8, !tbaa !13
  %372 = sext i32 %371 to i64
  %373 = mul i64 8, %372
  %374 = call noalias ptr @malloc(i64 noundef %373) #5
  %375 = load ptr, ptr %5, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.jacobian, ptr %375, i32 0, i32 18
  store ptr %374, ptr %376, align 8, !tbaa !28
  %377 = load ptr, ptr %5, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.jacobian, ptr %377, i32 0, i32 18
  %379 = load ptr, ptr %378, align 8, !tbaa !28
  %380 = icmp eq ptr %379, null
  br i1 %380, label %381, label %392

381:                                              ; preds = %322
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %382 = load ptr, ptr %5, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.jacobian, ptr %382, i32 0, i32 7
  %384 = load i32, ptr %383, align 8, !tbaa !13
  %385 = sext i32 %384 to i64
  %386 = mul i64 8, %385
  %387 = trunc i64 %386 to i32
  store i32 %387, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %25) #4
  %388 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  %389 = load i32, ptr %24, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %388, ptr noundef @.str, ptr noundef @.str.45, i32 noundef %389)
  %390 = load ptr, ptr %7, align 8, !tbaa !5
  %391 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %390, ptr noundef @.str.2, ptr noundef @__func__.initialize_jacobian, i32 noundef 1562, ptr noundef %391)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %25) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %523

392:                                              ; preds = %322
  %393 = load i32, ptr %6, align 4, !tbaa !9
  %394 = sext i32 %393 to i64
  %395 = mul i64 4, %394
  %396 = call noalias ptr @malloc(i64 noundef %395) #5
  %397 = load ptr, ptr %5, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.jacobian, ptr %397, i32 0, i32 14
  store ptr %396, ptr %398, align 8, !tbaa !29
  %399 = load ptr, ptr %5, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.jacobian, ptr %399, i32 0, i32 14
  %401 = load ptr, ptr %400, align 8, !tbaa !29
  %402 = icmp eq ptr %401, null
  br i1 %402, label %403, label %412

403:                                              ; preds = %392
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %404 = load i32, ptr %6, align 4, !tbaa !9
  %405 = sext i32 %404 to i64
  %406 = mul i64 4, %405
  %407 = trunc i64 %406 to i32
  store i32 %407, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %27) #4
  %408 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  %409 = load i32, ptr %26, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %408, ptr noundef @.str, ptr noundef @.str.46, i32 noundef %409)
  %410 = load ptr, ptr %7, align 8, !tbaa !5
  %411 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %410, ptr noundef @.str.2, ptr noundef @__func__.initialize_jacobian, i32 noundef 1563, ptr noundef %411)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %27) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %523

412:                                              ; preds = %392
  %413 = load i32, ptr %6, align 4, !tbaa !9
  %414 = sext i32 %413 to i64
  %415 = mul i64 4, %414
  %416 = call noalias ptr @malloc(i64 noundef %415) #5
  %417 = load ptr, ptr %5, align 8, !tbaa !5
  %418 = getelementptr inbounds %struct.jacobian, ptr %417, i32 0, i32 15
  store ptr %416, ptr %418, align 8, !tbaa !30
  %419 = load ptr, ptr %5, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.jacobian, ptr %419, i32 0, i32 15
  %421 = load ptr, ptr %420, align 8, !tbaa !30
  %422 = icmp eq ptr %421, null
  br i1 %422, label %423, label %432

423:                                              ; preds = %412
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %424 = load i32, ptr %6, align 4, !tbaa !9
  %425 = sext i32 %424 to i64
  %426 = mul i64 4, %425
  %427 = trunc i64 %426 to i32
  store i32 %427, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %29) #4
  %428 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  %429 = load i32, ptr %28, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %428, ptr noundef @.str, ptr noundef @.str.47, i32 noundef %429)
  %430 = load ptr, ptr %7, align 8, !tbaa !5
  %431 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %430, ptr noundef @.str.2, ptr noundef @__func__.initialize_jacobian, i32 noundef 1564, ptr noundef %431)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %29) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %523

432:                                              ; preds = %412
  %433 = load i32, ptr %6, align 4, !tbaa !9
  %434 = add nsw i32 %433, 1
  %435 = sext i32 %434 to i64
  %436 = mul i64 4, %435
  %437 = call noalias ptr @malloc(i64 noundef %436) #5
  %438 = load ptr, ptr %5, align 8, !tbaa !5
  %439 = getelementptr inbounds %struct.jacobian, ptr %438, i32 0, i32 20
  store ptr %437, ptr %439, align 8, !tbaa !31
  %440 = load ptr, ptr %5, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.jacobian, ptr %440, i32 0, i32 20
  %442 = load ptr, ptr %441, align 8, !tbaa !31
  %443 = icmp eq ptr %442, null
  br i1 %443, label %444, label %454

444:                                              ; preds = %432
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  %445 = load i32, ptr %6, align 4, !tbaa !9
  %446 = add nsw i32 %445, 1
  %447 = sext i32 %446 to i64
  %448 = mul i64 4, %447
  %449 = trunc i64 %448 to i32
  store i32 %449, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %31) #4
  %450 = getelementptr inbounds [2048 x i8], ptr %31, i64 0, i64 0
  %451 = load i32, ptr %30, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %450, ptr noundef @.str, ptr noundef @.str.48, i32 noundef %451)
  %452 = load ptr, ptr %7, align 8, !tbaa !5
  %453 = getelementptr inbounds [2048 x i8], ptr %31, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %452, ptr noundef @.str.2, ptr noundef @__func__.initialize_jacobian, i32 noundef 1565, ptr noundef %453)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %31) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  br label %523

454:                                              ; preds = %432
  %455 = load ptr, ptr %5, align 8, !tbaa !5
  %456 = getelementptr inbounds %struct.jacobian, ptr %455, i32 0, i32 13
  %457 = load i32, ptr %456, align 8, !tbaa !14
  %458 = sext i32 %457 to i64
  %459 = mul i64 4, %458
  %460 = call noalias ptr @malloc(i64 noundef %459) #5
  %461 = load ptr, ptr %5, align 8, !tbaa !5
  %462 = getelementptr inbounds %struct.jacobian, ptr %461, i32 0, i32 21
  store ptr %460, ptr %462, align 8, !tbaa !32
  %463 = load ptr, ptr %5, align 8, !tbaa !5
  %464 = getelementptr inbounds %struct.jacobian, ptr %463, i32 0, i32 21
  %465 = load ptr, ptr %464, align 8, !tbaa !32
  %466 = icmp eq ptr %465, null
  br i1 %466, label %467, label %478

467:                                              ; preds = %454
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  %468 = load ptr, ptr %5, align 8, !tbaa !5
  %469 = getelementptr inbounds %struct.jacobian, ptr %468, i32 0, i32 13
  %470 = load i32, ptr %469, align 8, !tbaa !14
  %471 = sext i32 %470 to i64
  %472 = mul i64 4, %471
  %473 = trunc i64 %472 to i32
  store i32 %473, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %33) #4
  %474 = getelementptr inbounds [2048 x i8], ptr %33, i64 0, i64 0
  %475 = load i32, ptr %32, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %474, ptr noundef @.str, ptr noundef @.str.49, i32 noundef %475)
  %476 = load ptr, ptr %7, align 8, !tbaa !5
  %477 = getelementptr inbounds [2048 x i8], ptr %33, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %476, ptr noundef @.str.2, ptr noundef @__func__.initialize_jacobian, i32 noundef 1566, ptr noundef %477)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %33) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  br label %523

478:                                              ; preds = %454
  %479 = load ptr, ptr %5, align 8, !tbaa !5
  %480 = getelementptr inbounds %struct.jacobian, ptr %479, i32 0, i32 19
  %481 = load i32, ptr %6, align 4, !tbaa !9
  %482 = load ptr, ptr %7, align 8, !tbaa !5
  %483 = call i32 @sp_num_alloc(ptr noundef %480, i32 noundef %481, ptr noundef %482)
  %484 = icmp eq i32 %483, 1
  br i1 %484, label %485, label %490

485:                                              ; preds = %478
  call void @llvm.lifetime.start.p0(i64 2048, ptr %34) #4
  %486 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  %487 = load ptr, ptr %7, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %486, ptr noundef @.str.3, ptr noundef @.str.50, ptr noundef %487)
  %488 = load ptr, ptr %7, align 8, !tbaa !5
  %489 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %488, ptr noundef @.str.2, ptr noundef @__func__.initialize_jacobian, i32 noundef 1569, ptr noundef %489)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %34) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %523

490:                                              ; preds = %478
  %491 = load ptr, ptr %5, align 8, !tbaa !5
  %492 = getelementptr inbounds %struct.jacobian, ptr %491, i32 0, i32 17
  %493 = load i32, ptr %6, align 4, !tbaa !9
  %494 = load i32, ptr %6, align 4, !tbaa !9
  %495 = load ptr, ptr %5, align 8, !tbaa !5
  %496 = getelementptr inbounds %struct.jacobian, ptr %495, i32 0, i32 7
  %497 = load i32, ptr %496, align 8, !tbaa !13
  %498 = load ptr, ptr %7, align 8, !tbaa !5
  %499 = call i32 @sp_mat_alloc(ptr noundef %492, i32 noundef %493, i32 noundef %494, i32 noundef %497, ptr noundef %498)
  %500 = icmp eq i32 %499, 1
  br i1 %500, label %501, label %506

501:                                              ; preds = %490
  call void @llvm.lifetime.start.p0(i64 2048, ptr %35) #4
  %502 = getelementptr inbounds [2048 x i8], ptr %35, i64 0, i64 0
  %503 = load ptr, ptr %7, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %502, ptr noundef @.str.3, ptr noundef @.str.51, ptr noundef %503)
  %504 = load ptr, ptr %7, align 8, !tbaa !5
  %505 = getelementptr inbounds [2048 x i8], ptr %35, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %504, ptr noundef @.str.2, ptr noundef @__func__.initialize_jacobian, i32 noundef 1572, ptr noundef %505)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %35) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %523

506:                                              ; preds = %490
  br label %507

507:                                              ; preds = %506, %317
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %508

508:                                              ; preds = %519, %507
  %509 = load i32, ptr %8, align 4, !tbaa !9
  %510 = load i32, ptr %6, align 4, !tbaa !9
  %511 = icmp sle i32 %509, %510
  br i1 %511, label %512, label %522

512:                                              ; preds = %508
  %513 = load ptr, ptr %5, align 8, !tbaa !5
  %514 = getelementptr inbounds %struct.jacobian, ptr %513, i32 0, i32 1
  %515 = load ptr, ptr %514, align 8, !tbaa !26
  %516 = load i32, ptr %8, align 4, !tbaa !9
  %517 = sext i32 %516 to i64
  %518 = getelementptr inbounds double, ptr %515, i64 %517
  store double 0x3E50000000000000, ptr %518, align 8, !tbaa !33
  br label %519

519:                                              ; preds = %512
  %520 = load i32, ptr %8, align 4, !tbaa !9
  %521 = add nsw i32 %520, 1
  store i32 %521, ptr %8, align 4, !tbaa !9
  br label %508, !llvm.loop !35

522:                                              ; preds = %508
  store i32 0, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %523

523:                                              ; preds = %522, %501, %485, %467, %444, %423, %403, %381, %307, %285, %263, %209, %181, %127, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %524 = load i32, ptr %4, align 4
  ret i32 %524
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 #4 = { nounwind }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 40}
!12 = !{!"jacobian", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136}
!13 = !{!12, !10, i64 48}
!14 = !{!12, !10, i64 72}
!15 = !{!12, !10, i64 52}
!16 = !{!12, !10, i64 56}
!17 = !{!12, !10, i64 60}
!18 = !{!12, !10, i64 64}
!19 = !{!12, !10, i64 44}
!20 = !{!12, !6, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!12, !6, i64 16}
!24 = distinct !{!24, !22}
!25 = !{!12, !6, i64 24}
!26 = !{!12, !6, i64 8}
!27 = !{!12, !6, i64 32}
!28 = !{!12, !6, i64 112}
!29 = !{!12, !6, i64 80}
!30 = !{!12, !6, i64 88}
!31 = !{!12, !6, i64 128}
!32 = !{!12, !6, i64 136}
!33 = !{!34, !34, i64 0}
!34 = !{!"double", !7, i64 0}
!35 = distinct !{!35, !22}


; 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 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [10 x i8], align 1
@__func__.initialize_jacobian = external hidden unnamed_addr constant [20 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [67 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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #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) #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @initialize_jacobian(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #3 {
  %4 = alloca [2048 x i8], align 16
  %5 = alloca [2048 x i8], align 16
  %6 = alloca [2048 x i8], align 16
  %7 = alloca [2048 x i8], align 16
  %8 = alloca [2048 x i8], align 16
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  %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 = icmp sgt i32 %1, 15
  %spec.select = zext i1 %18 to i32
  %19 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 %spec.select, ptr %19, align 8
  %20 = mul nsw i32 %1, 3
  %21 = sitofp i32 %20 to double
  %22 = sitofp i32 %1 to double
  %23 = fmul double %22, 2.000000e-01
  %24 = fmul double %23, %22
  %25 = fcmp ogt double %24, %21
  %. = select i1 %25, double %24, double %21
  %26 = fptosi double %. to i32
  %27 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 %26, ptr %27, align 8, !tbaa !5
  %28 = mul nsw i32 %26, 12
  %29 = sdiv i32 %28, 5
  %30 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 %29, ptr %30, align 8, !tbaa !11
  %31 = getelementptr inbounds i8, ptr %0, i64 52
  store <4 x i32> <i32 0, i32 4, i32 0, i32 0>, ptr %31, align 4, !tbaa !12
  %32 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 0, ptr %32, align 4, !tbaa !13
  %33 = add i32 %1, 1
  %34 = sext i32 %33 to i64
  %35 = shl nsw i64 %34, 3
  %36 = tail call noalias ptr @malloc(i64 noundef %35) #4
  store ptr %36, ptr %0, align 8, !tbaa !14
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %40

38:                                               ; preds = %3
  %39 = trunc i64 %35 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %4) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.38, i32 noundef %39) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_jacobian, i32 noundef 1538, ptr noundef nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %4) #5
  br label %.loopexit

40:                                               ; preds = %3
  %41 = mul nsw i32 %1, %1
  %42 = add nuw nsw i32 %41, 1
  %43 = zext nneg i32 %42 to i64
  %44 = shl nuw nsw i64 %43, 3
  %45 = tail call noalias ptr @malloc(i64 noundef %44) #4
  %46 = getelementptr inbounds i8, ptr %36, i64 8
  store ptr %45, ptr %46, align 8, !tbaa !15
  %47 = icmp eq ptr %45, null
  br i1 %47, label %48, label %50

48:                                               ; preds = %40
  %49 = trunc i64 %44 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %5) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str, ptr noundef nonnull @.str.39, i32 noundef %49) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_jacobian, i32 noundef 1539, ptr noundef nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %5) #5
  br label %.loopexit

50:                                               ; preds = %40
  store ptr null, ptr %36, align 8, !tbaa !15
  %.not153 = icmp slt i32 %1, 2
  br i1 %.not153, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %50
  %51 = zext nneg i32 %1 to i64
  %wide.trip.count = zext i32 %33 to i64
  %52 = add nsw i64 %wide.trip.count, -2
  %53 = add nsw i64 %wide.trip.count, -3
  %xtraiter = and i64 %52, 3
  %54 = icmp ult i64 %53, 3
  br i1 %54, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %52, -4
  br label %55

55:                                               ; preds = %55, %.lr.ph.new
  %indvars.iv = phi i64 [ 2, %.lr.ph.new ], [ %indvars.iv.next.3, %55 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %55 ]
  %56 = load ptr, ptr %0, align 8, !tbaa !14
  %57 = getelementptr ptr, ptr %56, i64 %indvars.iv
  %58 = getelementptr i8, ptr %57, i64 -8
  %59 = load ptr, ptr %58, align 8, !tbaa !15
  %60 = getelementptr inbounds double, ptr %59, i64 %51
  store ptr %60, ptr %57, align 8, !tbaa !15
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %61 = load ptr, ptr %0, align 8, !tbaa !14
  %62 = getelementptr ptr, ptr %61, i64 %indvars.iv.next
  %63 = getelementptr i8, ptr %62, i64 -8
  %64 = load ptr, ptr %63, align 8, !tbaa !15
  %65 = getelementptr inbounds double, ptr %64, i64 %51
  store ptr %65, ptr %62, align 8, !tbaa !15
  %66 = load ptr, ptr %0, align 8, !tbaa !14
  %67 = getelementptr ptr, ptr %66, i64 %indvars.iv
  %68 = getelementptr i8, ptr %67, i64 16
  %69 = getelementptr i8, ptr %67, i64 8
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  %71 = getelementptr inbounds double, ptr %70, i64 %51
  store ptr %71, ptr %68, align 8, !tbaa !15
  %72 = load ptr, ptr %0, align 8, !tbaa !14
  %73 = getelementptr ptr, ptr %72, i64 %indvars.iv
  %74 = getelementptr i8, ptr %73, i64 24
  %75 = getelementptr i8, ptr %73, i64 16
  %76 = load ptr, ptr %75, align 8, !tbaa !15
  %77 = getelementptr inbounds double, ptr %76, i64 %51
  store ptr %77, ptr %74, align 8, !tbaa !15
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %55, !llvm.loop !16

._crit_edge.loopexit.unr-lcssa:                   ; preds = %55, %.lr.ph
  %indvars.iv.unr = phi i64 [ 2, %.lr.ph ], [ %indvars.iv.next.3, %55 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %78 = load ptr, ptr %0, align 8, !tbaa !14
  %79 = getelementptr ptr, ptr %78, i64 %indvars.iv.epil
  %80 = getelementptr i8, ptr %79, i64 -8
  %81 = load ptr, ptr %80, align 8, !tbaa !15
  %82 = getelementptr inbounds double, ptr %81, i64 %51
  store ptr %82, ptr %79, align 8, !tbaa !15
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !18

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %50
  %83 = tail call noalias ptr @malloc(i64 noundef %35) #4
  %84 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %83, ptr %84, align 8, !tbaa !20
  %85 = icmp eq ptr %83, null
  br i1 %85, label %86, label %88

86:                                               ; preds = %._crit_edge
  %87 = trunc i64 %35 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %6) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %6, ptr noundef nonnull @.str, ptr noundef nonnull @.str.40, i32 noundef %87) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_jacobian, i32 noundef 1543, ptr noundef nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %6) #5
  br label %.loopexit

88:                                               ; preds = %._crit_edge
  %89 = tail call noalias ptr @malloc(i64 noundef %44) #4
  %90 = getelementptr inbounds i8, ptr %83, i64 8
  store ptr %89, ptr %90, align 8, !tbaa !15
  %91 = icmp eq ptr %89, null
  br i1 %91, label %92, label %94

92:                                               ; preds = %88
  %93 = trunc i64 %44 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str, ptr noundef nonnull @.str.41, i32 noundef %93) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_jacobian, i32 noundef 1544, ptr noundef nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #5
  br label %.loopexit

94:                                               ; preds = %88
  store ptr null, ptr %83, align 8, !tbaa !15
  br i1 %.not153, label %._crit_edge159, label %.lr.ph158

.lr.ph158:                                        ; preds = %94
  %95 = zext nneg i32 %1 to i64
  %wide.trip.count168 = zext i32 %33 to i64
  %96 = add nsw i64 %wide.trip.count168, -2
  %97 = add nsw i64 %wide.trip.count168, -3
  %xtraiter177 = and i64 %96, 3
  %98 = icmp ult i64 %97, 3
  br i1 %98, label %._crit_edge159.loopexit.unr-lcssa, label %.lr.ph158.new

.lr.ph158.new:                                    ; preds = %.lr.ph158
  %unroll_iter180 = and i64 %96, -4
  br label %99

99:                                               ; preds = %99, %.lr.ph158.new
  %indvars.iv165 = phi i64 [ 2, %.lr.ph158.new ], [ %indvars.iv.next166.3, %99 ]
  %niter181 = phi i64 [ 0, %.lr.ph158.new ], [ %niter181.next.3, %99 ]
  %100 = load ptr, ptr %84, align 8, !tbaa !20
  %101 = getelementptr ptr, ptr %100, i64 %indvars.iv165
  %102 = getelementptr i8, ptr %101, i64 -8
  %103 = load ptr, ptr %102, align 8, !tbaa !15
  %104 = getelementptr inbounds double, ptr %103, i64 %95
  store ptr %104, ptr %101, align 8, !tbaa !15
  %indvars.iv.next166 = or disjoint i64 %indvars.iv165, 1
  %105 = load ptr, ptr %84, align 8, !tbaa !20
  %106 = getelementptr ptr, ptr %105, i64 %indvars.iv.next166
  %107 = getelementptr i8, ptr %106, i64 -8
  %108 = load ptr, ptr %107, align 8, !tbaa !15
  %109 = getelementptr inbounds double, ptr %108, i64 %95
  store ptr %109, ptr %106, align 8, !tbaa !15
  %110 = load ptr, ptr %84, align 8, !tbaa !20
  %111 = getelementptr ptr, ptr %110, i64 %indvars.iv165
  %112 = getelementptr i8, ptr %111, i64 16
  %113 = getelementptr i8, ptr %111, i64 8
  %114 = load ptr, ptr %113, align 8, !tbaa !15
  %115 = getelementptr inbounds double, ptr %114, i64 %95
  store ptr %115, ptr %112, align 8, !tbaa !15
  %116 = load ptr, ptr %84, align 8, !tbaa !20
  %117 = getelementptr ptr, ptr %116, i64 %indvars.iv165
  %118 = getelementptr i8, ptr %117, i64 24
  %119 = getelementptr i8, ptr %117, i64 16
  %120 = load ptr, ptr %119, align 8, !tbaa !15
  %121 = getelementptr inbounds double, ptr %120, i64 %95
  store ptr %121, ptr %118, align 8, !tbaa !15
  %indvars.iv.next166.3 = add nuw nsw i64 %indvars.iv165, 4
  %niter181.next.3 = add i64 %niter181, 4
  %niter181.ncmp.3 = icmp eq i64 %niter181.next.3, %unroll_iter180
  br i1 %niter181.ncmp.3, label %._crit_edge159.loopexit.unr-lcssa, label %99, !llvm.loop !21

._crit_edge159.loopexit.unr-lcssa:                ; preds = %99, %.lr.ph158
  %indvars.iv165.unr = phi i64 [ 2, %.lr.ph158 ], [ %indvars.iv.next166.3, %99 ]
  %lcmp.mod179.not = icmp eq i64 %xtraiter177, 0
  br i1 %lcmp.mod179.not, label %._crit_edge159, label %.epil.preheader176

.epil.preheader176:                               ; preds = %._crit_edge159.loopexit.unr-lcssa, %.epil.preheader176
  %indvars.iv165.epil = phi i64 [ %indvars.iv.next166.epil, %.epil.preheader176 ], [ %indvars.iv165.unr, %._crit_edge159.loopexit.unr-lcssa ]
  %epil.iter178 = phi i64 [ %epil.iter178.next, %.epil.preheader176 ], [ 0, %._crit_edge159.loopexit.unr-lcssa ]
  %122 = load ptr, ptr %84, align 8, !tbaa !20
  %123 = getelementptr ptr, ptr %122, i64 %indvars.iv165.epil
  %124 = getelementptr i8, ptr %123, i64 -8
  %125 = load ptr, ptr %124, align 8, !tbaa !15
  %126 = getelementptr inbounds double, ptr %125, i64 %95
  store ptr %126, ptr %123, align 8, !tbaa !15
  %indvars.iv.next166.epil = add nuw nsw i64 %indvars.iv165.epil, 1
  %epil.iter178.next = add i64 %epil.iter178, 1
  %epil.iter178.cmp.not = icmp eq i64 %epil.iter178.next, %xtraiter177
  br i1 %epil.iter178.cmp.not, label %._crit_edge159, label %.epil.preheader176, !llvm.loop !22

._crit_edge159:                                   ; preds = %._crit_edge159.loopexit.unr-lcssa, %.epil.preheader176, %94
  %127 = tail call noalias ptr @malloc(i64 noundef %35) #4
  %128 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %127, ptr %128, align 8, !tbaa !23
  %129 = icmp eq ptr %127, null
  br i1 %129, label %130, label %132

130:                                              ; preds = %._crit_edge159
  %131 = trunc i64 %35 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str, ptr noundef nonnull @.str.42, i32 noundef %131) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_jacobian, i32 noundef 1548, ptr noundef nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #5
  br label %.loopexit

132:                                              ; preds = %._crit_edge159
  %133 = tail call noalias ptr @malloc(i64 noundef %35) #4
  %134 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %133, ptr %134, align 8, !tbaa !24
  %135 = icmp eq ptr %133, null
  br i1 %135, label %136, label %138

136:                                              ; preds = %132
  %137 = trunc i64 %35 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.43, i32 noundef %137) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_jacobian, i32 noundef 1549, ptr noundef nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #5
  br label %.loopexit

138:                                              ; preds = %132
  %139 = shl nsw i64 %34, 2
  %140 = tail call noalias ptr @malloc(i64 noundef %139) #4
  %141 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %140, ptr %141, align 8, !tbaa !25
  %142 = icmp eq ptr %140, null
  br i1 %142, label %143, label %145

143:                                              ; preds = %138
  %144 = trunc i64 %139 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str, ptr noundef nonnull @.str.44, i32 noundef %144) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_jacobian, i32 noundef 1550, ptr noundef nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #5
  br label %.loopexit

145:                                              ; preds = %138
  br i1 %18, label %146, label %200

146:                                              ; preds = %145
  store i32 1, ptr %32, align 4, !tbaa !13
  %147 = zext nneg i32 %1 to i64
  %148 = getelementptr inbounds i32, ptr %140, i64 %147
  %149 = getelementptr inbounds i8, ptr %148, i64 4
  %150 = getelementptr inbounds i8, ptr %0, i64 112
  %151 = sext i32 %26 to i64
  %152 = getelementptr inbounds double, ptr %149, i64 %151
  %153 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %152, ptr %153, align 8, !tbaa !26
  %154 = getelementptr inbounds i32, ptr %152, i64 %147
  %155 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %154, ptr %155, align 8, !tbaa !27
  %156 = getelementptr inbounds i32, ptr %154, i64 %147
  %157 = getelementptr inbounds i8, ptr %0, i64 128
  store ptr %156, ptr %157, align 8, !tbaa !28
  %158 = getelementptr inbounds i32, ptr %156, i64 %147
  %159 = getelementptr inbounds i8, ptr %158, i64 4
  %160 = getelementptr inbounds i8, ptr %0, i64 136
  store ptr %159, ptr %160, align 8, !tbaa !29
  %161 = shl nsw i64 %151, 3
  %162 = tail call noalias ptr @malloc(i64 noundef %161) #4
  store ptr %162, ptr %150, align 8, !tbaa !30
  %163 = icmp eq ptr %162, null
  br i1 %163, label %164, label %166

164:                                              ; preds = %146
  %165 = shl i32 %26, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str, ptr noundef nonnull @.str.45, i32 noundef %165) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_jacobian, i32 noundef 1562, ptr noundef nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #5
  br label %.loopexit

166:                                              ; preds = %146
  %167 = shl nuw nsw i64 %147, 2
  %168 = tail call noalias ptr @malloc(i64 noundef %167) #4
  store ptr %168, ptr %153, align 8, !tbaa !26
  %169 = icmp eq ptr %168, null
  br i1 %169, label %170, label %172

170:                                              ; preds = %166
  %171 = trunc i64 %167 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str, ptr noundef nonnull @.str.46, i32 noundef %171) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_jacobian, i32 noundef 1563, ptr noundef nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #5
  br label %.loopexit

172:                                              ; preds = %166
  %173 = tail call noalias ptr @malloc(i64 noundef %167) #4
  store ptr %173, ptr %155, align 8, !tbaa !27
  %174 = icmp eq ptr %173, null
  br i1 %174, label %175, label %177

175:                                              ; preds = %172
  %176 = trunc i64 %167 to i32
  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, ptr noundef nonnull @.str.47, i32 noundef %176) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_jacobian, i32 noundef 1564, ptr noundef nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #5
  br label %.loopexit

177:                                              ; preds = %172
  %178 = tail call noalias ptr @malloc(i64 noundef %139) #4
  store ptr %178, ptr %157, align 8, !tbaa !28
  %179 = icmp eq ptr %178, null
  br i1 %179, label %180, label %182

180:                                              ; preds = %177
  %181 = trunc i64 %139 to i32
  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, ptr noundef nonnull @.str.48, i32 noundef %181) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_jacobian, i32 noundef 1565, ptr noundef nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #5
  br label %.loopexit

182:                                              ; preds = %177
  %183 = sext i32 %29 to i64
  %184 = shl nsw i64 %183, 2
  %185 = tail call noalias ptr @malloc(i64 noundef %184) #4
  store ptr %185, ptr %160, align 8, !tbaa !29
  %186 = icmp eq ptr %185, null
  br i1 %186, label %187, label %189

187:                                              ; preds = %182
  %188 = shl nsw i32 %29, 2
  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, ptr noundef nonnull @.str.49, i32 noundef %188) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_jacobian, i32 noundef 1566, ptr noundef nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #5
  br label %.loopexit

189:                                              ; preds = %182
  %190 = getelementptr inbounds i8, ptr %0, i64 120
  %191 = tail call i32 @sp_num_alloc(ptr noundef nonnull %190, i32 noundef %1, ptr noundef %2) #5
  %192 = icmp eq i32 %191, 1
  br i1 %192, label %193, label %194

193:                                              ; preds = %189
  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.3, ptr noundef nonnull @.str.50, ptr noundef %2) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_jacobian, i32 noundef 1569, ptr noundef nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %16) #5
  br label %.loopexit

194:                                              ; preds = %189
  %195 = getelementptr inbounds i8, ptr %0, i64 104
  %196 = load i32, ptr %27, align 8, !tbaa !5
  %197 = tail call i32 @sp_mat_alloc(ptr noundef nonnull %195, i32 noundef %1, i32 noundef %1, i32 noundef %196, ptr noundef %2) #5
  %198 = icmp eq i32 %197, 1
  br i1 %198, label %199, label %.lr.ph163

199:                                              ; preds = %194
  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.3, ptr noundef nonnull @.str.51, ptr noundef %2) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_jacobian, i32 noundef 1572, ptr noundef nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %17) #5
  br label %.loopexit

200:                                              ; preds = %145
  %.not152160 = icmp slt i32 %1, 1
  br i1 %.not152160, label %.loopexit, label %.lr.ph163

.lr.ph163:                                        ; preds = %194, %200
  %201 = load ptr, ptr %134, align 8, !tbaa !24
  %wide.trip.count173 = zext i32 %33 to i64
  %202 = add nsw i64 %wide.trip.count173, -1
  %min.iters.check = icmp ult i64 %202, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph163
  %n.vec = and i64 %202, -4
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %203 = getelementptr inbounds double, ptr %201, i64 %offset.idx
  %204 = getelementptr inbounds i8, ptr %203, i64 16
  store <2 x double> <double 0x3E50000000000000, double 0x3E50000000000000>, ptr %203, align 8, !tbaa !31
  store <2 x double> <double 0x3E50000000000000, double 0x3E50000000000000>, ptr %204, align 8, !tbaa !31
  %index.next = add nuw i64 %index, 4
  %205 = icmp eq i64 %index.next, %n.vec
  br i1 %205, label %middle.block, label %vector.body, !llvm.loop !33

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %202, %n.vec
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph163
  %indvars.iv170.ph = phi i64 [ 1, %.lr.ph163 ], [ %ind.end, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv170 = phi i64 [ %indvars.iv.next171, %scalar.ph ], [ %indvars.iv170.ph, %scalar.ph.preheader ]
  %206 = getelementptr inbounds double, ptr %201, i64 %indvars.iv170
  store double 0x3E50000000000000, ptr %206, align 8, !tbaa !31
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %exitcond174.not = icmp eq i64 %indvars.iv.next171, %wide.trip.count173
  br i1 %exitcond174.not, label %.loopexit, label %scalar.ph, !llvm.loop !36

.loopexit:                                        ; preds = %scalar.ph, %middle.block, %200, %199, %193, %187, %180, %175, %170, %164, %143, %136, %130, %92, %86, %48, %38
  %.0 = phi i32 [ 1, %38 ], [ 1, %48 ], [ 1, %86 ], [ 1, %92 ], [ 1, %130 ], [ 1, %136 ], [ 1, %143 ], [ 1, %164 ], [ 1, %170 ], [ 1, %175 ], [ 1, %180 ], [ 1, %187 ], [ 1, %193 ], [ 1, %199 ], [ 0, %200 ], [ 0, %middle.block ], [ 0, %scalar.ph ]
  ret i32 %.0
}

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 #4 = { nounwind allocsize(0) }
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, !10, i64 48}
!6 = !{!"jacobian", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !7, i64 80, !7, i64 88, !10, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 72}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !10, i64 44}
!14 = !{!6, !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = !{!6, !7, i64 16}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !19}
!23 = !{!6, !7, i64 24}
!24 = !{!6, !7, i64 8}
!25 = !{!6, !7, i64 32}
!26 = !{!6, !7, i64 80}
!27 = !{!6, !7, i64 88}
!28 = !{!6, !7, i64 128}
!29 = !{!6, !7, i64 136}
!30 = !{!6, !7, i64 112}
!31 = !{!32, !32, i64 0}
!32 = !{!"double", !8, i64 0}
!33 = distinct !{!33, !17, !34, !35}
!34 = !{!"llvm.loop.isvectorized", i32 1}
!35 = !{!"llvm.loop.unroll.runtime.disable"}
!36 = distinct !{!36, !17, !35, !34}


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