; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 i32, align 4

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

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

57:                                               ; preds = %53
  %58 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -1, ptr %58, align 4, !tbaa !9
  br label %89

59:                                               ; preds = %53, %9
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = icmp slt i32 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %59
  %64 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -2, ptr %64, align 4, !tbaa !9
  br label %88

65:                                               ; preds = %59
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = icmp sge i32 1, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %65
  br label %75

72:                                               ; preds = %65
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = load i32, ptr %73, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %72, %71
  %76 = phi i32 [ 1, %71 ], [ %74, %72 ]
  %77 = icmp slt i32 %67, %76
  br i1 %77, label %78, label %80

78:                                               ; preds = %75
  %79 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -4, ptr %79, align 4, !tbaa !9
  br label %87

80:                                               ; preds = %75
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = load double, ptr %81, align 8, !tbaa !11
  %83 = fcmp olt double %82, 0.000000e+00
  br i1 %83, label %84, label %86

84:                                               ; preds = %80
  %85 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -5, ptr %85, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %84, %80
  br label %87

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

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

89:                                               ; preds = %88, %57
  %90 = load ptr, ptr %18, align 8, !tbaa !5
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %98

93:                                               ; preds = %89
  %94 = load ptr, ptr %18, align 8, !tbaa !5
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = sub nsw i32 0, %95
  store i32 %96, ptr %21, align 4, !tbaa !9
  %97 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %21, i32 noundef 6)
  store i32 1, ptr %33, align 4
  br label %254

98:                                               ; preds = %89
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  store double 0.000000e+00, ptr %99, align 8, !tbaa !11
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %103, label %105

103:                                              ; preds = %98
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  store double 1.000000e+00, ptr %104, align 8, !tbaa !11
  store i32 1, ptr %33, align 4
  br label %254

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

109:                                              ; preds = %105
  store i32 1, ptr %33, align 4
  br label %254

110:                                              ; preds = %105
  br label %111

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

114:                                              ; preds = %241, %111
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %116, i64 %120
  %122 = load ptr, ptr %16, align 8, !tbaa !5
  %123 = getelementptr inbounds double, ptr %122, i64 1
  %124 = load ptr, ptr %17, align 8, !tbaa !5
  %125 = getelementptr inbounds i32, ptr %124, i64 1
  %126 = getelementptr inbounds [3 x i32], ptr %25, i64 0, i64 0
  call void @dlacn2_(ptr noundef %115, ptr noundef %121, ptr noundef %123, ptr noundef %125, ptr noundef %30, ptr noundef %23, ptr noundef %126)
  %127 = load i32, ptr %23, align 4, !tbaa !9
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %242

129:                                              ; preds = %114
  %130 = load i32, ptr %26, align 4, !tbaa !9
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %168

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

168:                                              ; preds = %129
  %169 = getelementptr inbounds [1 x i8], ptr %31, i64 0, i64 0
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  %171 = load ptr, ptr %12, align 8, !tbaa !5
  %172 = load i32, ptr %20, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds double, ptr %171, i64 %173
  %175 = load ptr, ptr %13, align 8, !tbaa !5
  %176 = load ptr, ptr %16, align 8, !tbaa !5
  %177 = getelementptr inbounds double, ptr %176, i64 1
  %178 = load ptr, ptr %16, align 8, !tbaa !5
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  %180 = load i32, ptr %179, align 4, !tbaa !9
  %181 = shl i32 %180, 1
  %182 = add nsw i32 %181, 1
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds double, ptr %178, i64 %183
  %185 = load ptr, ptr %18, align 8, !tbaa !5
  call void @dlatrs_(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %169, ptr noundef %170, ptr noundef %174, ptr noundef %175, ptr noundef %177, ptr noundef %28, ptr noundef %184, ptr noundef %185)
  %186 = getelementptr inbounds [1 x i8], ptr %31, i64 0, i64 0
  store i8 89, ptr %186, align 1, !tbaa !13
  %187 = getelementptr inbounds [1 x i8], ptr %31, i64 0, i64 0
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = load ptr, ptr %12, align 8, !tbaa !5
  %190 = load i32, ptr %20, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds double, ptr %189, i64 %191
  %193 = load ptr, ptr %13, align 8, !tbaa !5
  %194 = load ptr, ptr %16, align 8, !tbaa !5
  %195 = getelementptr inbounds double, ptr %194, i64 1
  %196 = load ptr, ptr %16, align 8, !tbaa !5
  %197 = load ptr, ptr %11, align 8, !tbaa !5
  %198 = load i32, ptr %197, align 4, !tbaa !9
  %199 = shl i32 %198, 1
  %200 = add nsw i32 %199, 1
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds double, ptr %196, i64 %201
  %203 = load ptr, ptr %18, align 8, !tbaa !5
  call void @dlatrs_(ptr noundef @.str.8, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %187, ptr noundef %188, ptr noundef %192, ptr noundef %193, ptr noundef %195, ptr noundef %29, ptr noundef %202, ptr noundef %203)
  br label %204

204:                                              ; preds = %168, %132
  %205 = load double, ptr %28, align 8, !tbaa !11
  %206 = load double, ptr %29, align 8, !tbaa !11
  %207 = fmul double %205, %206
  store double %207, ptr %24, align 8, !tbaa !11
  %208 = load double, ptr %24, align 8, !tbaa !11
  %209 = fcmp une double %208, 1.000000e+00
  br i1 %209, label %210, label %241

210:                                              ; preds = %204
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = load ptr, ptr %16, align 8, !tbaa !5
  %213 = getelementptr inbounds double, ptr %212, i64 1
  %214 = call i32 @idamax_(ptr noundef %211, ptr noundef %213, ptr noundef @c__1)
  store i32 %214, ptr %27, align 4, !tbaa !9
  %215 = load double, ptr %24, align 8, !tbaa !11
  %216 = load ptr, ptr %16, align 8, !tbaa !5
  %217 = load i32, ptr %27, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds double, ptr %216, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !11
  store double %220, ptr %22, align 8, !tbaa !11
  %221 = load double, ptr %22, align 8, !tbaa !11
  %222 = fcmp oge double %221, 0.000000e+00
  br i1 %222, label %223, label %225

223:                                              ; preds = %210
  %224 = load double, ptr %22, align 8, !tbaa !11
  br label %228

225:                                              ; preds = %210
  %226 = load double, ptr %22, align 8, !tbaa !11
  %227 = fneg double %226
  br label %228

228:                                              ; preds = %225, %223
  %229 = phi double [ %224, %223 ], [ %227, %225 ]
  %230 = load double, ptr %32, align 8, !tbaa !11
  %231 = fmul double %229, %230
  %232 = fcmp olt double %215, %231
  br i1 %232, label %236, label %233

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

236:                                              ; preds = %233, %228
  br label %253

237:                                              ; preds = %233
  %238 = load ptr, ptr %11, align 8, !tbaa !5
  %239 = load ptr, ptr %16, align 8, !tbaa !5
  %240 = getelementptr inbounds double, ptr %239, i64 1
  call void @drscl_(ptr noundef %238, ptr noundef %24, ptr noundef %240, ptr noundef @c__1)
  br label %241

241:                                              ; preds = %237, %204
  br label %114

242:                                              ; preds = %114
  %243 = load double, ptr %30, align 8, !tbaa !11
  %244 = fcmp une double %243, 0.000000e+00
  br i1 %244, label %245, label %252

245:                                              ; preds = %242
  %246 = load double, ptr %30, align 8, !tbaa !11
  %247 = fdiv double 1.000000e+00, %246
  %248 = load ptr, ptr %14, align 8, !tbaa !5
  %249 = load double, ptr %248, align 8, !tbaa !11
  %250 = fdiv double %247, %249
  %251 = load ptr, ptr %15, align 8, !tbaa !5
  store double %250, ptr %251, align 8, !tbaa !11
  br label %252

252:                                              ; preds = %245, %242
  br label %253

253:                                              ; preds = %252, %236
  store i32 1, ptr %33, align 4
  br label %254

254:                                              ; preds = %253, %109, %103, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 1, 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 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 12, 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 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #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 @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 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 @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 i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca [3 x i32], align 4
  %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 4, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 12, 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 i32 0, ptr %8, align 4, !tbaa !5
  %19 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %20, label %22

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

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

25:                                               ; preds = %22
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %23, i32 1)
  %27 = icmp slt i32 %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 i32, ptr %8, align 4, !tbaa !5
  %.not78 = icmp eq i32 %.pr, 0
  br i1 %.not78, label %35, label %.thread

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

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

35:                                               ; preds = %31
  store double 0.000000e+00, ptr %5, align 8, !tbaa !9
  %36 = icmp eq i32 %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 i32 0, ptr %11, align 4, !tbaa !5
  store i8 78, ptr %17, align 1, !tbaa !11
  %43 = load i32, ptr %1, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %gep81 = getelementptr double, ptr %6, i64 %44
  call void @dlacn2_(ptr noundef nonnull %1, ptr noundef %gep81, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %45 = load i32, ptr %11, align 4, !tbaa !5
  %.not7982 = icmp eq i32 %45, 0
  br i1 %.not7982, 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, %73
  %46 = load i32, ptr %1, align 4, !tbaa !5
  %47 = shl i32 %46, 1
  %48 = or disjoint i32 %47, 1
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds double, ptr %18, i64 %49
  call void @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 nonnull %50, ptr noundef nonnull %8) #4
  store i8 89, ptr %17, align 1, !tbaa !11
  %51 = load i32, ptr %1, align 4, !tbaa !5
  %52 = shl i32 %51, 1
  %53 = or disjoint i32 %52, 1
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds double, ptr %18, i64 %54
  call void @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 nonnull %55, ptr noundef nonnull %8) #4
  %56 = load double, ptr %14, align 8, !tbaa !9
  %57 = load double, ptr %15, align 8, !tbaa !9
  %58 = fmul double %56, %57
  store double %58, ptr %12, 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 i32 @idamax_(ptr noundef nonnull %1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  %62 = load double, ptr %12, align 8
  %63 = sext i32 %61 to i64
  %64 = getelementptr inbounds double, ptr %18, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = fcmp oge double %65, 0.000000e+00
  %67 = fneg double %65
  %68 = select i1 %66, double %65, double %67
  %69 = fmul double %42, %68
  %70 = fcmp olt double %62, %69
  %71 = fcmp oeq double %62, 0.000000e+00
  %or.cond.us = or i1 %71, %70
  br i1 %or.cond.us, label %.loopexit, label %72

72:                                               ; preds = %60
  call void @drscl_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #4
  br label %73

73:                                               ; preds = %72, %.lr.ph.split.us
  %74 = load i32, ptr %1, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %gep.us = getelementptr double, ptr %6, i64 %75
  call void @dlacn2_(ptr noundef nonnull %1, ptr noundef %gep.us, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %76 = load i32, ptr %11, align 4, !tbaa !5
  %.not79.us = icmp eq i32 %76, 0
  br i1 %.not79.us, label %._crit_edge, label %.lr.ph.split.us

.lr.ph.split:                                     ; preds = %.lr.ph, %104
  %77 = load i32, ptr %1, align 4, !tbaa !5
  %78 = shl i32 %77, 1
  %79 = or disjoint i32 %78, 1
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %18, i64 %80
  call void @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 nonnull %81, ptr noundef nonnull %8) #4
  store i8 89, ptr %17, align 1, !tbaa !11
  %82 = load i32, ptr %1, align 4, !tbaa !5
  %83 = shl i32 %82, 1
  %84 = or disjoint i32 %83, 1
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds double, ptr %18, i64 %85
  call void @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 nonnull %86, ptr noundef nonnull %8) #4
  %87 = load double, ptr %14, align 8, !tbaa !9
  %88 = load double, ptr %15, align 8, !tbaa !9
  %89 = fmul double %87, %88
  store double %89, ptr %12, align 8, !tbaa !9
  %90 = fcmp une double %89, 1.000000e+00
  br i1 %90, label %91, label %104

91:                                               ; preds = %.lr.ph.split
  %92 = call i32 @idamax_(ptr noundef nonnull %1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  %93 = load double, ptr %12, align 8
  %94 = sext i32 %92 to i64
  %95 = getelementptr inbounds double, ptr %18, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !9
  %97 = fcmp oge double %96, 0.000000e+00
  %98 = fneg double %96
  %99 = select i1 %97, double %96, double %98
  %100 = fmul double %42, %99
  %101 = fcmp olt double %93, %100
  %102 = fcmp oeq double %93, 0.000000e+00
  %or.cond = or i1 %102, %101
  br i1 %or.cond, label %.loopexit, label %103

103:                                              ; preds = %91
  call void @drscl_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #4
  br label %104

104:                                              ; preds = %103, %.lr.ph.split
  %105 = load i32, ptr %1, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %gep = getelementptr double, ptr %6, i64 %106
  call void @dlacn2_(ptr noundef nonnull %1, ptr noundef %gep, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %107 = load i32, ptr %11, align 4, !tbaa !5
  %.not79 = icmp eq i32 %107, 0
  br i1 %.not79, label %._crit_edge, label %.lr.ph.split

._crit_edge:                                      ; preds = %104, %73, %41
  %108 = load double, ptr %16, align 8, !tbaa !9
  %109 = fcmp une double %108, 0.000000e+00
  br i1 %109, label %110, label %.loopexit

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

.loopexit:                                        ; preds = %91, %60, %110, %._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 12, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  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 @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 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #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 = !{!"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