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

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

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

48:                                               ; preds = %9
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = call i32 @lsame_(ptr noundef %49, ptr noundef @.str.1)
  %51 = icmp ne i32 %50, 0
  br label %52

52:                                               ; preds = %48, %9
  %53 = phi i1 [ true, %9 ], [ %51, %48 ]
  %54 = zext i1 %53 to i32
  store i32 %54, ptr %30, align 4, !tbaa !9
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = call i32 @lsame_(ptr noundef %55, ptr noundef @.str.2)
  store i32 %56, ptr %33, align 4, !tbaa !9
  %57 = load i32, ptr %30, align 4, !tbaa !9
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %65, label %59

59:                                               ; preds = %52
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = call i32 @lsame_(ptr noundef %60, ptr noundef @.str.3)
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %65, label %63

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

65:                                               ; preds = %59, %52
  %66 = load i32, ptr %26, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %74, label %68

68:                                               ; preds = %65
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = call i32 @lsame_(ptr noundef %69, ptr noundef @.str.4)
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %74, label %72

72:                                               ; preds = %68
  %73 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -2, ptr %73, align 4, !tbaa !9
  br label %91

74:                                               ; preds = %68, %65
  %75 = load i32, ptr %33, align 4, !tbaa !9
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %83, label %77

77:                                               ; preds = %74
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = call i32 @lsame_(ptr noundef %78, ptr noundef @.str)
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %83, label %81

81:                                               ; preds = %77
  %82 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -3, ptr %82, align 4, !tbaa !9
  br label %90

83:                                               ; preds = %77, %74
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = icmp slt i32 %85, 0
  br i1 %86, label %87, label %89

87:                                               ; preds = %83
  %88 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -4, ptr %88, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %87, %83
  br label %90

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

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

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

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

101:                                              ; preds = %92
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %101
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  store double 1.000000e+00, ptr %106, align 8, !tbaa !12
  store i32 1, ptr %34, align 4
  br label %241

107:                                              ; preds = %101
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  store double 0.000000e+00, ptr %108, align 8, !tbaa !12
  %109 = call double @dlamch_(ptr noundef @.str.6)
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = icmp sge i32 1, %111
  br i1 %112, label %113, label %114

113:                                              ; preds = %107
  br label %117

114:                                              ; preds = %107
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = load i32, ptr %115, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %114, %113
  %118 = phi i32 [ 1, %113 ], [ %116, %114 ]
  %119 = sitofp i32 %118 to double
  %120 = fmul double %109, %119
  store double %120, ptr %32, align 8, !tbaa !12
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  %126 = getelementptr inbounds double, ptr %125, i64 1
  %127 = load ptr, ptr %16, align 8, !tbaa !5
  %128 = getelementptr inbounds double, ptr %127, i64 1
  %129 = call double @dlantp_(ptr noundef %121, ptr noundef %122, ptr noundef %123, ptr noundef %124, ptr noundef %126, ptr noundef %128)
  store double %129, ptr %25, align 8, !tbaa !12
  %130 = load double, ptr %25, align 8, !tbaa !12
  %131 = fcmp ogt double %130, 0.000000e+00
  br i1 %131, label %132, label %239

132:                                              ; preds = %117
  store double 0.000000e+00, ptr %29, align 8, !tbaa !12
  %133 = getelementptr inbounds [1 x i8], ptr %31, i64 0, i64 0
  store i8 78, ptr %133, align 1, !tbaa !11
  %134 = load i32, ptr %30, align 4, !tbaa !9
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %137

136:                                              ; preds = %132
  store i32 1, ptr %22, align 4, !tbaa !9
  br label %138

137:                                              ; preds = %132
  store i32 2, ptr %22, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %137, %136
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %228, %138
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  %142 = load ptr, ptr %13, align 8, !tbaa !5
  %143 = load i32, ptr %142, align 4, !tbaa !9
  %144 = add nsw i32 %143, 1
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds double, ptr %141, i64 %145
  %147 = load ptr, ptr %16, align 8, !tbaa !5
  %148 = getelementptr inbounds double, ptr %147, i64 1
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = getelementptr inbounds i32, ptr %149, i64 1
  %151 = getelementptr inbounds [3 x i32], ptr %24, i64 0, i64 0
  call void @dlacn2_(ptr noundef %140, ptr noundef %146, ptr noundef %148, ptr noundef %150, ptr noundef %29, ptr noundef %21, ptr noundef %151)
  %152 = load i32, ptr %21, align 4, !tbaa !9
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %229

154:                                              ; preds = %139
  %155 = load i32, ptr %21, align 4, !tbaa !9
  %156 = load i32, ptr %22, align 4, !tbaa !9
  %157 = icmp eq i32 %155, %156
  br i1 %157, label %158, label %175

158:                                              ; preds = %154
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = load ptr, ptr %12, align 8, !tbaa !5
  %161 = getelementptr inbounds [1 x i8], ptr %31, i64 0, i64 0
  %162 = load ptr, ptr %13, align 8, !tbaa !5
  %163 = load ptr, ptr %14, align 8, !tbaa !5
  %164 = getelementptr inbounds double, ptr %163, i64 1
  %165 = load ptr, ptr %16, align 8, !tbaa !5
  %166 = getelementptr inbounds double, ptr %165, i64 1
  %167 = load ptr, ptr %16, align 8, !tbaa !5
  %168 = load ptr, ptr %13, align 8, !tbaa !5
  %169 = load i32, ptr %168, align 4, !tbaa !9
  %170 = shl i32 %169, 1
  %171 = add nsw i32 %170, 1
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds double, ptr %167, i64 %172
  %174 = load ptr, ptr %18, align 8, !tbaa !5
  call void @dlatps_(ptr noundef %159, ptr noundef @.str.7, ptr noundef %160, ptr noundef %161, ptr noundef %162, ptr noundef %164, ptr noundef %166, ptr noundef %23, ptr noundef %173, ptr noundef %174)
  br label %192

175:                                              ; preds = %154
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = load ptr, ptr %12, align 8, !tbaa !5
  %178 = getelementptr inbounds [1 x i8], ptr %31, i64 0, i64 0
  %179 = load ptr, ptr %13, align 8, !tbaa !5
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  %181 = getelementptr inbounds double, ptr %180, i64 1
  %182 = load ptr, ptr %16, align 8, !tbaa !5
  %183 = getelementptr inbounds double, ptr %182, i64 1
  %184 = load ptr, ptr %16, align 8, !tbaa !5
  %185 = load ptr, ptr %13, align 8, !tbaa !5
  %186 = load i32, ptr %185, align 4, !tbaa !9
  %187 = shl i32 %186, 1
  %188 = add nsw i32 %187, 1
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds double, ptr %184, i64 %189
  %191 = load ptr, ptr %18, align 8, !tbaa !5
  call void @dlatps_(ptr noundef %176, ptr noundef @.str.8, ptr noundef %177, ptr noundef %178, ptr noundef %179, ptr noundef %181, ptr noundef %183, ptr noundef %23, ptr noundef %190, ptr noundef %191)
  br label %192

192:                                              ; preds = %175, %158
  %193 = getelementptr inbounds [1 x i8], ptr %31, i64 0, i64 0
  store i8 89, ptr %193, align 1, !tbaa !11
  %194 = load double, ptr %23, align 8, !tbaa !12
  %195 = fcmp une double %194, 1.000000e+00
  br i1 %195, label %196, label %228

196:                                              ; preds = %192
  %197 = load ptr, ptr %13, align 8, !tbaa !5
  %198 = load ptr, ptr %16, align 8, !tbaa !5
  %199 = getelementptr inbounds double, ptr %198, i64 1
  %200 = call i32 @idamax_(ptr noundef %197, ptr noundef %199, ptr noundef @c__1)
  store i32 %200, ptr %28, align 4, !tbaa !9
  %201 = load ptr, ptr %16, align 8, !tbaa !5
  %202 = load i32, ptr %28, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds double, ptr %201, i64 %203
  %205 = load double, ptr %204, align 8, !tbaa !12
  store double %205, ptr %20, align 8, !tbaa !12
  %206 = load double, ptr %20, align 8, !tbaa !12
  %207 = fcmp oge double %206, 0.000000e+00
  br i1 %207, label %208, label %210

208:                                              ; preds = %196
  %209 = load double, ptr %20, align 8, !tbaa !12
  br label %213

210:                                              ; preds = %196
  %211 = load double, ptr %20, align 8, !tbaa !12
  %212 = fneg double %211
  br label %213

213:                                              ; preds = %210, %208
  %214 = phi double [ %209, %208 ], [ %212, %210 ]
  store double %214, ptr %27, align 8, !tbaa !12
  %215 = load double, ptr %23, align 8, !tbaa !12
  %216 = load double, ptr %27, align 8, !tbaa !12
  %217 = load double, ptr %32, align 8, !tbaa !12
  %218 = fmul double %216, %217
  %219 = fcmp olt double %215, %218
  br i1 %219, label %223, label %220

220:                                              ; preds = %213
  %221 = load double, ptr %23, align 8, !tbaa !12
  %222 = fcmp oeq double %221, 0.000000e+00
  br i1 %222, label %223, label %224

223:                                              ; preds = %220, %213
  br label %240

224:                                              ; preds = %220
  %225 = load ptr, ptr %13, align 8, !tbaa !5
  %226 = load ptr, ptr %16, align 8, !tbaa !5
  %227 = getelementptr inbounds double, ptr %226, i64 1
  call void @drscl_(ptr noundef %225, ptr noundef %23, ptr noundef %227, ptr noundef @c__1)
  br label %228

228:                                              ; preds = %224, %192
  br label %139

229:                                              ; preds = %139
  %230 = load double, ptr %29, align 8, !tbaa !12
  %231 = fcmp une double %230, 0.000000e+00
  br i1 %231, label %232, label %238

232:                                              ; preds = %229
  %233 = load double, ptr %25, align 8, !tbaa !12
  %234 = fdiv double 1.000000e+00, %233
  %235 = load double, ptr %29, align 8, !tbaa !12
  %236 = fdiv double %234, %235
  %237 = load ptr, ptr %15, align 8, !tbaa !5
  store double %236, ptr %237, align 8, !tbaa !12
  br label %238

238:                                              ; preds = %232, %229
  br label %239

239:                                              ; preds = %238, %117
  br label %240

240:                                              ; preds = %239, %223
  store i32 1, ptr %34, align 4
  br label %241

241:                                              ; preds = %240, %105, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  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 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, 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 double @dlantp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare void @dlatps_(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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !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 [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@c__1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @dtpcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %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 [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #3
  %16 = getelementptr inbounds i8, ptr %6, i64 -8
  store i32 0, ptr %8, align 4, !tbaa !5
  %17 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #3
  %18 = load i8, ptr %0, align 1, !tbaa !9
  %19 = icmp eq i8 %18, 49
  br i1 %19, label %.thread, label %21

.thread:                                          ; preds = %9
  %20 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #3
  br label %26

21:                                               ; preds = %9
  %22 = tail call i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #3
  %.not83 = icmp eq i32 %22, 0
  %23 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #3
  br i1 %.not83, label %24, label %26

24:                                               ; preds = %21
  %25 = tail call i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.3) #3
  %.not = icmp eq i32 %25, 0
  br i1 %.not, label %.thread81.sink.split, label %26

26:                                               ; preds = %.thread, %24, %21
  %27 = phi i32 [ %20, %.thread ], [ %23, %24 ], [ %23, %21 ]
  %. = phi i32 [ 1, %.thread ], [ 2, %24 ], [ 1, %21 ]
  %.not74 = icmp eq i32 %17, 0
  br i1 %.not74, label %28, label %30

28:                                               ; preds = %26
  %29 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.4) #3
  %.not75 = icmp eq i32 %29, 0
  br i1 %.not75, label %.thread81.sink.split, label %30

30:                                               ; preds = %28, %26
  %.not76 = icmp eq i32 %27, 0
  br i1 %.not76, label %31, label %33

31:                                               ; preds = %30
  %32 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str) #3
  %.not77 = icmp eq i32 %32, 0
  br i1 %.not77, label %.thread81.sink.split, label %33

33:                                               ; preds = %31, %30
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = icmp slt i32 %34, 0
  br i1 %35, label %.thread81.sink.split, label %36

36:                                               ; preds = %33
  %.pr = load i32, ptr %8, align 4, !tbaa !5
  %.not78 = icmp eq i32 %.pr, 0
  br i1 %.not78, label %40, label %.thread81

.thread81.sink.split:                             ; preds = %33, %31, %28, %24
  %.sink = phi i32 [ -1, %24 ], [ -2, %28 ], [ -3, %31 ], [ -4, %33 ]
  store i32 %.sink, ptr %8, align 4, !tbaa !5
  br label %.thread81

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

40:                                               ; preds = %36
  %41 = icmp eq i32 %34, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  store double 1.000000e+00, ptr %5, align 8, !tbaa !10
  br label %.loopexit

43:                                               ; preds = %40
  store double 0.000000e+00, ptr %5, align 8, !tbaa !10
  %44 = tail call double @dlamch_(ptr noundef nonnull @.str.6) #3
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = icmp slt i32 %45, 2
  %47 = uitofp nneg i32 %45 to double
  %48 = select i1 %46, double 1.000000e+00, double %47
  %49 = fmul double %44, %48
  %50 = tail call double @dlantp_(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef %6) #3
  %51 = fcmp ogt double %50, 0.000000e+00
  br i1 %51, label %52, label %.loopexit

52:                                               ; preds = %43
  store double 0.000000e+00, ptr %14, align 8, !tbaa !10
  store i8 78, ptr %15, align 1, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !5
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %gep84 = getelementptr double, ptr %6, i64 %54
  call void @dlacn2_(ptr noundef nonnull %3, ptr noundef %gep84, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %14, ptr noundef nonnull %11, ptr noundef nonnull %13) #3
  %55 = load i32, ptr %11, align 4, !tbaa !5
  %.not7985 = icmp eq i32 %55, 0
  br i1 %.not7985, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %52, %78
  %56 = phi i32 [ %81, %78 ], [ %55, %52 ]
  %57 = icmp eq i32 %56, %.
  %58 = load i32, ptr %3, align 4, !tbaa !5
  %59 = shl i32 %58, 1
  %60 = or disjoint i32 %59, 1
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds double, ptr %16, i64 %61
  %.str.7..str.8 = select i1 %57, ptr @.str.7, ptr @.str.8
  call void @dlatps_(ptr noundef %1, ptr noundef nonnull %.str.7..str.8, ptr noundef %2, ptr noundef nonnull %15, ptr noundef nonnull %3, ptr noundef %4, ptr noundef %6, ptr noundef nonnull %12, ptr noundef nonnull %62, ptr noundef nonnull %8) #3
  store i8 89, ptr %15, align 1, !tbaa !9
  %63 = load double, ptr %12, align 8, !tbaa !10
  %64 = fcmp une double %63, 1.000000e+00
  br i1 %64, label %65, label %78

65:                                               ; preds = %.lr.ph
  %66 = call i32 @idamax_(ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull @c__1) #3
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds double, ptr %16, i64 %67
  %69 = load double, ptr %68, align 8, !tbaa !10
  %70 = fcmp oge double %69, 0.000000e+00
  %71 = fneg double %69
  %72 = select i1 %70, double %69, double %71
  %73 = load double, ptr %12, align 8
  %74 = fmul double %49, %72
  %75 = fcmp olt double %73, %74
  %76 = fcmp oeq double %73, 0.000000e+00
  %or.cond = or i1 %76, %75
  br i1 %or.cond, label %.loopexit, label %77

77:                                               ; preds = %65
  call void @drscl_(ptr noundef nonnull %3, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #3
  br label %78

78:                                               ; preds = %77, %.lr.ph
  %79 = load i32, ptr %3, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %gep = getelementptr double, ptr %6, i64 %80
  call void @dlacn2_(ptr noundef nonnull %3, ptr noundef %gep, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %14, ptr noundef nonnull %11, ptr noundef nonnull %13) #3
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %.not79 = icmp eq i32 %81, 0
  br i1 %.not79, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %78, %52
  %82 = load double, ptr %14, align 8, !tbaa !10
  %83 = fcmp une double %82, 0.000000e+00
  br i1 %83, label %84, label %.loopexit

84:                                               ; preds = %._crit_edge
  %85 = fdiv double 1.000000e+00, %50
  %86 = fdiv double %85, %82
  store double %86, ptr %5, align 8, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %65, %._crit_edge, %84, %43, %42, %.thread81
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  ret void
}

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

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

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

declare double @dlamch_(ptr noundef) local_unnamed_addr #2

declare double @dlantp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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 @dlatps_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}


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