; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (dlasq1)

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

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@c__1 = external hidden global i32, align 4
@c__2 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@c__0 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @dlasq1_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = getelementptr inbounds double, ptr %24, i32 -1
  store ptr %25, ptr %9, align 8, !tbaa !5
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds double, ptr %26, i32 -1
  store ptr %27, ptr %8, align 8, !tbaa !5
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds double, ptr %28, i32 -1
  store ptr %29, ptr %7, align 8, !tbaa !5
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 0, ptr %30, align 4, !tbaa !9
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = load i32, ptr %31, align 4, !tbaa !9
  %33 = icmp slt i32 %32, 0
  br i1 %33, label %34, label %40

34:                                               ; preds = %5
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 -1, ptr %35, align 4, !tbaa !9
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = sub nsw i32 0, %37
  store i32 %38, ptr %11, align 4, !tbaa !9
  %39 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %11, i32 noundef 6)
  store i32 1, ptr %23, align 4
  br label %336

40:                                               ; preds = %5
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %40
  store i32 1, ptr %23, align 4
  br label %336

45:                                               ; preds = %40
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = icmp eq i32 %47, 1
  br i1 %48, label %49, label %67

49:                                               ; preds = %45
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds double, ptr %50, i64 1
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = fcmp oge double %52, 0.000000e+00
  br i1 %53, label %54, label %58

54:                                               ; preds = %49
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds double, ptr %55, i64 1
  %57 = load double, ptr %56, align 8, !tbaa !11
  br label %63

58:                                               ; preds = %49
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %59, i64 1
  %61 = load double, ptr %60, align 8, !tbaa !11
  %62 = fneg double %61
  br label %63

63:                                               ; preds = %58, %54
  %64 = phi double [ %57, %54 ], [ %62, %58 ]
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %65, i64 1
  store double %64, ptr %66, align 8, !tbaa !11
  store i32 1, ptr %23, align 4
  br label %336

67:                                               ; preds = %45
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = icmp eq i32 %69, 2
  br i1 %70, label %71, label %84

71:                                               ; preds = %67
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds double, ptr %72, i64 1
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds double, ptr %74, i64 1
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds double, ptr %76, i64 2
  call void @dlas2_(ptr noundef %73, ptr noundef %75, ptr noundef %77, ptr noundef %19, ptr noundef %20)
  %78 = load double, ptr %20, align 8, !tbaa !11
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds double, ptr %79, i64 1
  store double %78, ptr %80, align 8, !tbaa !11
  %81 = load double, ptr %19, align 8, !tbaa !11
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds double, ptr %82, i64 2
  store double %81, ptr %83, align 8, !tbaa !11
  store i32 1, ptr %23, align 4
  br label %336

84:                                               ; preds = %67
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = sub nsw i32 %89, 1
  store i32 %90, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %138, %87
  %92 = load i32, ptr %16, align 4, !tbaa !9
  %93 = load i32, ptr %11, align 4, !tbaa !9
  %94 = icmp sle i32 %92, %93
  br i1 %94, label %95, label %141

95:                                               ; preds = %91
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = load i32, ptr %16, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %96, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !11
  store double %100, ptr %13, align 8, !tbaa !11
  %101 = load double, ptr %13, align 8, !tbaa !11
  %102 = fcmp oge double %101, 0.000000e+00
  br i1 %102, label %103, label %105

103:                                              ; preds = %95
  %104 = load double, ptr %13, align 8, !tbaa !11
  br label %108

105:                                              ; preds = %95
  %106 = load double, ptr %13, align 8, !tbaa !11
  %107 = fneg double %106
  br label %108

108:                                              ; preds = %105, %103
  %109 = phi double [ %104, %103 ], [ %107, %105 ]
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = load i32, ptr %16, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds double, ptr %110, i64 %112
  store double %109, ptr %113, align 8, !tbaa !11
  %114 = load double, ptr %20, align 8, !tbaa !11
  store double %114, ptr %14, align 8, !tbaa !11
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = load i32, ptr %16, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds double, ptr %115, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !11
  store double %119, ptr %13, align 8, !tbaa !11
  %120 = load double, ptr %13, align 8, !tbaa !11
  %121 = fcmp oge double %120, 0.000000e+00
  br i1 %121, label %122, label %124

122:                                              ; preds = %108
  %123 = load double, ptr %13, align 8, !tbaa !11
  br label %127

124:                                              ; preds = %108
  %125 = load double, ptr %13, align 8, !tbaa !11
  %126 = fneg double %125
  br label %127

127:                                              ; preds = %124, %122
  %128 = phi double [ %123, %122 ], [ %126, %124 ]
  store double %128, ptr %15, align 8, !tbaa !11
  %129 = load double, ptr %14, align 8, !tbaa !11
  %130 = load double, ptr %15, align 8, !tbaa !11
  %131 = fcmp oge double %129, %130
  br i1 %131, label %132, label %134

132:                                              ; preds = %127
  %133 = load double, ptr %14, align 8, !tbaa !11
  br label %136

134:                                              ; preds = %127
  %135 = load double, ptr %15, align 8, !tbaa !11
  br label %136

136:                                              ; preds = %134, %132
  %137 = phi double [ %133, %132 ], [ %135, %134 ]
  store double %137, ptr %20, align 8, !tbaa !11
  br label %138

138:                                              ; preds = %136
  %139 = load i32, ptr %16, align 4, !tbaa !9
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %16, align 4, !tbaa !9
  br label %91, !llvm.loop !13

141:                                              ; preds = %91
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds double, ptr %142, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !11
  store double %147, ptr %13, align 8, !tbaa !11
  %148 = load double, ptr %13, align 8, !tbaa !11
  %149 = fcmp oge double %148, 0.000000e+00
  br i1 %149, label %150, label %152

150:                                              ; preds = %141
  %151 = load double, ptr %13, align 8, !tbaa !11
  br label %155

152:                                              ; preds = %141
  %153 = load double, ptr %13, align 8, !tbaa !11
  %154 = fneg double %153
  br label %155

155:                                              ; preds = %152, %150
  %156 = phi double [ %151, %150 ], [ %154, %152 ]
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds double, ptr %157, i64 %160
  store double %156, ptr %161, align 8, !tbaa !11
  %162 = load double, ptr %20, align 8, !tbaa !11
  %163 = fcmp oeq double %162, 0.000000e+00
  br i1 %163, label %164, label %168

164:                                              ; preds = %155
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = getelementptr inbounds double, ptr %166, i64 1
  call void @dlasrt_(ptr noundef @.str.1, ptr noundef %165, ptr noundef %167, ptr noundef %18)
  store i32 1, ptr %23, align 4
  br label %336

168:                                              ; preds = %155
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = load i32, ptr %169, align 4, !tbaa !9
  store i32 %170, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %171

171:                                              ; preds = %191, %168
  %172 = load i32, ptr %16, align 4, !tbaa !9
  %173 = load i32, ptr %11, align 4, !tbaa !9
  %174 = icmp sle i32 %172, %173
  br i1 %174, label %175, label %194

175:                                              ; preds = %171
  %176 = load double, ptr %20, align 8, !tbaa !11
  store double %176, ptr %13, align 8, !tbaa !11
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = load i32, ptr %16, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds double, ptr %177, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !11
  store double %181, ptr %14, align 8, !tbaa !11
  %182 = load double, ptr %13, align 8, !tbaa !11
  %183 = load double, ptr %14, align 8, !tbaa !11
  %184 = fcmp oge double %182, %183
  br i1 %184, label %185, label %187

185:                                              ; preds = %175
  %186 = load double, ptr %13, align 8, !tbaa !11
  br label %189

187:                                              ; preds = %175
  %188 = load double, ptr %14, align 8, !tbaa !11
  br label %189

189:                                              ; preds = %187, %185
  %190 = phi double [ %186, %185 ], [ %188, %187 ]
  store double %190, ptr %20, align 8, !tbaa !11
  br label %191

191:                                              ; preds = %189
  %192 = load i32, ptr %16, align 4, !tbaa !9
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %16, align 4, !tbaa !9
  br label %171, !llvm.loop !15

194:                                              ; preds = %171
  %195 = call double @dlamch_(ptr noundef @.str.2)
  store double %195, ptr %22, align 8, !tbaa !11
  %196 = call double @dlamch_(ptr noundef @.str.3)
  store double %196, ptr %21, align 8, !tbaa !11
  %197 = load double, ptr %22, align 8, !tbaa !11
  %198 = load double, ptr %21, align 8, !tbaa !11
  %199 = fdiv double %197, %198
  %200 = call double @sqrt(double noundef %199) #4
  store double %200, ptr %17, align 8, !tbaa !11
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %203 = getelementptr inbounds double, ptr %202, i64 1
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = getelementptr inbounds double, ptr %204, i64 1
  call void @dcopy_(ptr noundef %201, ptr noundef %203, ptr noundef @c__1, ptr noundef %205, ptr noundef @c__2)
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  %207 = load i32, ptr %206, align 4, !tbaa !9
  %208 = sub nsw i32 %207, 1
  store i32 %208, ptr %11, align 4, !tbaa !9
  %209 = load ptr, ptr %8, align 8, !tbaa !5
  %210 = getelementptr inbounds double, ptr %209, i64 1
  %211 = load ptr, ptr %9, align 8, !tbaa !5
  %212 = getelementptr inbounds double, ptr %211, i64 2
  call void @dcopy_(ptr noundef %11, ptr noundef %210, ptr noundef @c__1, ptr noundef %212, ptr noundef @c__2)
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = load i32, ptr %213, align 4, !tbaa !9
  %215 = shl i32 %214, 1
  %216 = sub nsw i32 %215, 1
  store i32 %216, ptr %11, align 4, !tbaa !9
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = load i32, ptr %217, align 4, !tbaa !9
  %219 = shl i32 %218, 1
  %220 = sub nsw i32 %219, 1
  store i32 %220, ptr %12, align 4, !tbaa !9
  %221 = load ptr, ptr %9, align 8, !tbaa !5
  %222 = getelementptr inbounds double, ptr %221, i64 1
  call void @dlascl_(ptr noundef @.str.4, ptr noundef @c__0, ptr noundef @c__0, ptr noundef %20, ptr noundef %17, ptr noundef %11, ptr noundef @c__1, ptr noundef %222, ptr noundef %12, ptr noundef %18)
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  %224 = load i32, ptr %223, align 4, !tbaa !9
  %225 = shl i32 %224, 1
  %226 = sub nsw i32 %225, 1
  store i32 %226, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %227

227:                                              ; preds = %244, %194
  %228 = load i32, ptr %16, align 4, !tbaa !9
  %229 = load i32, ptr %11, align 4, !tbaa !9
  %230 = icmp sle i32 %228, %229
  br i1 %230, label %231, label %247

231:                                              ; preds = %227
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  %233 = load i32, ptr %16, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds double, ptr %232, i64 %234
  %236 = load double, ptr %235, align 8, !tbaa !11
  store double %236, ptr %13, align 8, !tbaa !11
  %237 = load double, ptr %13, align 8, !tbaa !11
  %238 = load double, ptr %13, align 8, !tbaa !11
  %239 = fmul double %237, %238
  %240 = load ptr, ptr %9, align 8, !tbaa !5
  %241 = load i32, ptr %16, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds double, ptr %240, i64 %242
  store double %239, ptr %243, align 8, !tbaa !11
  br label %244

244:                                              ; preds = %231
  %245 = load i32, ptr %16, align 4, !tbaa !9
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %16, align 4, !tbaa !9
  br label %227, !llvm.loop !16

247:                                              ; preds = %227
  %248 = load ptr, ptr %9, align 8, !tbaa !5
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  %250 = load i32, ptr %249, align 4, !tbaa !9
  %251 = mul nsw i32 %250, 2
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds double, ptr %248, i64 %252
  store double 0.000000e+00, ptr %253, align 8, !tbaa !11
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = load ptr, ptr %9, align 8, !tbaa !5
  %256 = getelementptr inbounds double, ptr %255, i64 1
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  call void @dlasq2_(ptr noundef %254, ptr noundef %256, ptr noundef %257)
  %258 = load ptr, ptr %10, align 8, !tbaa !5
  %259 = load i32, ptr %258, align 4, !tbaa !9
  %260 = icmp eq i32 %259, 0
  br i1 %260, label %261, label %287

261:                                              ; preds = %247
  %262 = load ptr, ptr %6, align 8, !tbaa !5
  %263 = load i32, ptr %262, align 4, !tbaa !9
  store i32 %263, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %264

264:                                              ; preds = %279, %261
  %265 = load i32, ptr %16, align 4, !tbaa !9
  %266 = load i32, ptr %11, align 4, !tbaa !9
  %267 = icmp sle i32 %265, %266
  br i1 %267, label %268, label %282

268:                                              ; preds = %264
  %269 = load ptr, ptr %9, align 8, !tbaa !5
  %270 = load i32, ptr %16, align 4, !tbaa !9
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds double, ptr %269, i64 %271
  %273 = load double, ptr %272, align 8, !tbaa !11
  %274 = call double @sqrt(double noundef %273) #4
  %275 = load ptr, ptr %7, align 8, !tbaa !5
  %276 = load i32, ptr %16, align 4, !tbaa !9
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds double, ptr %275, i64 %277
  store double %274, ptr %278, align 8, !tbaa !11
  br label %279

279:                                              ; preds = %268
  %280 = load i32, ptr %16, align 4, !tbaa !9
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %16, align 4, !tbaa !9
  br label %264, !llvm.loop !17

282:                                              ; preds = %264
  %283 = load ptr, ptr %6, align 8, !tbaa !5
  %284 = load ptr, ptr %7, align 8, !tbaa !5
  %285 = getelementptr inbounds double, ptr %284, i64 1
  %286 = load ptr, ptr %6, align 8, !tbaa !5
  call void @dlascl_(ptr noundef @.str.4, ptr noundef @c__0, ptr noundef @c__0, ptr noundef %17, ptr noundef %20, ptr noundef %283, ptr noundef @c__1, ptr noundef %285, ptr noundef %286, ptr noundef %18)
  br label %335

287:                                              ; preds = %247
  %288 = load ptr, ptr %10, align 8, !tbaa !5
  %289 = load i32, ptr %288, align 4, !tbaa !9
  %290 = icmp eq i32 %289, 2
  br i1 %290, label %291, label %334

291:                                              ; preds = %287
  %292 = load ptr, ptr %6, align 8, !tbaa !5
  %293 = load i32, ptr %292, align 4, !tbaa !9
  store i32 %293, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %294

294:                                              ; preds = %322, %291
  %295 = load i32, ptr %16, align 4, !tbaa !9
  %296 = load i32, ptr %11, align 4, !tbaa !9
  %297 = icmp sle i32 %295, %296
  br i1 %297, label %298, label %325

298:                                              ; preds = %294
  %299 = load ptr, ptr %9, align 8, !tbaa !5
  %300 = load i32, ptr %16, align 4, !tbaa !9
  %301 = shl i32 %300, 1
  %302 = sub nsw i32 %301, 1
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds double, ptr %299, i64 %303
  %305 = load double, ptr %304, align 8, !tbaa !11
  %306 = call double @sqrt(double noundef %305) #4
  %307 = load ptr, ptr %7, align 8, !tbaa !5
  %308 = load i32, ptr %16, align 4, !tbaa !9
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds double, ptr %307, i64 %309
  store double %306, ptr %310, align 8, !tbaa !11
  %311 = load ptr, ptr %9, align 8, !tbaa !5
  %312 = load i32, ptr %16, align 4, !tbaa !9
  %313 = mul nsw i32 %312, 2
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds double, ptr %311, i64 %314
  %316 = load double, ptr %315, align 8, !tbaa !11
  %317 = call double @sqrt(double noundef %316) #4
  %318 = load ptr, ptr %8, align 8, !tbaa !5
  %319 = load i32, ptr %16, align 4, !tbaa !9
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds double, ptr %318, i64 %320
  store double %317, ptr %321, align 8, !tbaa !11
  br label %322

322:                                              ; preds = %298
  %323 = load i32, ptr %16, align 4, !tbaa !9
  %324 = add nsw i32 %323, 1
  store i32 %324, ptr %16, align 4, !tbaa !9
  br label %294, !llvm.loop !18

325:                                              ; preds = %294
  %326 = load ptr, ptr %6, align 8, !tbaa !5
  %327 = load ptr, ptr %7, align 8, !tbaa !5
  %328 = getelementptr inbounds double, ptr %327, i64 1
  %329 = load ptr, ptr %6, align 8, !tbaa !5
  call void @dlascl_(ptr noundef @.str.4, ptr noundef @c__0, ptr noundef @c__0, ptr noundef %17, ptr noundef %20, ptr noundef %326, ptr noundef @c__1, ptr noundef %328, ptr noundef %329, ptr noundef %18)
  %330 = load ptr, ptr %6, align 8, !tbaa !5
  %331 = load ptr, ptr %8, align 8, !tbaa !5
  %332 = getelementptr inbounds double, ptr %331, i64 1
  %333 = load ptr, ptr %6, align 8, !tbaa !5
  call void @dlascl_(ptr noundef @.str.4, ptr noundef @c__0, ptr noundef @c__0, ptr noundef %17, ptr noundef %20, ptr noundef %330, ptr noundef @c__1, ptr noundef %332, ptr noundef %333, ptr noundef %18)
  br label %334

334:                                              ; preds = %325, %287
  br label %335

335:                                              ; preds = %334, %282
  store i32 1, ptr %23, align 4
  br label %336

336:                                              ; preds = %335, %164, %71, %63, %44, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  ret void
}

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

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

declare void @dlas2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @dlasrt_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare double @dlamch_(ptr noundef) #2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

declare void @dcopy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @dlascl_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @dlasq2_(ptr noundef, ptr noundef, ptr noundef) #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@c__1 = external hidden global i32, align 4
@c__2 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@c__0 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @dlasq1_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %12 = getelementptr inbounds i8, ptr %3, i64 -8
  %13 = getelementptr inbounds i8, ptr %2, i64 -8
  %14 = getelementptr inbounds i8, ptr %1, i64 -8
  store i32 0, ptr %4, align 4, !tbaa !5
  %15 = load i32, ptr %0, align 4, !tbaa !5
  %16 = icmp slt i32 %15, 0
  br i1 %16, label %17, label %19

17:                                               ; preds = %5
  store i32 -1, ptr %4, align 4, !tbaa !5
  store i32 1, ptr %6, align 4, !tbaa !5
  %18 = call i32 @xerbla_(ptr noundef nonnull @.str, ptr noundef nonnull %6, i32 noundef 6) #5
  br label %118

19:                                               ; preds = %5
  switch i32 %15, label %.lr.ph.preheader [
    i32 0, label %118
    i32 1, label %20
    i32 2, label %25
  ]

20:                                               ; preds = %19
  %21 = load double, ptr %1, align 8, !tbaa !9
  %22 = fcmp ult double %21, 0.000000e+00
  %23 = fneg double %21
  %24 = select i1 %22, double %23, double %21
  store double %24, ptr %1, align 8, !tbaa !9
  br label %118

25:                                               ; preds = %19
  %26 = getelementptr inbounds i8, ptr %1, i64 8
  call void @dlas2_(ptr noundef %1, ptr noundef %2, ptr noundef nonnull %26, ptr noundef nonnull %10, ptr noundef nonnull %11) #5
  %27 = load double, ptr %11, align 8, !tbaa !9
  store double %27, ptr %1, align 8, !tbaa !9
  %28 = load double, ptr %10, align 8, !tbaa !9
  store double %28, ptr %26, align 8, !tbaa !9
  br label %118

.lr.ph.preheader:                                 ; preds = %19
  %29 = add nsw i32 %15, -1
  store i32 %29, ptr %6, align 4, !tbaa !5
  %wide.trip.count = zext nneg i32 %15 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %30 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %42, %.lr.ph ]
  %31 = getelementptr inbounds double, ptr %14, i64 %indvars.iv
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = fcmp oge double %32, 0.000000e+00
  %34 = fneg double %32
  %35 = select i1 %33, double %32, double %34
  store double %35, ptr %31, align 8, !tbaa !9
  %36 = getelementptr inbounds double, ptr %13, i64 %indvars.iv
  %37 = load double, ptr %36, align 8, !tbaa !9
  %38 = fcmp oge double %37, 0.000000e+00
  %39 = fneg double %37
  %40 = select i1 %38, double %37, double %39
  %41 = fcmp oge double %30, %40
  %42 = select i1 %41, double %30, double %40
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph
  store double %42, ptr %11, align 8, !tbaa !9
  %43 = getelementptr inbounds double, ptr %14, i64 %wide.trip.count
  %44 = load double, ptr %43, align 8, !tbaa !9
  %45 = fcmp oge double %44, 0.000000e+00
  %46 = fneg double %44
  %47 = select i1 %45, double %44, double %46
  store double %47, ptr %43, align 8, !tbaa !9
  %48 = fcmp oeq double %42, 0.000000e+00
  br i1 %48, label %49, label %50

49:                                               ; preds = %._crit_edge
  call void @dlasrt_(ptr noundef nonnull @.str.1, ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %9) #5
  br label %118

50:                                               ; preds = %._crit_edge
  %.not113121 = icmp eq i32 %15, 0
  br i1 %.not113121, label %._crit_edge125, label %.lr.ph124.preheader

.lr.ph124.preheader:                              ; preds = %50
  %smax = tail call i32 @llvm.smax.i32(i32 %15, i32 1)
  %51 = zext nneg i32 %smax to i64
  %xtraiter = and i64 %51, 3
  %52 = icmp slt i32 %15, 4
  br i1 %52, label %._crit_edge125.loopexit.unr-lcssa, label %.lr.ph124.preheader.new

.lr.ph124.preheader.new:                          ; preds = %.lr.ph124.preheader
  %unroll_iter = and i64 %51, 2147483644
  %invariant.gep170 = getelementptr inbounds i8, ptr %14, i64 16
  %invariant.gep172 = getelementptr inbounds i8, ptr %14, i64 24
  br label %.lr.ph124

.lr.ph124:                                        ; preds = %.lr.ph124, %.lr.ph124.preheader.new
  %indvars.iv145 = phi i64 [ 1, %.lr.ph124.preheader.new ], [ %indvars.iv.next146.3, %.lr.ph124 ]
  %53 = phi double [ %42, %.lr.ph124.preheader.new ], [ %67, %.lr.ph124 ]
  %niter = phi i64 [ 0, %.lr.ph124.preheader.new ], [ %niter.next.3, %.lr.ph124 ]
  %54 = getelementptr inbounds double, ptr %14, i64 %indvars.iv145
  %55 = load double, ptr %54, align 8, !tbaa !9
  %56 = fcmp oge double %53, %55
  %57 = select i1 %56, double %53, double %55
  %58 = getelementptr double, ptr %1, i64 %indvars.iv145
  %59 = load double, ptr %58, align 8, !tbaa !9
  %60 = fcmp oge double %57, %59
  %61 = select i1 %60, double %57, double %59
  %gep171 = getelementptr inbounds double, ptr %invariant.gep170, i64 %indvars.iv145
  %62 = load double, ptr %gep171, align 8, !tbaa !9
  %63 = fcmp oge double %61, %62
  %64 = select i1 %63, double %61, double %62
  %gep173 = getelementptr inbounds double, ptr %invariant.gep172, i64 %indvars.iv145
  %65 = load double, ptr %gep173, align 8, !tbaa !9
  %66 = fcmp oge double %64, %65
  %67 = select i1 %66, double %64, double %65
  %indvars.iv.next146.3 = add nuw nsw i64 %indvars.iv145, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge125.loopexit.unr-lcssa, label %.lr.ph124, !llvm.loop !13

._crit_edge125.loopexit.unr-lcssa:                ; preds = %.lr.ph124, %.lr.ph124.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph124.preheader ], [ %67, %.lr.ph124 ]
  %indvars.iv145.unr = phi i64 [ 1, %.lr.ph124.preheader ], [ %indvars.iv.next146.3, %.lr.ph124 ]
  %.unr = phi double [ %42, %.lr.ph124.preheader ], [ %67, %.lr.ph124 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge125, label %.lr.ph124.epil

.lr.ph124.epil:                                   ; preds = %._crit_edge125.loopexit.unr-lcssa, %.lr.ph124.epil
  %indvars.iv145.epil = phi i64 [ %indvars.iv.next146.epil, %.lr.ph124.epil ], [ %indvars.iv145.unr, %._crit_edge125.loopexit.unr-lcssa ]
  %68 = phi double [ %72, %.lr.ph124.epil ], [ %.unr, %._crit_edge125.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph124.epil ], [ 0, %._crit_edge125.loopexit.unr-lcssa ]
  %69 = getelementptr inbounds double, ptr %14, i64 %indvars.iv145.epil
  %70 = load double, ptr %69, align 8, !tbaa !9
  %71 = fcmp oge double %68, %70
  %72 = select i1 %71, double %68, double %70
  %indvars.iv.next146.epil = add nuw nsw i64 %indvars.iv145.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge125, label %.lr.ph124.epil, !llvm.loop !14

._crit_edge125:                                   ; preds = %._crit_edge125.loopexit.unr-lcssa, %.lr.ph124.epil, %50
  %.lcssa120 = phi double [ %42, %50 ], [ %.lcssa.ph, %._crit_edge125.loopexit.unr-lcssa ], [ %72, %.lr.ph124.epil ]
  store double %.lcssa120, ptr %11, align 8, !tbaa !9
  %73 = tail call double @dlamch_(ptr noundef nonnull @.str.2) #5
  %74 = tail call double @dlamch_(ptr noundef nonnull @.str.3) #5
  %75 = fdiv double %73, %74
  %76 = tail call double @sqrt(double noundef %75) #5
  store double %76, ptr %8, align 8, !tbaa !9
  tail call void @dcopy_(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull @c__1, ptr noundef %3, ptr noundef nonnull @c__2) #5
  %77 = load i32, ptr %0, align 4, !tbaa !5
  %78 = add nsw i32 %77, -1
  store i32 %78, ptr %6, align 4, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %3, i64 8
  call void @dcopy_(ptr noundef nonnull %6, ptr noundef %2, ptr noundef nonnull @c__1, ptr noundef nonnull %79, ptr noundef nonnull @c__2) #5
  %80 = load i32, ptr %0, align 4, !tbaa !5
  %81 = shl i32 %80, 1
  %82 = add nsw i32 %81, -1
  store i32 %82, ptr %6, align 4, !tbaa !5
  store i32 %82, ptr %7, align 4, !tbaa !5
  call void @dlascl_(ptr noundef nonnull @.str.4, ptr noundef nonnull @c__0, ptr noundef nonnull @c__0, ptr noundef nonnull %11, ptr noundef nonnull %8, ptr noundef nonnull %6, ptr noundef nonnull @c__1, ptr noundef %3, ptr noundef nonnull %7, ptr noundef nonnull %9) #5
  %83 = load i32, ptr %0, align 4, !tbaa !5
  %84 = shl i32 %83, 1
  %85 = add nsw i32 %84, -1
  store i32 %85, ptr %6, align 4, !tbaa !5
  %.not114.not127 = icmp sgt i32 %84, 1
  br i1 %.not114.not127, label %.lr.ph130.preheader, label %._crit_edge131

.lr.ph130.preheader:                              ; preds = %._crit_edge125
  %wide.trip.count153 = zext nneg i32 %84 to i64
  %min.iters.check = icmp ult i32 %84, 5
  br i1 %min.iters.check, label %.lr.ph130.preheader164, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph130.preheader
  %86 = add nsw i64 %wide.trip.count153, -1
  %n.vec = and i64 %86, -4
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %87 = getelementptr double, ptr %3, i64 %index
  %88 = getelementptr inbounds i8, ptr %87, i64 16
  %wide.load = load <2 x double>, ptr %87, align 8, !tbaa !9
  %wide.load163 = load <2 x double>, ptr %88, align 8, !tbaa !9
  %89 = fmul <2 x double> %wide.load, %wide.load
  %90 = fmul <2 x double> %wide.load163, %wide.load163
  store <2 x double> %89, ptr %87, align 8, !tbaa !9
  store <2 x double> %90, ptr %88, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %91 = icmp eq i64 %index.next, %n.vec
  br i1 %91, label %.lr.ph130.preheader164, label %vector.body, !llvm.loop !16

.lr.ph130.preheader164:                           ; preds = %vector.body, %.lr.ph130.preheader
  %indvars.iv150.ph = phi i64 [ 1, %.lr.ph130.preheader ], [ %ind.end, %vector.body ]
  br label %.lr.ph130

.lr.ph130:                                        ; preds = %.lr.ph130.preheader164, %.lr.ph130
  %indvars.iv150 = phi i64 [ %indvars.iv.next151, %.lr.ph130 ], [ %indvars.iv150.ph, %.lr.ph130.preheader164 ]
  %92 = getelementptr inbounds double, ptr %12, i64 %indvars.iv150
  %93 = load double, ptr %92, align 8, !tbaa !9
  %94 = fmul double %93, %93
  store double %94, ptr %92, align 8, !tbaa !9
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %exitcond154.not = icmp eq i64 %indvars.iv.next151, %wide.trip.count153
  br i1 %exitcond154.not, label %._crit_edge131, label %.lr.ph130, !llvm.loop !19

._crit_edge131:                                   ; preds = %.lr.ph130, %._crit_edge125
  %95 = sext i32 %84 to i64
  %96 = getelementptr inbounds double, ptr %12, i64 %95
  store double 0.000000e+00, ptr %96, align 8, !tbaa !9
  call void @dlasq2_(ptr noundef nonnull %0, ptr noundef %3, ptr noundef nonnull %4) #5
  %97 = load i32, ptr %4, align 4, !tbaa !5
  switch i32 %97, label %118 [
    i32 0, label %98
    i32 2, label %106
  ]

98:                                               ; preds = %._crit_edge131
  %99 = load i32, ptr %0, align 4, !tbaa !5
  store i32 %99, ptr %6, align 4, !tbaa !5
  %.not116137 = icmp slt i32 %99, 1
  br i1 %.not116137, label %._crit_edge141, label %.lr.ph140

.lr.ph140:                                        ; preds = %98, %.lr.ph140
  %indvars.iv158 = phi i64 [ %indvars.iv.next159, %.lr.ph140 ], [ 1, %98 ]
  %100 = getelementptr inbounds double, ptr %12, i64 %indvars.iv158
  %101 = load double, ptr %100, align 8, !tbaa !9
  %102 = call double @sqrt(double noundef %101) #5
  %103 = getelementptr inbounds double, ptr %14, i64 %indvars.iv158
  store double %102, ptr %103, align 8, !tbaa !9
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %.not116.not = icmp slt i64 %indvars.iv158, %105
  br i1 %.not116.not, label %.lr.ph140, label %._crit_edge141, !llvm.loop !20

._crit_edge141:                                   ; preds = %.lr.ph140, %98
  call void @dlascl_(ptr noundef nonnull @.str.4, ptr noundef nonnull @c__0, ptr noundef nonnull @c__0, ptr noundef nonnull %8, ptr noundef nonnull %11, ptr noundef nonnull %0, ptr noundef nonnull @c__1, ptr noundef %1, ptr noundef nonnull %0, ptr noundef nonnull %9) #5
  br label %118

106:                                              ; preds = %._crit_edge131
  %107 = load i32, ptr %0, align 4, !tbaa !5
  store i32 %107, ptr %6, align 4, !tbaa !5
  %invariant.gep = getelementptr i8, ptr %3, i64 -16
  %.not115132 = icmp slt i32 %107, 1
  br i1 %.not115132, label %._crit_edge136, label %.lr.ph135

.lr.ph135:                                        ; preds = %106, %.lr.ph135
  %indvars.iv155 = phi i64 [ %indvars.iv.next156, %.lr.ph135 ], [ 1, %106 ]
  %sext = shl i64 %indvars.iv155, 33
  %108 = ashr exact i64 %sext, 29
  %gep = getelementptr i8, ptr %invariant.gep, i64 %108
  %109 = load double, ptr %gep, align 8, !tbaa !9
  %110 = call double @sqrt(double noundef %109) #5
  %111 = getelementptr inbounds double, ptr %14, i64 %indvars.iv155
  store double %110, ptr %111, align 8, !tbaa !9
  %.idx = shl i64 %indvars.iv155, 4
  %112 = getelementptr inbounds i8, ptr %12, i64 %.idx
  %113 = load double, ptr %112, align 8, !tbaa !9
  %114 = call double @sqrt(double noundef %113) #5
  %115 = getelementptr inbounds double, ptr %13, i64 %indvars.iv155
  store double %114, ptr %115, align 8, !tbaa !9
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %116 = load i32, ptr %6, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %.not115.not = icmp slt i64 %indvars.iv155, %117
  br i1 %.not115.not, label %.lr.ph135, label %._crit_edge136, !llvm.loop !21

._crit_edge136:                                   ; preds = %.lr.ph135, %106
  call void @dlascl_(ptr noundef nonnull @.str.4, ptr noundef nonnull @c__0, ptr noundef nonnull @c__0, ptr noundef nonnull %8, ptr noundef nonnull %11, ptr noundef nonnull %0, ptr noundef nonnull @c__1, ptr noundef %1, ptr noundef nonnull %0, ptr noundef nonnull %9) #5
  call void @dlascl_(ptr noundef nonnull @.str.4, ptr noundef nonnull @c__0, ptr noundef nonnull @c__0, ptr noundef nonnull %8, ptr noundef nonnull %11, ptr noundef nonnull %0, ptr noundef nonnull @c__1, ptr noundef %2, ptr noundef nonnull %0, ptr noundef nonnull %9) #5
  br label %118

118:                                              ; preds = %._crit_edge141, %._crit_edge136, %._crit_edge131, %19, %49, %25, %20, %17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  ret void
}

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

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

declare void @dlas2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @dlasrt_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @dlamch_(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

declare void @dcopy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @dlascl_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @dlasq2_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !12, !17, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !12, !18, !17}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}


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