; 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 @RAbs(double noundef) #1

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

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

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

92:                                               ; preds = %13
  %93 = load i32, ptr %48, align 4, !tbaa !5
  br label %96

94:                                               ; preds = %13
  %95 = load i32, ptr %14, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %94, %92
  %97 = phi i32 [ %93, %92 ], [ %95, %94 ]
  store i32 %97, ptr %50, align 4, !tbaa !5
  store i32 1, ptr %49, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %412, %96
  %99 = load i32, ptr %49, align 4, !tbaa !5
  %100 = load i32, ptr %50, align 4, !tbaa !5
  %101 = icmp sle i32 %99, %100
  br i1 %101, label %102, label %415

102:                                              ; preds = %98
  %103 = load i32, ptr %49, align 4, !tbaa !5
  %104 = sub nsw i32 %103, 1
  store i32 %104, ptr %45, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %212, %102
  %106 = load i32, ptr %45, align 4, !tbaa !5
  %107 = load i32, ptr %14, align 4, !tbaa !5
  %108 = icmp slt i32 %106, %107
  br i1 %108, label %109, label %216

109:                                              ; preds = %105
  %110 = load ptr, ptr %36, align 8, !tbaa !11
  %111 = load i32, ptr %45, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds double, ptr %110, i64 %112
  %114 = load double, ptr %113, align 8, !tbaa !9
  store double %114, ptr %32, align 8, !tbaa !9
  %115 = load ptr, ptr %37, align 8, !tbaa !11
  %116 = load i32, ptr %45, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds double, ptr %115, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !9
  store double %119, ptr %33, align 8, !tbaa !9
  %120 = load ptr, ptr %38, align 8, !tbaa !11
  %121 = load i32, ptr %45, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds double, ptr %120, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !9
  store double %124, ptr %35, align 8, !tbaa !9
  %125 = load double, ptr %34, align 8, !tbaa !9
  %126 = load double, ptr %32, align 8, !tbaa !9
  %127 = call double @RAbs(double noundef %126)
  %128 = load ptr, ptr %52, align 8, !tbaa !11
  %129 = getelementptr inbounds %struct.CPodeMemRec, ptr %128, i32 0, i32 26
  %130 = load double, ptr %129, align 8, !tbaa !18
  %131 = load double, ptr %33, align 8, !tbaa !9
  %132 = fmul double %130, %131
  %133 = call double @RAbs(double noundef %132)
  %134 = fcmp ogt double %127, %133
  br i1 %134, label %135, label %138

135:                                              ; preds = %109
  %136 = load double, ptr %32, align 8, !tbaa !9
  %137 = call double @RAbs(double noundef %136)
  br label %145

138:                                              ; preds = %109
  %139 = load ptr, ptr %52, align 8, !tbaa !11
  %140 = getelementptr inbounds %struct.CPodeMemRec, ptr %139, i32 0, i32 26
  %141 = load double, ptr %140, align 8, !tbaa !18
  %142 = load double, ptr %33, align 8, !tbaa !9
  %143 = fmul double %141, %142
  %144 = call double @RAbs(double noundef %143)
  br label %145

145:                                              ; preds = %138, %135
  %146 = phi double [ %137, %135 ], [ %144, %138 ]
  %147 = fmul double %125, %146
  %148 = load double, ptr %35, align 8, !tbaa !9
  %149 = fdiv double 1.000000e+00, %148
  %150 = fcmp ogt double %147, %149
  br i1 %150, label %151, label %175

151:                                              ; preds = %145
  %152 = load double, ptr %34, align 8, !tbaa !9
  %153 = load double, ptr %32, align 8, !tbaa !9
  %154 = call double @RAbs(double noundef %153)
  %155 = load ptr, ptr %52, align 8, !tbaa !11
  %156 = getelementptr inbounds %struct.CPodeMemRec, ptr %155, i32 0, i32 26
  %157 = load double, ptr %156, align 8, !tbaa !18
  %158 = load double, ptr %33, align 8, !tbaa !9
  %159 = fmul double %157, %158
  %160 = call double @RAbs(double noundef %159)
  %161 = fcmp ogt double %154, %160
  br i1 %161, label %162, label %165

162:                                              ; preds = %151
  %163 = load double, ptr %32, align 8, !tbaa !9
  %164 = call double @RAbs(double noundef %163)
  br label %172

165:                                              ; preds = %151
  %166 = load ptr, ptr %52, align 8, !tbaa !11
  %167 = getelementptr inbounds %struct.CPodeMemRec, ptr %166, i32 0, i32 26
  %168 = load double, ptr %167, align 8, !tbaa !18
  %169 = load double, ptr %33, align 8, !tbaa !9
  %170 = fmul double %168, %169
  %171 = call double @RAbs(double noundef %170)
  br label %172

172:                                              ; preds = %165, %162
  %173 = phi double [ %164, %162 ], [ %171, %165 ]
  %174 = fmul double %152, %173
  br label %178

175:                                              ; preds = %145
  %176 = load double, ptr %35, align 8, !tbaa !9
  %177 = fdiv double 1.000000e+00, %176
  br label %178

178:                                              ; preds = %175, %172
  %179 = phi double [ %174, %172 ], [ %177, %175 ]
  store double %179, ptr %30, align 8, !tbaa !9
  %180 = load ptr, ptr %52, align 8, !tbaa !11
  %181 = getelementptr inbounds %struct.CPodeMemRec, ptr %180, i32 0, i32 26
  %182 = load double, ptr %181, align 8, !tbaa !18
  %183 = load double, ptr %33, align 8, !tbaa !9
  %184 = fmul double %182, %183
  %185 = fcmp olt double %184, 0.000000e+00
  br i1 %185, label %186, label %189

186:                                              ; preds = %178
  %187 = load double, ptr %30, align 8, !tbaa !9
  %188 = fneg double %187
  store double %188, ptr %30, align 8, !tbaa !9
  br label %189

189:                                              ; preds = %186, %178
  %190 = load double, ptr %32, align 8, !tbaa !9
  %191 = load double, ptr %30, align 8, !tbaa !9
  %192 = fadd double %190, %191
  %193 = load double, ptr %32, align 8, !tbaa !9
  %194 = fsub double %192, %193
  store double %194, ptr %30, align 8, !tbaa !9
  %195 = load ptr, ptr %52, align 8, !tbaa !11
  %196 = getelementptr inbounds %struct.CPodeMemRec, ptr %195, i32 0, i32 38
  %197 = load double, ptr %196, align 8, !tbaa !19
  %198 = load double, ptr %30, align 8, !tbaa !9
  %199 = load ptr, ptr %39, align 8, !tbaa !11
  %200 = load i32, ptr %45, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds double, ptr %199, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !9
  %204 = call double @llvm.fmuladd.f64(double %197, double %198, double %203)
  store double %204, ptr %202, align 8, !tbaa !9
  %205 = load double, ptr %30, align 8, !tbaa !9
  %206 = load ptr, ptr %40, align 8, !tbaa !11
  %207 = load i32, ptr %45, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds double, ptr %206, i64 %208
  %210 = load double, ptr %209, align 8, !tbaa !9
  %211 = fadd double %210, %205
  store double %211, ptr %209, align 8, !tbaa !9
  br label %212

212:                                              ; preds = %189
  %213 = load i32, ptr %48, align 4, !tbaa !5
  %214 = load i32, ptr %45, align 4, !tbaa !5
  %215 = add nsw i32 %214, %213
  store i32 %215, ptr %45, align 4, !tbaa !5
  br label %105, !llvm.loop !20

216:                                              ; preds = %105
  %217 = load ptr, ptr %52, align 8, !tbaa !11
  %218 = getelementptr inbounds %struct.CPodeMemRec, ptr %217, i32 0, i32 2
  %219 = load ptr, ptr %218, align 8, !tbaa !22
  %220 = load ptr, ptr %52, align 8, !tbaa !11
  %221 = getelementptr inbounds %struct.CPodeMemRec, ptr %220, i32 0, i32 31
  %222 = load double, ptr %221, align 8, !tbaa !23
  %223 = load ptr, ptr %28, align 8, !tbaa !11
  %224 = load ptr, ptr %29, align 8, !tbaa !11
  %225 = load ptr, ptr %27, align 8, !tbaa !11
  %226 = load ptr, ptr %52, align 8, !tbaa !11
  %227 = getelementptr inbounds %struct.CPodeMemRec, ptr %226, i32 0, i32 4
  %228 = load ptr, ptr %227, align 8, !tbaa !24
  %229 = call i32 %219(double noundef %222, ptr noundef %223, ptr noundef %224, ptr noundef %225, ptr noundef %228)
  store i32 %229, ptr %51, align 4, !tbaa !5
  %230 = load ptr, ptr %53, align 8, !tbaa !11
  %231 = getelementptr inbounds %struct.CPDlsMemRec, ptr %230, i32 0, i32 15
  %232 = load i64, ptr %231, align 8, !tbaa !25
  %233 = add nsw i64 %232, 1
  store i64 %233, ptr %231, align 8, !tbaa !25
  %234 = load i32, ptr %51, align 4, !tbaa !5
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %237

236:                                              ; preds = %216
  br label %415

237:                                              ; preds = %216
  %238 = load i32, ptr %49, align 4, !tbaa !5
  %239 = sub nsw i32 %238, 1
  store i32 %239, ptr %45, align 4, !tbaa !5
  br label %240

240:                                              ; preds = %407, %237
  %241 = load i32, ptr %45, align 4, !tbaa !5
  %242 = load i32, ptr %14, align 4, !tbaa !5
  %243 = icmp slt i32 %241, %242
  br i1 %243, label %244, label %411

244:                                              ; preds = %240
  %245 = load ptr, ptr %36, align 8, !tbaa !11
  %246 = load i32, ptr %45, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds double, ptr %245, i64 %247
  %249 = load double, ptr %248, align 8, !tbaa !9
  %250 = load ptr, ptr %39, align 8, !tbaa !11
  %251 = load i32, ptr %45, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds double, ptr %250, i64 %252
  store double %249, ptr %253, align 8, !tbaa !9
  store double %249, ptr %32, align 8, !tbaa !9
  %254 = load ptr, ptr %37, align 8, !tbaa !11
  %255 = load i32, ptr %45, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds double, ptr %254, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !9
  %259 = load ptr, ptr %40, align 8, !tbaa !11
  %260 = load i32, ptr %45, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds double, ptr %259, i64 %261
  store double %258, ptr %262, align 8, !tbaa !9
  store double %258, ptr %33, align 8, !tbaa !9
  %263 = load ptr, ptr %22, align 8, !tbaa !11
  %264 = getelementptr inbounds %struct._DlsMat, ptr %263, i32 0, i32 9
  %265 = load ptr, ptr %264, align 8, !tbaa !27
  %266 = load i32, ptr %45, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds ptr, ptr %265, i64 %267
  %269 = load ptr, ptr %268, align 8, !tbaa !11
  %270 = load ptr, ptr %22, align 8, !tbaa !11
  %271 = getelementptr inbounds %struct._DlsMat, ptr %270, i32 0, i32 6
  %272 = load i32, ptr %271, align 8, !tbaa !29
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds double, ptr %269, i64 %273
  store ptr %274, ptr %43, align 8, !tbaa !11
  %275 = load ptr, ptr %38, align 8, !tbaa !11
  %276 = load i32, ptr %45, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds double, ptr %275, i64 %277
  %279 = load double, ptr %278, align 8, !tbaa !9
  store double %279, ptr %35, align 8, !tbaa !9
  %280 = load double, ptr %34, align 8, !tbaa !9
  %281 = load double, ptr %32, align 8, !tbaa !9
  %282 = call double @RAbs(double noundef %281)
  %283 = load ptr, ptr %52, align 8, !tbaa !11
  %284 = getelementptr inbounds %struct.CPodeMemRec, ptr %283, i32 0, i32 26
  %285 = load double, ptr %284, align 8, !tbaa !18
  %286 = load double, ptr %33, align 8, !tbaa !9
  %287 = fmul double %285, %286
  %288 = call double @RAbs(double noundef %287)
  %289 = fcmp ogt double %282, %288
  br i1 %289, label %290, label %293

290:                                              ; preds = %244
  %291 = load double, ptr %32, align 8, !tbaa !9
  %292 = call double @RAbs(double noundef %291)
  br label %300

293:                                              ; preds = %244
  %294 = load ptr, ptr %52, align 8, !tbaa !11
  %295 = getelementptr inbounds %struct.CPodeMemRec, ptr %294, i32 0, i32 26
  %296 = load double, ptr %295, align 8, !tbaa !18
  %297 = load double, ptr %33, align 8, !tbaa !9
  %298 = fmul double %296, %297
  %299 = call double @RAbs(double noundef %298)
  br label %300

300:                                              ; preds = %293, %290
  %301 = phi double [ %292, %290 ], [ %299, %293 ]
  %302 = fmul double %280, %301
  %303 = load double, ptr %35, align 8, !tbaa !9
  %304 = fdiv double 1.000000e+00, %303
  %305 = fcmp ogt double %302, %304
  br i1 %305, label %306, label %330

306:                                              ; preds = %300
  %307 = load double, ptr %34, align 8, !tbaa !9
  %308 = load double, ptr %32, align 8, !tbaa !9
  %309 = call double @RAbs(double noundef %308)
  %310 = load ptr, ptr %52, align 8, !tbaa !11
  %311 = getelementptr inbounds %struct.CPodeMemRec, ptr %310, i32 0, i32 26
  %312 = load double, ptr %311, align 8, !tbaa !18
  %313 = load double, ptr %33, align 8, !tbaa !9
  %314 = fmul double %312, %313
  %315 = call double @RAbs(double noundef %314)
  %316 = fcmp ogt double %309, %315
  br i1 %316, label %317, label %320

317:                                              ; preds = %306
  %318 = load double, ptr %32, align 8, !tbaa !9
  %319 = call double @RAbs(double noundef %318)
  br label %327

320:                                              ; preds = %306
  %321 = load ptr, ptr %52, align 8, !tbaa !11
  %322 = getelementptr inbounds %struct.CPodeMemRec, ptr %321, i32 0, i32 26
  %323 = load double, ptr %322, align 8, !tbaa !18
  %324 = load double, ptr %33, align 8, !tbaa !9
  %325 = fmul double %323, %324
  %326 = call double @RAbs(double noundef %325)
  br label %327

327:                                              ; preds = %320, %317
  %328 = phi double [ %319, %317 ], [ %326, %320 ]
  %329 = fmul double %307, %328
  br label %333

330:                                              ; preds = %300
  %331 = load double, ptr %35, align 8, !tbaa !9
  %332 = fdiv double 1.000000e+00, %331
  br label %333

333:                                              ; preds = %330, %327
  %334 = phi double [ %329, %327 ], [ %332, %330 ]
  store double %334, ptr %30, align 8, !tbaa !9
  %335 = load ptr, ptr %52, align 8, !tbaa !11
  %336 = getelementptr inbounds %struct.CPodeMemRec, ptr %335, i32 0, i32 26
  %337 = load double, ptr %336, align 8, !tbaa !18
  %338 = load double, ptr %33, align 8, !tbaa !9
  %339 = fmul double %337, %338
  %340 = fcmp olt double %339, 0.000000e+00
  br i1 %340, label %341, label %344

341:                                              ; preds = %333
  %342 = load double, ptr %30, align 8, !tbaa !9
  %343 = fneg double %342
  store double %343, ptr %30, align 8, !tbaa !9
  br label %344

344:                                              ; preds = %341, %333
  %345 = load double, ptr %32, align 8, !tbaa !9
  %346 = load double, ptr %30, align 8, !tbaa !9
  %347 = fadd double %345, %346
  %348 = load double, ptr %32, align 8, !tbaa !9
  %349 = fsub double %347, %348
  store double %349, ptr %30, align 8, !tbaa !9
  %350 = load double, ptr %30, align 8, !tbaa !9
  %351 = fdiv double 1.000000e+00, %350
  store double %351, ptr %31, align 8, !tbaa !9
  %352 = load i32, ptr %45, align 4, !tbaa !5
  %353 = load i32, ptr %15, align 4, !tbaa !5
  %354 = sub nsw i32 %352, %353
  %355 = icmp sgt i32 0, %354
  br i1 %355, label %356, label %357

356:                                              ; preds = %344
  br label %361

357:                                              ; preds = %344
  %358 = load i32, ptr %45, align 4, !tbaa !5
  %359 = load i32, ptr %15, align 4, !tbaa !5
  %360 = sub nsw i32 %358, %359
  br label %361

361:                                              ; preds = %357, %356
  %362 = phi i32 [ 0, %356 ], [ %360, %357 ]
  store i32 %362, ptr %46, align 4, !tbaa !5
  %363 = load i32, ptr %45, align 4, !tbaa !5
  %364 = load i32, ptr %16, align 4, !tbaa !5
  %365 = add nsw i32 %363, %364
  %366 = load i32, ptr %14, align 4, !tbaa !5
  %367 = sub nsw i32 %366, 1
  %368 = icmp slt i32 %365, %367
  br i1 %368, label %369, label %373

369:                                              ; preds = %361
  %370 = load i32, ptr %45, align 4, !tbaa !5
  %371 = load i32, ptr %16, align 4, !tbaa !5
  %372 = add nsw i32 %370, %371
  br label %376

373:                                              ; preds = %361
  %374 = load i32, ptr %14, align 4, !tbaa !5
  %375 = sub nsw i32 %374, 1
  br label %376

376:                                              ; preds = %373, %369
  %377 = phi i32 [ %372, %369 ], [ %375, %373 ]
  store i32 %377, ptr %47, align 4, !tbaa !5
  %378 = load i32, ptr %46, align 4, !tbaa !5
  store i32 %378, ptr %44, align 4, !tbaa !5
  br label %379

379:                                              ; preds = %403, %376
  %380 = load i32, ptr %44, align 4, !tbaa !5
  %381 = load i32, ptr %47, align 4, !tbaa !5
  %382 = icmp sle i32 %380, %381
  br i1 %382, label %383, label %406

383:                                              ; preds = %379
  %384 = load double, ptr %31, align 8, !tbaa !9
  %385 = load ptr, ptr %41, align 8, !tbaa !11
  %386 = load i32, ptr %44, align 4, !tbaa !5
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds double, ptr %385, i64 %387
  %389 = load double, ptr %388, align 8, !tbaa !9
  %390 = load ptr, ptr %42, align 8, !tbaa !11
  %391 = load i32, ptr %44, align 4, !tbaa !5
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds double, ptr %390, i64 %392
  %394 = load double, ptr %393, align 8, !tbaa !9
  %395 = fsub double %389, %394
  %396 = fmul double %384, %395
  %397 = load ptr, ptr %43, align 8, !tbaa !11
  %398 = load i32, ptr %44, align 4, !tbaa !5
  %399 = load i32, ptr %45, align 4, !tbaa !5
  %400 = sub nsw i32 %398, %399
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds double, ptr %397, i64 %401
  store double %396, ptr %402, align 8, !tbaa !9
  br label %403

403:                                              ; preds = %383
  %404 = load i32, ptr %44, align 4, !tbaa !5
  %405 = add nsw i32 %404, 1
  store i32 %405, ptr %44, align 4, !tbaa !5
  br label %379, !llvm.loop !30

406:                                              ; preds = %379
  br label %407

407:                                              ; preds = %406
  %408 = load i32, ptr %48, align 4, !tbaa !5
  %409 = load i32, ptr %45, align 4, !tbaa !5
  %410 = add nsw i32 %409, %408
  store i32 %410, ptr %45, align 4, !tbaa !5
  br label %240, !llvm.loop !31

411:                                              ; preds = %240
  br label %412

412:                                              ; preds = %411
  %413 = load i32, ptr %49, align 4, !tbaa !5
  %414 = add nsw i32 %413, 1
  store i32 %414, ptr %49, align 4, !tbaa !5
  br label %98, !llvm.loop !32

415:                                              ; preds = %236, %98
  %416 = load i32, ptr %51, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  ret i32 %416
}

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 }

!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 = !{!14, !10, i64 712}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!14, !12, i64 16}
!23 = !{!14, !10, i64 320}
!24 = !{!14, !12, i64 32}
!25 = !{!26, !15, i64 104}
!26 = !{!"", !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}
!27 = !{!28, !12, i64 48}
!28 = !{!"_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}
!29 = !{!28, !6, i64 24}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !21}


; 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 @RAbs(double noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @cpDlsBandDQJacImpl(i32 noundef %0, i32 noundef %1, i32 noundef %2, double noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr nocapture noundef readonly %8, ptr nocapture noundef readonly %9, ptr noundef %10, ptr noundef %11, ptr noundef %12) local_unnamed_addr #2 {
  %14 = getelementptr inbounds i8, ptr %9, i64 1456
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %9, i64 200
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %18 = tail call ptr @N_VGetArrayPointer(ptr noundef %17) #4
  %19 = tail call ptr @N_VGetArrayPointer(ptr noundef %7) #4
  %20 = tail call ptr @N_VGetArrayPointer(ptr noundef %5) #4
  %21 = tail call ptr @N_VGetArrayPointer(ptr noundef %6) #4
  %22 = tail call ptr @N_VGetArrayPointer(ptr noundef %10) #4
  %23 = tail call ptr @N_VGetArrayPointer(ptr noundef %11) #4
  %24 = tail call ptr @N_VGetArrayPointer(ptr noundef %12) #4
  tail call void @N_VScale(double noundef 1.000000e+00, ptr noundef %5, ptr noundef %11) #4
  tail call void @N_VScale(double noundef 1.000000e+00, ptr noundef %6, ptr noundef %12) #4
  %25 = load double, ptr %9, align 8, !tbaa !14
  %26 = tail call double @RSqrt(double noundef %25) #4
  %27 = add i32 %1, 1
  %28 = add i32 %27, %2
  %29 = tail call i32 @llvm.smin.i32(i32 %28, i32 %0)
  %30 = getelementptr inbounds i8, ptr %9, i64 16
  %.not161 = icmp slt i32 %29, 1
  br i1 %.not161, label %._crit_edge165, label %.lr.ph164

.lr.ph164:                                        ; preds = %13
  %31 = ptrtoint ptr %22 to i64
  %32 = ptrtoint ptr %19 to i64
  %33 = getelementptr inbounds i8, ptr %9, i64 280
  %34 = getelementptr inbounds i8, ptr %9, i64 712
  %35 = getelementptr inbounds i8, ptr %9, i64 320
  %36 = getelementptr inbounds i8, ptr %9, i64 32
  %37 = getelementptr inbounds i8, ptr %15, i64 104
  %38 = getelementptr inbounds i8, ptr %8, i64 48
  %39 = getelementptr inbounds i8, ptr %8, i64 24
  %40 = add nsw i32 %0, -1
  %41 = sext i32 %28 to i64
  %42 = sext i32 %0 to i64
  %43 = sub i32 0, %1
  %wide.trip.count = zext nneg i32 %29 to i64
  %44 = zext i32 %2 to i64
  %45 = zext i32 %28 to i64
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %._crit_edge160, %.lr.ph164
  %indvars.iv173 = phi i32 [ %43, %.lr.ph164 ], [ %indvars.iv.next174, %._crit_edge160 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph164 ], [ %indvars.iv.next, %._crit_edge160 ]
  %46 = add nuw i64 %indvars.iv, %44
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %78
  %indvars.iv170 = phi i64 [ %indvars.iv, %.lr.ph.preheader ], [ %indvars.iv.next171, %78 ]
  %47 = getelementptr inbounds double, ptr %20, i64 %indvars.iv170
  %48 = load double, ptr %47, align 8, !tbaa !15
  %49 = getelementptr inbounds double, ptr %21, i64 %indvars.iv170
  %50 = load double, ptr %49, align 8, !tbaa !15
  %51 = getelementptr inbounds double, ptr %18, i64 %indvars.iv170
  %52 = load double, ptr %51, align 8, !tbaa !15
  %53 = tail call double @RAbs(double noundef %48) #4
  %54 = load double, ptr %33, align 8, !tbaa !16
  %55 = fmul double %50, %54
  %56 = tail call double @RAbs(double noundef %55) #4
  %57 = fcmp ogt double %53, %56
  br i1 %57, label %61, label %58

58:                                               ; preds = %.lr.ph
  %59 = load double, ptr %33, align 8, !tbaa !16
  %60 = fmul double %50, %59
  br label %61

61:                                               ; preds = %.lr.ph, %58
  %.sink = phi double [ %60, %58 ], [ %48, %.lr.ph ]
  %62 = tail call double @RAbs(double noundef %.sink) #4
  %63 = fmul double %26, %62
  %64 = fdiv double 1.000000e+00, %52
  %65 = fcmp ogt double %63, %64
  br i1 %65, label %66, label %78

66:                                               ; preds = %61
  %67 = tail call double @RAbs(double noundef %48) #4
  %68 = load double, ptr %33, align 8, !tbaa !16
  %69 = fmul double %50, %68
  %70 = tail call double @RAbs(double noundef %69) #4
  %71 = fcmp ogt double %67, %70
  br i1 %71, label %75, label %72

72:                                               ; preds = %66
  %73 = load double, ptr %33, align 8, !tbaa !16
  %74 = fmul double %50, %73
  br label %75

75:                                               ; preds = %66, %72
  %.sink183 = phi double [ %74, %72 ], [ %48, %66 ]
  %76 = tail call double @RAbs(double noundef %.sink183) #4
  %77 = fmul double %26, %76
  br label %78

78:                                               ; preds = %61, %75
  %79 = phi double [ %77, %75 ], [ %64, %61 ]
  %80 = load double, ptr %33, align 8, !tbaa !16
  %81 = fmul double %50, %80
  %82 = fcmp olt double %81, 0.000000e+00
  %83 = fneg double %79
  %.0 = select i1 %82, double %83, double %79
  %84 = fadd double %48, %.0
  %85 = fsub double %84, %48
  %86 = load double, ptr %34, align 8, !tbaa !17
  %87 = getelementptr inbounds double, ptr %23, i64 %indvars.iv170
  %88 = load double, ptr %87, align 8, !tbaa !15
  %89 = tail call double @llvm.fmuladd.f64(double %86, double %85, double %88)
  store double %89, ptr %87, align 8, !tbaa !15
  %90 = getelementptr inbounds double, ptr %24, i64 %indvars.iv170
  %91 = load double, ptr %90, align 8, !tbaa !15
  %92 = fadd double %91, %85
  store double %92, ptr %90, align 8, !tbaa !15
  %indvars.iv.next171 = add nsw i64 %indvars.iv170, %41
  %93 = icmp slt i64 %indvars.iv.next171, %42
  br i1 %93, label %.lr.ph, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %78
  %94 = load ptr, ptr %30, align 8, !tbaa !20
  %95 = load double, ptr %35, align 8, !tbaa !21
  %96 = load ptr, ptr %36, align 8, !tbaa !22
  %97 = tail call i32 %94(double noundef %95, ptr noundef %11, ptr noundef %12, ptr noundef %10, ptr noundef %96) #4
  %98 = load i64, ptr %37, align 8, !tbaa !23
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %37, align 8, !tbaa !23
  %.not150 = icmp eq i32 %97, 0
  br i1 %.not150, label %.lr.ph159, label %._crit_edge165

.lr.ph159:                                        ; preds = %._crit_edge, %._crit_edge157
  %indvar = phi i64 [ %indvar.next, %._crit_edge157 ], [ 0, %._crit_edge ]
  %indvars.iv180 = phi i64 [ %indvars.iv.next181, %._crit_edge157 ], [ %indvars.iv, %._crit_edge ]
  %indvars.iv175 = phi i32 [ %indvars.iv.next176, %._crit_edge157 ], [ %indvars.iv173, %._crit_edge ]
  %100 = mul i64 %indvar, %45
  %101 = add i64 %46, %100
  %102 = trunc i64 %101 to i32
  %smin = tail call i32 @llvm.smin.i32(i32 %102, i32 %40)
  %smax187 = tail call i32 @llvm.smax.i32(i32 %indvars.iv175, i32 0)
  %103 = zext nneg i32 %smax187 to i64
  %104 = tail call i32 @llvm.umax.i32(i32 %smin, i32 %smax187)
  %umax = zext i32 %104 to i64
  %105 = add nuw nsw i64 %umax, 1
  %106 = sub nsw i64 %105, %103
  %107 = mul i64 %indvar, %41
  %108 = add i64 %indvars.iv, %107
  %smax = tail call i32 @llvm.smax.i32(i32 %indvars.iv175, i32 0)
  %109 = zext nneg i32 %smax to i64
  %110 = getelementptr inbounds double, ptr %20, i64 %indvars.iv180
  %111 = load double, ptr %110, align 8, !tbaa !15
  %112 = getelementptr inbounds double, ptr %23, i64 %indvars.iv180
  store double %111, ptr %112, align 8, !tbaa !15
  %113 = getelementptr inbounds double, ptr %21, i64 %indvars.iv180
  %114 = load double, ptr %113, align 8, !tbaa !15
  %115 = getelementptr inbounds double, ptr %24, i64 %indvars.iv180
  store double %114, ptr %115, align 8, !tbaa !15
  %116 = load ptr, ptr %38, align 8, !tbaa !25
  %117 = getelementptr inbounds ptr, ptr %116, i64 %indvars.iv180
  %118 = load ptr, ptr %117, align 8, !tbaa !27
  %119 = ptrtoint ptr %118 to i64
  %120 = load i32, ptr %39, align 8, !tbaa !28
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %118, i64 %121
  %123 = getelementptr inbounds double, ptr %18, i64 %indvars.iv180
  %124 = load double, ptr %123, align 8, !tbaa !15
  %125 = tail call double @RAbs(double noundef %111) #4
  %126 = load double, ptr %33, align 8, !tbaa !16
  %127 = fmul double %114, %126
  %128 = tail call double @RAbs(double noundef %127) #4
  %129 = fcmp ogt double %125, %128
  br i1 %129, label %133, label %130

130:                                              ; preds = %.lr.ph159
  %131 = load double, ptr %33, align 8, !tbaa !16
  %132 = fmul double %114, %131
  br label %133

133:                                              ; preds = %.lr.ph159, %130
  %.sink184 = phi double [ %132, %130 ], [ %111, %.lr.ph159 ]
  %134 = tail call double @RAbs(double noundef %.sink184) #4
  %135 = fmul double %26, %134
  %136 = fdiv double 1.000000e+00, %124
  %137 = fcmp ogt double %135, %136
  br i1 %137, label %138, label %150

138:                                              ; preds = %133
  %139 = tail call double @RAbs(double noundef %111) #4
  %140 = load double, ptr %33, align 8, !tbaa !16
  %141 = fmul double %114, %140
  %142 = tail call double @RAbs(double noundef %141) #4
  %143 = fcmp ogt double %139, %142
  br i1 %143, label %147, label %144

144:                                              ; preds = %138
  %145 = load double, ptr %33, align 8, !tbaa !16
  %146 = fmul double %114, %145
  br label %147

147:                                              ; preds = %138, %144
  %.sink185 = phi double [ %146, %144 ], [ %111, %138 ]
  %148 = tail call double @RAbs(double noundef %.sink185) #4
  %149 = fmul double %26, %148
  br label %150

150:                                              ; preds = %133, %147
  %151 = phi double [ %149, %147 ], [ %136, %133 ]
  %152 = load double, ptr %33, align 8, !tbaa !16
  %153 = fmul double %114, %152
  %154 = fcmp olt double %153, 0.000000e+00
  %155 = fneg double %151
  %.1 = select i1 %154, double %155, double %151
  %156 = fadd double %111, %.1
  %157 = fsub double %156, %111
  %158 = fdiv double 1.000000e+00, %157
  %159 = trunc i64 %indvars.iv180 to i32
  %160 = sub i32 %159, %1
  %161 = tail call i32 @llvm.smax.i32(i32 %160, i32 0)
  %162 = trunc i64 %indvars.iv180 to i32
  %163 = add i32 %162, %2
  %164 = tail call i32 @llvm.smin.i32(i32 %163, i32 %40)
  %.not151153 = icmp sgt i32 %161, %164
  br i1 %.not151153, label %._crit_edge157, label %.lr.ph156.preheader

.lr.ph156.preheader:                              ; preds = %150
  %165 = zext nneg i32 %164 to i64
  %min.iters.check = icmp ult i64 %106, 4
  br i1 %min.iters.check, label %.lr.ph156.preheader191, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph156.preheader
  %166 = sub i64 %119, %31
  %167 = sub i64 %121, %108
  %168 = shl i64 %167, 3
  %169 = add i64 %166, %168
  %diff.check = icmp ult i64 %169, 32
  %170 = sub i64 %119, %32
  %171 = add i64 %170, %168
  %diff.check186 = icmp ult i64 %171, 32
  %conflict.rdx = or i1 %diff.check, %diff.check186
  br i1 %conflict.rdx, label %.lr.ph156.preheader191, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %106, -4
  %ind.end = add nsw i64 %n.vec, %109
  %broadcast.splatinsert = insertelement <2 x double> poison, double %158, 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, %109
  %172 = getelementptr inbounds double, ptr %22, i64 %offset.idx
  %173 = getelementptr inbounds i8, ptr %172, i64 16
  %wide.load = load <2 x double>, ptr %172, align 8, !tbaa !15
  %wide.load188 = load <2 x double>, ptr %173, align 8, !tbaa !15
  %174 = getelementptr inbounds double, ptr %19, i64 %offset.idx
  %175 = getelementptr inbounds i8, ptr %174, i64 16
  %wide.load189 = load <2 x double>, ptr %174, align 8, !tbaa !15
  %wide.load190 = load <2 x double>, ptr %175, align 8, !tbaa !15
  %176 = fsub <2 x double> %wide.load, %wide.load189
  %177 = fsub <2 x double> %wide.load188, %wide.load190
  %178 = fmul <2 x double> %broadcast.splat, %176
  %179 = fmul <2 x double> %broadcast.splat, %177
  %180 = sub nsw i64 %offset.idx, %indvars.iv180
  %181 = getelementptr inbounds double, ptr %122, i64 %180
  %182 = getelementptr inbounds i8, ptr %181, i64 16
  store <2 x double> %178, ptr %181, align 8, !tbaa !15
  store <2 x double> %179, ptr %182, align 8, !tbaa !15
  %index.next = add nuw i64 %index, 4
  %183 = icmp eq i64 %index.next, %n.vec
  br i1 %183, label %middle.block, label %vector.body, !llvm.loop !29

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %106, %n.vec
  br i1 %cmp.n, label %._crit_edge157, label %.lr.ph156.preheader191

.lr.ph156.preheader191:                           ; preds = %middle.block, %vector.memcheck, %.lr.ph156.preheader
  %indvars.iv177.ph = phi i64 [ %109, %vector.memcheck ], [ %109, %.lr.ph156.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph156

.lr.ph156:                                        ; preds = %.lr.ph156.preheader191, %.lr.ph156
  %indvars.iv177 = phi i64 [ %indvars.iv.next178, %.lr.ph156 ], [ %indvars.iv177.ph, %.lr.ph156.preheader191 ]
  %184 = getelementptr inbounds double, ptr %22, i64 %indvars.iv177
  %185 = load double, ptr %184, align 8, !tbaa !15
  %186 = getelementptr inbounds double, ptr %19, i64 %indvars.iv177
  %187 = load double, ptr %186, align 8, !tbaa !15
  %188 = fsub double %185, %187
  %189 = fmul double %158, %188
  %190 = sub nsw i64 %indvars.iv177, %indvars.iv180
  %191 = getelementptr inbounds double, ptr %122, i64 %190
  store double %189, ptr %191, align 8, !tbaa !15
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %.not151.not = icmp ult i64 %indvars.iv177, %165
  br i1 %.not151.not, label %.lr.ph156, label %._crit_edge157, !llvm.loop !32

._crit_edge157:                                   ; preds = %.lr.ph156, %middle.block, %150
  %indvars.iv.next181 = add nsw i64 %indvars.iv180, %41
  %192 = icmp slt i64 %indvars.iv.next181, %42
  %indvars.iv.next176 = add i32 %indvars.iv175, %28
  %indvar.next = add i64 %indvar, 1
  br i1 %192, label %.lr.ph159, label %._crit_edge160, !llvm.loop !33

._crit_edge160:                                   ; preds = %._crit_edge157
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %indvars.iv.next174 = add i32 %indvars.iv173, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge165, label %.lr.ph.preheader, !llvm.loop !34

._crit_edge165:                                   ; preds = %._crit_edge160, %._crit_edge, %13
  %.1138 = phi i32 [ 0, %13 ], [ %97, %._crit_edge ], [ 0, %._crit_edge160 ]
  ret i32 %.1138
}

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

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

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

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!7, !7, i64 0}
!16 = !{!6, !7, i64 280}
!17 = !{!6, !7, i64 712}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!6, !11, i64 16}
!21 = !{!6, !7, i64 320}
!22 = !{!6, !11, i64 32}
!23 = !{!24, !12, i64 104}
!24 = !{!"", !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}
!25 = !{!26, !11, i64 48}
!26 = !{!"_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}
!27 = !{!11, !11, i64 0}
!28 = !{!26, !10, i64 24}
!29 = distinct !{!29, !19, !30, !31}
!30 = !{!"llvm.loop.isvectorized", i32 1}
!31 = !{!"llvm.loop.unroll.runtime.disable"}
!32 = distinct !{!32, !19, !30}
!33 = distinct !{!33, !19}
!34 = distinct !{!34, !19}


; 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