; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Shapes/R3MeshProperty.ll (ZN14R3MeshProperty9ThresholdEddd)

; 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.R3MeshProperty = type { ptr, [1024 x i8], i32, ptr, double, double, double, double, double, 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
declare dso_local void @_ZN14R3MeshProperty15ResetStatisticsEv(ptr noundef nonnull align 8 dereferenceable(1096)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14R3MeshProperty9ThresholdEddd(ptr noundef nonnull align 8 dereferenceable(1096) %0, double noundef %1, double noundef %2, double noundef %3) #2 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) #3
  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 %struct.R3MeshProperty, ptr %10, i32 0, i32 2
  %14 = load i32, ptr %13, align 8, !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) #3
  br label %61

17:                                               ; preds = %11
  %18 = getelementptr inbounds %struct.R3MeshProperty, ptr %10, i32 0, i32 3
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %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 oeq double %23, -1.000000e+00
  br i1 %24, label %25, label %26

25:                                               ; preds = %17
  br label %58

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

35:                                               ; preds = %26
  %36 = load double, ptr %7, align 8, !tbaa !9
  %37 = fcmp une double %36, 0xC1CD6F3458800000
  br i1 %37, label %38, label %45

38:                                               ; preds = %35
  %39 = load double, ptr %7, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.R3MeshProperty, ptr %10, i32 0, i32 3
  %41 = load ptr, ptr %40, align 8, !tbaa !15
  %42 = load i32, ptr %9, align 4, !tbaa !11
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds double, ptr %41, i64 %43
  store double %39, ptr %44, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %38, %35
  br label %57

46:                                               ; preds = %26
  %47 = load double, ptr %8, align 8, !tbaa !9
  %48 = fcmp une double %47, 0xC1CD6F3458800000
  br i1 %48, label %49, label %56

49:                                               ; preds = %46
  %50 = load double, ptr %8, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct.R3MeshProperty, ptr %10, i32 0, i32 3
  %52 = load ptr, ptr %51, align 8, !tbaa !15
  %53 = load i32, ptr %9, align 4, !tbaa !11
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds double, ptr %52, i64 %54
  store double %50, ptr %55, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %49, %46
  br label %57

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

58:                                               ; preds = %57, %25
  %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 !16

61:                                               ; preds = %16
  call void @_ZN14R3MeshProperty15ResetStatisticsEv(ptr noundef nonnull align 8 dereferenceable(1096) %10)
  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 = { mustprogress 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 }

!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 1032}
!14 = !{!"_ZTS14R3MeshProperty", !6, i64 0, !7, i64 8, !12, i64 1032, !6, i64 1040, !10, i64 1048, !10, i64 1056, !10, i64 1064, !10, i64 1072, !10, i64 1080, !10, i64 1088}
!15 = !{!14, !6, i64 1040}
!16 = distinct !{!16, !17}
!17 = !{!"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 nounwind uwtable
declare dso_local void @_ZN14R3MeshProperty15ResetStatisticsEv(ptr noundef nonnull align 8 dereferenceable(1096)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN14R3MeshProperty9ThresholdEddd(ptr noundef nonnull align 8 dereferenceable(1096) %0, double noundef %1, double noundef %2, double noundef %3) local_unnamed_addr #0 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 1032
  %6 = load i32, ptr %5, align 8, !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 1040
  %9 = load ptr, ptr %8, align 8, !tbaa !12
  %10 = fcmp une double %2, 0xC1CD6F3458800000
  %11 = fcmp une double %3, 0xC1CD6F3458800000
  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 !13
  %wide.load52 = load <2 x double>, ptr %14, align 8, !tbaa !13
  %15 = fcmp une <2 x double> %wide.load51, <double -1.000000e+00, double -1.000000e+00>
  %16 = fcmp une <2 x double> %wide.load52, <double -1.000000e+00, double -1.000000e+00>
  %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 !13
  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 !13
  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 !13
  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 !13
  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 !14

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 !13
  %wide.load75 = load <2 x double>, ptr %32, align 8, !tbaa !13
  %33 = fcmp une <2 x double> %wide.load74, <double -1.000000e+00, double -1.000000e+00>
  %34 = fcmp une <2 x double> %wide.load75, <double -1.000000e+00, double -1.000000e+00>
  %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 !13
  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 !13
  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 !13
  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 !13
  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 !18

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 !13
  %60 = fcmp oeq double %59, -1.000000e+00
  br i1 %60, label %62, label %.sink.split

.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 !13
  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 !19

.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 !13
  %65 = fcmp oeq double %64, -1.000000e+00
  %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 !13
  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 !20

.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 !13
  %wide.load35 = load <2 x double>, ptr %71, align 8, !tbaa !13
  %72 = fcmp une <2 x double> %wide.load, <double -1.000000e+00, double -1.000000e+00>
  %73 = fcmp une <2 x double> %wide.load35, <double -1.000000e+00, double -1.000000e+00>
  %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 !13
  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 !13
  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 !13
  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 !13
  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 !21

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 !13
  %91 = fcmp une double %90, -1.000000e+00
  %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 !13
  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 !22

._crit_edge:                                      ; preds = %94, %68, %62, %middle.block, %middle.block42, %middle.block65, %.lr.ph.split, %4
  tail call void @_ZN14R3MeshProperty15ResetStatisticsEv(ptr noundef nonnull align 8 dereferenceable(1096) %0)
  ret void
}

attributes #0 = { 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" }

!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, !10, i64 1032}
!6 = !{!"_ZTS14R3MeshProperty", !7, i64 0, !8, i64 8, !10, i64 1032, !7, i64 1040, !11, i64 1048, !11, i64 1056, !11, i64 1064, !11, i64 1072, !11, i64 1080, !11, i64 1088}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 1040}
!13 = !{!11, !11, i64 0}
!14 = distinct !{!14, !15, !16, !17}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !15, !16, !17}
!19 = distinct !{!19, !15, !17, !16}
!20 = distinct !{!20, !15, !17, !16}
!21 = distinct !{!21, !15, !16, !17}
!22 = distinct !{!22, !15, !17, !16}


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