; LLVM IR from simbody/simbody :: SimTKmath/Integrators/src/CPodes/sundials/src/cpodes (cpodes_direct)

; 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.CPodeMemRec = type { double, i32, ptr, ptr, ptr, i32, i32, i32, double, double, ptr, ptr, ptr, [13 x ptr], ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, [14 x double], [6 x double], [13 x double], [13 x double], double, double, double, double, double, double, double, i32, i32, i32, i32, i64, i64, i32, i32, ptr, ptr, ptr, ptr, double, ptr, ptr, ptr, i64, i64, double, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i64, i64, i64, i64, i32, i32, ptr, ptr, i32, i32, double, double, ptr, [13 x ptr], ptr, ptr, ptr, ptr, double, i64, i64, i32, i32, i32, i64, i64, i32, i32, double, i32, i64, i32, i32, i32, i32, double, double, double, i64, i64, i64, i64, i64, i64, i32, double, double, double, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i64, double, double, double, i32, double, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, [6 x [4 x double]], i32, i64, i32, ptr, i32, ptr, ptr, ptr, ptr, double, double, double, ptr, ptr, ptr, double, i32, i32, i64, double, double, i32, i32, ptr, ptr }
%struct.CPDlsMemRec = type { i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i32 }
%struct._DlsMat = type { i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr }

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

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

declare ptr @N_VGetArrayPointer(ptr noundef) #1

declare double @RSqrt(double noundef) #1

declare double @N_VWrmsNorm(ptr noundef, ptr noundef) #1

declare double @RAbs(double noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @cpDlsBandDQJacExpl(i32 noundef %0, i32 noundef %1, i32 noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #2 {
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  store i32 %0, ptr %12, align 4, !tbaa !5
  store i32 %1, ptr %13, align 4, !tbaa !5
  store i32 %2, ptr %14, align 4, !tbaa !5
  store double %3, ptr %15, align 8, !tbaa !9
  store ptr %4, ptr %16, align 8, !tbaa !11
  store ptr %5, ptr %17, align 8, !tbaa !11
  store ptr %6, ptr %18, align 8, !tbaa !11
  store ptr %7, ptr %19, align 8, !tbaa !11
  store ptr %8, ptr %20, align 8, !tbaa !11
  store ptr %9, ptr %21, align 8, !tbaa !11
  store ptr %10, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #3
  store i32 0, ptr %43, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #3
  %46 = load ptr, ptr %19, align 8, !tbaa !11
  store ptr %46, ptr %44, align 8, !tbaa !11
  %47 = load ptr, ptr %44, align 8, !tbaa !11
  %48 = getelementptr inbounds %struct.CPodeMemRec, ptr %47, i32 0, i32 129
  %49 = load ptr, ptr %48, align 8, !tbaa !13
  store ptr %49, ptr %45, align 8, !tbaa !11
  %50 = load ptr, ptr %20, align 8, !tbaa !11
  store ptr %50, ptr %23, align 8, !tbaa !11
  %51 = load ptr, ptr %21, align 8, !tbaa !11
  store ptr %51, ptr %24, align 8, !tbaa !11
  %52 = load ptr, ptr %44, align 8, !tbaa !11
  %53 = getelementptr inbounds %struct.CPodeMemRec, ptr %52, i32 0, i32 14
  %54 = load ptr, ptr %53, align 8, !tbaa !16
  %55 = call ptr @N_VGetArrayPointer(ptr noundef %54)
  store ptr %55, ptr %31, align 8, !tbaa !11
  %56 = load ptr, ptr %17, align 8, !tbaa !11
  %57 = call ptr @N_VGetArrayPointer(ptr noundef %56)
  store ptr %57, ptr %32, align 8, !tbaa !11
  %58 = load ptr, ptr %23, align 8, !tbaa !11
  %59 = call ptr @N_VGetArrayPointer(ptr noundef %58)
  store ptr %59, ptr %33, align 8, !tbaa !11
  %60 = load ptr, ptr %16, align 8, !tbaa !11
  %61 = call ptr @N_VGetArrayPointer(ptr noundef %60)
  store ptr %61, ptr %34, align 8, !tbaa !11
  %62 = load ptr, ptr %24, align 8, !tbaa !11
  %63 = call ptr @N_VGetArrayPointer(ptr noundef %62)
  store ptr %63, ptr %35, align 8, !tbaa !11
  %64 = load ptr, ptr %16, align 8, !tbaa !11
  %65 = load ptr, ptr %24, align 8, !tbaa !11
  call void @N_VScale(double noundef 1.000000e+00, ptr noundef %64, ptr noundef %65)
  %66 = load ptr, ptr %44, align 8, !tbaa !11
  %67 = getelementptr inbounds %struct.CPodeMemRec, ptr %66, i32 0, i32 0
  %68 = load double, ptr %67, align 8, !tbaa !17
  %69 = call double @RSqrt(double noundef %68)
  store double %69, ptr %29, align 8, !tbaa !9
  %70 = load ptr, ptr %17, align 8, !tbaa !11
  %71 = load ptr, ptr %44, align 8, !tbaa !11
  %72 = getelementptr inbounds %struct.CPodeMemRec, ptr %71, i32 0, i32 14
  %73 = load ptr, ptr %72, align 8, !tbaa !16
  %74 = call double @N_VWrmsNorm(ptr noundef %70, ptr noundef %73)
  store double %74, ptr %25, align 8, !tbaa !9
  %75 = load double, ptr %25, align 8, !tbaa !9
  %76 = fcmp une double %75, 0.000000e+00
  br i1 %76, label %77, label %92

77:                                               ; preds = %11
  %78 = load ptr, ptr %44, align 8, !tbaa !11
  %79 = getelementptr inbounds %struct.CPodeMemRec, ptr %78, i32 0, i32 26
  %80 = load double, ptr %79, align 8, !tbaa !18
  %81 = call double @RAbs(double noundef %80)
  %82 = fmul double 1.000000e+03, %81
  %83 = load ptr, ptr %44, align 8, !tbaa !11
  %84 = getelementptr inbounds %struct.CPodeMemRec, ptr %83, i32 0, i32 0
  %85 = load double, ptr %84, align 8, !tbaa !17
  %86 = fmul double %82, %85
  %87 = load i32, ptr %12, align 4, !tbaa !5
  %88 = sitofp i32 %87 to double
  %89 = fmul double %86, %88
  %90 = load double, ptr %25, align 8, !tbaa !9
  %91 = fmul double %89, %90
  br label %93

92:                                               ; preds = %11
  br label %93

93:                                               ; preds = %92, %77
  %94 = phi double [ %91, %77 ], [ 1.000000e+00, %92 ]
  store double %94, ptr %26, align 8, !tbaa !9
  %95 = load i32, ptr %14, align 4, !tbaa !5
  %96 = load i32, ptr %13, align 4, !tbaa !5
  %97 = add nsw i32 %95, %96
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %39, align 4, !tbaa !5
  %99 = load i32, ptr %39, align 4, !tbaa !5
  %100 = load i32, ptr %12, align 4, !tbaa !5
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %102, label %104

102:                                              ; preds = %93
  %103 = load i32, ptr %39, align 4, !tbaa !5
  br label %106

104:                                              ; preds = %93
  %105 = load i32, ptr %12, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %104, %102
  %107 = phi i32 [ %103, %102 ], [ %105, %104 ]
  store i32 %107, ptr %40, align 4, !tbaa !5
  store i32 1, ptr %36, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %312, %106
  %109 = load i32, ptr %36, align 4, !tbaa !5
  %110 = load i32, ptr %40, align 4, !tbaa !5
  %111 = icmp sle i32 %109, %110
  br i1 %111, label %112, label %315

112:                                              ; preds = %108
  %113 = load i32, ptr %36, align 4, !tbaa !5
  %114 = sub nsw i32 %113, 1
  store i32 %114, ptr %38, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %162, %112
  %116 = load i32, ptr %38, align 4, !tbaa !5
  %117 = load i32, ptr %12, align 4, !tbaa !5
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %119, label %166

119:                                              ; preds = %115
  %120 = load double, ptr %29, align 8, !tbaa !9
  %121 = load ptr, ptr %34, align 8, !tbaa !11
  %122 = load i32, ptr %38, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds double, ptr %121, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !9
  %126 = call double @RAbs(double noundef %125)
  %127 = fmul double %120, %126
  %128 = load double, ptr %26, align 8, !tbaa !9
  %129 = load ptr, ptr %31, align 8, !tbaa !11
  %130 = load i32, ptr %38, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds double, ptr %129, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !9
  %134 = fdiv double %128, %133
  %135 = fcmp ogt double %127, %134
  br i1 %135, label %136, label %145

136:                                              ; preds = %119
  %137 = load double, ptr %29, align 8, !tbaa !9
  %138 = load ptr, ptr %34, align 8, !tbaa !11
  %139 = load i32, ptr %38, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds double, ptr %138, i64 %140
  %142 = load double, ptr %141, align 8, !tbaa !9
  %143 = call double @RAbs(double noundef %142)
  %144 = fmul double %137, %143
  br label %153

145:                                              ; preds = %119
  %146 = load double, ptr %26, align 8, !tbaa !9
  %147 = load ptr, ptr %31, align 8, !tbaa !11
  %148 = load i32, ptr %38, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds double, ptr %147, i64 %149
  %151 = load double, ptr %150, align 8, !tbaa !9
  %152 = fdiv double %146, %151
  br label %153

153:                                              ; preds = %145, %136
  %154 = phi double [ %144, %136 ], [ %152, %145 ]
  store double %154, ptr %27, align 8, !tbaa !9
  %155 = load double, ptr %27, align 8, !tbaa !9
  %156 = load ptr, ptr %35, align 8, !tbaa !11
  %157 = load i32, ptr %38, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds double, ptr %156, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !9
  %161 = fadd double %160, %155
  store double %161, ptr %159, align 8, !tbaa !9
  br label %162

162:                                              ; preds = %153
  %163 = load i32, ptr %39, align 4, !tbaa !5
  %164 = load i32, ptr %38, align 4, !tbaa !5
  %165 = add nsw i32 %164, %163
  store i32 %165, ptr %38, align 4, !tbaa !5
  br label %115, !llvm.loop !19

166:                                              ; preds = %115
  %167 = load ptr, ptr %44, align 8, !tbaa !11
  %168 = getelementptr inbounds %struct.CPodeMemRec, ptr %167, i32 0, i32 3
  %169 = load ptr, ptr %168, align 8, !tbaa !21
  %170 = load ptr, ptr %44, align 8, !tbaa !11
  %171 = getelementptr inbounds %struct.CPodeMemRec, ptr %170, i32 0, i32 31
  %172 = load double, ptr %171, align 8, !tbaa !22
  %173 = load ptr, ptr %24, align 8, !tbaa !11
  %174 = load ptr, ptr %23, align 8, !tbaa !11
  %175 = load ptr, ptr %44, align 8, !tbaa !11
  %176 = getelementptr inbounds %struct.CPodeMemRec, ptr %175, i32 0, i32 4
  %177 = load ptr, ptr %176, align 8, !tbaa !23
  %178 = call i32 %169(double noundef %172, ptr noundef %173, ptr noundef %174, ptr noundef %177)
  store i32 %178, ptr %43, align 4, !tbaa !5
  %179 = load ptr, ptr %45, align 8, !tbaa !11
  %180 = getelementptr inbounds %struct.CPDlsMemRec, ptr %179, i32 0, i32 15
  %181 = load i64, ptr %180, align 8, !tbaa !24
  %182 = add nsw i64 %181, 1
  store i64 %182, ptr %180, align 8, !tbaa !24
  %183 = load i32, ptr %43, align 4, !tbaa !5
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %186

185:                                              ; preds = %166
  br label %315

186:                                              ; preds = %166
  %187 = load i32, ptr %36, align 4, !tbaa !5
  %188 = sub nsw i32 %187, 1
  store i32 %188, ptr %38, align 4, !tbaa !5
  br label %189

189:                                              ; preds = %307, %186
  %190 = load i32, ptr %38, align 4, !tbaa !5
  %191 = load i32, ptr %12, align 4, !tbaa !5
  %192 = icmp slt i32 %190, %191
  br i1 %192, label %193, label %311

193:                                              ; preds = %189
  %194 = load ptr, ptr %34, align 8, !tbaa !11
  %195 = load i32, ptr %38, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds double, ptr %194, i64 %196
  %198 = load double, ptr %197, align 8, !tbaa !9
  %199 = load ptr, ptr %35, align 8, !tbaa !11
  %200 = load i32, ptr %38, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds double, ptr %199, i64 %201
  store double %198, ptr %202, align 8, !tbaa !9
  %203 = load ptr, ptr %18, align 8, !tbaa !11
  %204 = getelementptr inbounds %struct._DlsMat, ptr %203, i32 0, i32 9
  %205 = load ptr, ptr %204, align 8, !tbaa !26
  %206 = load i32, ptr %38, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds ptr, ptr %205, i64 %207
  %209 = load ptr, ptr %208, align 8, !tbaa !11
  %210 = load ptr, ptr %18, align 8, !tbaa !11
  %211 = getelementptr inbounds %struct._DlsMat, ptr %210, i32 0, i32 6
  %212 = load i32, ptr %211, align 8, !tbaa !28
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds double, ptr %209, i64 %213
  store ptr %214, ptr %30, align 8, !tbaa !11
  %215 = load double, ptr %29, align 8, !tbaa !9
  %216 = load ptr, ptr %34, align 8, !tbaa !11
  %217 = load i32, ptr %38, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds double, ptr %216, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !9
  %221 = call double @RAbs(double noundef %220)
  %222 = fmul double %215, %221
  %223 = load double, ptr %26, align 8, !tbaa !9
  %224 = load ptr, ptr %31, align 8, !tbaa !11
  %225 = load i32, ptr %38, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds double, ptr %224, i64 %226
  %228 = load double, ptr %227, align 8, !tbaa !9
  %229 = fdiv double %223, %228
  %230 = fcmp ogt double %222, %229
  br i1 %230, label %231, label %240

231:                                              ; preds = %193
  %232 = load double, ptr %29, align 8, !tbaa !9
  %233 = load ptr, ptr %34, align 8, !tbaa !11
  %234 = load i32, ptr %38, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds double, ptr %233, i64 %235
  %237 = load double, ptr %236, align 8, !tbaa !9
  %238 = call double @RAbs(double noundef %237)
  %239 = fmul double %232, %238
  br label %248

240:                                              ; preds = %193
  %241 = load double, ptr %26, align 8, !tbaa !9
  %242 = load ptr, ptr %31, align 8, !tbaa !11
  %243 = load i32, ptr %38, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds double, ptr %242, i64 %244
  %246 = load double, ptr %245, align 8, !tbaa !9
  %247 = fdiv double %241, %246
  br label %248

248:                                              ; preds = %240, %231
  %249 = phi double [ %239, %231 ], [ %247, %240 ]
  store double %249, ptr %27, align 8, !tbaa !9
  %250 = load double, ptr %27, align 8, !tbaa !9
  %251 = fdiv double 1.000000e+00, %250
  store double %251, ptr %28, align 8, !tbaa !9
  %252 = load i32, ptr %38, align 4, !tbaa !5
  %253 = load i32, ptr %13, align 4, !tbaa !5
  %254 = sub nsw i32 %252, %253
  %255 = icmp sgt i32 0, %254
  br i1 %255, label %256, label %257

256:                                              ; preds = %248
  br label %261

257:                                              ; preds = %248
  %258 = load i32, ptr %38, align 4, !tbaa !5
  %259 = load i32, ptr %13, align 4, !tbaa !5
  %260 = sub nsw i32 %258, %259
  br label %261

261:                                              ; preds = %257, %256
  %262 = phi i32 [ 0, %256 ], [ %260, %257 ]
  store i32 %262, ptr %41, align 4, !tbaa !5
  %263 = load i32, ptr %38, align 4, !tbaa !5
  %264 = load i32, ptr %14, align 4, !tbaa !5
  %265 = add nsw i32 %263, %264
  %266 = load i32, ptr %12, align 4, !tbaa !5
  %267 = sub nsw i32 %266, 1
  %268 = icmp slt i32 %265, %267
  br i1 %268, label %269, label %273

269:                                              ; preds = %261
  %270 = load i32, ptr %38, align 4, !tbaa !5
  %271 = load i32, ptr %14, align 4, !tbaa !5
  %272 = add nsw i32 %270, %271
  br label %276

273:                                              ; preds = %261
  %274 = load i32, ptr %12, align 4, !tbaa !5
  %275 = sub nsw i32 %274, 1
  br label %276

276:                                              ; preds = %273, %269
  %277 = phi i32 [ %272, %269 ], [ %275, %273 ]
  store i32 %277, ptr %42, align 4, !tbaa !5
  %278 = load i32, ptr %41, align 4, !tbaa !5
  store i32 %278, ptr %37, align 4, !tbaa !5
  br label %279

279:                                              ; preds = %303, %276
  %280 = load i32, ptr %37, align 4, !tbaa !5
  %281 = load i32, ptr %42, align 4, !tbaa !5
  %282 = icmp sle i32 %280, %281
  br i1 %282, label %283, label %306

283:                                              ; preds = %279
  %284 = load double, ptr %28, align 8, !tbaa !9
  %285 = load ptr, ptr %33, align 8, !tbaa !11
  %286 = load i32, ptr %37, align 4, !tbaa !5
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds double, ptr %285, i64 %287
  %289 = load double, ptr %288, align 8, !tbaa !9
  %290 = load ptr, ptr %32, align 8, !tbaa !11
  %291 = load i32, ptr %37, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds double, ptr %290, i64 %292
  %294 = load double, ptr %293, align 8, !tbaa !9
  %295 = fsub double %289, %294
  %296 = fmul double %284, %295
  %297 = load ptr, ptr %30, align 8, !tbaa !11
  %298 = load i32, ptr %37, align 4, !tbaa !5
  %299 = load i32, ptr %38, align 4, !tbaa !5
  %300 = sub nsw i32 %298, %299
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds double, ptr %297, i64 %301
  store double %296, ptr %302, align 8, !tbaa !9
  br label %303

303:                                              ; preds = %283
  %304 = load i32, ptr %37, align 4, !tbaa !5
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr %37, align 4, !tbaa !5
  br label %279, !llvm.loop !29

306:                                              ; preds = %279
  br label %307

307:                                              ; preds = %306
  %308 = load i32, ptr %39, align 4, !tbaa !5
  %309 = load i32, ptr %38, align 4, !tbaa !5
  %310 = add nsw i32 %309, %308
  store i32 %310, ptr %38, align 4, !tbaa !5
  br label %189, !llvm.loop !30

311:                                              ; preds = %189
  br label %312

312:                                              ; preds = %311
  %313 = load i32, ptr %36, align 4, !tbaa !5
  %314 = add nsw i32 %313, 1
  store i32 %314, ptr %36, align 4, !tbaa !5
  br label %108, !llvm.loop !31

315:                                              ; preds = %185, %108
  %316 = load i32, ptr %43, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  ret i32 %316
}

declare void @N_VScale(double noundef, ptr noundef, ptr noundef) #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 1456}
!14 = !{!"CPodeMemRec", !10, i64 0, !6, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !6, i64 40, !6, i64 44, !6, i64 48, !10, i64 56, !10, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !7, i64 96, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !6, i64 248, !6, i64 252, !6, i64 256, !6, i64 260, !6, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !7, i64 336, !7, i64 448, !7, i64 496, !7, i64 600, !10, i64 704, !10, i64 712, !10, i64 720, !10, i64 728, !10, i64 736, !10, i64 744, !10, i64 752, !6, i64 760, !6, i64 764, !6, i64 768, !6, i64 772, !15, i64 776, !15, i64 784, !6, i64 792, !6, i64 796, !12, i64 800, !12, i64 808, !12, i64 816, !12, i64 824, !10, i64 832, !12, i64 840, !12, i64 848, !12, i64 856, !15, i64 864, !15, i64 872, !10, i64 880, !6, i64 888, !6, i64 892, !6, i64 896, !12, i64 904, !12, i64 912, !12, i64 920, !12, i64 928, !6, i64 936, !15, i64 944, !15, i64 952, !15, i64 960, !15, i64 968, !6, i64 976, !6, i64 980, !12, i64 984, !12, i64 992, !6, i64 1000, !6, i64 1004, !10, i64 1008, !10, i64 1016, !12, i64 1024, !7, i64 1032, !12, i64 1136, !12, i64 1144, !12, i64 1152, !12, i64 1160, !10, i64 1168, !15, i64 1176, !15, i64 1184, !6, i64 1192, !6, i64 1196, !6, i64 1200, !15, i64 1208, !15, i64 1216, !6, i64 1224, !6, i64 1228, !10, i64 1232, !6, i64 1240, !15, i64 1248, !6, i64 1256, !6, i64 1260, !6, i64 1264, !6, i64 1268, !10, i64 1272, !10, i64 1280, !10, i64 1288, !15, i64 1296, !15, i64 1304, !15, i64 1312, !15, i64 1320, !15, i64 1328, !15, i64 1336, !6, i64 1344, !10, i64 1352, !10, i64 1360, !10, i64 1368, !15, i64 1376, !15, i64 1384, !15, i64 1392, !15, i64 1400, !15, i64 1408, !15, i64 1416, !12, i64 1424, !12, i64 1432, !12, i64 1440, !12, i64 1448, !12, i64 1456, !6, i64 1464, !12, i64 1472, !12, i64 1480, !12, i64 1488, !12, i64 1496, !12, i64 1504, !12, i64 1512, !6, i64 1520, !6, i64 1524, !15, i64 1528, !10, i64 1536, !10, i64 1544, !10, i64 1552, !6, i64 1560, !10, i64 1568, !6, i64 1576, !6, i64 1580, !6, i64 1584, !6, i64 1588, !6, i64 1592, !6, i64 1596, !12, i64 1600, !12, i64 1608, !12, i64 1616, !6, i64 1624, !7, i64 1632, !6, i64 1824, !15, i64 1832, !6, i64 1840, !12, i64 1848, !6, i64 1856, !12, i64 1864, !12, i64 1872, !12, i64 1880, !12, i64 1888, !10, i64 1896, !10, i64 1904, !10, i64 1912, !12, i64 1920, !12, i64 1928, !12, i64 1936, !10, i64 1944, !6, i64 1952, !6, i64 1956, !15, i64 1960, !10, i64 1968, !10, i64 1976, !6, i64 1984, !6, i64 1988, !12, i64 1992, !12, i64 2000}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !12, i64 200}
!17 = !{!14, !10, i64 0}
!18 = !{!14, !10, i64 280}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!14, !12, i64 24}
!22 = !{!14, !10, i64 320}
!23 = !{!14, !12, i64 32}
!24 = !{!25, !15, i64 104}
!25 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !6, i64 112}
!26 = !{!27, !12, i64 48}
!27 = !{!"_DlsMat", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !12, i64 32, !6, i64 40, !12, i64 48}
!28 = !{!27, !6, i64 24}
!29 = distinct !{!29, !20}
!30 = distinct !{!30, !20}
!31 = distinct !{!31, !20}


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

declare ptr @N_VGetArrayPointer(ptr noundef) local_unnamed_addr #0

declare double @RSqrt(double noundef) local_unnamed_addr #0

declare double @N_VWrmsNorm(ptr noundef, ptr noundef) local_unnamed_addr #0

declare double @RAbs(double noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @cpDlsBandDQJacExpl(i32 noundef %0, i32 noundef %1, i32 noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5, ptr nocapture noundef readonly %6, ptr nocapture noundef readonly %7, ptr noundef %8, ptr noundef %9, ptr nocapture noundef readnone %10) local_unnamed_addr #1 {
  %12 = getelementptr inbounds i8, ptr %7, i64 1456
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %7, i64 200
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  %16 = tail call ptr @N_VGetArrayPointer(ptr noundef %15) #3
  %17 = tail call ptr @N_VGetArrayPointer(ptr noundef %5) #3
  %18 = ptrtoint ptr %17 to i64
  %19 = tail call ptr @N_VGetArrayPointer(ptr noundef %8) #3
  %20 = ptrtoint ptr %19 to i64
  %21 = tail call ptr @N_VGetArrayPointer(ptr noundef %4) #3
  %22 = tail call ptr @N_VGetArrayPointer(ptr noundef %9) #3
  tail call void @N_VScale(double noundef 1.000000e+00, ptr noundef %4, ptr noundef %9) #3
  %23 = load double, ptr %7, align 8, !tbaa !14
  %24 = tail call double @RSqrt(double noundef %23) #3
  %25 = load ptr, ptr %14, align 8, !tbaa !13
  %26 = tail call double @N_VWrmsNorm(ptr noundef %5, ptr noundef %25) #3
  %27 = fcmp une double %26, 0.000000e+00
  br i1 %27, label %28, label %38

28:                                               ; preds = %11
  %29 = getelementptr inbounds i8, ptr %7, i64 280
  %30 = load double, ptr %29, align 8, !tbaa !15
  %31 = tail call double @RAbs(double noundef %30) #3
  %32 = fmul double %31, 1.000000e+03
  %33 = load double, ptr %7, align 8, !tbaa !14
  %34 = fmul double %32, %33
  %35 = sitofp i32 %0 to double
  %36 = fmul double %34, %35
  %37 = fmul double %26, %36
  br label %38

38:                                               ; preds = %11, %28
  %39 = phi double [ %37, %28 ], [ 1.000000e+00, %11 ]
  %40 = add i32 %1, 1
  %41 = add i32 %40, %2
  %42 = tail call i32 @llvm.smin.i32(i32 %41, i32 %0)
  %43 = getelementptr inbounds i8, ptr %7, i64 24
  %.not125 = icmp slt i32 %42, 1
  br i1 %.not125, label %._crit_edge129, label %.lr.ph128

.lr.ph128:                                        ; preds = %38
  %44 = getelementptr inbounds i8, ptr %7, i64 320
  %45 = getelementptr inbounds i8, ptr %7, i64 32
  %46 = getelementptr inbounds i8, ptr %13, i64 104
  %47 = getelementptr inbounds i8, ptr %6, i64 48
  %48 = getelementptr inbounds i8, ptr %6, i64 24
  %49 = add nsw i32 %0, -1
  %50 = sext i32 %41 to i64
  %51 = sext i32 %0 to i64
  %52 = sub i32 0, %1
  %wide.trip.count = zext nneg i32 %42 to i64
  %53 = zext i32 %2 to i64
  %54 = zext i32 %41 to i64
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %._crit_edge124, %.lr.ph128
  %indvars.iv137 = phi i32 [ %52, %.lr.ph128 ], [ %indvars.iv.next138, %._crit_edge124 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph128 ], [ %indvars.iv.next, %._crit_edge124 ]
  %55 = add nuw i64 %indvars.iv, %53
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %68
  %indvars.iv134 = phi i64 [ %indvars.iv, %.lr.ph.preheader ], [ %indvars.iv.next135, %68 ]
  %56 = getelementptr inbounds double, ptr %21, i64 %indvars.iv134
  %57 = load double, ptr %56, align 8, !tbaa !16
  %58 = tail call double @RAbs(double noundef %57) #3
  %59 = fmul double %24, %58
  %60 = getelementptr inbounds double, ptr %16, i64 %indvars.iv134
  %61 = load double, ptr %60, align 8, !tbaa !16
  %62 = fdiv double %39, %61
  %63 = fcmp ogt double %59, %62
  br i1 %63, label %64, label %68

64:                                               ; preds = %.lr.ph
  %65 = load double, ptr %56, align 8, !tbaa !16
  %66 = tail call double @RAbs(double noundef %65) #3
  %67 = fmul double %24, %66
  br label %68

68:                                               ; preds = %.lr.ph, %64
  %69 = phi double [ %67, %64 ], [ %62, %.lr.ph ]
  %70 = getelementptr inbounds double, ptr %22, i64 %indvars.iv134
  %71 = load double, ptr %70, align 8, !tbaa !16
  %72 = fadd double %69, %71
  store double %72, ptr %70, align 8, !tbaa !16
  %indvars.iv.next135 = add nsw i64 %indvars.iv134, %50
  %73 = icmp slt i64 %indvars.iv.next135, %51
  br i1 %73, label %.lr.ph, label %._crit_edge, !llvm.loop !17

._crit_edge:                                      ; preds = %68
  %74 = load ptr, ptr %43, align 8, !tbaa !19
  %75 = load double, ptr %44, align 8, !tbaa !20
  %76 = load ptr, ptr %45, align 8, !tbaa !21
  %77 = tail call i32 %74(double noundef %75, ptr noundef %9, ptr noundef %8, ptr noundef %76) #3
  %78 = load i64, ptr %46, align 8, !tbaa !22
  %79 = add nsw i64 %78, 1
  store i64 %79, ptr %46, align 8, !tbaa !22
  %.not114 = icmp eq i32 %77, 0
  br i1 %.not114, label %.lr.ph123, label %._crit_edge129

.lr.ph123:                                        ; preds = %._crit_edge, %._crit_edge121
  %indvar = phi i64 [ %indvar.next, %._crit_edge121 ], [ 0, %._crit_edge ]
  %indvars.iv144 = phi i64 [ %indvars.iv.next145, %._crit_edge121 ], [ %indvars.iv, %._crit_edge ]
  %indvars.iv139 = phi i32 [ %indvars.iv.next140, %._crit_edge121 ], [ %indvars.iv137, %._crit_edge ]
  %80 = mul i64 %indvar, %54
  %81 = add i64 %55, %80
  %82 = trunc i64 %81 to i32
  %smin = tail call i32 @llvm.smin.i32(i32 %82, i32 %49)
  %smax148 = tail call i32 @llvm.smax.i32(i32 %indvars.iv139, i32 0)
  %83 = zext nneg i32 %smax148 to i64
  %84 = tail call i32 @llvm.umax.i32(i32 %smin, i32 %smax148)
  %umax = zext i32 %84 to i64
  %85 = add nuw nsw i64 %umax, 1
  %86 = sub nsw i64 %85, %83
  %87 = mul i64 %indvar, %50
  %88 = add i64 %indvars.iv, %87
  %smax = tail call i32 @llvm.smax.i32(i32 %indvars.iv139, i32 0)
  %89 = zext nneg i32 %smax to i64
  %90 = getelementptr inbounds double, ptr %21, i64 %indvars.iv144
  %91 = load double, ptr %90, align 8, !tbaa !16
  %92 = getelementptr inbounds double, ptr %22, i64 %indvars.iv144
  store double %91, ptr %92, align 8, !tbaa !16
  %93 = load ptr, ptr %47, align 8, !tbaa !24
  %94 = getelementptr inbounds ptr, ptr %93, i64 %indvars.iv144
  %95 = load ptr, ptr %94, align 8, !tbaa !26
  %96 = ptrtoint ptr %95 to i64
  %97 = load i32, ptr %48, align 8, !tbaa !27
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %95, i64 %98
  %100 = tail call double @RAbs(double noundef %91) #3
  %101 = fmul double %24, %100
  %102 = getelementptr inbounds double, ptr %16, i64 %indvars.iv144
  %103 = load double, ptr %102, align 8, !tbaa !16
  %104 = fdiv double %39, %103
  %105 = fcmp ogt double %101, %104
  br i1 %105, label %106, label %110

106:                                              ; preds = %.lr.ph123
  %107 = load double, ptr %90, align 8, !tbaa !16
  %108 = tail call double @RAbs(double noundef %107) #3
  %109 = fmul double %24, %108
  br label %110

110:                                              ; preds = %.lr.ph123, %106
  %111 = phi double [ %109, %106 ], [ %104, %.lr.ph123 ]
  %112 = fdiv double 1.000000e+00, %111
  %113 = trunc i64 %indvars.iv144 to i32
  %114 = sub i32 %113, %1
  %115 = tail call i32 @llvm.smax.i32(i32 %114, i32 0)
  %116 = trunc i64 %indvars.iv144 to i32
  %117 = add i32 %116, %2
  %. = tail call i32 @llvm.smin.i32(i32 %117, i32 %49)
  %.not115117 = icmp sgt i32 %115, %.
  br i1 %.not115117, label %._crit_edge121, label %.lr.ph120.preheader

.lr.ph120.preheader:                              ; preds = %110
  %118 = zext nneg i32 %. to i64
  %min.iters.check = icmp ult i64 %86, 4
  br i1 %min.iters.check, label %.lr.ph120.preheader152, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph120.preheader
  %119 = sub i64 %96, %20
  %120 = sub i64 %98, %88
  %121 = shl i64 %120, 3
  %122 = add i64 %119, %121
  %diff.check = icmp ult i64 %122, 32
  %123 = sub i64 %96, %18
  %124 = add i64 %123, %121
  %diff.check147 = icmp ult i64 %124, 32
  %conflict.rdx = or i1 %diff.check, %diff.check147
  br i1 %conflict.rdx, label %.lr.ph120.preheader152, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %86, -4
  %ind.end = add nsw i64 %n.vec, %89
  %broadcast.splatinsert = insertelement <2 x double> poison, double %112, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %index, %89
  %125 = getelementptr inbounds double, ptr %19, i64 %offset.idx
  %126 = getelementptr inbounds i8, ptr %125, i64 16
  %wide.load = load <2 x double>, ptr %125, align 8, !tbaa !16
  %wide.load149 = load <2 x double>, ptr %126, align 8, !tbaa !16
  %127 = getelementptr inbounds double, ptr %17, i64 %offset.idx
  %128 = getelementptr inbounds i8, ptr %127, i64 16
  %wide.load150 = load <2 x double>, ptr %127, align 8, !tbaa !16
  %wide.load151 = load <2 x double>, ptr %128, align 8, !tbaa !16
  %129 = fsub <2 x double> %wide.load, %wide.load150
  %130 = fsub <2 x double> %wide.load149, %wide.load151
  %131 = fmul <2 x double> %broadcast.splat, %129
  %132 = fmul <2 x double> %broadcast.splat, %130
  %133 = sub nsw i64 %offset.idx, %indvars.iv144
  %134 = getelementptr inbounds double, ptr %99, i64 %133
  %135 = getelementptr inbounds i8, ptr %134, i64 16
  store <2 x double> %131, ptr %134, align 8, !tbaa !16
  store <2 x double> %132, ptr %135, align 8, !tbaa !16
  %index.next = add nuw i64 %index, 4
  %136 = icmp eq i64 %index.next, %n.vec
  br i1 %136, label %middle.block, label %vector.body, !llvm.loop !28

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %86, %n.vec
  br i1 %cmp.n, label %._crit_edge121, label %.lr.ph120.preheader152

.lr.ph120.preheader152:                           ; preds = %middle.block, %vector.memcheck, %.lr.ph120.preheader
  %indvars.iv141.ph = phi i64 [ %89, %vector.memcheck ], [ %89, %.lr.ph120.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph120

.lr.ph120:                                        ; preds = %.lr.ph120.preheader152, %.lr.ph120
  %indvars.iv141 = phi i64 [ %indvars.iv.next142, %.lr.ph120 ], [ %indvars.iv141.ph, %.lr.ph120.preheader152 ]
  %137 = getelementptr inbounds double, ptr %19, i64 %indvars.iv141
  %138 = load double, ptr %137, align 8, !tbaa !16
  %139 = getelementptr inbounds double, ptr %17, i64 %indvars.iv141
  %140 = load double, ptr %139, align 8, !tbaa !16
  %141 = fsub double %138, %140
  %142 = fmul double %112, %141
  %143 = sub nsw i64 %indvars.iv141, %indvars.iv144
  %144 = getelementptr inbounds double, ptr %99, i64 %143
  store double %142, ptr %144, align 8, !tbaa !16
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  %.not115.not = icmp ult i64 %indvars.iv141, %118
  br i1 %.not115.not, label %.lr.ph120, label %._crit_edge121, !llvm.loop !31

._crit_edge121:                                   ; preds = %.lr.ph120, %middle.block, %110
  %indvars.iv.next145 = add nsw i64 %indvars.iv144, %50
  %145 = icmp slt i64 %indvars.iv.next145, %51
  %indvars.iv.next140 = add i32 %indvars.iv139, %41
  %indvar.next = add i64 %indvar, 1
  br i1 %145, label %.lr.ph123, label %._crit_edge124, !llvm.loop !32

._crit_edge124:                                   ; preds = %._crit_edge121
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %indvars.iv.next138 = add i32 %indvars.iv137, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge129, label %.lr.ph.preheader, !llvm.loop !33

._crit_edge129:                                   ; preds = %._crit_edge124, %._crit_edge, %38
  %.1 = phi i32 [ 0, %38 ], [ %77, %._crit_edge ], [ 0, %._crit_edge124 ]
  ret i32 %.1
}

declare void @N_VScale(double noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #2

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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, !11, i64 1456}
!6 = !{!"CPodeMemRec", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !7, i64 56, !7, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !8, i64 96, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !8, i64 336, !8, i64 448, !8, i64 496, !8, i64 600, !7, i64 704, !7, i64 712, !7, i64 720, !7, i64 728, !7, i64 736, !7, i64 744, !7, i64 752, !10, i64 760, !10, i64 764, !10, i64 768, !10, i64 772, !12, i64 776, !12, i64 784, !10, i64 792, !10, i64 796, !11, i64 800, !11, i64 808, !11, i64 816, !11, i64 824, !7, i64 832, !11, i64 840, !11, i64 848, !11, i64 856, !12, i64 864, !12, i64 872, !7, i64 880, !10, i64 888, !10, i64 892, !10, i64 896, !11, i64 904, !11, i64 912, !11, i64 920, !11, i64 928, !10, i64 936, !12, i64 944, !12, i64 952, !12, i64 960, !12, i64 968, !10, i64 976, !10, i64 980, !11, i64 984, !11, i64 992, !10, i64 1000, !10, i64 1004, !7, i64 1008, !7, i64 1016, !11, i64 1024, !8, i64 1032, !11, i64 1136, !11, i64 1144, !11, i64 1152, !11, i64 1160, !7, i64 1168, !12, i64 1176, !12, i64 1184, !10, i64 1192, !10, i64 1196, !10, i64 1200, !12, i64 1208, !12, i64 1216, !10, i64 1224, !10, i64 1228, !7, i64 1232, !10, i64 1240, !12, i64 1248, !10, i64 1256, !10, i64 1260, !10, i64 1264, !10, i64 1268, !7, i64 1272, !7, i64 1280, !7, i64 1288, !12, i64 1296, !12, i64 1304, !12, i64 1312, !12, i64 1320, !12, i64 1328, !12, i64 1336, !10, i64 1344, !7, i64 1352, !7, i64 1360, !7, i64 1368, !12, i64 1376, !12, i64 1384, !12, i64 1392, !12, i64 1400, !12, i64 1408, !12, i64 1416, !11, i64 1424, !11, i64 1432, !11, i64 1440, !11, i64 1448, !11, i64 1456, !10, i64 1464, !11, i64 1472, !11, i64 1480, !11, i64 1488, !11, i64 1496, !11, i64 1504, !11, i64 1512, !10, i64 1520, !10, i64 1524, !12, i64 1528, !7, i64 1536, !7, i64 1544, !7, i64 1552, !10, i64 1560, !7, i64 1568, !10, i64 1576, !10, i64 1580, !10, i64 1584, !10, i64 1588, !10, i64 1592, !10, i64 1596, !11, i64 1600, !11, i64 1608, !11, i64 1616, !10, i64 1624, !8, i64 1632, !10, i64 1824, !12, i64 1832, !10, i64 1840, !11, i64 1848, !10, i64 1856, !11, i64 1864, !11, i64 1872, !11, i64 1880, !11, i64 1888, !7, i64 1896, !7, i64 1904, !7, i64 1912, !11, i64 1920, !11, i64 1928, !11, i64 1936, !7, i64 1944, !10, i64 1952, !10, i64 1956, !12, i64 1960, !7, i64 1968, !7, i64 1976, !10, i64 1984, !10, i64 1988, !11, i64 1992, !11, i64 2000}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !11, i64 200}
!14 = !{!6, !7, i64 0}
!15 = !{!6, !7, i64 280}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !11, i64 24}
!20 = !{!6, !7, i64 320}
!21 = !{!6, !11, i64 32}
!22 = !{!23, !12, i64 104}
!23 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !10, i64 112}
!24 = !{!25, !11, i64 48}
!25 = !{!"_DlsMat", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !11, i64 32, !10, i64 40, !11, i64 48}
!26 = !{!11, !11, i64 0}
!27 = !{!25, !10, i64 24}
!28 = distinct !{!28, !18, !29, !30}
!29 = !{!"llvm.loop.isvectorized", i32 1}
!30 = !{!"llvm.loop.unroll.runtime.disable"}
!31 = distinct !{!31, !18, !29}
!32 = distinct !{!32, !18}
!33 = distinct !{!33, !18}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass