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

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

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

53:                                               ; preds = %49, %9
  %54 = phi i1 [ true, %9 ], [ %52, %49 ]
  %55 = zext i1 %54 to i32
  %56 = sext i32 %55 to i64
  store i64 %56, ptr %31, align 8, !tbaa !9
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = call i64 @lsame_(ptr noundef %57, ptr noundef @.str.2)
  store i64 %58, ptr %34, align 8, !tbaa !9
  %59 = load i64, ptr %31, align 8, !tbaa !9
  %60 = icmp ne i64 %59, 0
  br i1 %60, label %67, label %61

61:                                               ; preds = %53
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = call i64 @lsame_(ptr noundef %62, ptr noundef @.str.3)
  %64 = icmp ne i64 %63, 0
  br i1 %64, label %67, label %65

65:                                               ; preds = %61
  %66 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -1, ptr %66, align 8, !tbaa !9
  br label %94

67:                                               ; preds = %61, %53
  %68 = load i64, ptr %28, align 8, !tbaa !9
  %69 = icmp ne i64 %68, 0
  br i1 %69, label %76, label %70

70:                                               ; preds = %67
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = call i64 @lsame_(ptr noundef %71, ptr noundef @.str.4)
  %73 = icmp ne i64 %72, 0
  br i1 %73, label %76, label %74

74:                                               ; preds = %70
  %75 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -2, ptr %75, align 8, !tbaa !9
  br label %93

76:                                               ; preds = %70, %67
  %77 = load i64, ptr %34, align 8, !tbaa !9
  %78 = icmp ne i64 %77, 0
  br i1 %78, label %85, label %79

79:                                               ; preds = %76
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = call i64 @lsame_(ptr noundef %80, ptr noundef @.str)
  %82 = icmp ne i64 %81, 0
  br i1 %82, label %85, label %83

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

85:                                               ; preds = %79, %76
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = load i64, ptr %86, align 8, !tbaa !9
  %88 = icmp slt i64 %87, 0
  br i1 %88, label %89, label %91

89:                                               ; preds = %85
  %90 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -4, ptr %90, align 8, !tbaa !9
  br label %91

91:                                               ; preds = %89, %85
  br label %92

92:                                               ; preds = %91, %83
  br label %93

93:                                               ; preds = %92, %74
  br label %94

94:                                               ; preds = %93, %65
  %95 = load ptr, ptr %19, align 8, !tbaa !5
  %96 = load i64, ptr %95, align 8, !tbaa !9
  %97 = icmp ne i64 %96, 0
  br i1 %97, label %98, label %103

98:                                               ; preds = %94
  %99 = load ptr, ptr %19, align 8, !tbaa !5
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = sub nsw i64 0, %100
  store i64 %101, ptr %20, align 8, !tbaa !9
  %102 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %20)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %243

103:                                              ; preds = %94
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = load i64, ptr %104, align 8, !tbaa !9
  %106 = icmp eq i64 %105, 0
  br i1 %106, label %107, label %109

107:                                              ; preds = %103
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  store double 1.000000e+00, ptr %108, align 8, !tbaa !12
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %243

109:                                              ; preds = %103
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  store double 0.000000e+00, ptr %110, align 8, !tbaa !12
  %111 = call double @dlamch_(ptr noundef @.str.6)
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = icmp sge i64 1, %113
  br i1 %114, label %115, label %116

115:                                              ; preds = %109
  br label %119

116:                                              ; preds = %109
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  %118 = load i64, ptr %117, align 8, !tbaa !9
  br label %119

119:                                              ; preds = %116, %115
  %120 = phi i64 [ 1, %115 ], [ %118, %116 ]
  %121 = sitofp i64 %120 to double
  %122 = fmul double %111, %121
  store double %122, ptr %33, align 8, !tbaa !12
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = load ptr, ptr %15, align 8, !tbaa !5
  %128 = getelementptr inbounds double, ptr %127, i64 1
  %129 = load ptr, ptr %17, align 8, !tbaa !5
  %130 = getelementptr inbounds double, ptr %129, i64 1
  %131 = call double @dlantp_(ptr noundef %123, ptr noundef %124, ptr noundef %125, ptr noundef %126, ptr noundef %128, ptr noundef %130)
  store double %131, ptr %27, align 8, !tbaa !12
  %132 = load double, ptr %27, align 8, !tbaa !12
  %133 = fcmp ogt double %132, 0.000000e+00
  br i1 %133, label %134, label %241

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

138:                                              ; preds = %134
  store i64 1, ptr %24, align 8, !tbaa !9
  br label %140

139:                                              ; preds = %134
  store i64 2, ptr %24, align 8, !tbaa !9
  br label %140

140:                                              ; preds = %139, %138
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %141

141:                                              ; preds = %230, %140
  %142 = load ptr, ptr %14, align 8, !tbaa !5
  %143 = load ptr, ptr %17, align 8, !tbaa !5
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  %145 = load i64, ptr %144, align 8, !tbaa !9
  %146 = add nsw i64 %145, 1
  %147 = getelementptr inbounds double, ptr %143, i64 %146
  %148 = load ptr, ptr %17, align 8, !tbaa !5
  %149 = getelementptr inbounds double, ptr %148, i64 1
  %150 = load ptr, ptr %18, align 8, !tbaa !5
  %151 = getelementptr inbounds i64, ptr %150, i64 1
  %152 = getelementptr inbounds [3 x i64], ptr %26, i64 0, i64 0
  %153 = call i32 @dlacn2_(ptr noundef %142, ptr noundef %147, ptr noundef %149, ptr noundef %151, ptr noundef %30, ptr noundef %23, ptr noundef %152)
  %154 = load i64, ptr %23, align 8, !tbaa !9
  %155 = icmp ne i64 %154, 0
  br i1 %155, label %156, label %231

156:                                              ; preds = %141
  %157 = load i64, ptr %23, align 8, !tbaa !9
  %158 = load i64, ptr %24, align 8, !tbaa !9
  %159 = icmp eq i64 %157, %158
  br i1 %159, label %160, label %177

160:                                              ; preds = %156
  %161 = load ptr, ptr %12, align 8, !tbaa !5
  %162 = load ptr, ptr %13, align 8, !tbaa !5
  %163 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %164 = load ptr, ptr %14, align 8, !tbaa !5
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = getelementptr inbounds double, ptr %165, i64 1
  %167 = load ptr, ptr %17, align 8, !tbaa !5
  %168 = getelementptr inbounds double, ptr %167, i64 1
  %169 = load ptr, ptr %17, align 8, !tbaa !5
  %170 = load ptr, ptr %14, align 8, !tbaa !5
  %171 = load i64, ptr %170, align 8, !tbaa !9
  %172 = shl i64 %171, 1
  %173 = add nsw i64 %172, 1
  %174 = getelementptr inbounds double, ptr %169, i64 %173
  %175 = load ptr, ptr %19, align 8, !tbaa !5
  %176 = call i32 @dlatps_(ptr noundef %161, ptr noundef @.str.7, ptr noundef %162, ptr noundef %163, ptr noundef %164, ptr noundef %166, ptr noundef %168, ptr noundef %25, ptr noundef %174, ptr noundef %175)
  br label %194

177:                                              ; preds = %156
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  %179 = load ptr, ptr %13, align 8, !tbaa !5
  %180 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %181 = load ptr, ptr %14, align 8, !tbaa !5
  %182 = load ptr, ptr %15, align 8, !tbaa !5
  %183 = getelementptr inbounds double, ptr %182, i64 1
  %184 = load ptr, ptr %17, align 8, !tbaa !5
  %185 = getelementptr inbounds double, ptr %184, i64 1
  %186 = load ptr, ptr %17, align 8, !tbaa !5
  %187 = load ptr, ptr %14, align 8, !tbaa !5
  %188 = load i64, ptr %187, align 8, !tbaa !9
  %189 = shl i64 %188, 1
  %190 = add nsw i64 %189, 1
  %191 = getelementptr inbounds double, ptr %186, i64 %190
  %192 = load ptr, ptr %19, align 8, !tbaa !5
  %193 = call i32 @dlatps_(ptr noundef %178, ptr noundef @.str.8, ptr noundef %179, ptr noundef %180, ptr noundef %181, ptr noundef %183, ptr noundef %185, ptr noundef %25, ptr noundef %191, ptr noundef %192)
  br label %194

194:                                              ; preds = %177, %160
  %195 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 89, ptr %195, align 1, !tbaa !11
  %196 = load double, ptr %25, align 8, !tbaa !12
  %197 = fcmp une double %196, 1.000000e+00
  br i1 %197, label %198, label %230

198:                                              ; preds = %194
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  %200 = load ptr, ptr %17, align 8, !tbaa !5
  %201 = getelementptr inbounds double, ptr %200, i64 1
  %202 = call i64 @f2c_idamax(ptr noundef %199, ptr noundef %201, ptr noundef @c__1)
  store i64 %202, ptr %22, align 8, !tbaa !9
  %203 = load ptr, ptr %17, align 8, !tbaa !5
  %204 = load i64, ptr %22, align 8, !tbaa !9
  %205 = getelementptr inbounds double, ptr %203, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !12
  store double %206, ptr %21, align 8, !tbaa !12
  %207 = load double, ptr %21, align 8, !tbaa !12
  %208 = fcmp oge double %207, 0.000000e+00
  br i1 %208, label %209, label %211

209:                                              ; preds = %198
  %210 = load double, ptr %21, align 8, !tbaa !12
  br label %214

211:                                              ; preds = %198
  %212 = load double, ptr %21, align 8, !tbaa !12
  %213 = fneg double %212
  br label %214

214:                                              ; preds = %211, %209
  %215 = phi double [ %210, %209 ], [ %213, %211 ]
  store double %215, ptr %29, align 8, !tbaa !12
  %216 = load double, ptr %25, align 8, !tbaa !12
  %217 = load double, ptr %29, align 8, !tbaa !12
  %218 = load double, ptr %33, align 8, !tbaa !12
  %219 = fmul double %217, %218
  %220 = fcmp olt double %216, %219
  br i1 %220, label %224, label %221

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

224:                                              ; preds = %221, %214
  br label %242

225:                                              ; preds = %221
  %226 = load ptr, ptr %14, align 8, !tbaa !5
  %227 = load ptr, ptr %17, align 8, !tbaa !5
  %228 = getelementptr inbounds double, ptr %227, i64 1
  %229 = call i32 @drscl_(ptr noundef %226, ptr noundef %25, ptr noundef %228, ptr noundef @c__1)
  br label %230

230:                                              ; preds = %225, %194
  br label %141

231:                                              ; preds = %141
  %232 = load double, ptr %30, align 8, !tbaa !12
  %233 = fcmp une double %232, 0.000000e+00
  br i1 %233, label %234, label %240

234:                                              ; preds = %231
  %235 = load double, ptr %27, align 8, !tbaa !12
  %236 = fdiv double 1.000000e+00, %235
  %237 = load double, ptr %30, align 8, !tbaa !12
  %238 = fdiv double %236, %237
  %239 = load ptr, ptr %16, align 8, !tbaa !5
  store double %238, ptr %239, align 8, !tbaa !12
  br label %240

240:                                              ; preds = %234, %231
  br label %241

241:                                              ; preds = %240, %119
  br label %242

242:                                              ; preds = %241, %224
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %243

243:                                              ; preds = %242, %107, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  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 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 24, 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
  %244 = load i32, ptr %10, align 4
  ret i32 %244
}

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @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 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 [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 24, 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 i64 0, ptr %8, align 8, !tbaa !5
  %17 = tail call i64 @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 i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #3
  br label %26

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

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

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

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

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

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

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

36:                                               ; preds = %33
  %.pr = load i64, ptr %8, align 8, !tbaa !5
  %.not79 = icmp eq i64 %.pr, 0
  br i1 %.not79, label %40, label %.thread83

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

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

40:                                               ; preds = %36
  %41 = icmp eq i64 %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 i64, ptr %3, align 8, !tbaa !5
  %46 = icmp slt i64 %45, 2
  %47 = uitofp nneg i64 %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 i64 0, ptr %11, align 8, !tbaa !5
  %53 = load i64, ptr %3, align 8, !tbaa !5
  %54 = getelementptr double, ptr %6, i64 %53
  %55 = call i32 @dlacn2_(ptr noundef nonnull %3, ptr noundef %54, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %14, ptr noundef nonnull %11, ptr noundef nonnull %13) #3
  %56 = load i64, ptr %11, align 8, !tbaa !5
  %.not8086 = icmp eq i64 %56, 0
  br i1 %.not8086, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %52, %77
  %57 = phi i64 [ %81, %77 ], [ %56, %52 ]
  %58 = icmp eq i64 %57, %.
  %59 = load i64, ptr %3, align 8, !tbaa !5
  %.idx81 = shl i64 %59, 4
  %60 = getelementptr i8, ptr %6, i64 %.idx81
  %.str.7..str.8 = select i1 %58, ptr @.str.7, ptr @.str.8
  %61 = call i32 @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 %60, ptr noundef nonnull %8) #3
  store i8 89, ptr %15, align 1, !tbaa !9
  %62 = load double, ptr %12, align 8, !tbaa !10
  %63 = fcmp une double %62, 1.000000e+00
  br i1 %63, label %64, label %77

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

75:                                               ; preds = %64
  %76 = call i32 @drscl_(ptr noundef nonnull %3, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #3
  br label %77

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

._crit_edge:                                      ; preds = %77, %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 = %64, %._crit_edge, %84, %43, %42, %.thread83
  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 24, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  ret i32 0
}

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

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

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

declare double @dlamch_(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!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,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass