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

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

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

56:                                               ; preds = %52
  %57 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -1, ptr %57, align 8, !tbaa !9
  br label %88

58:                                               ; preds = %52, %9
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = load i64, ptr %59, align 8, !tbaa !9
  %61 = icmp slt i64 %60, 0
  br i1 %61, label %62, label %64

62:                                               ; preds = %58
  %63 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -2, ptr %63, align 8, !tbaa !9
  br label %87

64:                                               ; preds = %58
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = icmp sge i64 1, %68
  br i1 %69, label %70, label %71

70:                                               ; preds = %64
  br label %74

71:                                               ; preds = %64
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = load i64, ptr %72, align 8, !tbaa !9
  br label %74

74:                                               ; preds = %71, %70
  %75 = phi i64 [ 1, %70 ], [ %73, %71 ]
  %76 = icmp slt i64 %66, %75
  br i1 %76, label %77, label %79

77:                                               ; preds = %74
  %78 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -4, ptr %78, align 8, !tbaa !9
  br label %86

79:                                               ; preds = %74
  %80 = load ptr, ptr %15, align 8, !tbaa !5
  %81 = load double, ptr %80, align 8, !tbaa !11
  %82 = fcmp olt double %81, 0.000000e+00
  br i1 %82, label %83, label %85

83:                                               ; preds = %79
  %84 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -5, ptr %84, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %83, %79
  br label %86

86:                                               ; preds = %85, %77
  br label %87

87:                                               ; preds = %86, %62
  br label %88

88:                                               ; preds = %87, %56
  %89 = load ptr, ptr %19, align 8, !tbaa !5
  %90 = load i64, ptr %89, align 8, !tbaa !9
  %91 = icmp ne i64 %90, 0
  br i1 %91, label %92, label %97

92:                                               ; preds = %88
  %93 = load ptr, ptr %19, align 8, !tbaa !5
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = sub nsw i64 0, %94
  store i64 %95, ptr %22, align 8, !tbaa !9
  %96 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %22)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %34, align 4
  br label %249

97:                                               ; preds = %88
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  store double 0.000000e+00, ptr %98, align 8, !tbaa !11
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = icmp eq i64 %100, 0
  br i1 %101, label %102, label %104

102:                                              ; preds = %97
  %103 = load ptr, ptr %16, align 8, !tbaa !5
  store double 1.000000e+00, ptr %103, align 8, !tbaa !11
  store i32 0, ptr %10, align 4
  store i32 1, ptr %34, align 4
  br label %249

104:                                              ; preds = %97
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = load double, ptr %105, align 8, !tbaa !11
  %107 = fcmp oeq double %106, 0.000000e+00
  br i1 %107, label %108, label %109

108:                                              ; preds = %104
  store i32 0, ptr %10, align 4
  store i32 1, ptr %34, align 4
  br label %249

109:                                              ; preds = %104
  br label %110

110:                                              ; preds = %109
  %111 = call double @dlamch_(ptr noundef @.str.3)
  store double %111, ptr %33, align 8, !tbaa !11
  store i64 0, ptr %25, align 8, !tbaa !9
  %112 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 78, ptr %112, align 1, !tbaa !13
  br label %113

113:                                              ; preds = %236, %110
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = load ptr, ptr %17, align 8, !tbaa !5
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = load i64, ptr %116, align 8, !tbaa !9
  %118 = add nsw i64 %117, 1
  %119 = getelementptr inbounds double, ptr %115, i64 %118
  %120 = load ptr, ptr %17, align 8, !tbaa !5
  %121 = getelementptr inbounds double, ptr %120, i64 1
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  %123 = getelementptr inbounds i64, ptr %122, i64 1
  %124 = getelementptr inbounds [3 x i64], ptr %27, i64 0, i64 0
  %125 = call i32 @dlacn2_(ptr noundef %114, ptr noundef %119, ptr noundef %121, ptr noundef %123, ptr noundef %31, ptr noundef %25, ptr noundef %124)
  %126 = load i64, ptr %25, align 8, !tbaa !9
  %127 = icmp ne i64 %126, 0
  br i1 %127, label %128, label %237

128:                                              ; preds = %113
  %129 = load i64, ptr %28, align 8, !tbaa !9
  %130 = icmp ne i64 %129, 0
  br i1 %130, label %131, label %165

131:                                              ; preds = %128
  %132 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = load i64, ptr %21, align 8, !tbaa !9
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  %137 = load ptr, ptr %14, align 8, !tbaa !5
  %138 = load ptr, ptr %17, align 8, !tbaa !5
  %139 = getelementptr inbounds double, ptr %138, i64 1
  %140 = load ptr, ptr %17, align 8, !tbaa !5
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = load i64, ptr %141, align 8, !tbaa !9
  %143 = shl i64 %142, 1
  %144 = add nsw i64 %143, 1
  %145 = getelementptr inbounds double, ptr %140, i64 %144
  %146 = load ptr, ptr %19, align 8, !tbaa !5
  %147 = call i32 @dlatrs_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %132, ptr noundef %133, ptr noundef %136, ptr noundef %137, ptr noundef %139, ptr noundef %29, ptr noundef %145, ptr noundef %146)
  %148 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 89, ptr %148, align 1, !tbaa !13
  %149 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  %151 = load ptr, ptr %13, align 8, !tbaa !5
  %152 = load i64, ptr %21, align 8, !tbaa !9
  %153 = getelementptr inbounds double, ptr %151, i64 %152
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = load ptr, ptr %17, align 8, !tbaa !5
  %156 = getelementptr inbounds double, ptr %155, i64 1
  %157 = load ptr, ptr %17, align 8, !tbaa !5
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = load i64, ptr %158, align 8, !tbaa !9
  %160 = shl i64 %159, 1
  %161 = add nsw i64 %160, 1
  %162 = getelementptr inbounds double, ptr %157, i64 %161
  %163 = load ptr, ptr %19, align 8, !tbaa !5
  %164 = call i32 @dlatrs_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %149, ptr noundef %150, ptr noundef %153, ptr noundef %154, ptr noundef %156, ptr noundef %30, ptr noundef %162, ptr noundef %163)
  br label %199

165:                                              ; preds = %128
  %166 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %167 = load ptr, ptr %12, align 8, !tbaa !5
  %168 = load ptr, ptr %13, align 8, !tbaa !5
  %169 = load i64, ptr %21, align 8, !tbaa !9
  %170 = getelementptr inbounds double, ptr %168, i64 %169
  %171 = load ptr, ptr %14, align 8, !tbaa !5
  %172 = load ptr, ptr %17, align 8, !tbaa !5
  %173 = getelementptr inbounds double, ptr %172, i64 1
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = load ptr, ptr %12, align 8, !tbaa !5
  %176 = load i64, ptr %175, align 8, !tbaa !9
  %177 = shl i64 %176, 1
  %178 = add nsw i64 %177, 1
  %179 = getelementptr inbounds double, ptr %174, i64 %178
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  %181 = call i32 @dlatrs_(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %166, ptr noundef %167, ptr noundef %170, ptr noundef %171, ptr noundef %173, ptr noundef %29, ptr noundef %179, ptr noundef %180)
  %182 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 89, ptr %182, align 1, !tbaa !13
  %183 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %184 = load ptr, ptr %12, align 8, !tbaa !5
  %185 = load ptr, ptr %13, align 8, !tbaa !5
  %186 = load i64, ptr %21, align 8, !tbaa !9
  %187 = getelementptr inbounds double, ptr %185, i64 %186
  %188 = load ptr, ptr %14, align 8, !tbaa !5
  %189 = load ptr, ptr %17, align 8, !tbaa !5
  %190 = getelementptr inbounds double, ptr %189, i64 1
  %191 = load ptr, ptr %17, align 8, !tbaa !5
  %192 = load ptr, ptr %12, align 8, !tbaa !5
  %193 = load i64, ptr %192, align 8, !tbaa !9
  %194 = shl i64 %193, 1
  %195 = add nsw i64 %194, 1
  %196 = getelementptr inbounds double, ptr %191, i64 %195
  %197 = load ptr, ptr %19, align 8, !tbaa !5
  %198 = call i32 @dlatrs_(ptr noundef @.str.8, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %183, ptr noundef %184, ptr noundef %187, ptr noundef %188, ptr noundef %190, ptr noundef %30, ptr noundef %196, ptr noundef %197)
  br label %199

199:                                              ; preds = %165, %131
  %200 = load double, ptr %29, align 8, !tbaa !11
  %201 = load double, ptr %30, align 8, !tbaa !11
  %202 = fmul double %200, %201
  store double %202, ptr %26, align 8, !tbaa !11
  %203 = load double, ptr %26, align 8, !tbaa !11
  %204 = fcmp une double %203, 1.000000e+00
  br i1 %204, label %205, label %236

205:                                              ; preds = %199
  %206 = load ptr, ptr %12, align 8, !tbaa !5
  %207 = load ptr, ptr %17, align 8, !tbaa !5
  %208 = getelementptr inbounds double, ptr %207, i64 1
  %209 = call i64 @f2c_idamax(ptr noundef %206, ptr noundef %208, ptr noundef @c__1)
  store i64 %209, ptr %24, align 8, !tbaa !9
  %210 = load double, ptr %26, align 8, !tbaa !11
  %211 = load ptr, ptr %17, align 8, !tbaa !5
  %212 = load i64, ptr %24, align 8, !tbaa !9
  %213 = getelementptr inbounds double, ptr %211, i64 %212
  %214 = load double, ptr %213, align 8, !tbaa !11
  store double %214, ptr %23, align 8, !tbaa !11
  %215 = load double, ptr %23, align 8, !tbaa !11
  %216 = fcmp oge double %215, 0.000000e+00
  br i1 %216, label %217, label %219

217:                                              ; preds = %205
  %218 = load double, ptr %23, align 8, !tbaa !11
  br label %222

219:                                              ; preds = %205
  %220 = load double, ptr %23, align 8, !tbaa !11
  %221 = fneg double %220
  br label %222

222:                                              ; preds = %219, %217
  %223 = phi double [ %218, %217 ], [ %221, %219 ]
  %224 = load double, ptr %33, align 8, !tbaa !11
  %225 = fmul double %223, %224
  %226 = fcmp olt double %210, %225
  br i1 %226, label %230, label %227

227:                                              ; preds = %222
  %228 = load double, ptr %26, align 8, !tbaa !11
  %229 = fcmp oeq double %228, 0.000000e+00
  br i1 %229, label %230, label %231

230:                                              ; preds = %227, %222
  br label %248

231:                                              ; preds = %227
  %232 = load ptr, ptr %12, align 8, !tbaa !5
  %233 = load ptr, ptr %17, align 8, !tbaa !5
  %234 = getelementptr inbounds double, ptr %233, i64 1
  %235 = call i32 @drscl_(ptr noundef %232, ptr noundef %26, ptr noundef %234, ptr noundef @c__1)
  br label %236

236:                                              ; preds = %231, %199
  br label %113

237:                                              ; preds = %113
  %238 = load double, ptr %31, align 8, !tbaa !11
  %239 = fcmp une double %238, 0.000000e+00
  br i1 %239, label %240, label %247

240:                                              ; preds = %237
  %241 = load double, ptr %31, align 8, !tbaa !11
  %242 = fdiv double 1.000000e+00, %241
  %243 = load ptr, ptr %15, align 8, !tbaa !5
  %244 = load double, ptr %243, align 8, !tbaa !11
  %245 = fdiv double %242, %244
  %246 = load ptr, ptr %16, align 8, !tbaa !5
  store double %245, ptr %246, align 8, !tbaa !11
  br label %247

247:                                              ; preds = %240, %237
  br label %248

248:                                              ; preds = %247, %230
  store i32 0, ptr %10, align 4
  store i32 1, ptr %34, align 4
  br label %249

249:                                              ; preds = %248, %108, %102, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 1, 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 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 24, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  %250 = load i32, ptr %10, align 4
  ret i32 %250
}

; 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 @dlatrs_(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 @dpocon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef writeonly %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca [3 x i64], align 16
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #4
  %18 = getelementptr inbounds i8, ptr %6, i64 -8
  store i64 0, ptr %8, align 8, !tbaa !5
  %19 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i64 %19, 0
  br i1 %.not, label %20, label %22

20:                                               ; preds = %9
  %21 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not78 = icmp eq i64 %21, 0
  br i1 %.not78, label %.thread.sink.split, label %22

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

25:                                               ; preds = %22
  %26 = load i64, ptr %3, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %23, i64 1)
  %27 = icmp slt i64 %26, %spec.select
  br i1 %27, label %.thread.sink.split, label %28

28:                                               ; preds = %25
  %29 = load double, ptr %4, align 8, !tbaa !9
  %30 = fcmp olt double %29, 0.000000e+00
  br i1 %30, label %.thread.sink.split, label %31

31:                                               ; preds = %28
  %.pr = load i64, ptr %8, align 8, !tbaa !5
  %.not79 = icmp eq i64 %.pr, 0
  br i1 %.not79, label %35, label %.thread

.thread.sink.split:                               ; preds = %28, %25, %22, %20
  %.sink = phi i64 [ -1, %20 ], [ -2, %22 ], [ -4, %25 ], [ -5, %28 ]
  store i64 %.sink, ptr %8, align 8, !tbaa !5
  br label %.thread

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

35:                                               ; preds = %31
  store double 0.000000e+00, ptr %5, align 8, !tbaa !9
  %36 = icmp eq i64 %23, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %35
  store double 1.000000e+00, ptr %5, align 8, !tbaa !9
  br label %.loopexit

38:                                               ; preds = %35
  %39 = load double, ptr %4, align 8, !tbaa !9
  %40 = fcmp oeq double %39, 0.000000e+00
  br i1 %40, label %.loopexit, label %41

41:                                               ; preds = %38
  %42 = tail call double @dlamch_(ptr noundef nonnull @.str.3) #4
  store i64 0, ptr %11, align 8, !tbaa !5
  store i8 78, ptr %17, align 1, !tbaa !11
  %43 = load i64, ptr %1, align 8, !tbaa !5
  %44 = getelementptr double, ptr %6, i64 %43
  %45 = call i32 @dlacn2_(ptr noundef nonnull %1, ptr noundef %44, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %46 = load i64, ptr %11, align 8, !tbaa !5
  %.not8085 = icmp eq i64 %46, 0
  br i1 %.not8085, label %._crit_edge, label %.lr.ph

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

.lr.ph.split.us:                                  ; preds = %.lr.ph, %70
  %47 = load i64, ptr %1, align 8, !tbaa !5
  %.idx.us = shl i64 %47, 4
  %48 = getelementptr i8, ptr %6, i64 %.idx.us
  %49 = call i32 @dlatrs_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %14, ptr noundef %48, ptr noundef nonnull %8) #4
  store i8 89, ptr %17, align 1, !tbaa !11
  %50 = load i64, ptr %1, align 8, !tbaa !5
  %.idx81.us = shl i64 %50, 4
  %51 = getelementptr i8, ptr %6, i64 %.idx81.us
  %52 = call i32 @dlatrs_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %15, ptr noundef %51, ptr noundef nonnull %8) #4
  %53 = load double, ptr %14, align 8, !tbaa !9
  %54 = load double, ptr %15, align 8, !tbaa !9
  %55 = fmul double %53, %54
  store double %55, ptr %12, align 8, !tbaa !9
  %56 = fcmp une double %55, 1.000000e+00
  br i1 %56, label %57, label %70

57:                                               ; preds = %.lr.ph.split.us
  %58 = call i64 @f2c_idamax(ptr noundef nonnull %1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  %59 = load double, ptr %12, align 8
  %60 = getelementptr inbounds double, ptr %18, i64 %58
  %61 = load double, ptr %60, align 8, !tbaa !9
  %62 = fcmp oge double %61, 0.000000e+00
  %63 = fneg double %61
  %64 = select i1 %62, double %61, double %63
  %65 = fmul double %42, %64
  %66 = fcmp olt double %59, %65
  %67 = fcmp oeq double %59, 0.000000e+00
  %or.cond.us = or i1 %67, %66
  br i1 %or.cond.us, label %.loopexit, label %68

68:                                               ; preds = %57
  %69 = call i32 @drscl_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #4
  br label %70

70:                                               ; preds = %68, %.lr.ph.split.us
  %71 = load i64, ptr %1, align 8, !tbaa !5
  %72 = getelementptr double, ptr %6, i64 %71
  %73 = call i32 @dlacn2_(ptr noundef nonnull %1, ptr noundef %72, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %74 = load i64, ptr %11, align 8, !tbaa !5
  %.not80.us = icmp eq i64 %74, 0
  br i1 %.not80.us, label %._crit_edge, label %.lr.ph.split.us

.lr.ph.split:                                     ; preds = %.lr.ph, %98
  %75 = load i64, ptr %1, align 8, !tbaa !5
  %.idx82 = shl i64 %75, 4
  %76 = getelementptr i8, ptr %6, i64 %.idx82
  %77 = call i32 @dlatrs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %14, ptr noundef %76, ptr noundef nonnull %8) #4
  store i8 89, ptr %17, align 1, !tbaa !11
  %78 = load i64, ptr %1, align 8, !tbaa !5
  %.idx83 = shl i64 %78, 4
  %79 = getelementptr i8, ptr %6, i64 %.idx83
  %80 = call i32 @dlatrs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %15, ptr noundef %79, ptr noundef nonnull %8) #4
  %81 = load double, ptr %14, align 8, !tbaa !9
  %82 = load double, ptr %15, align 8, !tbaa !9
  %83 = fmul double %81, %82
  store double %83, ptr %12, align 8, !tbaa !9
  %84 = fcmp une double %83, 1.000000e+00
  br i1 %84, label %85, label %98

85:                                               ; preds = %.lr.ph.split
  %86 = call i64 @f2c_idamax(ptr noundef nonnull %1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  %87 = load double, ptr %12, align 8
  %88 = getelementptr inbounds double, ptr %18, i64 %86
  %89 = load double, ptr %88, align 8, !tbaa !9
  %90 = fcmp oge double %89, 0.000000e+00
  %91 = fneg double %89
  %92 = select i1 %90, double %89, double %91
  %93 = fmul double %42, %92
  %94 = fcmp olt double %87, %93
  %95 = fcmp oeq double %87, 0.000000e+00
  %or.cond = or i1 %95, %94
  br i1 %or.cond, label %.loopexit, label %96

96:                                               ; preds = %85
  %97 = call i32 @drscl_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #4
  br label %98

98:                                               ; preds = %96, %.lr.ph.split
  %99 = load i64, ptr %1, align 8, !tbaa !5
  %100 = getelementptr double, ptr %6, i64 %99
  %101 = call i32 @dlacn2_(ptr noundef nonnull %1, ptr noundef %100, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %102 = load i64, ptr %11, align 8, !tbaa !5
  %.not80 = icmp eq i64 %102, 0
  br i1 %.not80, label %._crit_edge, label %.lr.ph.split

._crit_edge:                                      ; preds = %98, %70, %41
  %103 = load double, ptr %16, align 8, !tbaa !9
  %104 = fcmp une double %103, 0.000000e+00
  br i1 %104, label %105, label %.loopexit

105:                                              ; preds = %._crit_edge
  %106 = fdiv double 1.000000e+00, %103
  %107 = load double, ptr %4, align 8, !tbaa !9
  %108 = fdiv double %106, %107
  store double %108, ptr %5, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %85, %57, %105, %._crit_edge, %38, %37, %.thread
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  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 @dlatrs_(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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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