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

; 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 [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@c__1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @dpbcon_(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, ptr noundef %9) #0 {
  %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 ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca double, align 8
  %27 = alloca [3 x i32], align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca [1 x i8], align 1
  %34 = alloca double, align 8
  %35 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  store ptr %9, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  %36 = load ptr, ptr %15, align 8, !tbaa !5
  %37 = load i32, ptr %36, align 4, !tbaa !9
  store i32 %37, ptr %21, align 4, !tbaa !9
  %38 = load i32, ptr %21, align 4, !tbaa !9
  %39 = mul nsw i32 %38, 1
  %40 = add nsw i32 1, %39
  store i32 %40, ptr %22, align 4, !tbaa !9
  %41 = load i32, ptr %22, align 4, !tbaa !9
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  %43 = sext i32 %41 to i64
  %44 = sub i64 0, %43
  %45 = getelementptr inbounds double, ptr %42, i64 %44
  store ptr %45, ptr %14, align 8, !tbaa !5
  %46 = load ptr, ptr %18, align 8, !tbaa !5
  %47 = getelementptr inbounds double, ptr %46, i32 -1
  store ptr %47, ptr %18, align 8, !tbaa !5
  %48 = load ptr, ptr %19, align 8, !tbaa !5
  %49 = getelementptr inbounds i32, ptr %48, i32 -1
  store ptr %49, ptr %19, align 8, !tbaa !5
  %50 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 0, ptr %50, align 4, !tbaa !9
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = call i32 @lsame_(ptr noundef %51, ptr noundef @.str)
  store i32 %52, ptr %28, align 4, !tbaa !9
  %53 = load i32, ptr %28, align 4, !tbaa !9
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %61, label %55

55:                                               ; preds = %10
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = call i32 @lsame_(ptr noundef %56, ptr noundef @.str.1)
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %61, label %59

59:                                               ; preds = %55
  %60 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -1, ptr %60, align 4, !tbaa !9
  br label %92

61:                                               ; preds = %55, %10
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = icmp slt i32 %63, 0
  br i1 %64, label %65, label %67

65:                                               ; preds = %61
  %66 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -2, ptr %66, align 4, !tbaa !9
  br label %91

67:                                               ; preds = %61
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = icmp slt i32 %69, 0
  br i1 %70, label %71, label %73

71:                                               ; preds = %67
  %72 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -3, ptr %72, align 4, !tbaa !9
  br label %90

73:                                               ; preds = %67
  %74 = load ptr, ptr %15, align 8, !tbaa !5
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  %79 = icmp slt i32 %75, %78
  br i1 %79, label %80, label %82

80:                                               ; preds = %73
  %81 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -5, ptr %81, align 4, !tbaa !9
  br label %89

82:                                               ; preds = %73
  %83 = load ptr, ptr %16, align 8, !tbaa !5
  %84 = load double, ptr %83, align 8, !tbaa !11
  %85 = fcmp olt double %84, 0.000000e+00
  br i1 %85, label %86, label %88

86:                                               ; preds = %82
  %87 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -6, ptr %87, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %86, %82
  br label %89

89:                                               ; preds = %88, %80
  br label %90

90:                                               ; preds = %89, %71
  br label %91

91:                                               ; preds = %90, %65
  br label %92

92:                                               ; preds = %91, %59
  %93 = load ptr, ptr %20, align 8, !tbaa !5
  %94 = load i32, ptr %93, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %101

96:                                               ; preds = %92
  %97 = load ptr, ptr %20, align 8, !tbaa !5
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = sub nsw i32 0, %98
  store i32 %99, ptr %23, align 4, !tbaa !9
  %100 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %23, i32 noundef 6)
  store i32 1, ptr %35, align 4
  br label %261

101:                                              ; preds = %92
  %102 = load ptr, ptr %17, align 8, !tbaa !5
  store double 0.000000e+00, ptr %102, align 8, !tbaa !11
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %108

106:                                              ; preds = %101
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  store double 1.000000e+00, ptr %107, align 8, !tbaa !11
  store i32 1, ptr %35, align 4
  br label %261

108:                                              ; preds = %101
  %109 = load ptr, ptr %16, align 8, !tbaa !5
  %110 = load double, ptr %109, align 8, !tbaa !11
  %111 = fcmp oeq double %110, 0.000000e+00
  br i1 %111, label %112, label %113

112:                                              ; preds = %108
  store i32 1, ptr %35, align 4
  br label %261

113:                                              ; preds = %108
  br label %114

114:                                              ; preds = %113
  %115 = call double @dlamch_(ptr noundef @.str.3)
  store double %115, ptr %34, align 8, !tbaa !11
  store i32 0, ptr %25, align 4, !tbaa !9
  %116 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  store i8 78, ptr %116, align 1, !tbaa !13
  br label %117

117:                                              ; preds = %248, %114
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = load ptr, ptr %18, align 8, !tbaa !5
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = add nsw i32 %121, 1
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds double, ptr %119, i64 %123
  %125 = load ptr, ptr %18, align 8, !tbaa !5
  %126 = getelementptr inbounds double, ptr %125, i64 1
  %127 = load ptr, ptr %19, align 8, !tbaa !5
  %128 = getelementptr inbounds i32, ptr %127, i64 1
  %129 = getelementptr inbounds [3 x i32], ptr %27, i64 0, i64 0
  call void @dlacn2_(ptr noundef %118, ptr noundef %124, ptr noundef %126, ptr noundef %128, ptr noundef %32, ptr noundef %25, ptr noundef %129)
  %130 = load i32, ptr %25, align 4, !tbaa !9
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %249

132:                                              ; preds = %117
  %133 = load i32, ptr %28, align 4, !tbaa !9
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %173

135:                                              ; preds = %132
  %136 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = load i32, ptr %22, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %139, i64 %141
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = load ptr, ptr %18, align 8, !tbaa !5
  %145 = getelementptr inbounds double, ptr %144, i64 1
  %146 = load ptr, ptr %18, align 8, !tbaa !5
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = load i32, ptr %147, align 4, !tbaa !9
  %149 = shl i32 %148, 1
  %150 = add nsw i32 %149, 1
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds double, ptr %146, i64 %151
  %153 = load ptr, ptr %20, align 8, !tbaa !5
  call void @dlatbs_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %136, ptr noundef %137, ptr noundef %138, ptr noundef %142, ptr noundef %143, ptr noundef %145, ptr noundef %30, ptr noundef %152, ptr noundef %153)
  %154 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  store i8 89, ptr %154, align 1, !tbaa !13
  %155 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = load ptr, ptr %13, align 8, !tbaa !5
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = load i32, ptr %22, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds double, ptr %158, i64 %160
  %162 = load ptr, ptr %15, align 8, !tbaa !5
  %163 = load ptr, ptr %18, align 8, !tbaa !5
  %164 = getelementptr inbounds double, ptr %163, i64 1
  %165 = load ptr, ptr %18, align 8, !tbaa !5
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  %167 = load i32, ptr %166, align 4, !tbaa !9
  %168 = shl i32 %167, 1
  %169 = add nsw i32 %168, 1
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds double, ptr %165, i64 %170
  %172 = load ptr, ptr %20, align 8, !tbaa !5
  call void @dlatbs_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %155, ptr noundef %156, ptr noundef %157, ptr noundef %161, ptr noundef %162, ptr noundef %164, ptr noundef %31, ptr noundef %171, ptr noundef %172)
  br label %211

173:                                              ; preds = %132
  %174 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %175 = load ptr, ptr %12, align 8, !tbaa !5
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = load ptr, ptr %14, align 8, !tbaa !5
  %178 = load i32, ptr %22, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds double, ptr %177, i64 %179
  %181 = load ptr, ptr %15, align 8, !tbaa !5
  %182 = load ptr, ptr %18, align 8, !tbaa !5
  %183 = getelementptr inbounds double, ptr %182, i64 1
  %184 = load ptr, ptr %18, align 8, !tbaa !5
  %185 = load ptr, ptr %12, align 8, !tbaa !5
  %186 = load i32, ptr %185, align 4, !tbaa !9
  %187 = shl i32 %186, 1
  %188 = add nsw i32 %187, 1
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds double, ptr %184, i64 %189
  %191 = load ptr, ptr %20, align 8, !tbaa !5
  call void @dlatbs_(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %174, ptr noundef %175, ptr noundef %176, ptr noundef %180, ptr noundef %181, ptr noundef %183, ptr noundef %30, ptr noundef %190, ptr noundef %191)
  %192 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  store i8 89, ptr %192, align 1, !tbaa !13
  %193 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %194 = load ptr, ptr %12, align 8, !tbaa !5
  %195 = load ptr, ptr %13, align 8, !tbaa !5
  %196 = load ptr, ptr %14, align 8, !tbaa !5
  %197 = load i32, ptr %22, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds double, ptr %196, i64 %198
  %200 = load ptr, ptr %15, align 8, !tbaa !5
  %201 = load ptr, ptr %18, align 8, !tbaa !5
  %202 = getelementptr inbounds double, ptr %201, i64 1
  %203 = load ptr, ptr %18, align 8, !tbaa !5
  %204 = load ptr, ptr %12, align 8, !tbaa !5
  %205 = load i32, ptr %204, align 4, !tbaa !9
  %206 = shl i32 %205, 1
  %207 = add nsw i32 %206, 1
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds double, ptr %203, i64 %208
  %210 = load ptr, ptr %20, align 8, !tbaa !5
  call void @dlatbs_(ptr noundef @.str.8, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %193, ptr noundef %194, ptr noundef %195, ptr noundef %199, ptr noundef %200, ptr noundef %202, ptr noundef %31, ptr noundef %209, ptr noundef %210)
  br label %211

211:                                              ; preds = %173, %135
  %212 = load double, ptr %30, align 8, !tbaa !11
  %213 = load double, ptr %31, align 8, !tbaa !11
  %214 = fmul double %212, %213
  store double %214, ptr %26, align 8, !tbaa !11
  %215 = load double, ptr %26, align 8, !tbaa !11
  %216 = fcmp une double %215, 1.000000e+00
  br i1 %216, label %217, label %248

217:                                              ; preds = %211
  %218 = load ptr, ptr %12, align 8, !tbaa !5
  %219 = load ptr, ptr %18, align 8, !tbaa !5
  %220 = getelementptr inbounds double, ptr %219, i64 1
  %221 = call i32 @idamax_(ptr noundef %218, ptr noundef %220, ptr noundef @c__1)
  store i32 %221, ptr %29, align 4, !tbaa !9
  %222 = load double, ptr %26, align 8, !tbaa !11
  %223 = load ptr, ptr %18, align 8, !tbaa !5
  %224 = load i32, ptr %29, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds double, ptr %223, i64 %225
  %227 = load double, ptr %226, align 8, !tbaa !11
  store double %227, ptr %24, align 8, !tbaa !11
  %228 = load double, ptr %24, align 8, !tbaa !11
  %229 = fcmp oge double %228, 0.000000e+00
  br i1 %229, label %230, label %232

230:                                              ; preds = %217
  %231 = load double, ptr %24, align 8, !tbaa !11
  br label %235

232:                                              ; preds = %217
  %233 = load double, ptr %24, align 8, !tbaa !11
  %234 = fneg double %233
  br label %235

235:                                              ; preds = %232, %230
  %236 = phi double [ %231, %230 ], [ %234, %232 ]
  %237 = load double, ptr %34, align 8, !tbaa !11
  %238 = fmul double %236, %237
  %239 = fcmp olt double %222, %238
  br i1 %239, label %243, label %240

240:                                              ; preds = %235
  %241 = load double, ptr %26, align 8, !tbaa !11
  %242 = fcmp oeq double %241, 0.000000e+00
  br i1 %242, label %243, label %244

243:                                              ; preds = %240, %235
  br label %260

244:                                              ; preds = %240
  %245 = load ptr, ptr %12, align 8, !tbaa !5
  %246 = load ptr, ptr %18, align 8, !tbaa !5
  %247 = getelementptr inbounds double, ptr %246, i64 1
  call void @drscl_(ptr noundef %245, ptr noundef %26, ptr noundef %247, ptr noundef @c__1)
  br label %248

248:                                              ; preds = %244, %211
  br label %117

249:                                              ; preds = %117
  %250 = load double, ptr %32, align 8, !tbaa !11
  %251 = fcmp une double %250, 0.000000e+00
  br i1 %251, label %252, label %259

252:                                              ; preds = %249
  %253 = load double, ptr %32, align 8, !tbaa !11
  %254 = fdiv double 1.000000e+00, %253
  %255 = load ptr, ptr %16, align 8, !tbaa !5
  %256 = load double, ptr %255, align 8, !tbaa !11
  %257 = fdiv double %254, %256
  %258 = load ptr, ptr %17, align 8, !tbaa !5
  store double %257, ptr %258, align 8, !tbaa !11
  br label %259

259:                                              ; preds = %252, %249
  br label %260

260:                                              ; preds = %259, %243
  store i32 1, ptr %35, align 4
  br label %261

261:                                              ; preds = %260, %112, %106, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  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 @lsame_(ptr noundef, ptr noundef) #2

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

declare double @dlamch_(ptr noundef) #2

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

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

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

declare void @drscl_(ptr noundef, 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 }

!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 = !{!7, !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 [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@c__1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @dpbcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef readonly %5, ptr nocapture noundef writeonly %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #0 {
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca [3 x i32], align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #3
  %19 = getelementptr inbounds i8, ptr %7, i64 -8
  store i32 0, ptr %9, align 4, !tbaa !5
  %20 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %21, label %23

21:                                               ; preds = %10
  %22 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #3
  %.not82 = icmp eq i32 %22, 0
  br i1 %.not82, label %.thread.sink.split, label %23

23:                                               ; preds = %21, %10
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 0
  br i1 %25, label %.thread.sink.split, label %26

26:                                               ; preds = %23
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %.thread.sink.split, label %29

29:                                               ; preds = %26
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %.not83 = icmp sgt i32 %30, %27
  br i1 %.not83, label %31, label %.thread.sink.split

31:                                               ; preds = %29
  %32 = load double, ptr %5, align 8, !tbaa !9
  %33 = fcmp olt double %32, 0.000000e+00
  br i1 %33, label %.thread.sink.split, label %34

34:                                               ; preds = %31
  %.pr = load i32, ptr %9, align 4, !tbaa !5
  %.not84 = icmp eq i32 %.pr, 0
  br i1 %.not84, label %38, label %.thread

.thread.sink.split:                               ; preds = %31, %29, %26, %23, %21
  %.sink = phi i32 [ -1, %21 ], [ -2, %23 ], [ -3, %26 ], [ -5, %29 ], [ -6, %31 ]
  store i32 %.sink, ptr %9, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %34
  %35 = phi i32 [ %.pr, %34 ], [ %.sink, %.thread.sink.split ]
  %36 = sub nsw i32 0, %35
  store i32 %36, ptr %11, align 4, !tbaa !5
  %37 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %11, i32 noundef 6) #3
  br label %.loopexit

38:                                               ; preds = %34
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  %39 = icmp eq i32 %24, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %38
  store double 1.000000e+00, ptr %6, align 8, !tbaa !9
  br label %.loopexit

41:                                               ; preds = %38
  %42 = load double, ptr %5, align 8, !tbaa !9
  %43 = fcmp oeq double %42, 0.000000e+00
  br i1 %43, label %.loopexit, label %44

44:                                               ; preds = %41
  %45 = tail call double @dlamch_(ptr noundef nonnull @.str.3) #3
  store i32 0, ptr %12, align 4, !tbaa !5
  store i8 78, ptr %18, align 1, !tbaa !11
  %46 = load i32, ptr %1, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %gep87 = getelementptr double, ptr %7, i64 %47
  call void @dlacn2_(ptr noundef nonnull %1, ptr noundef %gep87, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #3
  %48 = load i32, ptr %12, align 4, !tbaa !5
  %.not8588 = icmp eq i32 %48, 0
  br i1 %.not8588, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %44
  br i1 %.not, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %76
  %49 = load i32, ptr %1, align 4, !tbaa !5
  %50 = shl i32 %49, 1
  %51 = or disjoint i32 %50, 1
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds double, ptr %19, i64 %52
  call void @dlatbs_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %15, ptr noundef nonnull %53, ptr noundef nonnull %9) #3
  store i8 89, ptr %18, align 1, !tbaa !11
  %54 = load i32, ptr %1, align 4, !tbaa !5
  %55 = shl i32 %54, 1
  %56 = or disjoint i32 %55, 1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds double, ptr %19, i64 %57
  call void @dlatbs_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %58, ptr noundef nonnull %9) #3
  %59 = load double, ptr %15, align 8, !tbaa !9
  %60 = load double, ptr %16, align 8, !tbaa !9
  %61 = fmul double %59, %60
  store double %61, ptr %13, align 8, !tbaa !9
  %62 = fcmp une double %61, 1.000000e+00
  br i1 %62, label %63, label %76

63:                                               ; preds = %.lr.ph.split.us
  %64 = call i32 @idamax_(ptr noundef nonnull %1, ptr noundef %7, ptr noundef nonnull @c__1) #3
  %65 = load double, ptr %13, align 8
  %66 = sext i32 %64 to i64
  %67 = getelementptr inbounds double, ptr %19, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !9
  %69 = fcmp oge double %68, 0.000000e+00
  %70 = fneg double %68
  %71 = select i1 %69, double %68, double %70
  %72 = fmul double %45, %71
  %73 = fcmp olt double %65, %72
  %74 = fcmp oeq double %65, 0.000000e+00
  %or.cond.us = or i1 %74, %73
  br i1 %or.cond.us, label %.loopexit, label %75

75:                                               ; preds = %63
  call void @drscl_(ptr noundef nonnull %1, ptr noundef nonnull %13, ptr noundef nonnull %7, ptr noundef nonnull @c__1) #3
  br label %76

76:                                               ; preds = %75, %.lr.ph.split.us
  %77 = load i32, ptr %1, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %gep.us = getelementptr double, ptr %7, i64 %78
  call void @dlacn2_(ptr noundef nonnull %1, ptr noundef %gep.us, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #3
  %79 = load i32, ptr %12, align 4, !tbaa !5
  %.not85.us = icmp eq i32 %79, 0
  br i1 %.not85.us, label %._crit_edge, label %.lr.ph.split.us

.lr.ph.split:                                     ; preds = %.lr.ph, %107
  %80 = load i32, ptr %1, align 4, !tbaa !5
  %81 = shl i32 %80, 1
  %82 = or disjoint i32 %81, 1
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds double, ptr %19, i64 %83
  call void @dlatbs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %15, ptr noundef nonnull %84, ptr noundef nonnull %9) #3
  store i8 89, ptr %18, align 1, !tbaa !11
  %85 = load i32, ptr %1, align 4, !tbaa !5
  %86 = shl i32 %85, 1
  %87 = or disjoint i32 %86, 1
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds double, ptr %19, i64 %88
  call void @dlatbs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %89, ptr noundef nonnull %9) #3
  %90 = load double, ptr %15, align 8, !tbaa !9
  %91 = load double, ptr %16, align 8, !tbaa !9
  %92 = fmul double %90, %91
  store double %92, ptr %13, align 8, !tbaa !9
  %93 = fcmp une double %92, 1.000000e+00
  br i1 %93, label %94, label %107

94:                                               ; preds = %.lr.ph.split
  %95 = call i32 @idamax_(ptr noundef nonnull %1, ptr noundef %7, ptr noundef nonnull @c__1) #3
  %96 = load double, ptr %13, align 8
  %97 = sext i32 %95 to i64
  %98 = getelementptr inbounds double, ptr %19, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !9
  %100 = fcmp oge double %99, 0.000000e+00
  %101 = fneg double %99
  %102 = select i1 %100, double %99, double %101
  %103 = fmul double %45, %102
  %104 = fcmp olt double %96, %103
  %105 = fcmp oeq double %96, 0.000000e+00
  %or.cond = or i1 %105, %104
  br i1 %or.cond, label %.loopexit, label %106

106:                                              ; preds = %94
  call void @drscl_(ptr noundef nonnull %1, ptr noundef nonnull %13, ptr noundef nonnull %7, ptr noundef nonnull @c__1) #3
  br label %107

107:                                              ; preds = %106, %.lr.ph.split
  %108 = load i32, ptr %1, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %gep = getelementptr double, ptr %7, i64 %109
  call void @dlacn2_(ptr noundef nonnull %1, ptr noundef %gep, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #3
  %110 = load i32, ptr %12, align 4, !tbaa !5
  %.not85 = icmp eq i32 %110, 0
  br i1 %.not85, label %._crit_edge, label %.lr.ph.split

._crit_edge:                                      ; preds = %107, %76, %44
  %111 = load double, ptr %17, align 8, !tbaa !9
  %112 = fcmp une double %111, 0.000000e+00
  br i1 %112, label %113, label %.loopexit

113:                                              ; preds = %._crit_edge
  %114 = fdiv double 1.000000e+00, %111
  %115 = load double, ptr %5, align 8, !tbaa !9
  %116 = fdiv double %114, %115
  store double %116, ptr %6, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %94, %63, %113, %._crit_edge, %41, %40, %.thread
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  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 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @dlamch_(ptr noundef) local_unnamed_addr #2

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

declare void @dlatbs_(ptr noundef, ptr noundef, 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 i32 @idamax_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @drscl_(ptr noundef, 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

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 = { 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 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass