; LLVM IR from harharkh/sb_desc :: src (vector)

; 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"

%struct.sb_vec = type { i64, ptr, i8 }

@sb_error_log = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0

; Function Attrs: noreturn nounwind
declare void @abort() #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @sb_vec_is_finite(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local ptr @sb_vec_pmul(ptr noalias noundef %0, ptr noalias noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  br label %8

8:                                                ; preds = %2
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %30, label %11

11:                                               ; preds = %8
  %12 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %16

14:                                               ; preds = %11
  %15 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  br label %18

16:                                               ; preds = %11
  %17 = load ptr, ptr @stderr, align 8, !tbaa !5
  br label %18

18:                                               ; preds = %16, %14
  %19 = phi ptr [ %15, %14 ], [ %17, %16 ]
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.75) #4
  %21 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %25

23:                                               ; preds = %18
  %24 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  br label %27

25:                                               ; preds = %18
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %25, %23
  %28 = phi ptr [ %24, %23 ], [ %26, %25 ]
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.1) #4
  call void @abort() #5
  unreachable

30:                                               ; preds = %8
  br label %31

31:                                               ; preds = %30
  br label %32

32:                                               ; preds = %31
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %54, label %35

35:                                               ; preds = %32
  %36 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %40

38:                                               ; preds = %35
  %39 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  br label %42

40:                                               ; preds = %35
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %40, %38
  %43 = phi ptr [ %39, %38 ], [ %41, %40 ]
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.76) #4
  %45 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %49

47:                                               ; preds = %42
  %48 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  br label %51

49:                                               ; preds = %42
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %49, %47
  %52 = phi ptr [ %48, %47 ], [ %50, %49 ]
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.1) #4
  call void @abort() #5
  unreachable

54:                                               ; preds = %32
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.sb_vec, ptr %57, i32 0, i32 2
  %59 = load i8, ptr %58, align 8, !tbaa !9
  %60 = sext i8 %59 to i32
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.sb_vec, ptr %61, i32 0, i32 2
  %63 = load i8, ptr %62, align 8, !tbaa !9
  %64 = sext i8 %63 to i32
  %65 = icmp ne i32 %60, %64
  br i1 %65, label %66, label %85

66:                                               ; preds = %56
  %67 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  %68 = icmp ne ptr %67, null
  br i1 %68, label %69, label %71

69:                                               ; preds = %66
  %70 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  br label %73

71:                                               ; preds = %66
  %72 = load ptr, ptr @stderr, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %71, %69
  %74 = phi ptr [ %70, %69 ], [ %72, %71 ]
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.77) #4
  %76 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %80

78:                                               ; preds = %73
  %79 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  br label %82

80:                                               ; preds = %73
  %81 = load ptr, ptr @stderr, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %80, %78
  %83 = phi ptr [ %79, %78 ], [ %81, %80 ]
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.1) #4
  call void @abort() #5
  unreachable

85:                                               ; preds = %56
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.sb_vec, ptr %88, i32 0, i32 0
  %90 = load i64, ptr %89, align 8, !tbaa !12
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.sb_vec, ptr %91, i32 0, i32 0
  %93 = load i64, ptr %92, align 8, !tbaa !12
  %94 = icmp ne i64 %90, %93
  br i1 %94, label %95, label %114

95:                                               ; preds = %87
  %96 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  %97 = icmp ne ptr %96, null
  br i1 %97, label %98, label %100

98:                                               ; preds = %95
  %99 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  br label %102

100:                                              ; preds = %95
  %101 = load ptr, ptr @stderr, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %100, %98
  %103 = phi ptr [ %99, %98 ], [ %101, %100 ]
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef @.str.78) #4
  %105 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %109

107:                                              ; preds = %102
  %108 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  br label %111

109:                                              ; preds = %102
  %110 = load ptr, ptr @stderr, align 8, !tbaa !5
  br label %111

111:                                              ; preds = %109, %107
  %112 = phi ptr [ %108, %107 ], [ %110, %109 ]
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.1) #4
  call void @abort() #5
  unreachable

114:                                              ; preds = %87
  br label %115

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.sb_vec, ptr %116, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !13
  store ptr %118, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.sb_vec, ptr %119, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8, !tbaa !13
  store ptr %121, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !14
  br label %122

122:                                              ; preds = %139, %115
  %123 = load i64, ptr %7, align 8, !tbaa !14
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.sb_vec, ptr %124, i32 0, i32 0
  %126 = load i64, ptr %125, align 8, !tbaa !12
  %127 = icmp ult i64 %123, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %142

129:                                              ; preds = %122
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = load i64, ptr %7, align 8, !tbaa !14
  %132 = getelementptr inbounds double, ptr %130, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !15
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = load i64, ptr %7, align 8, !tbaa !14
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !15
  %138 = fmul double %137, %133
  store double %138, ptr %136, align 8, !tbaa !15
  br label %139

139:                                              ; preds = %129
  %140 = load i64, ptr %7, align 8, !tbaa !14
  %141 = add i64 %140, 1
  store i64 %141, ptr %7, align 8, !tbaa !14
  br label %122, !llvm.loop !17

142:                                              ; preds = %128
  br label %143

143:                                              ; preds = %142
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = call i32 @sb_vec_is_finite(ptr noundef %144)
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %166, label %147

147:                                              ; preds = %143
  %148 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  %149 = icmp ne ptr %148, null
  br i1 %149, label %150, label %152

150:                                              ; preds = %147
  %151 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  br label %154

152:                                              ; preds = %147
  %153 = load ptr, ptr @stderr, align 8, !tbaa !5
  br label %154

154:                                              ; preds = %152, %150
  %155 = phi ptr [ %151, %150 ], [ %153, %152 ]
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef @.str.79) #4
  %157 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  %158 = icmp ne ptr %157, null
  br i1 %158, label %159, label %161

159:                                              ; preds = %154
  %160 = load ptr, ptr @sb_error_log, align 8, !tbaa !5
  br label %163

161:                                              ; preds = %154
  %162 = load ptr, ptr @stderr, align 8, !tbaa !5
  br label %163

163:                                              ; preds = %161, %159
  %164 = phi ptr [ %160, %159 ], [ %162, %161 ]
  %165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %164, ptr noundef @.str.1) #4
  call void @abort() #5
  unreachable

166:                                              ; preds = %143
  br label %167

167:                                              ; preds = %166
  br label %168

168:                                              ; preds = %167
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret ptr %169
}

attributes #0 = { nounwind "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 = { noreturn nounwind "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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nounwind }
attributes #5 = { noreturn 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, !7, i64 16}
!10 = !{!"", !11, i64 0, !6, i64 8, !7, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 0}
!13 = !{!10, !6, i64 8}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"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"

@sb_error_log = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sb_vec_is_finite(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @sb_vec_pmul(ptr noalias noundef returned %0, ptr noalias noundef readonly %1) local_unnamed_addr #2 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %12

3:                                                ; preds = %2
  %4 = load ptr, ptr @sb_error_log, align 8
  %.not18 = icmp eq ptr %4, null
  %5 = load ptr, ptr @stderr, align 8
  %6 = select i1 %.not18, ptr %5, ptr %4
  %7 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef nonnull @.str.75) #3
  %8 = load ptr, ptr @sb_error_log, align 8
  %.not19 = icmp eq ptr %8, null
  %9 = load ptr, ptr @stderr, align 8
  %10 = select i1 %.not19, ptr %9, ptr %8
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.1) #3
  tail call void @abort() #4
  unreachable

12:                                               ; preds = %2
  %.not20 = icmp eq ptr %1, null
  br i1 %.not20, label %13, label %22

13:                                               ; preds = %12
  %14 = load ptr, ptr @sb_error_log, align 8
  %.not21 = icmp eq ptr %14, null
  %15 = load ptr, ptr @stderr, align 8
  %16 = select i1 %.not21, ptr %15, ptr %14
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str.76) #3
  %18 = load ptr, ptr @sb_error_log, align 8
  %.not22 = icmp eq ptr %18, null
  %19 = load ptr, ptr @stderr, align 8
  %20 = select i1 %.not22, ptr %19, ptr %18
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.1) #3
  tail call void @abort() #4
  unreachable

22:                                               ; preds = %12
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = load i8, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %1, i64 16
  %26 = load i8, ptr %25, align 8, !tbaa !5
  %.not23 = icmp eq i8 %24, %26
  br i1 %.not23, label %36, label %27

27:                                               ; preds = %22
  %28 = load ptr, ptr @sb_error_log, align 8
  %.not30 = icmp eq ptr %28, null
  %29 = load ptr, ptr @stderr, align 8
  %30 = select i1 %.not30, ptr %29, ptr %28
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.77) #3
  %32 = load ptr, ptr @sb_error_log, align 8
  %.not31 = icmp eq ptr %32, null
  %33 = load ptr, ptr @stderr, align 8
  %34 = select i1 %.not31, ptr %33, ptr %32
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.1) #3
  tail call void @abort() #4
  unreachable

36:                                               ; preds = %22
  %37 = load i64, ptr %0, align 8, !tbaa !11
  %38 = load i64, ptr %1, align 8, !tbaa !11
  %.not24 = icmp eq i64 %37, %38
  br i1 %.not24, label %48, label %39

39:                                               ; preds = %36
  %40 = load ptr, ptr @sb_error_log, align 8
  %.not28 = icmp eq ptr %40, null
  %41 = load ptr, ptr @stderr, align 8
  %42 = select i1 %.not28, ptr %41, ptr %40
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.78) #3
  %44 = load ptr, ptr @sb_error_log, align 8
  %.not29 = icmp eq ptr %44, null
  %45 = load ptr, ptr @stderr, align 8
  %46 = select i1 %.not29, ptr %45, ptr %44
  %47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.1) #3
  tail call void @abort() #4
  unreachable

48:                                               ; preds = %36
  %49 = getelementptr inbounds i8, ptr %0, i64 8
  %50 = load ptr, ptr %49, align 8, !tbaa !12
  %51 = getelementptr inbounds i8, ptr %1, i64 8
  %52 = load ptr, ptr %51, align 8, !tbaa !12
  %.not33 = icmp eq i64 %37, 0
  br i1 %.not33, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %48
  %min.iters.check = icmp ult i64 %37, 6
  br i1 %min.iters.check, label %.lr.ph.preheader38, label %vector.memcheck

.lr.ph.preheader38:                               ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %.032.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %37, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader38, %.lr.ph.prol
  %.032.prol = phi i64 [ %58, %.lr.ph.prol ], [ %.032.ph, %.lr.ph.preheader38 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader38 ]
  %53 = getelementptr inbounds double, ptr %52, i64 %.032.prol
  %54 = load double, ptr %53, align 8, !tbaa !13
  %55 = getelementptr inbounds double, ptr %50, i64 %.032.prol
  %56 = load double, ptr %55, align 8, !tbaa !13
  %57 = fmul double %54, %56
  store double %57, ptr %55, align 8, !tbaa !13
  %58 = add nuw i64 %.032.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !15

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader38
  %.032.unr = phi i64 [ %.032.ph, %.lr.ph.preheader38 ], [ %58, %.lr.ph.prol ]
  %59 = sub i64 %.032.ph, %37
  %60 = icmp ugt i64 %59, -4
  br i1 %60, label %._crit_edge, label %.lr.ph

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %61 = shl i64 %37, 3
  %scevgep = getelementptr i8, ptr %50, i64 %61
  %scevgep34 = getelementptr i8, ptr %52, i64 %61
  %bound0 = icmp ult ptr %50, %scevgep34
  %bound1 = icmp ult ptr %52, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader38, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %37, -4
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %62 = getelementptr inbounds double, ptr %52, i64 %index
  %63 = getelementptr inbounds i8, ptr %62, i64 16
  %wide.load = load <2 x double>, ptr %62, align 8, !tbaa !13, !alias.scope !17
  %wide.load35 = load <2 x double>, ptr %63, align 8, !tbaa !13, !alias.scope !17
  %64 = getelementptr inbounds double, ptr %50, i64 %index
  %65 = getelementptr inbounds i8, ptr %64, i64 16
  %wide.load36 = load <2 x double>, ptr %64, align 8, !tbaa !13, !alias.scope !20, !noalias !17
  %wide.load37 = load <2 x double>, ptr %65, align 8, !tbaa !13, !alias.scope !20, !noalias !17
  %66 = fmul <2 x double> %wide.load, %wide.load36
  %67 = fmul <2 x double> %wide.load35, %wide.load37
  store <2 x double> %66, ptr %64, align 8, !tbaa !13, !alias.scope !20, !noalias !17
  store <2 x double> %67, ptr %65, align 8, !tbaa !13, !alias.scope !20, !noalias !17
  %index.next = add nuw i64 %index, 4
  %68 = icmp eq i64 %index.next, %n.vec
  br i1 %68, label %middle.block, label %vector.body, !llvm.loop !22

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %37, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader38

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %48
  %69 = tail call i32 @sb_vec_is_finite(ptr noundef nonnull %0)
  %.not25 = icmp eq i32 %69, 0
  br i1 %.not25, label %94, label %103

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.032 = phi i64 [ %93, %.lr.ph ], [ %.032.unr, %.lr.ph.prol.loopexit ]
  %70 = getelementptr inbounds double, ptr %52, i64 %.032
  %71 = load double, ptr %70, align 8, !tbaa !13
  %72 = getelementptr inbounds double, ptr %50, i64 %.032
  %73 = load double, ptr %72, align 8, !tbaa !13
  %74 = fmul double %71, %73
  store double %74, ptr %72, align 8, !tbaa !13
  %75 = add nuw i64 %.032, 1
  %76 = getelementptr inbounds double, ptr %52, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !13
  %78 = getelementptr inbounds double, ptr %50, i64 %75
  %79 = load double, ptr %78, align 8, !tbaa !13
  %80 = fmul double %77, %79
  store double %80, ptr %78, align 8, !tbaa !13
  %81 = add nuw i64 %.032, 2
  %82 = getelementptr inbounds double, ptr %52, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !13
  %84 = getelementptr inbounds double, ptr %50, i64 %81
  %85 = load double, ptr %84, align 8, !tbaa !13
  %86 = fmul double %83, %85
  store double %86, ptr %84, align 8, !tbaa !13
  %87 = add nuw i64 %.032, 3
  %88 = getelementptr inbounds double, ptr %52, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !13
  %90 = getelementptr inbounds double, ptr %50, i64 %87
  %91 = load double, ptr %90, align 8, !tbaa !13
  %92 = fmul double %89, %91
  store double %92, ptr %90, align 8, !tbaa !13
  %93 = add nuw i64 %.032, 4
  %exitcond.not.3 = icmp eq i64 %93, %37
  br i1 %exitcond.not.3, label %._crit_edge, label %.lr.ph, !llvm.loop !26

94:                                               ; preds = %._crit_edge
  %95 = load ptr, ptr @sb_error_log, align 8
  %.not26 = icmp eq ptr %95, null
  %96 = load ptr, ptr @stderr, align 8
  %97 = select i1 %.not26, ptr %96, ptr %95
  %98 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.79) #3
  %99 = load ptr, ptr @sb_error_log, align 8
  %.not27 = icmp eq ptr %99, null
  %100 = load ptr, ptr @stderr, align 8
  %101 = select i1 %.not27, ptr %100, ptr %99
  %102 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef nonnull @.str.1) #3
  tail call void @abort() #4
  unreachable

103:                                              ; preds = %._crit_edge
  ret ptr %0
}

attributes #0 = { nofree nounwind "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 = { noreturn nounwind "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 #2 = { 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 #3 = { nounwind }
attributes #4 = { noreturn 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, !8, i64 16}
!6 = !{!"", !7, i64 0, !10, i64 8, !8, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = !{!18}
!18 = distinct !{!18, !19}
!19 = distinct !{!19, !"LVerDomain"}
!20 = !{!21}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !23, !24, !25}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!"llvm.loop.isvectorized", i32 1}
!25 = !{!"llvm.loop.unroll.runtime.disable"}
!26 = distinct !{!26, !23, !24}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass