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

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

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

52:                                               ; preds = %12
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = call i32 @lsame_(ptr noundef %53, ptr noundef @.str)
  %55 = icmp ne i32 %54, 0
  br label %56

56:                                               ; preds = %52, %12
  %57 = phi i1 [ true, %12 ], [ %55, %52 ]
  %58 = zext i1 %57 to i32
  store i32 %58, ptr %31, align 4, !tbaa !9
  %59 = load i32, ptr %31, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %67, label %61

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

65:                                               ; preds = %61
  %66 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -1, ptr %66, align 4, !tbaa !9
  br label %81

67:                                               ; preds = %61, %56
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = icmp slt i32 %69, 0
  br i1 %70, label %71, label %73

71:                                               ; preds = %67
  %72 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -2, ptr %72, align 4, !tbaa !9
  br label %80

73:                                               ; preds = %67
  %74 = load ptr, ptr %20, align 8, !tbaa !5
  %75 = load double, ptr %74, align 8, !tbaa !12
  %76 = fcmp olt double %75, 0.000000e+00
  br i1 %76, label %77, label %79

77:                                               ; preds = %73
  %78 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -8, ptr %78, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %77, %73
  br label %80

80:                                               ; preds = %79, %71
  br label %81

81:                                               ; preds = %80, %65
  %82 = load ptr, ptr %24, align 8, !tbaa !5
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %90

85:                                               ; preds = %81
  %86 = load ptr, ptr %24, align 8, !tbaa !5
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = sub nsw i32 0, %87
  store i32 %88, ptr %25, align 4, !tbaa !9
  %89 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %25, i32 noundef 6)
  store i32 1, ptr %32, align 4
  br label %191

90:                                               ; preds = %81
  %91 = load ptr, ptr %21, align 8, !tbaa !5
  store double 0.000000e+00, ptr %91, align 8, !tbaa !12
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %97

95:                                               ; preds = %90
  %96 = load ptr, ptr %21, align 8, !tbaa !5
  store double 1.000000e+00, ptr %96, align 8, !tbaa !12
  store i32 1, ptr %32, align 4
  br label %191

97:                                               ; preds = %90
  %98 = load ptr, ptr %20, align 8, !tbaa !5
  %99 = load double, ptr %98, align 8, !tbaa !12
  %100 = fcmp oeq double %99, 0.000000e+00
  br i1 %100, label %101, label %102

101:                                              ; preds = %97
  store i32 1, ptr %32, align 4
  br label %191

102:                                              ; preds = %97
  br label %103

103:                                              ; preds = %102
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = load i32, ptr %104, align 4, !tbaa !9
  store i32 %105, ptr %25, align 4, !tbaa !9
  store i32 1, ptr %28, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %119, %103
  %107 = load i32, ptr %28, align 4, !tbaa !9
  %108 = load i32, ptr %25, align 4, !tbaa !9
  %109 = icmp sle i32 %107, %108
  br i1 %109, label %110, label %122

110:                                              ; preds = %106
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = load i32, ptr %28, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds double, ptr %111, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !12
  %116 = fcmp oeq double %115, 0.000000e+00
  br i1 %116, label %117, label %118

117:                                              ; preds = %110
  store i32 1, ptr %32, align 4
  br label %191

118:                                              ; preds = %110
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %28, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %28, align 4, !tbaa !9
  br label %106, !llvm.loop !14

122:                                              ; preds = %106
  store double 0.000000e+00, ptr %30, align 8, !tbaa !12
  %123 = load i32, ptr %31, align 4, !tbaa !9
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %126

125:                                              ; preds = %122
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %127

126:                                              ; preds = %122
  store i32 2, ptr %27, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %126, %125
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %179, %127
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  %130 = load ptr, ptr %22, align 8, !tbaa !5
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = add nsw i32 %132, 1
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds double, ptr %130, i64 %134
  %136 = load ptr, ptr %22, align 8, !tbaa !5
  %137 = getelementptr inbounds double, ptr %136, i64 1
  %138 = load ptr, ptr %23, align 8, !tbaa !5
  %139 = getelementptr inbounds i32, ptr %138, i64 1
  %140 = getelementptr inbounds [3 x i32], ptr %29, i64 0, i64 0
  call void @dlacn2_(ptr noundef %129, ptr noundef %135, ptr noundef %137, ptr noundef %139, ptr noundef %30, ptr noundef %26, ptr noundef %140)
  %141 = load i32, ptr %26, align 4, !tbaa !9
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %180

143:                                              ; preds = %128
  %144 = load i32, ptr %26, align 4, !tbaa !9
  %145 = load i32, ptr %27, align 4, !tbaa !9
  %146 = icmp eq i32 %144, %145
  br i1 %146, label %147, label %163

147:                                              ; preds = %143
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  %149 = load ptr, ptr %15, align 8, !tbaa !5
  %150 = getelementptr inbounds double, ptr %149, i64 1
  %151 = load ptr, ptr %16, align 8, !tbaa !5
  %152 = getelementptr inbounds double, ptr %151, i64 1
  %153 = load ptr, ptr %17, align 8, !tbaa !5
  %154 = getelementptr inbounds double, ptr %153, i64 1
  %155 = load ptr, ptr %18, align 8, !tbaa !5
  %156 = getelementptr inbounds double, ptr %155, i64 1
  %157 = load ptr, ptr %19, align 8, !tbaa !5
  %158 = getelementptr inbounds i32, ptr %157, i64 1
  %159 = load ptr, ptr %22, align 8, !tbaa !5
  %160 = getelementptr inbounds double, ptr %159, i64 1
  %161 = load ptr, ptr %14, align 8, !tbaa !5
  %162 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dgttrs_(ptr noundef @.str.3, ptr noundef %148, ptr noundef @c__1, ptr noundef %150, ptr noundef %152, ptr noundef %154, ptr noundef %156, ptr noundef %158, ptr noundef %160, ptr noundef %161, ptr noundef %162)
  br label %179

163:                                              ; preds = %143
  %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 %16, align 8, !tbaa !5
  %168 = getelementptr inbounds double, ptr %167, i64 1
  %169 = load ptr, ptr %17, align 8, !tbaa !5
  %170 = getelementptr inbounds double, ptr %169, i64 1
  %171 = load ptr, ptr %18, align 8, !tbaa !5
  %172 = getelementptr inbounds double, ptr %171, i64 1
  %173 = load ptr, ptr %19, align 8, !tbaa !5
  %174 = getelementptr inbounds i32, ptr %173, i64 1
  %175 = load ptr, ptr %22, align 8, !tbaa !5
  %176 = getelementptr inbounds double, ptr %175, i64 1
  %177 = load ptr, ptr %14, align 8, !tbaa !5
  %178 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dgttrs_(ptr noundef @.str.4, ptr noundef %164, ptr noundef @c__1, ptr noundef %166, ptr noundef %168, ptr noundef %170, ptr noundef %172, ptr noundef %174, ptr noundef %176, ptr noundef %177, ptr noundef %178)
  br label %179

179:                                              ; preds = %163, %147
  br label %128

180:                                              ; preds = %128
  %181 = load double, ptr %30, align 8, !tbaa !12
  %182 = fcmp une double %181, 0.000000e+00
  br i1 %182, label %183, label %190

183:                                              ; preds = %180
  %184 = load double, ptr %30, align 8, !tbaa !12
  %185 = fdiv double 1.000000e+00, %184
  %186 = load ptr, ptr %20, align 8, !tbaa !5
  %187 = load double, ptr %186, align 8, !tbaa !12
  %188 = fdiv double %185, %187
  %189 = load ptr, ptr %21, align 8, !tbaa !5
  store double %188, ptr %189, align 8, !tbaa !12
  br label %190

190:                                              ; preds = %183, %180
  store i32 1, ptr %32, align 4
  br label %191

191:                                              ; preds = %190, %117, %101, %95, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %25) #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 void @dlacn2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @dgttrs_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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

; Function Attrs: nounwind uwtable
define dso_local void @dgtcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr nocapture noundef readonly %7, ptr nocapture noundef writeonly %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) local_unnamed_addr #0 {
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca [3 x i32], align 4
  %16 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #3
  %17 = getelementptr inbounds i8, ptr %3, i64 -8
  store i32 0, ptr %11, align 4, !tbaa !5
  %18 = load i8, ptr %0, align 1, !tbaa !9
  %19 = icmp eq i8 %18, 49
  br i1 %19, label %.thread, label %20

20:                                               ; preds = %12
  %21 = tail call i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str) #3
  %.not65 = icmp eq i32 %21, 0
  br i1 %.not65, label %22, label %.thread

22:                                               ; preds = %20
  %23 = tail call i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #3
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %.thread63.sink.split, label %.thread

.thread:                                          ; preds = %12, %22, %20
  %. = phi i32 [ 2, %22 ], [ 1, %20 ], [ 1, %12 ]
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 0
  br i1 %25, label %.thread63.sink.split, label %26

26:                                               ; preds = %.thread
  %27 = load double, ptr %7, align 8, !tbaa !10
  %28 = fcmp olt double %27, 0.000000e+00
  br i1 %28, label %.thread63.sink.split, label %29

29:                                               ; preds = %26
  %.pr = load i32, ptr %11, align 4, !tbaa !5
  %.not59 = icmp eq i32 %.pr, 0
  br i1 %.not59, label %33, label %.thread63

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

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

33:                                               ; preds = %29
  store double 0.000000e+00, ptr %8, align 8, !tbaa !10
  %34 = icmp eq i32 %24, 0
  br i1 %34, label %35, label %36

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

36:                                               ; preds = %33
  %37 = load double, ptr %7, align 8, !tbaa !10
  %38 = fcmp oeq double %37, 0.000000e+00
  br i1 %38, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %36
  %39 = add nuw i32 %24, 1
  %wide.trip.count = zext i32 %39 to i64
  br label %.lr.ph

40:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

.lr.ph:                                           ; preds = %.lr.ph.preheader, %40
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %40 ]
  %41 = getelementptr inbounds double, ptr %17, i64 %indvars.iv
  %42 = load double, ptr %41, align 8, !tbaa !10
  %43 = fcmp oeq double %42, 0.000000e+00
  br i1 %43, label %.loopexit, label %40

._crit_edge:                                      ; preds = %40
  store double 0.000000e+00, ptr %16, align 8, !tbaa !10
  store i32 0, ptr %14, align 4, !tbaa !5
  %44 = zext nneg i32 %24 to i64
  %gep68 = getelementptr double, ptr %9, i64 %44
  call void @dlacn2_(ptr noundef nonnull %1, ptr noundef %gep68, ptr noundef %9, ptr noundef %10, ptr noundef nonnull %16, ptr noundef nonnull %14, ptr noundef nonnull %15) #3
  %45 = load i32, ptr %14, align 4, !tbaa !5
  %.not6169 = icmp eq i32 %45, 0
  br i1 %.not6169, label %._crit_edge72, label %.lr.ph71

.lr.ph71:                                         ; preds = %._crit_edge, %.lr.ph71
  %46 = phi i32 [ %50, %.lr.ph71 ], [ %45, %._crit_edge ]
  %47 = icmp eq i32 %46, %.
  %.str.3..str.4 = select i1 %47, ptr @.str.3, ptr @.str.4
  call void @dgttrs_(ptr noundef nonnull %.str.3..str.4, ptr noundef nonnull %1, ptr noundef nonnull @c__1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %9, ptr noundef nonnull %1, ptr noundef nonnull %11) #3
  %48 = load i32, ptr %1, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %gep = getelementptr double, ptr %9, i64 %49
  call void @dlacn2_(ptr noundef nonnull %1, ptr noundef %gep, ptr noundef %9, ptr noundef %10, ptr noundef nonnull %16, ptr noundef nonnull %14, ptr noundef nonnull %15) #3
  %50 = load i32, ptr %14, align 4, !tbaa !5
  %.not61 = icmp eq i32 %50, 0
  br i1 %.not61, label %._crit_edge72, label %.lr.ph71

._crit_edge72:                                    ; preds = %.lr.ph71, %._crit_edge
  %51 = load double, ptr %16, align 8, !tbaa !10
  %52 = fcmp une double %51, 0.000000e+00
  br i1 %52, label %53, label %.loopexit

53:                                               ; preds = %._crit_edge72
  %54 = fdiv double 1.000000e+00, %51
  %55 = load double, ptr %7, align 8, !tbaa !10
  %56 = fdiv double %54, %55
  store double %56, ptr %8, align 8, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %._crit_edge72, %53, %36, %35, %.thread63
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #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 void @dlacn2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @dgttrs_(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

; 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}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


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