; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (dlasv2)

; 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 [4 x i8], align 1
@c_b3 = external hidden global double, align 8
@c_b4 = external hidden global double, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @dlasv2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca 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 double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca i64, align 8
  %40 = alloca double, align 8
  %41 = alloca i64, align 8
  %42 = alloca double, align 8
  %43 = alloca i64, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #5
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = load double, ptr %44, align 8, !tbaa !9
  store double %45, ptr %30, align 8, !tbaa !9
  %46 = load double, ptr %30, align 8, !tbaa !9
  %47 = fcmp oge double %46, 0.000000e+00
  br i1 %47, label %48, label %50

48:                                               ; preds = %9
  %49 = load double, ptr %30, align 8, !tbaa !9
  br label %53

50:                                               ; preds = %9
  %51 = load double, ptr %30, align 8, !tbaa !9
  %52 = fneg double %51
  br label %53

53:                                               ; preds = %50, %48
  %54 = phi double [ %49, %48 ], [ %52, %50 ]
  store double %54, ptr %27, align 8, !tbaa !9
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = load double, ptr %55, align 8, !tbaa !9
  store double %56, ptr %32, align 8, !tbaa !9
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = load double, ptr %57, align 8, !tbaa !9
  %59 = fcmp oge double %58, 0.000000e+00
  br i1 %59, label %60, label %63

60:                                               ; preds = %53
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = load double, ptr %61, align 8, !tbaa !9
  br label %67

63:                                               ; preds = %53
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = fneg double %65
  br label %67

67:                                               ; preds = %63, %60
  %68 = phi double [ %62, %60 ], [ %66, %63 ]
  store double %68, ptr %29, align 8, !tbaa !9
  store i64 1, ptr %39, align 8, !tbaa !11
  %69 = load double, ptr %29, align 8, !tbaa !9
  %70 = load double, ptr %27, align 8, !tbaa !9
  %71 = fcmp ogt double %69, %70
  %72 = zext i1 %71 to i32
  %73 = sext i32 %72 to i64
  store i64 %73, ptr %41, align 8, !tbaa !11
  %74 = load i64, ptr %41, align 8, !tbaa !11
  %75 = icmp ne i64 %74, 0
  br i1 %75, label %76, label %83

76:                                               ; preds = %67
  store i64 3, ptr %39, align 8, !tbaa !11
  %77 = load double, ptr %30, align 8, !tbaa !9
  store double %77, ptr %40, align 8, !tbaa !9
  %78 = load double, ptr %32, align 8, !tbaa !9
  store double %78, ptr %30, align 8, !tbaa !9
  %79 = load double, ptr %40, align 8, !tbaa !9
  store double %79, ptr %32, align 8, !tbaa !9
  %80 = load double, ptr %27, align 8, !tbaa !9
  store double %80, ptr %40, align 8, !tbaa !9
  %81 = load double, ptr %29, align 8, !tbaa !9
  store double %81, ptr %27, align 8, !tbaa !9
  %82 = load double, ptr %40, align 8, !tbaa !9
  store double %82, ptr %29, align 8, !tbaa !9
  br label %83

83:                                               ; preds = %76, %67
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = load double, ptr %84, align 8, !tbaa !9
  store double %85, ptr %31, align 8, !tbaa !9
  %86 = load double, ptr %31, align 8, !tbaa !9
  %87 = fcmp oge double %86, 0.000000e+00
  br i1 %87, label %88, label %90

88:                                               ; preds = %83
  %89 = load double, ptr %31, align 8, !tbaa !9
  br label %93

90:                                               ; preds = %83
  %91 = load double, ptr %31, align 8, !tbaa !9
  %92 = fneg double %91
  br label %93

93:                                               ; preds = %90, %88
  %94 = phi double [ %89, %88 ], [ %92, %90 ]
  store double %94, ptr %28, align 8, !tbaa !9
  %95 = load double, ptr %28, align 8, !tbaa !9
  %96 = fcmp oeq double %95, 0.000000e+00
  br i1 %96, label %97, label %102

97:                                               ; preds = %93
  %98 = load double, ptr %29, align 8, !tbaa !9
  %99 = load ptr, ptr %13, align 8, !tbaa !5
  store double %98, ptr %99, align 8, !tbaa !9
  %100 = load double, ptr %27, align 8, !tbaa !9
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  store double %100, ptr %101, align 8, !tbaa !9
  store double 1.000000e+00, ptr %35, align 8, !tbaa !9
  store double 1.000000e+00, ptr %36, align 8, !tbaa !9
  store double 0.000000e+00, ptr %37, align 8, !tbaa !9
  store double 0.000000e+00, ptr %38, align 8, !tbaa !9
  br label %258

102:                                              ; preds = %93
  store i64 1, ptr %43, align 8, !tbaa !11
  %103 = load double, ptr %28, align 8, !tbaa !9
  %104 = load double, ptr %27, align 8, !tbaa !9
  %105 = fcmp ogt double %103, %104
  br i1 %105, label %106, label %139

106:                                              ; preds = %102
  store i64 2, ptr %39, align 8, !tbaa !11
  %107 = load double, ptr %27, align 8, !tbaa !9
  %108 = load double, ptr %28, align 8, !tbaa !9
  %109 = fdiv double %107, %108
  %110 = call double @dlamch_(ptr noundef @.str)
  %111 = fcmp olt double %109, %110
  br i1 %111, label %112, label %138

112:                                              ; preds = %106
  store i64 0, ptr %43, align 8, !tbaa !11
  %113 = load double, ptr %28, align 8, !tbaa !9
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  store double %113, ptr %114, align 8, !tbaa !9
  %115 = load double, ptr %29, align 8, !tbaa !9
  %116 = fcmp ogt double %115, 1.000000e+00
  br i1 %116, label %117, label %124

117:                                              ; preds = %112
  %118 = load double, ptr %27, align 8, !tbaa !9
  %119 = load double, ptr %28, align 8, !tbaa !9
  %120 = load double, ptr %29, align 8, !tbaa !9
  %121 = fdiv double %119, %120
  %122 = fdiv double %118, %121
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  store double %122, ptr %123, align 8, !tbaa !9
  br label %131

124:                                              ; preds = %112
  %125 = load double, ptr %27, align 8, !tbaa !9
  %126 = load double, ptr %28, align 8, !tbaa !9
  %127 = fdiv double %125, %126
  %128 = load double, ptr %29, align 8, !tbaa !9
  %129 = fmul double %127, %128
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  store double %129, ptr %130, align 8, !tbaa !9
  br label %131

131:                                              ; preds = %124, %117
  store double 1.000000e+00, ptr %35, align 8, !tbaa !9
  %132 = load double, ptr %32, align 8, !tbaa !9
  %133 = load double, ptr %31, align 8, !tbaa !9
  %134 = fdiv double %132, %133
  store double %134, ptr %37, align 8, !tbaa !9
  store double 1.000000e+00, ptr %38, align 8, !tbaa !9
  %135 = load double, ptr %30, align 8, !tbaa !9
  %136 = load double, ptr %31, align 8, !tbaa !9
  %137 = fdiv double %135, %136
  store double %137, ptr %36, align 8, !tbaa !9
  br label %138

138:                                              ; preds = %131, %106
  br label %139

139:                                              ; preds = %138, %102
  %140 = load i64, ptr %43, align 8, !tbaa !11
  %141 = icmp ne i64 %140, 0
  br i1 %141, label %142, label %257

142:                                              ; preds = %139
  %143 = load double, ptr %27, align 8, !tbaa !9
  %144 = load double, ptr %29, align 8, !tbaa !9
  %145 = fsub double %143, %144
  store double %145, ptr %21, align 8, !tbaa !9
  %146 = load double, ptr %21, align 8, !tbaa !9
  %147 = load double, ptr %27, align 8, !tbaa !9
  %148 = fcmp oeq double %146, %147
  br i1 %148, label %149, label %150

149:                                              ; preds = %142
  store double 1.000000e+00, ptr %22, align 8, !tbaa !9
  br label %154

150:                                              ; preds = %142
  %151 = load double, ptr %21, align 8, !tbaa !9
  %152 = load double, ptr %27, align 8, !tbaa !9
  %153 = fdiv double %151, %152
  store double %153, ptr %22, align 8, !tbaa !9
  br label %154

154:                                              ; preds = %150, %149
  %155 = load double, ptr %31, align 8, !tbaa !9
  %156 = load double, ptr %30, align 8, !tbaa !9
  %157 = fdiv double %155, %156
  store double %157, ptr %23, align 8, !tbaa !9
  %158 = load double, ptr %22, align 8, !tbaa !9
  %159 = fsub double 2.000000e+00, %158
  store double %159, ptr %26, align 8, !tbaa !9
  %160 = load double, ptr %23, align 8, !tbaa !9
  %161 = load double, ptr %23, align 8, !tbaa !9
  %162 = fmul double %160, %161
  store double %162, ptr %33, align 8, !tbaa !9
  %163 = load double, ptr %26, align 8, !tbaa !9
  %164 = load double, ptr %26, align 8, !tbaa !9
  %165 = fmul double %163, %164
  store double %165, ptr %34, align 8, !tbaa !9
  %166 = load double, ptr %34, align 8, !tbaa !9
  %167 = load double, ptr %33, align 8, !tbaa !9
  %168 = fadd double %166, %167
  %169 = call double @sqrt(double noundef %168) #5
  store double %169, ptr %25, align 8, !tbaa !9
  %170 = load double, ptr %22, align 8, !tbaa !9
  %171 = fcmp oeq double %170, 0.000000e+00
  br i1 %171, label %172, label %182

172:                                              ; preds = %154
  %173 = load double, ptr %23, align 8, !tbaa !9
  %174 = fcmp oge double %173, 0.000000e+00
  br i1 %174, label %175, label %177

175:                                              ; preds = %172
  %176 = load double, ptr %23, align 8, !tbaa !9
  br label %180

177:                                              ; preds = %172
  %178 = load double, ptr %23, align 8, !tbaa !9
  %179 = fneg double %178
  br label %180

180:                                              ; preds = %177, %175
  %181 = phi double [ %176, %175 ], [ %179, %177 ]
  store double %181, ptr %24, align 8, !tbaa !9
  br label %188

182:                                              ; preds = %154
  %183 = load double, ptr %22, align 8, !tbaa !9
  %184 = load double, ptr %22, align 8, !tbaa !9
  %185 = load double, ptr %33, align 8, !tbaa !9
  %186 = call double @llvm.fmuladd.f64(double %183, double %184, double %185)
  %187 = call double @sqrt(double noundef %186) #5
  store double %187, ptr %24, align 8, !tbaa !9
  br label %188

188:                                              ; preds = %182, %180
  %189 = load double, ptr %25, align 8, !tbaa !9
  %190 = load double, ptr %24, align 8, !tbaa !9
  %191 = fadd double %189, %190
  %192 = fmul double %191, 5.000000e-01
  store double %192, ptr %20, align 8, !tbaa !9
  %193 = load double, ptr %29, align 8, !tbaa !9
  %194 = load double, ptr %20, align 8, !tbaa !9
  %195 = fdiv double %193, %194
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  store double %195, ptr %196, align 8, !tbaa !9
  %197 = load double, ptr %27, align 8, !tbaa !9
  %198 = load double, ptr %20, align 8, !tbaa !9
  %199 = fmul double %197, %198
  %200 = load ptr, ptr %14, align 8, !tbaa !5
  store double %199, ptr %200, align 8, !tbaa !9
  %201 = load double, ptr %33, align 8, !tbaa !9
  %202 = fcmp oeq double %201, 0.000000e+00
  br i1 %202, label %203, label %219

203:                                              ; preds = %188
  %204 = load double, ptr %22, align 8, !tbaa !9
  %205 = fcmp oeq double %204, 0.000000e+00
  br i1 %205, label %206, label %210

206:                                              ; preds = %203
  %207 = call double @d_sign(ptr noundef @c_b3, ptr noundef %30)
  %208 = call double @d_sign(ptr noundef @c_b4, ptr noundef %31)
  %209 = fmul double %207, %208
  store double %209, ptr %26, align 8, !tbaa !9
  br label %218

210:                                              ; preds = %203
  %211 = load double, ptr %31, align 8, !tbaa !9
  %212 = call double @d_sign(ptr noundef %21, ptr noundef %30)
  %213 = fdiv double %211, %212
  %214 = load double, ptr %23, align 8, !tbaa !9
  %215 = load double, ptr %26, align 8, !tbaa !9
  %216 = fdiv double %214, %215
  %217 = fadd double %213, %216
  store double %217, ptr %26, align 8, !tbaa !9
  br label %218

218:                                              ; preds = %210, %206
  br label %234

219:                                              ; preds = %188
  %220 = load double, ptr %23, align 8, !tbaa !9
  %221 = load double, ptr %25, align 8, !tbaa !9
  %222 = load double, ptr %26, align 8, !tbaa !9
  %223 = fadd double %221, %222
  %224 = fdiv double %220, %223
  %225 = load double, ptr %23, align 8, !tbaa !9
  %226 = load double, ptr %24, align 8, !tbaa !9
  %227 = load double, ptr %22, align 8, !tbaa !9
  %228 = fadd double %226, %227
  %229 = fdiv double %225, %228
  %230 = fadd double %224, %229
  %231 = load double, ptr %20, align 8, !tbaa !9
  %232 = fadd double %231, 1.000000e+00
  %233 = fmul double %230, %232
  store double %233, ptr %26, align 8, !tbaa !9
  br label %234

234:                                              ; preds = %219, %218
  %235 = load double, ptr %26, align 8, !tbaa !9
  %236 = load double, ptr %26, align 8, !tbaa !9
  %237 = call double @llvm.fmuladd.f64(double %235, double %236, double 4.000000e+00)
  %238 = call double @sqrt(double noundef %237) #5
  store double %238, ptr %22, align 8, !tbaa !9
  %239 = load double, ptr %22, align 8, !tbaa !9
  %240 = fdiv double 2.000000e+00, %239
  store double %240, ptr %36, align 8, !tbaa !9
  %241 = load double, ptr %26, align 8, !tbaa !9
  %242 = load double, ptr %22, align 8, !tbaa !9
  %243 = fdiv double %241, %242
  store double %243, ptr %38, align 8, !tbaa !9
  %244 = load double, ptr %36, align 8, !tbaa !9
  %245 = load double, ptr %38, align 8, !tbaa !9
  %246 = load double, ptr %23, align 8, !tbaa !9
  %247 = call double @llvm.fmuladd.f64(double %245, double %246, double %244)
  %248 = load double, ptr %20, align 8, !tbaa !9
  %249 = fdiv double %247, %248
  store double %249, ptr %35, align 8, !tbaa !9
  %250 = load double, ptr %32, align 8, !tbaa !9
  %251 = load double, ptr %30, align 8, !tbaa !9
  %252 = fdiv double %250, %251
  %253 = load double, ptr %38, align 8, !tbaa !9
  %254 = fmul double %252, %253
  %255 = load double, ptr %20, align 8, !tbaa !9
  %256 = fdiv double %254, %255
  store double %256, ptr %37, align 8, !tbaa !9
  br label %257

257:                                              ; preds = %234, %139
  br label %258

258:                                              ; preds = %257, %97
  %259 = load i64, ptr %41, align 8, !tbaa !11
  %260 = icmp ne i64 %259, 0
  br i1 %260, label %261, label %270

261:                                              ; preds = %258
  %262 = load double, ptr %38, align 8, !tbaa !9
  %263 = load ptr, ptr %18, align 8, !tbaa !5
  store double %262, ptr %263, align 8, !tbaa !9
  %264 = load double, ptr %36, align 8, !tbaa !9
  %265 = load ptr, ptr %17, align 8, !tbaa !5
  store double %264, ptr %265, align 8, !tbaa !9
  %266 = load double, ptr %37, align 8, !tbaa !9
  %267 = load ptr, ptr %16, align 8, !tbaa !5
  store double %266, ptr %267, align 8, !tbaa !9
  %268 = load double, ptr %35, align 8, !tbaa !9
  %269 = load ptr, ptr %15, align 8, !tbaa !5
  store double %268, ptr %269, align 8, !tbaa !9
  br label %279

270:                                              ; preds = %258
  %271 = load double, ptr %35, align 8, !tbaa !9
  %272 = load ptr, ptr %18, align 8, !tbaa !5
  store double %271, ptr %272, align 8, !tbaa !9
  %273 = load double, ptr %37, align 8, !tbaa !9
  %274 = load ptr, ptr %17, align 8, !tbaa !5
  store double %273, ptr %274, align 8, !tbaa !9
  %275 = load double, ptr %36, align 8, !tbaa !9
  %276 = load ptr, ptr %16, align 8, !tbaa !5
  store double %275, ptr %276, align 8, !tbaa !9
  %277 = load double, ptr %38, align 8, !tbaa !9
  %278 = load ptr, ptr %15, align 8, !tbaa !5
  store double %277, ptr %278, align 8, !tbaa !9
  br label %279

279:                                              ; preds = %270, %261
  %280 = load i64, ptr %39, align 8, !tbaa !11
  %281 = icmp eq i64 %280, 1
  br i1 %281, label %282, label %291

282:                                              ; preds = %279
  %283 = load ptr, ptr %16, align 8, !tbaa !5
  %284 = call double @d_sign(ptr noundef @c_b4, ptr noundef %283)
  %285 = load ptr, ptr %18, align 8, !tbaa !5
  %286 = call double @d_sign(ptr noundef @c_b4, ptr noundef %285)
  %287 = fmul double %284, %286
  %288 = load ptr, ptr %10, align 8, !tbaa !5
  %289 = call double @d_sign(ptr noundef @c_b4, ptr noundef %288)
  %290 = fmul double %287, %289
  store double %290, ptr %42, align 8, !tbaa !9
  br label %291

291:                                              ; preds = %282, %279
  %292 = load i64, ptr %39, align 8, !tbaa !11
  %293 = icmp eq i64 %292, 2
  br i1 %293, label %294, label %303

294:                                              ; preds = %291
  %295 = load ptr, ptr %15, align 8, !tbaa !5
  %296 = call double @d_sign(ptr noundef @c_b4, ptr noundef %295)
  %297 = load ptr, ptr %18, align 8, !tbaa !5
  %298 = call double @d_sign(ptr noundef @c_b4, ptr noundef %297)
  %299 = fmul double %296, %298
  %300 = load ptr, ptr %11, align 8, !tbaa !5
  %301 = call double @d_sign(ptr noundef @c_b4, ptr noundef %300)
  %302 = fmul double %299, %301
  store double %302, ptr %42, align 8, !tbaa !9
  br label %303

303:                                              ; preds = %294, %291
  %304 = load i64, ptr %39, align 8, !tbaa !11
  %305 = icmp eq i64 %304, 3
  br i1 %305, label %306, label %315

306:                                              ; preds = %303
  %307 = load ptr, ptr %15, align 8, !tbaa !5
  %308 = call double @d_sign(ptr noundef @c_b4, ptr noundef %307)
  %309 = load ptr, ptr %17, align 8, !tbaa !5
  %310 = call double @d_sign(ptr noundef @c_b4, ptr noundef %309)
  %311 = fmul double %308, %310
  %312 = load ptr, ptr %12, align 8, !tbaa !5
  %313 = call double @d_sign(ptr noundef @c_b4, ptr noundef %312)
  %314 = fmul double %311, %313
  store double %314, ptr %42, align 8, !tbaa !9
  br label %315

315:                                              ; preds = %306, %303
  %316 = load ptr, ptr %14, align 8, !tbaa !5
  %317 = call double @d_sign(ptr noundef %316, ptr noundef %42)
  %318 = load ptr, ptr %14, align 8, !tbaa !5
  store double %317, ptr %318, align 8, !tbaa !9
  %319 = load double, ptr %42, align 8, !tbaa !9
  %320 = load ptr, ptr %10, align 8, !tbaa !5
  %321 = call double @d_sign(ptr noundef @c_b4, ptr noundef %320)
  %322 = fmul double %319, %321
  %323 = load ptr, ptr %12, align 8, !tbaa !5
  %324 = call double @d_sign(ptr noundef @c_b4, ptr noundef %323)
  %325 = fmul double %322, %324
  store double %325, ptr %19, align 8, !tbaa !9
  %326 = load ptr, ptr %13, align 8, !tbaa !5
  %327 = call double @d_sign(ptr noundef %326, ptr noundef %19)
  %328 = load ptr, ptr %13, align 8, !tbaa !5
  store double %327, ptr %328, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  ret i32 0
}

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

declare double @dlamch_(ptr noundef) #2

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

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

declare double @d_sign(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 = { 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 = !{!"any pointer", !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 = !{!"long", !7, i64 0}


; 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 [4 x i8], align 1
@c_b3 = external hidden global double, align 8
@c_b4 = external hidden global double, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @dlasv2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %15 = load double, ptr %0, align 8, !tbaa !5
  store double %15, ptr %12, align 8, !tbaa !5
  %16 = fcmp oge double %15, 0.000000e+00
  %17 = fneg double %15
  %18 = select i1 %16, double %15, double %17
  %19 = load double, ptr %2, align 8, !tbaa !5
  %20 = fcmp ult double %19, 0.000000e+00
  %21 = fneg double %19
  %22 = select i1 %20, double %21, double %19
  %23 = fcmp ogt double %22, %18
  br i1 %23, label %24, label %25

24:                                               ; preds = %9
  store double %19, ptr %12, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %24, %9
  %26 = phi double [ %19, %24 ], [ %15, %9 ]
  %.0133 = phi double [ %18, %24 ], [ %22, %9 ]
  %.0132 = phi double [ %15, %24 ], [ %19, %9 ]
  %.0131 = phi double [ %22, %24 ], [ %18, %9 ]
  %.0121 = phi i64 [ 3, %24 ], [ 1, %9 ]
  %27 = load double, ptr %1, align 8, !tbaa !5
  store double %27, ptr %13, align 8, !tbaa !5
  %28 = fcmp oge double %27, 0.000000e+00
  %29 = fneg double %27
  %30 = select i1 %28, double %27, double %29
  %31 = fcmp oeq double %27, 0.000000e+00
  br i1 %31, label %32, label %33

32:                                               ; preds = %25
  store double %.0133, ptr %3, align 8, !tbaa !5
  store double %.0131, ptr %4, align 8, !tbaa !5
  br label %109

33:                                               ; preds = %25
  %34 = fcmp ogt double %30, %.0131
  br i1 %34, label %35, label %45

35:                                               ; preds = %33
  %36 = fdiv double %.0131, %30
  %37 = tail call double @dlamch_(ptr noundef nonnull @.str) #5
  %38 = fcmp olt double %36, %37
  br i1 %38, label %.thread152, label %45

.thread152:                                       ; preds = %35
  store double %30, ptr %4, align 8, !tbaa !5
  %39 = fcmp ogt double %.0133, 1.000000e+00
  %40 = fmul double %.0133, %36
  %41 = fdiv double %30, %.0133
  %42 = fdiv double %.0131, %41
  %storemerge = select i1 %39, double %42, double %40
  store double %storemerge, ptr %3, align 8, !tbaa !5
  %43 = fdiv double %.0132, %27
  %44 = fdiv double %26, %27
  %.1127..1125159 = select i1 %23, double %44, double %43
  %.1125..1127160 = select i1 %23, double %43, double %44
  store double 1.000000e+00, ptr %8, align 8, !tbaa !5
  store double %.1127..1125159, ptr %7, align 8, !tbaa !5
  store double %.1125..1127160, ptr %6, align 8, !tbaa !5
  store double 1.000000e+00, ptr %5, align 8, !tbaa !5
  br label %116

45:                                               ; preds = %35, %33
  %.1.ph = phi i64 [ %.0121, %33 ], [ 2, %35 ]
  %46 = fsub double %.0131, %.0133
  store double %46, ptr %11, align 8, !tbaa !5
  %47 = fcmp oeq double %46, %.0131
  %48 = fdiv double %46, %.0131
  %.0119 = select i1 %47, double 1.000000e+00, double %48
  %49 = fdiv double %27, %26
  %50 = fsub double 2.000000e+00, %.0119
  %51 = fmul double %49, %49
  %52 = fmul double %50, %50
  %53 = fadd double %52, %51
  %sqrt = tail call double @llvm.sqrt.f64(double %53)
  %54 = fcmp oeq double %.0119, 0.000000e+00
  br i1 %54, label %55, label %59

55:                                               ; preds = %45
  %56 = fcmp oge double %49, 0.000000e+00
  %57 = fneg double %49
  %58 = select i1 %56, double %49, double %57
  br label %61

59:                                               ; preds = %45
  %60 = tail call double @llvm.fmuladd.f64(double %.0119, double %.0119, double %51)
  %sqrt162 = tail call double @llvm.sqrt.f64(double %60)
  br label %61

61:                                               ; preds = %59, %55
  %.0120 = phi double [ %58, %55 ], [ %sqrt162, %59 ]
  %62 = fadd double %sqrt, %.0120
  %63 = fmul double %62, 5.000000e-01
  %64 = fdiv double %.0133, %63
  store double %64, ptr %3, align 8, !tbaa !5
  %65 = fmul double %.0131, %63
  store double %65, ptr %4, align 8, !tbaa !5
  %66 = fcmp oeq double %51, 0.000000e+00
  br i1 %66, label %67, label %81

67:                                               ; preds = %61
  br i1 %54, label %68, label %72

68:                                               ; preds = %67
  %69 = call double @d_sign(ptr noundef nonnull @c_b3, ptr noundef nonnull %12) #5
  %70 = call double @d_sign(ptr noundef nonnull @c_b4, ptr noundef nonnull %13) #5
  %71 = fmul double %69, %70
  br label %94

72:                                               ; preds = %67
  %73 = call double @d_sign(ptr noundef nonnull %11, ptr noundef nonnull %12) #5
  %74 = insertelement <2 x double> poison, double %49, i64 0
  %75 = insertelement <2 x double> %74, double %27, i64 1
  %76 = insertelement <2 x double> poison, double %50, i64 0
  %77 = insertelement <2 x double> %76, double %73, i64 1
  %78 = fdiv <2 x double> %75, %77
  %shift = shufflevector <2 x double> %78, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %79 = fadd <2 x double> %78, %shift
  %80 = extractelement <2 x double> %79, i64 0
  br label %94

81:                                               ; preds = %61
  %82 = insertelement <2 x double> poison, double %50, i64 0
  %83 = insertelement <2 x double> %82, double %.0119, i64 1
  %84 = insertelement <2 x double> poison, double %sqrt, i64 0
  %85 = insertelement <2 x double> %84, double %.0120, i64 1
  %86 = fadd <2 x double> %83, %85
  %87 = insertelement <2 x double> poison, double %49, i64 0
  %88 = shufflevector <2 x double> %87, <2 x double> poison, <2 x i32> zeroinitializer
  %89 = fdiv <2 x double> %88, %86
  %shift165 = shufflevector <2 x double> %89, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %90 = fadd <2 x double> %89, %shift165
  %91 = extractelement <2 x double> %90, i64 0
  %92 = fadd double %63, 1.000000e+00
  %93 = fmul double %91, %92
  br label %94

94:                                               ; preds = %68, %72, %81
  %.0130 = phi double [ %71, %68 ], [ %80, %72 ], [ %93, %81 ]
  %95 = call double @llvm.fmuladd.f64(double %.0130, double %.0130, double 4.000000e+00)
  %sqrt163 = call double @llvm.sqrt.f64(double %95)
  %96 = fdiv double 2.000000e+00, %sqrt163
  %97 = load double, ptr %12, align 8, !tbaa !5
  %98 = insertelement <2 x double> poison, double %.0132, i64 0
  %99 = insertelement <2 x double> %98, double %.0130, i64 1
  %100 = insertelement <2 x double> poison, double %97, i64 0
  %101 = insertelement <2 x double> %100, double %sqrt163, i64 1
  %102 = fdiv <2 x double> %99, %101
  %103 = extractelement <2 x double> %102, i64 1
  %104 = call double @llvm.fmuladd.f64(double %103, double %49, double %96)
  %105 = fdiv double %104, %63
  %106 = extractelement <2 x double> %102, i64 0
  %107 = fmul double %106, %103
  %108 = fdiv double %107, %63
  br label %109

109:                                              ; preds = %94, %32
  %.1129 = phi double [ 1.000000e+00, %32 ], [ %105, %94 ]
  %.1127 = phi double [ 1.000000e+00, %32 ], [ %96, %94 ]
  %.1125 = phi double [ 0.000000e+00, %32 ], [ %108, %94 ]
  %.1123 = phi double [ 0.000000e+00, %32 ], [ %103, %94 ]
  %.2 = phi i64 [ %.0121, %32 ], [ %.1.ph, %94 ]
  %.1123..1129 = select i1 %23, double %.1123, double %.1129
  %.1127..1125 = select i1 %23, double %.1127, double %.1125
  %.1125..1127 = select i1 %23, double %.1125, double %.1127
  %.1129..1123 = select i1 %23, double %.1129, double %.1123
  store double %.1123..1129, ptr %8, align 8, !tbaa !5
  store double %.1127..1125, ptr %7, align 8, !tbaa !5
  store double %.1125..1127, ptr %6, align 8, !tbaa !5
  store double %.1129..1123, ptr %5, align 8, !tbaa !5
  switch i64 %.2, label %default.unreachable164 [
    i64 1, label %110
    i64 2, label %116
    i64 3, label %122
  ]

110:                                              ; preds = %109
  %111 = call double @d_sign(ptr noundef nonnull @c_b4, ptr noundef nonnull %6) #5
  %112 = call double @d_sign(ptr noundef nonnull @c_b4, ptr noundef nonnull %8) #5
  %113 = fmul double %111, %112
  %114 = call double @d_sign(ptr noundef nonnull @c_b4, ptr noundef nonnull %0) #5
  %115 = fmul double %113, %114
  store double %115, ptr %14, align 8, !tbaa !5
  br label %128

116:                                              ; preds = %.thread152, %109
  %117 = call double @d_sign(ptr noundef nonnull @c_b4, ptr noundef nonnull %5) #5
  %118 = call double @d_sign(ptr noundef nonnull @c_b4, ptr noundef nonnull %8) #5
  %119 = fmul double %117, %118
  %120 = call double @d_sign(ptr noundef nonnull @c_b4, ptr noundef nonnull %1) #5
  %121 = fmul double %119, %120
  store double %121, ptr %14, align 8, !tbaa !5
  br label %128

122:                                              ; preds = %109
  %123 = call double @d_sign(ptr noundef nonnull @c_b4, ptr noundef nonnull %5) #5
  %124 = call double @d_sign(ptr noundef nonnull @c_b4, ptr noundef nonnull %7) #5
  %125 = fmul double %123, %124
  %126 = call double @d_sign(ptr noundef nonnull @c_b4, ptr noundef nonnull %2) #5
  %127 = fmul double %125, %126
  store double %127, ptr %14, align 8, !tbaa !5
  br label %128

default.unreachable164:                           ; preds = %109
  unreachable

128:                                              ; preds = %116, %110, %122
  %129 = call double @d_sign(ptr noundef nonnull %4, ptr noundef nonnull %14) #5
  store double %129, ptr %4, align 8, !tbaa !5
  %130 = load double, ptr %14, align 8, !tbaa !5
  %131 = call double @d_sign(ptr noundef nonnull @c_b4, ptr noundef nonnull %0) #5
  %132 = fmul double %130, %131
  %133 = call double @d_sign(ptr noundef nonnull @c_b4, ptr noundef nonnull %2) #5
  %134 = fmul double %132, %133
  store double %134, ptr %10, align 8, !tbaa !5
  %135 = call double @d_sign(ptr noundef nonnull %3, ptr noundef nonnull %10) #5
  store double %135, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  ret i32 0
}

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

declare double @dlamch_(ptr noundef) local_unnamed_addr #2

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

declare double @d_sign(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 double @llvm.sqrt.f64(double) #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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass