; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R2Shapes/R2Grid.ll (ZN6R2Grid9ThresholdEddd)

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

%class.R2Grid = type { %class.R2Affine, %class.R2Affine, double, ptr, [2 x i32], i32, i32 }
%class.R2Affine = type <{ %class.R2Transformation, %class.R3Matrix, i32, [4 x i8] }>
%class.R2Transformation = type { ptr }
%class.R3Matrix = type { [3 x [3 x double]] }

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN6R2Grid9ThresholdEddd(ptr noundef nonnull align 8 dereferenceable(208) %0, double noundef %1, double noundef %2, double noundef %3) #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store double %1, ptr %6, align 8, !tbaa !9
  store double %2, ptr %7, align 8, !tbaa !9
  store double %3, ptr %8, align 8, !tbaa !9
  %10 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %11

11:                                               ; preds = %58, %4
  %12 = load i32, ptr %9, align 4, !tbaa !11
  %13 = getelementptr inbounds %class.R2Grid, ptr %10, i32 0, i32 6
  %14 = load i32, ptr %13, align 4, !tbaa !13
  %15 = icmp slt i32 %12, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  br label %61

17:                                               ; preds = %11
  %18 = getelementptr inbounds %class.R2Grid, ptr %10, i32 0, i32 3
  %19 = load ptr, ptr %18, align 8, !tbaa !18
  %20 = load i32, ptr %9, align 4, !tbaa !11
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds double, ptr %19, i64 %21
  %23 = load double, ptr %22, align 8, !tbaa !9
  %24 = fcmp une double %23, -3.210000e+02
  br i1 %24, label %25, label %57

25:                                               ; preds = %17
  %26 = getelementptr inbounds %class.R2Grid, ptr %10, i32 0, i32 3
  %27 = load ptr, ptr %26, align 8, !tbaa !18
  %28 = load i32, ptr %9, align 4, !tbaa !11
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds double, ptr %27, i64 %29
  %31 = load double, ptr %30, align 8, !tbaa !9
  %32 = load double, ptr %6, align 8, !tbaa !9
  %33 = fcmp ole double %31, %32
  br i1 %33, label %34, label %45

34:                                               ; preds = %25
  %35 = load double, ptr %7, align 8, !tbaa !9
  %36 = fcmp une double %35, -9.870000e+02
  br i1 %36, label %37, label %44

37:                                               ; preds = %34
  %38 = load double, ptr %7, align 8, !tbaa !9
  %39 = getelementptr inbounds %class.R2Grid, ptr %10, i32 0, i32 3
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = load i32, ptr %9, align 4, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds double, ptr %40, i64 %42
  store double %38, ptr %43, align 8, !tbaa !9
  br label %44

44:                                               ; preds = %37, %34
  br label %56

45:                                               ; preds = %25
  %46 = load double, ptr %8, align 8, !tbaa !9
  %47 = fcmp une double %46, -9.870000e+02
  br i1 %47, label %48, label %55

48:                                               ; preds = %45
  %49 = load double, ptr %8, align 8, !tbaa !9
  %50 = getelementptr inbounds %class.R2Grid, ptr %10, i32 0, i32 3
  %51 = load ptr, ptr %50, align 8, !tbaa !18
  %52 = load i32, ptr %9, align 4, !tbaa !11
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds double, ptr %51, i64 %53
  store double %49, ptr %54, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %48, %45
  br label %56

56:                                               ; preds = %55, %44
  br label %57

57:                                               ; preds = %56, %17
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %9, align 4, !tbaa !11
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %9, align 4, !tbaa !11
  br label %11, !llvm.loop !19

61:                                               ; preds = %16
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 204}
!14 = !{!"_ZTS6R2Grid", !15, i64 0, !15, i64 88, !10, i64 176, !6, i64 184, !7, i64 192, !12, i64 200, !12, i64 204}
!15 = !{!"_ZTS8R2Affine", !16, i64 0, !17, i64 8, !12, i64 80}
!16 = !{!"_ZTS16R2Transformation"}
!17 = !{!"_ZTS8R3Matrix", !7, i64 0}
!18 = !{!14, !6, i64 184}
!19 = distinct !{!19, !20}
!20 = !{!"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"

; Function Attrs: mustprogress nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @_ZN6R2Grid9ThresholdEddd(ptr nocapture noundef nonnull readonly align 8 dereferenceable(208) %0, double noundef %1, double noundef %2, double noundef %3) local_unnamed_addr #0 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 204
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 184
  %9 = load ptr, ptr %8, align 8, !tbaa !15
  %10 = fcmp une double %2, -9.870000e+02
  %11 = fcmp une double %3, -9.870000e+02
  br i1 %10, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  %wide.trip.count29 = zext nneg i32 %6 to i64
  %min.iters.check67 = icmp ult i32 %6, 4
  br i1 %11, label %.lr.ph.split.us.split.us.preheader, label %.lr.ph.split.us.split.preheader

.lr.ph.split.us.split.preheader:                  ; preds = %.lr.ph.split.us
  br i1 %min.iters.check67, label %.lr.ph.split.us.split.preheader91, label %vector.ph45

.lr.ph.split.us.split.preheader91:                ; preds = %middle.block42, %.lr.ph.split.us.split.preheader
  %indvars.iv21.ph = phi i64 [ 0, %.lr.ph.split.us.split.preheader ], [ %n.vec47, %middle.block42 ]
  br label %.lr.ph.split.us.split

vector.ph45:                                      ; preds = %.lr.ph.split.us.split.preheader
  %n.vec47 = and i64 %wide.trip.count29, 2147483644
  %broadcast.splatinsert53 = insertelement <2 x double> poison, double %1, i64 0
  %broadcast.splat54 = shufflevector <2 x double> %broadcast.splatinsert53, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body49

vector.body49:                                    ; preds = %pred.store.continue62, %vector.ph45
  %index50 = phi i64 [ 0, %vector.ph45 ], [ %index.next63, %pred.store.continue62 ]
  %12 = or disjoint i64 %index50, 2
  %13 = getelementptr inbounds double, ptr %9, i64 %index50
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  %wide.load51 = load <2 x double>, ptr %13, align 8, !tbaa !16
  %wide.load52 = load <2 x double>, ptr %14, align 8, !tbaa !16
  %15 = fcmp une <2 x double> %wide.load51, <double -3.210000e+02, double -3.210000e+02>
  %16 = fcmp une <2 x double> %wide.load52, <double -3.210000e+02, double -3.210000e+02>
  %17 = fcmp ole <2 x double> %wide.load51, %broadcast.splat54
  %18 = fcmp ole <2 x double> %wide.load52, %broadcast.splat54
  %.not87 = and <2 x i1> %15, %17
  %.not89 = and <2 x i1> %16, %18
  %19 = extractelement <2 x i1> %.not87, i64 0
  br i1 %19, label %pred.store.if55, label %pred.store.continue56

pred.store.if55:                                  ; preds = %vector.body49
  %20 = getelementptr inbounds double, ptr %9, i64 %index50
  store double %2, ptr %20, align 8, !tbaa !16
  br label %pred.store.continue56

pred.store.continue56:                            ; preds = %pred.store.if55, %vector.body49
  %21 = extractelement <2 x i1> %.not87, i64 1
  br i1 %21, label %pred.store.if57, label %pred.store.continue58

pred.store.if57:                                  ; preds = %pred.store.continue56
  %22 = or disjoint i64 %index50, 1
  %23 = getelementptr inbounds double, ptr %9, i64 %22
  store double %2, ptr %23, align 8, !tbaa !16
  br label %pred.store.continue58

pred.store.continue58:                            ; preds = %pred.store.if57, %pred.store.continue56
  %24 = extractelement <2 x i1> %.not89, i64 0
  br i1 %24, label %pred.store.if59, label %pred.store.continue60

pred.store.if59:                                  ; preds = %pred.store.continue58
  %25 = getelementptr inbounds double, ptr %9, i64 %12
  store double %2, ptr %25, align 8, !tbaa !16
  br label %pred.store.continue60

pred.store.continue60:                            ; preds = %pred.store.if59, %pred.store.continue58
  %26 = extractelement <2 x i1> %.not89, i64 1
  br i1 %26, label %pred.store.if61, label %pred.store.continue62

pred.store.if61:                                  ; preds = %pred.store.continue60
  %27 = or disjoint i64 %index50, 3
  %28 = getelementptr inbounds double, ptr %9, i64 %27
  store double %2, ptr %28, align 8, !tbaa !16
  br label %pred.store.continue62

pred.store.continue62:                            ; preds = %pred.store.if61, %pred.store.continue60
  %index.next63 = add nuw i64 %index50, 4
  %29 = icmp eq i64 %index.next63, %n.vec47
  br i1 %29, label %middle.block42, label %vector.body49, !llvm.loop !17

middle.block42:                                   ; preds = %pred.store.continue62
  %cmp.n64 = icmp eq i64 %n.vec47, %wide.trip.count29
  br i1 %cmp.n64, label %._crit_edge, label %.lr.ph.split.us.split.preheader91

.lr.ph.split.us.split.us.preheader:               ; preds = %.lr.ph.split.us
  br i1 %min.iters.check67, label %.lr.ph.split.us.split.us.preheader90, label %vector.ph68

vector.ph68:                                      ; preds = %.lr.ph.split.us.split.us.preheader
  %n.vec70 = and i64 %wide.trip.count29, 2147483644
  br label %vector.body72

vector.body72:                                    ; preds = %pred.store.continue83, %vector.ph68
  %index73 = phi i64 [ 0, %vector.ph68 ], [ %index.next84, %pred.store.continue83 ]
  %30 = or disjoint i64 %index73, 2
  %31 = getelementptr inbounds double, ptr %9, i64 %index73
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %wide.load74 = load <2 x double>, ptr %31, align 8, !tbaa !16
  %wide.load75 = load <2 x double>, ptr %32, align 8, !tbaa !16
  %33 = fcmp une <2 x double> %wide.load74, <double -3.210000e+02, double -3.210000e+02>
  %34 = fcmp une <2 x double> %wide.load75, <double -3.210000e+02, double -3.210000e+02>
  %35 = extractelement <2 x i1> %33, i64 0
  br i1 %35, label %pred.store.if76, label %pred.store.continue77

pred.store.if76:                                  ; preds = %vector.body72
  %36 = extractelement <2 x double> %wide.load74, i64 0
  %37 = fcmp ugt double %36, %1
  %38 = getelementptr inbounds double, ptr %9, i64 %index73
  %39 = select i1 %37, double %3, double %2
  store double %39, ptr %38, align 8, !tbaa !16
  br label %pred.store.continue77

pred.store.continue77:                            ; preds = %pred.store.if76, %vector.body72
  %40 = extractelement <2 x i1> %33, i64 1
  br i1 %40, label %pred.store.if78, label %pred.store.continue79

pred.store.if78:                                  ; preds = %pred.store.continue77
  %41 = or disjoint i64 %index73, 1
  %42 = extractelement <2 x double> %wide.load74, i64 1
  %43 = fcmp ugt double %42, %1
  %44 = getelementptr inbounds double, ptr %9, i64 %41
  %45 = select i1 %43, double %3, double %2
  store double %45, ptr %44, align 8, !tbaa !16
  br label %pred.store.continue79

pred.store.continue79:                            ; preds = %pred.store.if78, %pred.store.continue77
  %46 = extractelement <2 x i1> %34, i64 0
  br i1 %46, label %pred.store.if80, label %pred.store.continue81

pred.store.if80:                                  ; preds = %pred.store.continue79
  %47 = extractelement <2 x double> %wide.load75, i64 0
  %48 = fcmp ugt double %47, %1
  %49 = getelementptr inbounds double, ptr %9, i64 %30
  %50 = select i1 %48, double %3, double %2
  store double %50, ptr %49, align 8, !tbaa !16
  br label %pred.store.continue81

pred.store.continue81:                            ; preds = %pred.store.if80, %pred.store.continue79
  %51 = extractelement <2 x i1> %34, i64 1
  br i1 %51, label %pred.store.if82, label %pred.store.continue83

pred.store.if82:                                  ; preds = %pred.store.continue81
  %52 = or disjoint i64 %index73, 3
  %53 = extractelement <2 x double> %wide.load75, i64 1
  %54 = fcmp ugt double %53, %1
  %55 = getelementptr inbounds double, ptr %9, i64 %52
  %56 = select i1 %54, double %3, double %2
  store double %56, ptr %55, align 8, !tbaa !16
  br label %pred.store.continue83

pred.store.continue83:                            ; preds = %pred.store.if82, %pred.store.continue81
  %index.next84 = add nuw i64 %index73, 4
  %57 = icmp eq i64 %index.next84, %n.vec70
  br i1 %57, label %middle.block65, label %vector.body72, !llvm.loop !21

middle.block65:                                   ; preds = %pred.store.continue83
  %cmp.n85 = icmp eq i64 %n.vec70, %wide.trip.count29
  br i1 %cmp.n85, label %._crit_edge, label %.lr.ph.split.us.split.us.preheader90

.lr.ph.split.us.split.us.preheader90:             ; preds = %middle.block65, %.lr.ph.split.us.split.us.preheader
  %indvars.iv26.ph = phi i64 [ 0, %.lr.ph.split.us.split.us.preheader ], [ %n.vec70, %middle.block65 ]
  br label %.lr.ph.split.us.split.us

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us.split.us.preheader90, %62
  %indvars.iv26 = phi i64 [ %indvars.iv.next27, %62 ], [ %indvars.iv26.ph, %.lr.ph.split.us.split.us.preheader90 ]
  %58 = getelementptr inbounds double, ptr %9, i64 %indvars.iv26
  %59 = load double, ptr %58, align 8, !tbaa !16
  %60 = fcmp une double %59, -3.210000e+02
  br i1 %60, label %.sink.split, label %62

.sink.split:                                      ; preds = %.lr.ph.split.us.split.us
  %61 = fcmp ugt double %59, %1
  %. = select i1 %61, double %3, double %2
  store double %., ptr %58, align 8, !tbaa !16
  br label %62

62:                                               ; preds = %.sink.split, %.lr.ph.split.us.split.us
  %indvars.iv.next27 = add nuw nsw i64 %indvars.iv26, 1
  %exitcond30.not = icmp eq i64 %indvars.iv.next27, %wide.trip.count29
  br i1 %exitcond30.not, label %._crit_edge, label %.lr.ph.split.us.split.us, !llvm.loop !22

.lr.ph.split.us.split:                            ; preds = %.lr.ph.split.us.split.preheader91, %68
  %indvars.iv21 = phi i64 [ %indvars.iv.next22, %68 ], [ %indvars.iv21.ph, %.lr.ph.split.us.split.preheader91 ]
  %63 = getelementptr inbounds double, ptr %9, i64 %indvars.iv21
  %64 = load double, ptr %63, align 8, !tbaa !16
  %65 = fcmp oeq double %64, -3.210000e+02
  %66 = fcmp ugt double %64, %1
  %or.cond = or i1 %65, %66
  br i1 %or.cond, label %68, label %67

67:                                               ; preds = %.lr.ph.split.us.split
  store double %2, ptr %63, align 8, !tbaa !16
  br label %68

68:                                               ; preds = %67, %.lr.ph.split.us.split
  %indvars.iv.next22 = add nuw nsw i64 %indvars.iv21, 1
  %exitcond25.not = icmp eq i64 %indvars.iv.next22, %wide.trip.count29
  br i1 %exitcond25.not, label %._crit_edge, label %.lr.ph.split.us.split, !llvm.loop !23

.lr.ph.split:                                     ; preds = %.lr.ph
  br i1 %11, label %.lr.ph.split.split.us.preheader, label %._crit_edge

.lr.ph.split.split.us.preheader:                  ; preds = %.lr.ph.split
  %wide.trip.count = zext nneg i32 %6 to i64
  %min.iters.check = icmp ult i32 %6, 4
  br i1 %min.iters.check, label %.lr.ph.split.split.us.preheader93, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.split.split.us.preheader
  %n.vec = and i64 %wide.trip.count, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %1, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %pred.store.continue41, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %pred.store.continue41 ]
  %69 = or disjoint i64 %index, 2
  %70 = getelementptr inbounds double, ptr %9, i64 %index
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %wide.load = load <2 x double>, ptr %70, align 8, !tbaa !16
  %wide.load35 = load <2 x double>, ptr %71, align 8, !tbaa !16
  %72 = fcmp une <2 x double> %wide.load, <double -3.210000e+02, double -3.210000e+02>
  %73 = fcmp une <2 x double> %wide.load35, <double -3.210000e+02, double -3.210000e+02>
  %74 = fcmp ugt <2 x double> %wide.load, %broadcast.splat
  %75 = fcmp ugt <2 x double> %wide.load35, %broadcast.splat
  %76 = and <2 x i1> %72, %74
  %77 = and <2 x i1> %73, %75
  %78 = extractelement <2 x i1> %76, i64 0
  br i1 %78, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %79 = getelementptr inbounds double, ptr %9, i64 %index
  store double %3, ptr %79, align 8, !tbaa !16
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %80 = extractelement <2 x i1> %76, i64 1
  br i1 %80, label %pred.store.if36, label %pred.store.continue37

pred.store.if36:                                  ; preds = %pred.store.continue
  %81 = or disjoint i64 %index, 1
  %82 = getelementptr inbounds double, ptr %9, i64 %81
  store double %3, ptr %82, align 8, !tbaa !16
  br label %pred.store.continue37

pred.store.continue37:                            ; preds = %pred.store.if36, %pred.store.continue
  %83 = extractelement <2 x i1> %77, i64 0
  br i1 %83, label %pred.store.if38, label %pred.store.continue39

pred.store.if38:                                  ; preds = %pred.store.continue37
  %84 = getelementptr inbounds double, ptr %9, i64 %69
  store double %3, ptr %84, align 8, !tbaa !16
  br label %pred.store.continue39

pred.store.continue39:                            ; preds = %pred.store.if38, %pred.store.continue37
  %85 = extractelement <2 x i1> %77, i64 1
  br i1 %85, label %pred.store.if40, label %pred.store.continue41

pred.store.if40:                                  ; preds = %pred.store.continue39
  %86 = or disjoint i64 %index, 3
  %87 = getelementptr inbounds double, ptr %9, i64 %86
  store double %3, ptr %87, align 8, !tbaa !16
  br label %pred.store.continue41

pred.store.continue41:                            ; preds = %pred.store.if40, %pred.store.continue39
  %index.next = add nuw i64 %index, 4
  %88 = icmp eq i64 %index.next, %n.vec
  br i1 %88, label %middle.block, label %vector.body, !llvm.loop !24

middle.block:                                     ; preds = %pred.store.continue41
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.split.split.us.preheader93

.lr.ph.split.split.us.preheader93:                ; preds = %middle.block, %.lr.ph.split.split.us.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.split.split.us.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph.split.split.us

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split.split.us.preheader93, %94
  %indvars.iv = phi i64 [ %indvars.iv.next, %94 ], [ %indvars.iv.ph, %.lr.ph.split.split.us.preheader93 ]
  %89 = getelementptr inbounds double, ptr %9, i64 %indvars.iv
  %90 = load double, ptr %89, align 8, !tbaa !16
  %91 = fcmp une double %90, -3.210000e+02
  %92 = fcmp ugt double %90, %1
  %or.cond16 = and i1 %91, %92
  br i1 %or.cond16, label %93, label %94

93:                                               ; preds = %.lr.ph.split.split.us
  store double %3, ptr %89, align 8, !tbaa !16
  br label %94

94:                                               ; preds = %93, %.lr.ph.split.split.us
  %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.split.split.us, !llvm.loop !25

._crit_edge:                                      ; preds = %94, %68, %62, %middle.block, %middle.block42, %middle.block65, %.lr.ph.split, %4
  ret void
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) 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" }

!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, !12, i64 204}
!6 = !{!"_ZTS6R2Grid", !7, i64 0, !7, i64 88, !13, i64 176, !14, i64 184, !10, i64 192, !12, i64 200, !12, i64 204}
!7 = !{!"_ZTS8R2Affine", !8, i64 0, !9, i64 8, !12, i64 80}
!8 = !{!"_ZTS16R2Transformation"}
!9 = !{!"_ZTS8R3Matrix", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!"double", !10, i64 0}
!14 = !{!"any pointer", !10, i64 0}
!15 = !{!6, !14, i64 184}
!16 = !{!13, !13, i64 0}
!17 = distinct !{!17, !18, !19, !20}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !18, !19, !20}
!22 = distinct !{!22, !18, !20, !19}
!23 = distinct !{!23, !18, !20, !19}
!24 = distinct !{!24, !18, !19, !20}
!25 = distinct !{!25, !18, !20, !19}


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