; 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.numjac_workspace = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, 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.52 = external hidden unnamed_addr constant [14 x i8], align 1
@__func__.initialize_numjac_workspace = external hidden unnamed_addr constant [28 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [14 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_numjac_workspace(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 i32, align 4
  %11 = alloca [2048 x i8], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [2048 x i8], align 16
  %15 = alloca i32, align 4
  %16 = alloca [2048 x i8], align 16
  %17 = alloca i32, align 4
  %18 = alloca [2048 x i8], align 16
  %19 = alloca i32, align 4
  %20 = alloca [2048 x i8], align 16
  %21 = alloca i32, align 4
  %22 = alloca [2048 x i8], align 16
  %23 = alloca i32, align 4
  %24 = alloca [2048 x i8], align 16
  %25 = alloca i32, align 4
  %26 = alloca [2048 x i8], align 16
  %27 = alloca i32, align 4
  %28 = alloca [2048 x i8], align 16
  %29 = alloca i32, align 4
  %30 = alloca [2048 x i8], align 16
  %31 = alloca i32, align 4
  %32 = alloca [2048 x i8], align 16
  %33 = alloca i32, align 4
  %34 = alloca [2048 x i8], align 16
  %35 = alloca i32, align 4
  %36 = alloca [2048 x i8], align 16
  %37 = alloca i32, align 4
  %38 = 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %9, align 4, !tbaa !9
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = mul i64 8, %42
  %44 = call noalias ptr @malloc(i64 noundef %43) #5
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.numjac_workspace, ptr %45, i32 0, i32 0
  store ptr %44, ptr %46, align 8, !tbaa !11
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.numjac_workspace, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !11
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %60

51:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = mul i64 8, %53
  %55 = trunc i64 %54 to i32
  store i32 %55, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %11) #4
  %56 = getelementptr inbounds [2048 x i8], ptr %11, i64 0, i64 0
  %57 = load i32, ptr %10, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %56, ptr noundef @.str, ptr noundef @.str.52, i32 noundef %57)
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds [2048 x i8], ptr %11, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %58, ptr noundef @.str.2, ptr noundef @__func__.initialize_numjac_workspace, i32 noundef 1607, ptr noundef %59)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %11) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %363

60:                                               ; preds = %3
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = mul i64 8, %62
  %64 = call noalias ptr @malloc(i64 noundef %63) #5
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.numjac_workspace, ptr %65, i32 0, i32 1
  store ptr %64, ptr %66, align 8, !tbaa !13
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.numjac_workspace, ptr %67, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !13
  %70 = icmp eq ptr %69, null
  br i1 %70, label %71, label %80

71:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = mul i64 8, %73
  %75 = trunc i64 %74 to i32
  store i32 %75, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %14) #4
  %76 = getelementptr inbounds [2048 x i8], ptr %14, i64 0, i64 0
  %77 = load i32, ptr %13, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %76, ptr noundef @.str, ptr noundef @.str.53, i32 noundef %77)
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds [2048 x i8], ptr %14, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %78, ptr noundef @.str.2, ptr noundef @__func__.initialize_numjac_workspace, i32 noundef 1608, ptr noundef %79)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %14) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %363

80:                                               ; preds = %60
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = mul i64 8, %82
  %84 = call noalias ptr @malloc(i64 noundef %83) #5
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.numjac_workspace, ptr %85, i32 0, i32 2
  store ptr %84, ptr %86, align 8, !tbaa !14
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.numjac_workspace, ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !14
  %90 = icmp eq ptr %89, null
  br i1 %90, label %91, label %100

91:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %92 = load i32, ptr %9, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = mul i64 8, %93
  %95 = trunc i64 %94 to i32
  store i32 %95, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %16) #4
  %96 = getelementptr inbounds [2048 x i8], ptr %16, i64 0, i64 0
  %97 = load i32, ptr %15, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %96, ptr noundef @.str, ptr noundef @.str.54, i32 noundef %97)
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds [2048 x i8], ptr %16, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %98, ptr noundef @.str.2, ptr noundef @__func__.initialize_numjac_workspace, i32 noundef 1609, ptr noundef %99)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %16) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %363

100:                                              ; preds = %80
  %101 = load i32, ptr %9, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = mul i64 8, %102
  %104 = call noalias ptr @malloc(i64 noundef %103) #5
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.numjac_workspace, ptr %105, i32 0, i32 3
  store ptr %104, ptr %106, align 8, !tbaa !15
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.numjac_workspace, ptr %107, i32 0, i32 3
  %109 = load ptr, ptr %108, align 8, !tbaa !15
  %110 = icmp eq ptr %109, null
  br i1 %110, label %111, label %120

111:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %112 = load i32, ptr %9, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = mul i64 8, %113
  %115 = trunc i64 %114 to i32
  store i32 %115, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %18) #4
  %116 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  %117 = load i32, ptr %17, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %116, ptr noundef @.str, ptr noundef @.str.55, i32 noundef %117)
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %118, ptr noundef @.str.2, ptr noundef @__func__.initialize_numjac_workspace, i32 noundef 1610, ptr noundef %119)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %18) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %363

120:                                              ; preds = %100
  %121 = load i32, ptr %9, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = mul i64 8, %122
  %124 = call noalias ptr @malloc(i64 noundef %123) #5
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.numjac_workspace, ptr %125, i32 0, i32 4
  store ptr %124, ptr %126, align 8, !tbaa !16
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.numjac_workspace, ptr %127, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !16
  %130 = icmp eq ptr %129, null
  br i1 %130, label %131, label %140

131:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %132 = load i32, ptr %9, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = mul i64 8, %133
  %135 = trunc i64 %134 to i32
  store i32 %135, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %20) #4
  %136 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  %137 = load i32, ptr %19, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %136, ptr noundef @.str, ptr noundef @.str.56, i32 noundef %137)
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %138, ptr noundef @.str.2, ptr noundef @__func__.initialize_numjac_workspace, i32 noundef 1611, ptr noundef %139)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %20) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %363

140:                                              ; preds = %120
  %141 = load i32, ptr %9, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = mul i64 8, %142
  %144 = call noalias ptr @malloc(i64 noundef %143) #5
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.numjac_workspace, ptr %145, i32 0, i32 5
  store ptr %144, ptr %146, align 8, !tbaa !17
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.numjac_workspace, ptr %147, i32 0, i32 5
  %149 = load ptr, ptr %148, align 8, !tbaa !17
  %150 = icmp eq ptr %149, null
  br i1 %150, label %151, label %160

151:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %152 = load i32, ptr %9, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = mul i64 8, %153
  %155 = trunc i64 %154 to i32
  store i32 %155, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %22) #4
  %156 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  %157 = load i32, ptr %21, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %156, ptr noundef @.str, ptr noundef @.str.57, i32 noundef %157)
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %158, ptr noundef @.str.2, ptr noundef @__func__.initialize_numjac_workspace, i32 noundef 1612, ptr noundef %159)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %22) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %363

160:                                              ; preds = %140
  %161 = load i32, ptr %9, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = mul i64 8, %162
  %164 = call noalias ptr @malloc(i64 noundef %163) #5
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.numjac_workspace, ptr %165, i32 0, i32 6
  store ptr %164, ptr %166, align 8, !tbaa !18
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.numjac_workspace, ptr %167, i32 0, i32 6
  %169 = load ptr, ptr %168, align 8, !tbaa !18
  %170 = icmp eq ptr %169, null
  br i1 %170, label %171, label %180

171:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %172 = load i32, ptr %9, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = mul i64 8, %173
  %175 = trunc i64 %174 to i32
  store i32 %175, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #4
  %176 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %177 = load i32, ptr %23, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %176, ptr noundef @.str, ptr noundef @.str.58, i32 noundef %177)
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %178, ptr noundef @.str.2, ptr noundef @__func__.initialize_numjac_workspace, i32 noundef 1613, ptr noundef %179)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %363

180:                                              ; preds = %160
  %181 = load i32, ptr %9, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = mul i64 8, %182
  %184 = call noalias ptr @malloc(i64 noundef %183) #5
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.numjac_workspace, ptr %185, i32 0, i32 7
  store ptr %184, ptr %186, align 8, !tbaa !19
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.numjac_workspace, ptr %187, i32 0, i32 7
  %189 = load ptr, ptr %188, align 8, !tbaa !19
  %190 = icmp eq ptr %189, null
  br i1 %190, label %191, label %200

191:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %192 = load i32, ptr %9, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = mul i64 8, %193
  %195 = trunc i64 %194 to i32
  store i32 %195, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %26) #4
  %196 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  %197 = load i32, ptr %25, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %196, ptr noundef @.str, ptr noundef @.str.59, i32 noundef %197)
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %198, ptr noundef @.str.2, ptr noundef @__func__.initialize_numjac_workspace, i32 noundef 1614, ptr noundef %199)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %26) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %363

200:                                              ; preds = %180
  %201 = load i32, ptr %9, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = mul i64 8, %202
  %204 = call noalias ptr @malloc(i64 noundef %203) #5
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.numjac_workspace, ptr %205, i32 0, i32 8
  store ptr %204, ptr %206, align 8, !tbaa !20
  %207 = load ptr, ptr %5, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.numjac_workspace, ptr %207, i32 0, i32 8
  %209 = load ptr, ptr %208, align 8, !tbaa !20
  %210 = icmp eq ptr %209, null
  br i1 %210, label %211, label %220

211:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %212 = load i32, ptr %9, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = mul i64 8, %213
  %215 = trunc i64 %214 to i32
  store i32 %215, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %28) #4
  %216 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  %217 = load i32, ptr %27, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %216, ptr noundef @.str, ptr noundef @.str.60, i32 noundef %217)
  %218 = load ptr, ptr %7, align 8, !tbaa !5
  %219 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %218, ptr noundef @.str.2, ptr noundef @__func__.initialize_numjac_workspace, i32 noundef 1615, ptr noundef %219)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %28) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  br label %363

220:                                              ; preds = %200
  %221 = load i32, ptr %9, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = mul i64 8, %222
  %224 = call noalias ptr @malloc(i64 noundef %223) #5
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.numjac_workspace, ptr %225, i32 0, i32 9
  store ptr %224, ptr %226, align 8, !tbaa !21
  %227 = load ptr, ptr %5, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.numjac_workspace, ptr %227, i32 0, i32 9
  %229 = load ptr, ptr %228, align 8, !tbaa !21
  %230 = icmp eq ptr %229, null
  br i1 %230, label %231, label %240

231:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %232 = load i32, ptr %9, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = mul i64 8, %233
  %235 = trunc i64 %234 to i32
  store i32 %235, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %30) #4
  %236 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  %237 = load i32, ptr %29, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %236, ptr noundef @.str, ptr noundef @.str.61, i32 noundef %237)
  %238 = load ptr, ptr %7, align 8, !tbaa !5
  %239 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %238, ptr noundef @.str.2, ptr noundef @__func__.initialize_numjac_workspace, i32 noundef 1616, ptr noundef %239)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %30) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %363

240:                                              ; preds = %220
  %241 = load i32, ptr %6, align 4, !tbaa !9
  %242 = add nsw i32 %241, 1
  %243 = sext i32 %242 to i64
  %244 = mul i64 8, %243
  %245 = call noalias ptr @malloc(i64 noundef %244) #5
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.numjac_workspace, ptr %246, i32 0, i32 10
  store ptr %245, ptr %247, align 8, !tbaa !22
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.numjac_workspace, ptr %248, i32 0, i32 10
  %250 = load ptr, ptr %249, align 8, !tbaa !22
  %251 = icmp eq ptr %250, null
  br i1 %251, label %252, label %262

252:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %253 = load i32, ptr %6, align 4, !tbaa !9
  %254 = add nsw i32 %253, 1
  %255 = sext i32 %254 to i64
  %256 = mul i64 8, %255
  %257 = trunc i64 %256 to i32
  store i32 %257, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %32) #4
  %258 = getelementptr inbounds [2048 x i8], ptr %32, i64 0, i64 0
  %259 = load i32, ptr %31, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %258, ptr noundef @.str, ptr noundef @.str.62, i32 noundef %259)
  %260 = load ptr, ptr %7, align 8, !tbaa !5
  %261 = getelementptr inbounds [2048 x i8], ptr %32, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %260, ptr noundef @.str.2, ptr noundef @__func__.initialize_numjac_workspace, i32 noundef 1618, ptr noundef %261)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %32) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  br label %363

262:                                              ; preds = %240
  %263 = load i32, ptr %6, align 4, !tbaa !9
  %264 = load i32, ptr %6, align 4, !tbaa !9
  %265 = mul nsw i32 %263, %264
  %266 = add nsw i32 %265, 1
  %267 = sext i32 %266 to i64
  %268 = mul i64 8, %267
  %269 = call noalias ptr @malloc(i64 noundef %268) #5
  %270 = load ptr, ptr %5, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.numjac_workspace, ptr %270, i32 0, i32 10
  %272 = load ptr, ptr %271, align 8, !tbaa !22
  %273 = getelementptr inbounds ptr, ptr %272, i64 1
  store ptr %269, ptr %273, align 8, !tbaa !5
  %274 = load ptr, ptr %5, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.numjac_workspace, ptr %274, i32 0, i32 10
  %276 = load ptr, ptr %275, align 8, !tbaa !22
  %277 = getelementptr inbounds ptr, ptr %276, i64 1
  %278 = load ptr, ptr %277, align 8, !tbaa !5
  %279 = icmp eq ptr %278, null
  br i1 %279, label %280, label %292

280:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  %281 = load i32, ptr %6, align 4, !tbaa !9
  %282 = load i32, ptr %6, align 4, !tbaa !9
  %283 = mul nsw i32 %281, %282
  %284 = add nsw i32 %283, 1
  %285 = sext i32 %284 to i64
  %286 = mul i64 8, %285
  %287 = trunc i64 %286 to i32
  store i32 %287, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %34) #4
  %288 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  %289 = load i32, ptr %33, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %288, ptr noundef @.str, ptr noundef @.str.63, i32 noundef %289)
  %290 = load ptr, ptr %7, align 8, !tbaa !5
  %291 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %290, ptr noundef @.str.2, ptr noundef @__func__.initialize_numjac_workspace, i32 noundef 1619, ptr noundef %291)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %34) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  br label %363

292:                                              ; preds = %262
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.numjac_workspace, ptr %293, i32 0, i32 10
  %295 = load ptr, ptr %294, align 8, !tbaa !22
  %296 = getelementptr inbounds ptr, ptr %295, i64 0
  store ptr null, ptr %296, align 8, !tbaa !5
  store i32 2, ptr %8, align 4, !tbaa !9
  br label %297

297:                                              ; preds = %319, %292
  %298 = load i32, ptr %8, align 4, !tbaa !9
  %299 = load i32, ptr %6, align 4, !tbaa !9
  %300 = icmp sle i32 %298, %299
  br i1 %300, label %301, label %322

301:                                              ; preds = %297
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.numjac_workspace, ptr %302, i32 0, i32 10
  %304 = load ptr, ptr %303, align 8, !tbaa !22
  %305 = load i32, ptr %8, align 4, !tbaa !9
  %306 = sub nsw i32 %305, 1
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds ptr, ptr %304, i64 %307
  %309 = load ptr, ptr %308, align 8, !tbaa !5
  %310 = load i32, ptr %6, align 4, !tbaa !9
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds double, ptr %309, i64 %311
  %313 = load ptr, ptr %5, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.numjac_workspace, ptr %313, i32 0, i32 10
  %315 = load ptr, ptr %314, align 8, !tbaa !22
  %316 = load i32, ptr %8, align 4, !tbaa !9
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds ptr, ptr %315, i64 %317
  store ptr %312, ptr %318, align 8, !tbaa !5
  br label %319

319:                                              ; preds = %301
  %320 = load i32, ptr %8, align 4, !tbaa !9
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %8, align 4, !tbaa !9
  br label %297, !llvm.loop !23

322:                                              ; preds = %297
  %323 = load i32, ptr %9, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = mul i64 4, %324
  %326 = call noalias ptr @malloc(i64 noundef %325) #5
  %327 = load ptr, ptr %5, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.numjac_workspace, ptr %327, i32 0, i32 11
  store ptr %326, ptr %328, align 8, !tbaa !25
  %329 = load ptr, ptr %5, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.numjac_workspace, ptr %329, i32 0, i32 11
  %331 = load ptr, ptr %330, align 8, !tbaa !25
  %332 = icmp eq ptr %331, null
  br i1 %332, label %333, label %342

333:                                              ; preds = %322
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  %334 = load i32, ptr %9, align 4, !tbaa !9
  %335 = sext i32 %334 to i64
  %336 = mul i64 4, %335
  %337 = trunc i64 %336 to i32
  store i32 %337, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %36) #4
  %338 = getelementptr inbounds [2048 x i8], ptr %36, i64 0, i64 0
  %339 = load i32, ptr %35, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %338, ptr noundef @.str, ptr noundef @.str.64, i32 noundef %339)
  %340 = load ptr, ptr %7, align 8, !tbaa !5
  %341 = getelementptr inbounds [2048 x i8], ptr %36, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %340, ptr noundef @.str.2, ptr noundef @__func__.initialize_numjac_workspace, i32 noundef 1623, ptr noundef %341)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %36) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  br label %363

342:                                              ; preds = %322
  %343 = load i32, ptr %9, align 4, !tbaa !9
  %344 = sext i32 %343 to i64
  %345 = mul i64 4, %344
  %346 = call noalias ptr @malloc(i64 noundef %345) #5
  %347 = load ptr, ptr %5, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.numjac_workspace, ptr %347, i32 0, i32 12
  store ptr %346, ptr %348, align 8, !tbaa !26
  %349 = load ptr, ptr %5, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.numjac_workspace, ptr %349, i32 0, i32 12
  %351 = load ptr, ptr %350, align 8, !tbaa !26
  %352 = icmp eq ptr %351, null
  br i1 %352, label %353, label %362

353:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #4
  %354 = load i32, ptr %9, align 4, !tbaa !9
  %355 = sext i32 %354 to i64
  %356 = mul i64 4, %355
  %357 = trunc i64 %356 to i32
  store i32 %357, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %38) #4
  %358 = getelementptr inbounds [2048 x i8], ptr %38, i64 0, i64 0
  %359 = load i32, ptr %37, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %358, ptr noundef @.str, ptr noundef @.str.65, i32 noundef %359)
  %360 = load ptr, ptr %7, align 8, !tbaa !5
  %361 = getelementptr inbounds [2048 x i8], ptr %38, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %360, ptr noundef @.str.2, ptr noundef @__func__.initialize_numjac_workspace, i32 noundef 1624, ptr noundef %361)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %38) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  br label %363

362:                                              ; preds = %342
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %363

363:                                              ; preds = %362, %353, %333, %280, %252, %231, %211, %191, %171, %151, %131, %111, %91, %71, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %364 = load i32, ptr %4, align 4
  ret i32 %364
}

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, !6, i64 0}
!12 = !{!"numjac_workspace", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!13 = !{!12, !6, i64 8}
!14 = !{!12, !6, i64 16}
!15 = !{!12, !6, i64 24}
!16 = !{!12, !6, i64 32}
!17 = !{!12, !6, i64 40}
!18 = !{!12, !6, i64 48}
!19 = !{!12, !6, i64 56}
!20 = !{!12, !6, i64 64}
!21 = !{!12, !6, i64 72}
!22 = !{!12, !6, i64 80}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!12, !6, i64 88}
!26 = !{!12, !6, i64 96}


; 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.52 = external hidden unnamed_addr constant [14 x i8], align 1
@__func__.initialize_numjac_workspace = external hidden unnamed_addr constant [28 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [14 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_numjac_workspace(ptr nocapture 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 = add i32 %1, 1
  %19 = sext i32 %18 to i64
  %20 = shl nsw i64 %19, 3
  %21 = tail call noalias ptr @malloc(i64 noundef %20) #4
  store ptr %21, ptr %0, align 8, !tbaa !5
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %25

23:                                               ; preds = %3
  %24 = trunc i64 %20 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.52, i32 noundef %24) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_numjac_workspace, i32 noundef 1607, ptr noundef nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %4) #5
  br label %140

25:                                               ; preds = %3
  %26 = tail call noalias ptr @malloc(i64 noundef %20) #4
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %26, ptr %27, align 8, !tbaa !10
  %28 = icmp eq ptr %26, null
  br i1 %28, label %29, label %31

29:                                               ; preds = %25
  %30 = trunc i64 %20 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.53, i32 noundef %30) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_numjac_workspace, i32 noundef 1608, ptr noundef nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %5) #5
  br label %140

31:                                               ; preds = %25
  %32 = tail call noalias ptr @malloc(i64 noundef %20) #4
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %32, ptr %33, align 8, !tbaa !11
  %34 = icmp eq ptr %32, null
  br i1 %34, label %35, label %37

35:                                               ; preds = %31
  %36 = trunc i64 %20 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.54, i32 noundef %36) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_numjac_workspace, i32 noundef 1609, ptr noundef nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %6) #5
  br label %140

37:                                               ; preds = %31
  %38 = tail call noalias ptr @malloc(i64 noundef %20) #4
  %39 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %38, ptr %39, align 8, !tbaa !12
  %40 = icmp eq ptr %38, null
  br i1 %40, label %41, label %43

41:                                               ; preds = %37
  %42 = trunc i64 %20 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.55, i32 noundef %42) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_numjac_workspace, i32 noundef 1610, ptr noundef nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #5
  br label %140

43:                                               ; preds = %37
  %44 = tail call noalias ptr @malloc(i64 noundef %20) #4
  %45 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %44, ptr %45, align 8, !tbaa !13
  %46 = icmp eq ptr %44, null
  br i1 %46, label %47, label %49

47:                                               ; preds = %43
  %48 = trunc i64 %20 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.56, i32 noundef %48) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_numjac_workspace, i32 noundef 1611, ptr noundef nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #5
  br label %140

49:                                               ; preds = %43
  %50 = tail call noalias ptr @malloc(i64 noundef %20) #4
  %51 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %50, ptr %51, align 8, !tbaa !14
  %52 = icmp eq ptr %50, null
  br i1 %52, label %53, label %55

53:                                               ; preds = %49
  %54 = trunc i64 %20 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.57, i32 noundef %54) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_numjac_workspace, i32 noundef 1612, ptr noundef nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #5
  br label %140

55:                                               ; preds = %49
  %56 = tail call noalias ptr @malloc(i64 noundef %20) #4
  %57 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %56, ptr %57, align 8, !tbaa !15
  %58 = icmp eq ptr %56, null
  br i1 %58, label %59, label %61

59:                                               ; preds = %55
  %60 = trunc i64 %20 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.58, i32 noundef %60) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_numjac_workspace, i32 noundef 1613, ptr noundef nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #5
  br label %140

61:                                               ; preds = %55
  %62 = tail call noalias ptr @malloc(i64 noundef %20) #4
  %63 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %62, ptr %63, align 8, !tbaa !16
  %64 = icmp eq ptr %62, null
  br i1 %64, label %65, label %67

65:                                               ; preds = %61
  %66 = trunc i64 %20 to i32
  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.59, i32 noundef %66) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_numjac_workspace, i32 noundef 1614, ptr noundef nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #5
  br label %140

67:                                               ; preds = %61
  %68 = tail call noalias ptr @malloc(i64 noundef %20) #4
  %69 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %68, ptr %69, align 8, !tbaa !17
  %70 = icmp eq ptr %68, null
  br i1 %70, label %71, label %73

71:                                               ; preds = %67
  %72 = trunc i64 %20 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.60, i32 noundef %72) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_numjac_workspace, i32 noundef 1615, ptr noundef nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #5
  br label %140

73:                                               ; preds = %67
  %74 = tail call noalias ptr @malloc(i64 noundef %20) #4
  %75 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %74, ptr %75, align 8, !tbaa !18
  %76 = icmp eq ptr %74, null
  br i1 %76, label %77, label %79

77:                                               ; preds = %73
  %78 = trunc i64 %20 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.61, i32 noundef %78) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_numjac_workspace, i32 noundef 1616, ptr noundef nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #5
  br label %140

79:                                               ; preds = %73
  %80 = tail call noalias ptr @malloc(i64 noundef %20) #4
  %81 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %80, ptr %81, align 8, !tbaa !19
  %82 = icmp eq ptr %80, null
  br i1 %82, label %83, label %85

83:                                               ; preds = %79
  %84 = trunc i64 %20 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.62, i32 noundef %84) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_numjac_workspace, i32 noundef 1618, ptr noundef nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #5
  br label %140

85:                                               ; preds = %79
  %86 = mul nsw i32 %1, %1
  %87 = add nuw nsw i32 %86, 1
  %88 = zext nneg i32 %87 to i64
  %89 = shl nuw nsw i64 %88, 3
  %90 = tail call noalias ptr @malloc(i64 noundef %89) #4
  %91 = getelementptr inbounds i8, ptr %80, i64 8
  store ptr %90, ptr %91, align 8, !tbaa !20
  %92 = icmp eq ptr %90, null
  br i1 %92, label %93, label %95

93:                                               ; preds = %85
  %94 = trunc i64 %89 to i32
  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.63, i32 noundef %94) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_numjac_workspace, i32 noundef 1619, ptr noundef nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #5
  br label %140

95:                                               ; preds = %85
  store ptr null, ptr %80, align 8, !tbaa !20
  %.not98 = icmp slt i32 %1, 2
  br i1 %.not98, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %95
  %96 = zext nneg i32 %1 to i64
  %wide.trip.count = zext i32 %18 to i64
  %97 = add nsw i64 %wide.trip.count, -2
  %98 = add nsw i64 %wide.trip.count, -3
  %xtraiter = and i64 %97, 3
  %99 = icmp ult i64 %98, 3
  br i1 %99, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

100:                                              ; preds = %100, %.lr.ph.new
  %indvars.iv = phi i64 [ 2, %.lr.ph.new ], [ %indvars.iv.next.3, %100 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %100 ]
  %101 = load ptr, ptr %81, align 8, !tbaa !19
  %102 = getelementptr ptr, ptr %101, i64 %indvars.iv
  %103 = getelementptr i8, ptr %102, i64 -8
  %104 = load ptr, ptr %103, align 8, !tbaa !20
  %105 = getelementptr inbounds double, ptr %104, i64 %96
  store ptr %105, ptr %102, align 8, !tbaa !20
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %106 = load ptr, ptr %81, align 8, !tbaa !19
  %107 = getelementptr ptr, ptr %106, i64 %indvars.iv.next
  %108 = getelementptr i8, ptr %107, i64 -8
  %109 = load ptr, ptr %108, align 8, !tbaa !20
  %110 = getelementptr inbounds double, ptr %109, i64 %96
  store ptr %110, ptr %107, align 8, !tbaa !20
  %111 = load ptr, ptr %81, align 8, !tbaa !19
  %112 = getelementptr ptr, ptr %111, i64 %indvars.iv
  %113 = getelementptr i8, ptr %112, i64 16
  %114 = getelementptr i8, ptr %112, i64 8
  %115 = load ptr, ptr %114, align 8, !tbaa !20
  %116 = getelementptr inbounds double, ptr %115, i64 %96
  store ptr %116, ptr %113, align 8, !tbaa !20
  %117 = load ptr, ptr %81, align 8, !tbaa !19
  %118 = getelementptr ptr, ptr %117, i64 %indvars.iv
  %119 = getelementptr i8, ptr %118, i64 24
  %120 = getelementptr i8, ptr %118, i64 16
  %121 = load ptr, ptr %120, align 8, !tbaa !20
  %122 = getelementptr inbounds double, ptr %121, i64 %96
  store ptr %122, ptr %119, align 8, !tbaa !20
  %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 %100, !llvm.loop !21

._crit_edge.loopexit.unr-lcssa:                   ; preds = %100, %.lr.ph
  %indvars.iv.unr = phi i64 [ 2, %.lr.ph ], [ %indvars.iv.next.3, %100 ]
  %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 ]
  %123 = load ptr, ptr %81, align 8, !tbaa !19
  %124 = getelementptr ptr, ptr %123, i64 %indvars.iv.epil
  %125 = getelementptr i8, ptr %124, i64 -8
  %126 = load ptr, ptr %125, align 8, !tbaa !20
  %127 = getelementptr inbounds double, ptr %126, i64 %96
  store ptr %127, ptr %124, align 8, !tbaa !20
  %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 !23

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %95
  %128 = shl nsw i64 %19, 2
  %129 = tail call noalias ptr @malloc(i64 noundef %128) #4
  %130 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %129, ptr %130, align 8, !tbaa !25
  %131 = icmp eq ptr %129, null
  br i1 %131, label %132, label %134

132:                                              ; preds = %._crit_edge
  %133 = trunc i64 %128 to i32
  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, ptr noundef nonnull @.str.64, i32 noundef %133) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_numjac_workspace, i32 noundef 1623, ptr noundef nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %16) #5
  br label %140

134:                                              ; preds = %._crit_edge
  %135 = tail call noalias ptr @malloc(i64 noundef %128) #4
  %136 = getelementptr inbounds i8, ptr %0, i64 96
  store ptr %135, ptr %136, align 8, !tbaa !26
  %137 = icmp eq ptr %135, null
  br i1 %137, label %138, label %140

138:                                              ; preds = %134
  %139 = trunc i64 %128 to i32
  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, ptr noundef nonnull @.str.65, i32 noundef %139) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %2, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.initialize_numjac_workspace, i32 noundef 1624, ptr noundef nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %17) #5
  br label %140

140:                                              ; preds = %134, %138, %132, %93, %83, %77, %71, %65, %59, %53, %47, %41, %35, %29, %23
  %.0 = phi i32 [ 1, %23 ], [ 1, %29 ], [ 1, %35 ], [ 1, %41 ], [ 1, %47 ], [ 1, %53 ], [ 1, %59 ], [ 1, %65 ], [ 1, %71 ], [ 1, %77 ], [ 1, %83 ], [ 1, %93 ], [ 1, %132 ], [ 1, %138 ], [ 0, %134 ]
  ret i32 %.0
}

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, !7, i64 0}
!6 = !{!"numjac_workspace", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 16}
!12 = !{!6, !7, i64 24}
!13 = !{!6, !7, i64 32}
!14 = !{!6, !7, i64 40}
!15 = !{!6, !7, i64 48}
!16 = !{!6, !7, i64 56}
!17 = !{!6, !7, i64 64}
!18 = !{!6, !7, i64 72}
!19 = !{!6, !7, i64 80}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = !{!6, !7, i64 88}
!26 = !{!6, !7, i64 96}


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