; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (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 i64, align 8

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

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

58:                                               ; preds = %54
  %59 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -1, ptr %59, align 8, !tbaa !9
  br label %91

60:                                               ; preds = %54, %10
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = icmp slt i64 %62, 0
  br i1 %63, label %64, label %66

64:                                               ; preds = %60
  %65 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -2, ptr %65, align 8, !tbaa !9
  br label %90

66:                                               ; preds = %60
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = icmp slt i64 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %66
  %71 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -3, ptr %71, align 8, !tbaa !9
  br label %89

72:                                               ; preds = %66
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = load i64, ptr %75, align 8, !tbaa !9
  %77 = add nsw i64 %76, 1
  %78 = icmp slt i64 %74, %77
  br i1 %78, label %79, label %81

79:                                               ; preds = %72
  %80 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -5, ptr %80, align 8, !tbaa !9
  br label %88

81:                                               ; preds = %72
  %82 = load ptr, ptr %17, align 8, !tbaa !5
  %83 = load double, ptr %82, align 8, !tbaa !11
  %84 = fcmp olt double %83, 0.000000e+00
  br i1 %84, label %85, label %87

85:                                               ; preds = %81
  %86 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -6, ptr %86, align 8, !tbaa !9
  br label %87

87:                                               ; preds = %85, %81
  br label %88

88:                                               ; preds = %87, %79
  br label %89

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

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

91:                                               ; preds = %90, %58
  %92 = load ptr, ptr %21, align 8, !tbaa !5
  %93 = load i64, ptr %92, align 8, !tbaa !9
  %94 = icmp ne i64 %93, 0
  br i1 %94, label %95, label %100

95:                                               ; preds = %91
  %96 = load ptr, ptr %21, align 8, !tbaa !5
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = sub nsw i64 0, %97
  store i64 %98, ptr %24, align 8, !tbaa !9
  %99 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %24)
  store i32 0, ptr %11, align 4
  store i32 1, ptr %36, align 4
  br label %256

100:                                              ; preds = %91
  %101 = load ptr, ptr %18, align 8, !tbaa !5
  store double 0.000000e+00, ptr %101, align 8, !tbaa !11
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = load i64, ptr %102, align 8, !tbaa !9
  %104 = icmp eq i64 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %100
  %106 = load ptr, ptr %18, align 8, !tbaa !5
  store double 1.000000e+00, ptr %106, align 8, !tbaa !11
  store i32 0, ptr %11, align 4
  store i32 1, ptr %36, align 4
  br label %256

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

111:                                              ; preds = %107
  store i32 0, ptr %11, align 4
  store i32 1, ptr %36, align 4
  br label %256

112:                                              ; preds = %107
  br label %113

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

116:                                              ; preds = %243, %113
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = load ptr, ptr %19, align 8, !tbaa !5
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = load i64, ptr %119, align 8, !tbaa !9
  %121 = add nsw i64 %120, 1
  %122 = getelementptr inbounds double, ptr %118, i64 %121
  %123 = load ptr, ptr %19, align 8, !tbaa !5
  %124 = getelementptr inbounds double, ptr %123, i64 1
  %125 = load ptr, ptr %20, align 8, !tbaa !5
  %126 = getelementptr inbounds i64, ptr %125, i64 1
  %127 = getelementptr inbounds [3 x i64], ptr %29, i64 0, i64 0
  %128 = call i32 @dlacn2_(ptr noundef %117, ptr noundef %122, ptr noundef %124, ptr noundef %126, ptr noundef %33, ptr noundef %27, ptr noundef %127)
  %129 = load i64, ptr %27, align 8, !tbaa !9
  %130 = icmp ne i64 %129, 0
  br i1 %130, label %131, label %244

131:                                              ; preds = %116
  %132 = load i64, ptr %30, align 8, !tbaa !9
  %133 = icmp ne i64 %132, 0
  br i1 %133, label %134, label %170

134:                                              ; preds = %131
  %135 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = load ptr, ptr %14, align 8, !tbaa !5
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  %139 = load i64, ptr %23, align 8, !tbaa !9
  %140 = getelementptr inbounds double, ptr %138, i64 %139
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  %142 = load ptr, ptr %19, align 8, !tbaa !5
  %143 = getelementptr inbounds double, ptr %142, i64 1
  %144 = load ptr, ptr %19, align 8, !tbaa !5
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = load i64, ptr %145, align 8, !tbaa !9
  %147 = shl i64 %146, 1
  %148 = add nsw i64 %147, 1
  %149 = getelementptr inbounds double, ptr %144, i64 %148
  %150 = load ptr, ptr %21, align 8, !tbaa !5
  %151 = call i32 @dlatbs_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %135, ptr noundef %136, ptr noundef %137, ptr noundef %140, ptr noundef %141, ptr noundef %143, ptr noundef %31, ptr noundef %149, ptr noundef %150)
  %152 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 89, ptr %152, align 1, !tbaa !13
  %153 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %154 = load ptr, ptr %13, align 8, !tbaa !5
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = load i64, ptr %23, align 8, !tbaa !9
  %158 = getelementptr inbounds double, ptr %156, i64 %157
  %159 = load ptr, ptr %16, align 8, !tbaa !5
  %160 = load ptr, ptr %19, align 8, !tbaa !5
  %161 = getelementptr inbounds double, ptr %160, i64 1
  %162 = load ptr, ptr %19, align 8, !tbaa !5
  %163 = load ptr, ptr %13, align 8, !tbaa !5
  %164 = load i64, ptr %163, align 8, !tbaa !9
  %165 = shl i64 %164, 1
  %166 = add nsw i64 %165, 1
  %167 = getelementptr inbounds double, ptr %162, i64 %166
  %168 = load ptr, ptr %21, align 8, !tbaa !5
  %169 = call i32 @dlatbs_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %153, ptr noundef %154, ptr noundef %155, ptr noundef %158, ptr noundef %159, ptr noundef %161, ptr noundef %32, ptr noundef %167, ptr noundef %168)
  br label %206

170:                                              ; preds = %131
  %171 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %172 = load ptr, ptr %13, align 8, !tbaa !5
  %173 = load ptr, ptr %14, align 8, !tbaa !5
  %174 = load ptr, ptr %15, align 8, !tbaa !5
  %175 = load i64, ptr %23, align 8, !tbaa !9
  %176 = getelementptr inbounds double, ptr %174, i64 %175
  %177 = load ptr, ptr %16, align 8, !tbaa !5
  %178 = load ptr, ptr %19, align 8, !tbaa !5
  %179 = getelementptr inbounds double, ptr %178, i64 1
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  %182 = load i64, ptr %181, align 8, !tbaa !9
  %183 = shl i64 %182, 1
  %184 = add nsw i64 %183, 1
  %185 = getelementptr inbounds double, ptr %180, i64 %184
  %186 = load ptr, ptr %21, align 8, !tbaa !5
  %187 = call i32 @dlatbs_(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %171, ptr noundef %172, ptr noundef %173, ptr noundef %176, ptr noundef %177, ptr noundef %179, ptr noundef %31, ptr noundef %185, ptr noundef %186)
  %188 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 89, ptr %188, align 1, !tbaa !13
  %189 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %190 = load ptr, ptr %13, align 8, !tbaa !5
  %191 = load ptr, ptr %14, align 8, !tbaa !5
  %192 = load ptr, ptr %15, align 8, !tbaa !5
  %193 = load i64, ptr %23, align 8, !tbaa !9
  %194 = getelementptr inbounds double, ptr %192, i64 %193
  %195 = load ptr, ptr %16, align 8, !tbaa !5
  %196 = load ptr, ptr %19, align 8, !tbaa !5
  %197 = getelementptr inbounds double, ptr %196, i64 1
  %198 = load ptr, ptr %19, align 8, !tbaa !5
  %199 = load ptr, ptr %13, align 8, !tbaa !5
  %200 = load i64, ptr %199, align 8, !tbaa !9
  %201 = shl i64 %200, 1
  %202 = add nsw i64 %201, 1
  %203 = getelementptr inbounds double, ptr %198, i64 %202
  %204 = load ptr, ptr %21, align 8, !tbaa !5
  %205 = call i32 @dlatbs_(ptr noundef @.str.8, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %189, ptr noundef %190, ptr noundef %191, ptr noundef %194, ptr noundef %195, ptr noundef %197, ptr noundef %32, ptr noundef %203, ptr noundef %204)
  br label %206

206:                                              ; preds = %170, %134
  %207 = load double, ptr %31, align 8, !tbaa !11
  %208 = load double, ptr %32, align 8, !tbaa !11
  %209 = fmul double %207, %208
  store double %209, ptr %28, align 8, !tbaa !11
  %210 = load double, ptr %28, align 8, !tbaa !11
  %211 = fcmp une double %210, 1.000000e+00
  br i1 %211, label %212, label %243

212:                                              ; preds = %206
  %213 = load ptr, ptr %13, align 8, !tbaa !5
  %214 = load ptr, ptr %19, align 8, !tbaa !5
  %215 = getelementptr inbounds double, ptr %214, i64 1
  %216 = call i64 @f2c_idamax(ptr noundef %213, ptr noundef %215, ptr noundef @c__1)
  store i64 %216, ptr %26, align 8, !tbaa !9
  %217 = load double, ptr %28, align 8, !tbaa !11
  %218 = load ptr, ptr %19, align 8, !tbaa !5
  %219 = load i64, ptr %26, align 8, !tbaa !9
  %220 = getelementptr inbounds double, ptr %218, i64 %219
  %221 = load double, ptr %220, align 8, !tbaa !11
  store double %221, ptr %25, align 8, !tbaa !11
  %222 = load double, ptr %25, align 8, !tbaa !11
  %223 = fcmp oge double %222, 0.000000e+00
  br i1 %223, label %224, label %226

224:                                              ; preds = %212
  %225 = load double, ptr %25, align 8, !tbaa !11
  br label %229

226:                                              ; preds = %212
  %227 = load double, ptr %25, align 8, !tbaa !11
  %228 = fneg double %227
  br label %229

229:                                              ; preds = %226, %224
  %230 = phi double [ %225, %224 ], [ %228, %226 ]
  %231 = load double, ptr %35, align 8, !tbaa !11
  %232 = fmul double %230, %231
  %233 = fcmp olt double %217, %232
  br i1 %233, label %237, label %234

234:                                              ; preds = %229
  %235 = load double, ptr %28, align 8, !tbaa !11
  %236 = fcmp oeq double %235, 0.000000e+00
  br i1 %236, label %237, label %238

237:                                              ; preds = %234, %229
  br label %255

238:                                              ; preds = %234
  %239 = load ptr, ptr %13, align 8, !tbaa !5
  %240 = load ptr, ptr %19, align 8, !tbaa !5
  %241 = getelementptr inbounds double, ptr %240, i64 1
  %242 = call i32 @drscl_(ptr noundef %239, ptr noundef %28, ptr noundef %241, ptr noundef @c__1)
  br label %243

243:                                              ; preds = %238, %206
  br label %116

244:                                              ; preds = %116
  %245 = load double, ptr %33, align 8, !tbaa !11
  %246 = fcmp une double %245, 0.000000e+00
  br i1 %246, label %247, label %254

247:                                              ; preds = %244
  %248 = load double, ptr %33, align 8, !tbaa !11
  %249 = fdiv double 1.000000e+00, %248
  %250 = load ptr, ptr %17, align 8, !tbaa !5
  %251 = load double, ptr %250, align 8, !tbaa !11
  %252 = fdiv double %249, %251
  %253 = load ptr, ptr %18, align 8, !tbaa !5
  store double %252, ptr %253, align 8, !tbaa !11
  br label %254

254:                                              ; preds = %247, %244
  br label %255

255:                                              ; preds = %254, %237
  store i32 0, ptr %11, align 4
  store i32 1, ptr %36, align 4
  br label %256

256:                                              ; preds = %255, %111, %105, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  %257 = load i32, ptr %11, align 4
  ret i32 %257
}

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

declare i64 @lsame_(ptr noundef, ptr noundef) #2

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

declare double @dlamch_(ptr noundef) #2

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

declare i32 @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 i64 @f2c_idamax(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @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 = !{!"long", !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 i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @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 i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca [3 x i64], align 16
  %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 8, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 24, 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 i64 0, ptr %9, align 8, !tbaa !5
  %20 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  %.not = icmp eq i64 %20, 0
  br i1 %.not, label %21, label %23

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

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

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

29:                                               ; preds = %26
  %30 = load i64, ptr %4, align 8, !tbaa !5
  %.not84 = icmp sgt i64 %30, %27
  br i1 %.not84, 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 i64, ptr %9, align 8, !tbaa !5
  %.not85 = icmp eq i64 %.pr, 0
  br i1 %.not85, label %38, label %.thread

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

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

38:                                               ; preds = %34
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  %39 = icmp eq i64 %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 i64 0, ptr %12, align 8, !tbaa !5
  store i8 78, ptr %18, align 1, !tbaa !11
  %46 = load i64, ptr %1, align 8, !tbaa !5
  %47 = getelementptr double, ptr %7, i64 %46
  %48 = call i32 @dlacn2_(ptr noundef nonnull %1, ptr noundef %47, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #3
  %49 = load i64, ptr %12, align 8, !tbaa !5
  %.not8691 = icmp eq i64 %49, 0
  br i1 %.not8691, 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, %73
  %50 = load i64, ptr %1, align 8, !tbaa !5
  %.idx.us = shl i64 %50, 4
  %51 = getelementptr i8, ptr %7, i64 %.idx.us
  %52 = call i32 @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 %51, ptr noundef nonnull %9) #3
  store i8 89, ptr %18, align 1, !tbaa !11
  %53 = load i64, ptr %1, align 8, !tbaa !5
  %.idx87.us = shl i64 %53, 4
  %54 = getelementptr i8, ptr %7, i64 %.idx87.us
  %55 = call i32 @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 %54, ptr noundef nonnull %9) #3
  %56 = load double, ptr %15, align 8, !tbaa !9
  %57 = load double, ptr %16, align 8, !tbaa !9
  %58 = fmul double %56, %57
  store double %58, ptr %13, align 8, !tbaa !9
  %59 = fcmp une double %58, 1.000000e+00
  br i1 %59, label %60, label %73

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

71:                                               ; preds = %60
  %72 = call i32 @drscl_(ptr noundef nonnull %1, ptr noundef nonnull %13, ptr noundef nonnull %7, ptr noundef nonnull @c__1) #3
  br label %73

73:                                               ; preds = %71, %.lr.ph.split.us
  %74 = load i64, ptr %1, align 8, !tbaa !5
  %75 = getelementptr double, ptr %7, i64 %74
  %76 = call i32 @dlacn2_(ptr noundef nonnull %1, ptr noundef %75, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #3
  %77 = load i64, ptr %12, align 8, !tbaa !5
  %.not86.us = icmp eq i64 %77, 0
  br i1 %.not86.us, label %._crit_edge, label %.lr.ph.split.us

.lr.ph.split:                                     ; preds = %.lr.ph, %101
  %78 = load i64, ptr %1, align 8, !tbaa !5
  %.idx88 = shl i64 %78, 4
  %79 = getelementptr i8, ptr %7, i64 %.idx88
  %80 = call i32 @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 %79, ptr noundef nonnull %9) #3
  store i8 89, ptr %18, align 1, !tbaa !11
  %81 = load i64, ptr %1, align 8, !tbaa !5
  %.idx89 = shl i64 %81, 4
  %82 = getelementptr i8, ptr %7, i64 %.idx89
  %83 = call i32 @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 %82, ptr noundef nonnull %9) #3
  %84 = load double, ptr %15, align 8, !tbaa !9
  %85 = load double, ptr %16, align 8, !tbaa !9
  %86 = fmul double %84, %85
  store double %86, ptr %13, align 8, !tbaa !9
  %87 = fcmp une double %86, 1.000000e+00
  br i1 %87, label %88, label %101

88:                                               ; preds = %.lr.ph.split
  %89 = call i64 @f2c_idamax(ptr noundef nonnull %1, ptr noundef %7, ptr noundef nonnull @c__1) #3
  %90 = load double, ptr %13, align 8
  %91 = getelementptr inbounds double, ptr %19, i64 %89
  %92 = load double, ptr %91, align 8, !tbaa !9
  %93 = fcmp oge double %92, 0.000000e+00
  %94 = fneg double %92
  %95 = select i1 %93, double %92, double %94
  %96 = fmul double %45, %95
  %97 = fcmp olt double %90, %96
  %98 = fcmp oeq double %90, 0.000000e+00
  %or.cond = or i1 %98, %97
  br i1 %or.cond, label %.loopexit, label %99

99:                                               ; preds = %88
  %100 = call i32 @drscl_(ptr noundef nonnull %1, ptr noundef nonnull %13, ptr noundef nonnull %7, ptr noundef nonnull @c__1) #3
  br label %101

101:                                              ; preds = %99, %.lr.ph.split
  %102 = load i64, ptr %1, align 8, !tbaa !5
  %103 = getelementptr double, ptr %7, i64 %102
  %104 = call i32 @dlacn2_(ptr noundef nonnull %1, ptr noundef %103, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #3
  %105 = load i64, ptr %12, align 8, !tbaa !5
  %.not86 = icmp eq i64 %105, 0
  br i1 %.not86, label %._crit_edge, label %.lr.ph.split

._crit_edge:                                      ; preds = %101, %73, %44
  %106 = load double, ptr %17, align 8, !tbaa !9
  %107 = fcmp une double %106, 0.000000e+00
  br i1 %107, label %108, label %.loopexit

108:                                              ; preds = %._crit_edge
  %109 = fdiv double 1.000000e+00, %106
  %110 = load double, ptr %5, align 8, !tbaa !9
  %111 = fdiv double %109, %110
  store double %111, ptr %6, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %88, %60, %108, %._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 24, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  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 i64 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @dlamch_(ptr noundef) local_unnamed_addr #2

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

declare i32 @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 i64 @f2c_idamax(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @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 = !{!"long", !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,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass