; LLVM IR from libxsmm/libxsmm :: samples/nek (stream_update_kernels)

; 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 [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [85 x i8], align 1
@__PRETTY_FUNCTION__.stream_vector_compscale_ = external hidden unnamed_addr constant [85 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @stream_init(i32 noundef, i64 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) #0

; Function Attrs: nounwind uwtable
define dso_local void @stream_vector_compscale_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  %12 = load ptr, ptr %8, align 8, !tbaa !5
  %13 = icmp ne ptr null, %12
  br i1 %13, label %14, label %15

14:                                               ; preds = %4
  br label %16

15:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 149, ptr noundef @__PRETTY_FUNCTION__.stream_vector_compscale_) #5
  unreachable

16:                                               ; preds = %14
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = load i32, ptr %17, align 4, !tbaa !9
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = ptrtoint ptr %19 to i64
  call void @stream_init(i32 noundef %18, i64 noundef %20, ptr noundef %10, ptr noundef %11)
  br label %21

21:                                               ; preds = %41, %16
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = load i32, ptr %10, align 4, !tbaa !9
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %25, label %44

25:                                               ; preds = %21
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds double, ptr %26, i64 %28
  %30 = load double, ptr %29, align 8, !tbaa !11
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds double, ptr %31, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !11
  %36 = fmul double %30, %35
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds double, ptr %37, i64 %39
  store double %36, ptr %40, align 8, !tbaa !11
  br label %41

41:                                               ; preds = %25
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %9, align 4, !tbaa !9
  br label %21, !llvm.loop !13

44:                                               ; preds = %21
  br label %45

45:                                               ; preds = %65, %44
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = load i32, ptr %11, align 4, !tbaa !9
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %49, label %68

49:                                               ; preds = %45
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds double, ptr %50, i64 %52
  %54 = load double, ptr %53, align 8, !tbaa !11
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds double, ptr %55, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !11
  %60 = fmul double %54, %59
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = load i32, ptr %9, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %61, i64 %63
  store double %60, ptr %64, align 8, !tbaa !11
  br label %65

65:                                               ; preds = %49
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %9, align 4, !tbaa !9
  br label %45, !llvm.loop !15

68:                                               ; preds = %45
  br label %69

69:                                               ; preds = %90, %68
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = icmp slt i32 %70, %72
  br i1 %73, label %74, label %93

74:                                               ; preds = %69
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %75, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds double, ptr %80, i64 %82
  %84 = load double, ptr %83, align 8, !tbaa !11
  %85 = fmul double %79, %84
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds double, ptr %86, i64 %88
  store double %85, ptr %89, align 8, !tbaa !11
  br label %90

90:                                               ; preds = %74
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %9, align 4, !tbaa !9
  br label %69, !llvm.loop !16

93:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; 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 [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [85 x i8], align 1
@__PRETTY_FUNCTION__.stream_vector_compscale_ = external hidden unnamed_addr constant [85 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @stream_init(i32 noundef, i64 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) #0

; Function Attrs: nounwind uwtable
define dso_local void @stream_vector_compscale_(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef readonly %3) local_unnamed_addr #3 {
  %5 = ptrtoint ptr %1 to i64
  %6 = ptrtoint ptr %0 to i64
  %7 = ptrtoint ptr %2 to i64
  %8 = ptrtoint ptr %1 to i64
  %9 = ptrtoint ptr %0 to i64
  %10 = ptrtoint ptr %2 to i64
  %11 = ptrtoint ptr %1 to i64
  %12 = ptrtoint ptr %0 to i64
  %13 = ptrtoint ptr %2 to i64
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  store i32 0, ptr %15, align 4, !tbaa !5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %16, label %17

16:                                               ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 149, ptr noundef nonnull @__PRETTY_FUNCTION__.stream_vector_compscale_) #5
  unreachable

17:                                               ; preds = %4
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = ptrtoint ptr %2 to i64
  call void @stream_init(i32 noundef %18, i64 noundef %19, ptr noundef nonnull %14, ptr noundef nonnull %15)
  %20 = load i32, ptr %14, align 4, !tbaa !5
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph.preheader, label %.preheader28

.lr.ph.preheader:                                 ; preds = %17
  %wide.trip.count = zext nneg i32 %20 to i64
  %min.iters.check = icmp ult i32 %20, 8
  br i1 %min.iters.check, label %.lr.ph.preheader91, label %vector.memcheck

.lr.ph.preheader91:                               ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 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.preheader91, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader91 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader91 ]
  %22 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.prol
  %23 = load double, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.prol
  %25 = load double, ptr %24, align 8, !tbaa !9
  %26 = fmul double %23, %25
  %27 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.prol
  store double %26, ptr %27, align 8, !tbaa !9
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.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 !11

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader91
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader91 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %28 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %29 = icmp ugt i64 %28, -4
  br i1 %29, label %.preheader28, label %.lr.ph

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %30 = sub i64 %13, %12
  %diff.check = icmp ult i64 %30, 32
  %31 = sub i64 %13, %11
  %diff.check45 = icmp ult i64 %31, 32
  %conflict.rdx = or i1 %diff.check, %diff.check45
  br i1 %conflict.rdx, label %.lr.ph.preheader91, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %32 = getelementptr inbounds double, ptr %0, i64 %index
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %wide.load = load <2 x double>, ptr %32, align 8, !tbaa !9
  %wide.load46 = load <2 x double>, ptr %33, align 8, !tbaa !9
  %34 = getelementptr inbounds double, ptr %1, i64 %index
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %wide.load47 = load <2 x double>, ptr %34, align 8, !tbaa !9
  %wide.load48 = load <2 x double>, ptr %35, align 8, !tbaa !9
  %36 = fmul <2 x double> %wide.load, %wide.load47
  %37 = fmul <2 x double> %wide.load46, %wide.load48
  %38 = getelementptr inbounds double, ptr %2, i64 %index
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  store <2 x double> %36, ptr %38, align 8, !tbaa !9
  store <2 x double> %37, ptr %39, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %40 = icmp eq i64 %index.next, %n.vec
  br i1 %40, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader28, label %.lr.ph.preheader91

.preheader28:                                     ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %17
  %.0.lcssa = phi i32 [ 0, %17 ], [ %20, %middle.block ], [ %20, %.lr.ph ], [ %20, %.lr.ph.prol.loopexit ]
  %41 = load i32, ptr %15, align 4, !tbaa !5
  %42 = icmp slt i32 %.0.lcssa, %41
  br i1 %42, label %.lr.ph31.preheader, label %.preheader

.lr.ph31.preheader:                               ; preds = %.preheader28
  %43 = zext nneg i32 %.0.lcssa to i64
  %wide.trip.count40 = zext i32 %41 to i64
  %44 = sub nsw i64 %wide.trip.count40, %43
  %min.iters.check55 = icmp ult i64 %44, 8
  br i1 %min.iters.check55, label %.lr.ph31.preheader90, label %vector.memcheck49

.lr.ph31.preheader90:                             ; preds = %middle.block53, %vector.memcheck49, %.lr.ph31.preheader
  %indvars.iv37.ph = phi i64 [ %43, %vector.memcheck49 ], [ %43, %.lr.ph31.preheader ], [ %ind.end, %middle.block53 ]
  %45 = sub nsw i64 %wide.trip.count40, %indvars.iv37.ph
  %xtraiter92 = and i64 %45, 3
  %lcmp.mod93.not = icmp eq i64 %xtraiter92, 0
  br i1 %lcmp.mod93.not, label %.lr.ph31.prol.loopexit, label %.lr.ph31.prol

.lr.ph31.prol:                                    ; preds = %.lr.ph31.preheader90, %.lr.ph31.prol
  %indvars.iv37.prol = phi i64 [ %indvars.iv.next38.prol, %.lr.ph31.prol ], [ %indvars.iv37.ph, %.lr.ph31.preheader90 ]
  %prol.iter94 = phi i64 [ %prol.iter94.next, %.lr.ph31.prol ], [ 0, %.lr.ph31.preheader90 ]
  %46 = getelementptr inbounds double, ptr %0, i64 %indvars.iv37.prol
  %47 = load double, ptr %46, align 8, !tbaa !9
  %48 = getelementptr inbounds double, ptr %1, i64 %indvars.iv37.prol
  %49 = load double, ptr %48, align 8, !tbaa !9
  %50 = fmul double %47, %49
  %51 = getelementptr inbounds double, ptr %2, i64 %indvars.iv37.prol
  store double %50, ptr %51, align 8, !tbaa !9
  %indvars.iv.next38.prol = add nuw nsw i64 %indvars.iv37.prol, 1
  %prol.iter94.next = add i64 %prol.iter94, 1
  %prol.iter94.cmp.not = icmp eq i64 %prol.iter94.next, %xtraiter92
  br i1 %prol.iter94.cmp.not, label %.lr.ph31.prol.loopexit, label %.lr.ph31.prol, !llvm.loop !17

.lr.ph31.prol.loopexit:                           ; preds = %.lr.ph31.prol, %.lr.ph31.preheader90
  %indvars.iv37.unr = phi i64 [ %indvars.iv37.ph, %.lr.ph31.preheader90 ], [ %indvars.iv.next38.prol, %.lr.ph31.prol ]
  %52 = sub nsw i64 %indvars.iv37.ph, %wide.trip.count40
  %53 = icmp ugt i64 %52, -4
  br i1 %53, label %.preheader, label %.lr.ph31

vector.memcheck49:                                ; preds = %.lr.ph31.preheader
  %54 = sub i64 %10, %9
  %diff.check50 = icmp ult i64 %54, 32
  %55 = sub i64 %10, %8
  %diff.check51 = icmp ult i64 %55, 32
  %conflict.rdx52 = or i1 %diff.check50, %diff.check51
  br i1 %conflict.rdx52, label %.lr.ph31.preheader90, label %vector.ph56

vector.ph56:                                      ; preds = %vector.memcheck49
  %n.vec58 = and i64 %44, -4
  %ind.end = add nsw i64 %n.vec58, %43
  br label %vector.body60

vector.body60:                                    ; preds = %vector.body60, %vector.ph56
  %index61 = phi i64 [ 0, %vector.ph56 ], [ %index.next66, %vector.body60 ]
  %offset.idx = add i64 %index61, %43
  %56 = getelementptr inbounds double, ptr %0, i64 %offset.idx
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %wide.load62 = load <2 x double>, ptr %56, align 8, !tbaa !9
  %wide.load63 = load <2 x double>, ptr %57, align 8, !tbaa !9
  %58 = getelementptr inbounds double, ptr %1, i64 %offset.idx
  %59 = getelementptr inbounds i8, ptr %58, i64 16
  %wide.load64 = load <2 x double>, ptr %58, align 8, !tbaa !9
  %wide.load65 = load <2 x double>, ptr %59, align 8, !tbaa !9
  %60 = fmul <2 x double> %wide.load62, %wide.load64
  %61 = fmul <2 x double> %wide.load63, %wide.load65
  %62 = getelementptr inbounds double, ptr %2, i64 %offset.idx
  %63 = getelementptr inbounds i8, ptr %62, i64 16
  store <2 x double> %60, ptr %62, align 8, !tbaa !9
  store <2 x double> %61, ptr %63, align 8, !tbaa !9
  %index.next66 = add nuw i64 %index61, 4
  %64 = icmp eq i64 %index.next66, %n.vec58
  br i1 %64, label %middle.block53, label %vector.body60, !llvm.loop !18

middle.block53:                                   ; preds = %vector.body60
  %cmp.n67 = icmp eq i64 %44, %n.vec58
  br i1 %cmp.n67, label %.preheader, label %.lr.ph31.preheader90

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %65 = getelementptr inbounds double, ptr %0, i64 %indvars.iv
  %66 = load double, ptr %65, align 8, !tbaa !9
  %67 = getelementptr inbounds double, ptr %1, i64 %indvars.iv
  %68 = load double, ptr %67, align 8, !tbaa !9
  %69 = fmul double %66, %68
  %70 = getelementptr inbounds double, ptr %2, i64 %indvars.iv
  store double %69, ptr %70, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %71 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next
  %72 = load double, ptr %71, align 8, !tbaa !9
  %73 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next
  %74 = load double, ptr %73, align 8, !tbaa !9
  %75 = fmul double %72, %74
  %76 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next
  store double %75, ptr %76, align 8, !tbaa !9
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %77 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next.1
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next.1
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = fmul double %78, %80
  %82 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next.1
  store double %81, ptr %82, align 8, !tbaa !9
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %83 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next.2
  %84 = load double, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next.2
  %86 = load double, ptr %85, align 8, !tbaa !9
  %87 = fmul double %84, %86
  %88 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next.2
  store double %87, ptr %88, align 8, !tbaa !9
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %.preheader28, label %.lr.ph, !llvm.loop !19

.preheader:                                       ; preds = %.lr.ph31.prol.loopexit, %.lr.ph31, %middle.block53, %.preheader28
  %.1.lcssa = phi i32 [ %.0.lcssa, %.preheader28 ], [ %41, %middle.block53 ], [ %41, %.lr.ph31 ], [ %41, %.lr.ph31.prol.loopexit ]
  %89 = load i32, ptr %3, align 4, !tbaa !5
  %90 = icmp slt i32 %.1.lcssa, %89
  br i1 %90, label %.lr.ph34.preheader, label %._crit_edge

.lr.ph34.preheader:                               ; preds = %.preheader
  %91 = zext i32 %.1.lcssa to i64
  %92 = xor i32 %.1.lcssa, -1
  %93 = add i32 %89, %92
  %94 = zext i32 %93 to i64
  %95 = add nuw nsw i64 %94, 1
  %min.iters.check74 = icmp ult i32 %93, 7
  br i1 %min.iters.check74, label %.lr.ph34.preheader89, label %vector.memcheck68

.lr.ph34.preheader89:                             ; preds = %middle.block72, %vector.memcheck68, %.lr.ph34.preheader
  %indvars.iv42.ph = phi i64 [ %91, %vector.memcheck68 ], [ %91, %.lr.ph34.preheader ], [ %ind.end78, %middle.block72 ]
  br label %.lr.ph34

vector.memcheck68:                                ; preds = %.lr.ph34.preheader
  %96 = sub i64 %7, %6
  %diff.check69 = icmp ult i64 %96, 32
  %97 = sub i64 %7, %5
  %diff.check70 = icmp ult i64 %97, 32
  %conflict.rdx71 = or i1 %diff.check69, %diff.check70
  br i1 %conflict.rdx71, label %.lr.ph34.preheader89, label %vector.ph75

vector.ph75:                                      ; preds = %vector.memcheck68
  %n.vec77 = and i64 %95, 8589934588
  %ind.end78 = add nuw nsw i64 %n.vec77, %91
  br label %vector.body80

vector.body80:                                    ; preds = %vector.body80, %vector.ph75
  %index81 = phi i64 [ 0, %vector.ph75 ], [ %index.next87, %vector.body80 ]
  %offset.idx82 = add i64 %index81, %91
  %98 = getelementptr inbounds double, ptr %0, i64 %offset.idx82
  %99 = getelementptr inbounds i8, ptr %98, i64 16
  %wide.load83 = load <2 x double>, ptr %98, align 8, !tbaa !9
  %wide.load84 = load <2 x double>, ptr %99, align 8, !tbaa !9
  %100 = getelementptr inbounds double, ptr %1, i64 %offset.idx82
  %101 = getelementptr inbounds i8, ptr %100, i64 16
  %wide.load85 = load <2 x double>, ptr %100, align 8, !tbaa !9
  %wide.load86 = load <2 x double>, ptr %101, align 8, !tbaa !9
  %102 = fmul <2 x double> %wide.load83, %wide.load85
  %103 = fmul <2 x double> %wide.load84, %wide.load86
  %104 = getelementptr inbounds double, ptr %2, i64 %offset.idx82
  %105 = getelementptr inbounds i8, ptr %104, i64 16
  store <2 x double> %102, ptr %104, align 8, !tbaa !9
  store <2 x double> %103, ptr %105, align 8, !tbaa !9
  %index.next87 = add nuw i64 %index81, 4
  %106 = icmp eq i64 %index.next87, %n.vec77
  br i1 %106, label %middle.block72, label %vector.body80, !llvm.loop !20

middle.block72:                                   ; preds = %vector.body80
  %cmp.n88 = icmp eq i64 %95, %n.vec77
  br i1 %cmp.n88, label %._crit_edge, label %.lr.ph34.preheader89

.lr.ph31:                                         ; preds = %.lr.ph31.prol.loopexit, %.lr.ph31
  %indvars.iv37 = phi i64 [ %indvars.iv.next38.3, %.lr.ph31 ], [ %indvars.iv37.unr, %.lr.ph31.prol.loopexit ]
  %107 = getelementptr inbounds double, ptr %0, i64 %indvars.iv37
  %108 = load double, ptr %107, align 8, !tbaa !9
  %109 = getelementptr inbounds double, ptr %1, i64 %indvars.iv37
  %110 = load double, ptr %109, align 8, !tbaa !9
  %111 = fmul double %108, %110
  %112 = getelementptr inbounds double, ptr %2, i64 %indvars.iv37
  store double %111, ptr %112, align 8, !tbaa !9
  %indvars.iv.next38 = add nuw nsw i64 %indvars.iv37, 1
  %113 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next38
  %114 = load double, ptr %113, align 8, !tbaa !9
  %115 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next38
  %116 = load double, ptr %115, align 8, !tbaa !9
  %117 = fmul double %114, %116
  %118 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next38
  store double %117, ptr %118, align 8, !tbaa !9
  %indvars.iv.next38.1 = add nuw nsw i64 %indvars.iv37, 2
  %119 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next38.1
  %120 = load double, ptr %119, align 8, !tbaa !9
  %121 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next38.1
  %122 = load double, ptr %121, align 8, !tbaa !9
  %123 = fmul double %120, %122
  %124 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next38.1
  store double %123, ptr %124, align 8, !tbaa !9
  %indvars.iv.next38.2 = add nuw nsw i64 %indvars.iv37, 3
  %125 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next38.2
  %126 = load double, ptr %125, align 8, !tbaa !9
  %127 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next38.2
  %128 = load double, ptr %127, align 8, !tbaa !9
  %129 = fmul double %126, %128
  %130 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next38.2
  store double %129, ptr %130, align 8, !tbaa !9
  %indvars.iv.next38.3 = add nuw nsw i64 %indvars.iv37, 4
  %exitcond41.not.3 = icmp eq i64 %indvars.iv.next38.3, %wide.trip.count40
  br i1 %exitcond41.not.3, label %.preheader, label %.lr.ph31, !llvm.loop !21

.lr.ph34:                                         ; preds = %.lr.ph34.preheader89, %.lr.ph34
  %indvars.iv42 = phi i64 [ %indvars.iv.next43, %.lr.ph34 ], [ %indvars.iv42.ph, %.lr.ph34.preheader89 ]
  %131 = getelementptr inbounds double, ptr %0, i64 %indvars.iv42
  %132 = load double, ptr %131, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %1, i64 %indvars.iv42
  %134 = load double, ptr %133, align 8, !tbaa !9
  %135 = fmul double %132, %134
  %136 = getelementptr inbounds double, ptr %2, i64 %indvars.iv42
  store double %135, ptr %136, align 8, !tbaa !9
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %137 = trunc nuw i64 %indvars.iv.next43 to i32
  %138 = icmp sgt i32 %89, %137
  br i1 %138, label %.lr.ph34, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %.lr.ph34, %middle.block72, %.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = distinct !{!13, !14, !15, !16}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !14, !15, !16}
!19 = distinct !{!19, !14, !15}
!20 = distinct !{!20, !14, !15, !16}
!21 = distinct !{!21, !14, !15}
!22 = distinct !{!22, !14, !15}


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