; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (geom_r)

; 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.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }
%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }

; Function Attrs: nounwind uwtable
declare dso_local void @qh_distplane(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local double @qh_getdistance(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca double, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #2
  store ptr null, ptr %12, align 8, !tbaa !5
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.facetT, ptr %18, i32 0, i32 8
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %40

22:                                               ; preds = %5
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.facetT, ptr %23, i32 0, i32 8
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.setT, ptr %25, i32 0, i32 1
  %27 = getelementptr inbounds [1 x %union.setelemT], ptr %26, i64 0, i64 0
  store ptr %27, ptr %13, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %33, %22
  %29 = load ptr, ptr %13, align 8, !tbaa !5
  %30 = getelementptr inbounds ptr, ptr %29, i32 1
  store ptr %30, ptr %13, align 8, !tbaa !5
  %31 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %31, ptr %12, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %39

33:                                               ; preds = %28
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.vertexT, ptr %34, i32 0, i32 6
  %36 = load i8, ptr %35, align 8
  %37 = and i8 %36, -2
  %38 = or i8 %37, 0
  store i8 %38, ptr %35, align 8
  br label %28, !llvm.loop !13

39:                                               ; preds = %28
  br label %40

40:                                               ; preds = %39, %5
  store ptr null, ptr %12, align 8, !tbaa !5
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.facetT, ptr %41, i32 0, i32 8
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %63

45:                                               ; preds = %40
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.facetT, ptr %46, i32 0, i32 8
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.setT, ptr %48, i32 0, i32 1
  %50 = getelementptr inbounds [1 x %union.setelemT], ptr %49, i64 0, i64 0
  store ptr %50, ptr %13, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %56, %45
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = getelementptr inbounds ptr, ptr %52, i32 1
  store ptr %53, ptr %13, align 8, !tbaa !5
  %54 = load ptr, ptr %52, align 8, !tbaa !5
  store ptr %54, ptr %12, align 8, !tbaa !5
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %62

56:                                               ; preds = %51
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.vertexT, ptr %57, i32 0, i32 6
  %59 = load i8, ptr %58, align 8
  %60 = and i8 %59, -2
  %61 = or i8 %60, 1
  store i8 %61, ptr %58, align 8
  br label %51, !llvm.loop !15

62:                                               ; preds = %51
  br label %63

63:                                               ; preds = %62, %40
  store double 0.000000e+00, ptr %16, align 8, !tbaa !16
  store double 0.000000e+00, ptr %15, align 8, !tbaa !16
  store ptr null, ptr %12, align 8, !tbaa !5
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.facetT, ptr %64, i32 0, i32 8
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %113

68:                                               ; preds = %63
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.facetT, ptr %69, i32 0, i32 8
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.setT, ptr %71, i32 0, i32 1
  %73 = getelementptr inbounds [1 x %union.setelemT], ptr %72, i64 0, i64 0
  store ptr %73, ptr %13, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %111, %68
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = getelementptr inbounds ptr, ptr %75, i32 1
  store ptr %76, ptr %13, align 8, !tbaa !5
  %77 = load ptr, ptr %75, align 8, !tbaa !5
  store ptr %77, ptr %12, align 8, !tbaa !5
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %112

79:                                               ; preds = %74
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.vertexT, ptr %80, i32 0, i32 6
  %82 = load i8, ptr %81, align 8
  %83 = and i8 %82, 1
  %84 = zext i8 %83 to i32
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %111, label %86

86:                                               ; preds = %79
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.qhT, ptr %87, i32 0, i32 258
  %89 = getelementptr inbounds %struct.qhstatT, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds [249 x %union.intrealT], ptr %89, i64 0, i64 16
  %91 = load i32, ptr %90, align 8, !tbaa !17
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %90, align 8, !tbaa !17
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.vertexT, ptr %94, i32 0, i32 2
  %96 = load ptr, ptr %95, align 8, !tbaa !18
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %93, ptr noundef %96, ptr noundef %97, ptr noundef %14)
  %98 = load double, ptr %14, align 8, !tbaa !16
  %99 = load double, ptr %16, align 8, !tbaa !16
  %100 = fcmp olt double %98, %99
  br i1 %100, label %101, label %103

101:                                              ; preds = %86
  %102 = load double, ptr %14, align 8, !tbaa !16
  store double %102, ptr %16, align 8, !tbaa !16
  br label %110

103:                                              ; preds = %86
  %104 = load double, ptr %14, align 8, !tbaa !16
  %105 = load double, ptr %15, align 8, !tbaa !16
  %106 = fcmp ogt double %104, %105
  br i1 %106, label %107, label %109

107:                                              ; preds = %103
  %108 = load double, ptr %14, align 8, !tbaa !16
  store double %108, ptr %15, align 8, !tbaa !16
  br label %109

109:                                              ; preds = %107, %103
  br label %110

110:                                              ; preds = %109, %101
  br label %111

111:                                              ; preds = %110, %79
  br label %74, !llvm.loop !20

112:                                              ; preds = %74
  br label %113

113:                                              ; preds = %112, %63
  %114 = load double, ptr %16, align 8, !tbaa !16
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  store double %114, ptr %115, align 8, !tbaa !16
  %116 = load double, ptr %15, align 8, !tbaa !16
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  store double %116, ptr %117, align 8, !tbaa !16
  %118 = load double, ptr %16, align 8, !tbaa !16
  %119 = fneg double %118
  store double %119, ptr %16, align 8, !tbaa !16
  %120 = load double, ptr %15, align 8, !tbaa !16
  %121 = load double, ptr %16, align 8, !tbaa !16
  %122 = fcmp ogt double %120, %121
  br i1 %122, label %123, label %125

123:                                              ; preds = %113
  %124 = load double, ptr %15, align 8, !tbaa !16
  store double %124, ptr %6, align 8
  store i32 1, ptr %17, align 4
  br label %127

125:                                              ; preds = %113
  %126 = load double, ptr %16, align 8, !tbaa !16
  store double %126, ptr %6, align 8
  store i32 1, ptr %17, align 4
  br label %127

127:                                              ; preds = %125, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  %128 = load double, ptr %6, align 8
  ret double %128
}

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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, !6, i64 64}
!10 = !{!"facetT", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 113, !12, i64 113, !12, i64 113, !12, i64 113, !12, i64 113, !12, i64 113, !12, i64 113, !12, i64 114, !12, i64 114, !12, i64 114, !12, i64 114, !12, i64 114, !12, i64 114, !12, i64 114, !12, i64 114, !12, i64 115, !12, i64 115, !12, i64 115, !12, i64 115, !12, i64 115, !12, i64 115, !12, i64 115, !12, i64 115}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!11, !11, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !6, i64 16}
!19 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 40, !12, i64 40, !12, i64 40, !12, i64 40, !12, i64 40}
!20 = distinct !{!20, !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"

; Function Attrs: nounwind uwtable
declare dso_local void @qh_distplane(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local double @qh_getdistance(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #0 {
  %6 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #2
  %7 = getelementptr inbounds i8, ptr %1, i64 64
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %.loopexit55, label %.preheader54

.preheader54:                                     ; preds = %5
  %.03156 = getelementptr inbounds i8, ptr %8, i64 8
  %9 = load ptr, ptr %.03156, align 8, !tbaa !12
  %.not4457 = icmp eq ptr %9, null
  br i1 %.not4457, label %.loopexit55, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader54, %.lr.ph
  %10 = phi ptr [ %14, %.lr.ph ], [ %9, %.preheader54 ]
  %.03158 = phi ptr [ %.031, %.lr.ph ], [ %.03156, %.preheader54 ]
  %11 = getelementptr inbounds i8, ptr %10, i64 40
  %12 = load i8, ptr %11, align 8
  %13 = and i8 %12, -2
  store i8 %13, ptr %11, align 8
  %.031 = getelementptr inbounds i8, ptr %.03158, i64 8
  %14 = load ptr, ptr %.031, align 8, !tbaa !12
  %.not44 = icmp eq ptr %14, null
  br i1 %.not44, label %.loopexit55, label %.lr.ph, !llvm.loop !13

.loopexit55:                                      ; preds = %.lr.ph, %.preheader54, %5
  %15 = getelementptr inbounds i8, ptr %2, i64 64
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %.not45 = icmp eq ptr %16, null
  br i1 %.not45, label %.loopexit53, label %.preheader52

.preheader52:                                     ; preds = %.loopexit55
  %.13259 = getelementptr inbounds i8, ptr %16, i64 8
  %17 = load ptr, ptr %.13259, align 8, !tbaa !12
  %.not4760 = icmp eq ptr %17, null
  br i1 %.not4760, label %.loopexit53, label %.lr.ph62

.lr.ph62:                                         ; preds = %.preheader52, %.lr.ph62
  %18 = phi ptr [ %22, %.lr.ph62 ], [ %17, %.preheader52 ]
  %.13261 = phi ptr [ %.132, %.lr.ph62 ], [ %.13259, %.preheader52 ]
  %19 = getelementptr inbounds i8, ptr %18, i64 40
  %20 = load i8, ptr %19, align 8
  %21 = or i8 %20, 1
  store i8 %21, ptr %19, align 8
  %.132 = getelementptr inbounds i8, ptr %.13261, i64 8
  %22 = load ptr, ptr %.132, align 8, !tbaa !12
  %.not47 = icmp eq ptr %22, null
  br i1 %.not47, label %.loopexit53, label %.lr.ph62, !llvm.loop !15

.loopexit53:                                      ; preds = %.lr.ph62, %.preheader52, %.loopexit55
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %.not48 = icmp eq ptr %23, null
  br i1 %.not48, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.loopexit53
  %.23363 = getelementptr inbounds i8, ptr %23, i64 8
  %24 = load ptr, ptr %.23363, align 8, !tbaa !12
  %.not5064 = icmp eq ptr %24, null
  br i1 %.not5064, label %.loopexit, label %.lr.ph68

.lr.ph68:                                         ; preds = %.preheader
  %25 = getelementptr inbounds i8, ptr %0, i64 3552
  br label %26

26:                                               ; preds = %.lr.ph68, %41
  %27 = phi ptr [ %24, %.lr.ph68 ], [ %42, %41 ]
  %.23367 = phi ptr [ %.23363, %.lr.ph68 ], [ %.233, %41 ]
  %.066 = phi double [ 0.000000e+00, %.lr.ph68 ], [ %.1, %41 ]
  %.02865 = phi double [ 0.000000e+00, %.lr.ph68 ], [ %.129, %41 ]
  %28 = getelementptr inbounds i8, ptr %27, i64 40
  %29 = load i8, ptr %28, align 8
  %30 = and i8 %29, 1
  %.not51 = icmp eq i8 %30, 0
  br i1 %.not51, label %31, label %41

31:                                               ; preds = %26
  %32 = load i32, ptr %25, align 8, !tbaa !16
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %25, align 8, !tbaa !16
  %34 = getelementptr inbounds i8, ptr %27, i64 16
  %35 = load ptr, ptr %34, align 8, !tbaa !17
  call void @qh_distplane(ptr noundef %0, ptr noundef %35, ptr noundef %2, ptr noundef nonnull %6)
  %36 = load double, ptr %6, align 8, !tbaa !19
  %37 = fcmp olt double %36, %.066
  br i1 %37, label %41, label %38

38:                                               ; preds = %31
  %39 = fcmp ogt double %36, %.02865
  br i1 %39, label %40, label %41

40:                                               ; preds = %38
  br label %41

41:                                               ; preds = %31, %40, %38, %26
  %.129 = phi double [ %.02865, %26 ], [ %36, %40 ], [ %.02865, %38 ], [ %.02865, %31 ]
  %.1 = phi double [ %.066, %26 ], [ %.066, %40 ], [ %.066, %38 ], [ %36, %31 ]
  %.233 = getelementptr inbounds i8, ptr %.23367, i64 8
  %42 = load ptr, ptr %.233, align 8, !tbaa !12
  %.not50 = icmp eq ptr %42, null
  br i1 %.not50, label %.loopexit, label %26, !llvm.loop !20

.loopexit:                                        ; preds = %41, %.preheader, %.loopexit53
  %.230 = phi double [ 0.000000e+00, %.loopexit53 ], [ 0.000000e+00, %.preheader ], [ %.129, %41 ]
  %.2 = phi double [ 0.000000e+00, %.loopexit53 ], [ 0.000000e+00, %.preheader ], [ %.1, %41 ]
  store double %.2, ptr %3, align 8, !tbaa !19
  store double %.230, ptr %4, align 8, !tbaa !19
  %43 = fneg double %.2
  %44 = fcmp ogt double %.230, %43
  %.230. = select i1 %44, double %.230, double %43
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #2
  ret double %.230.
}

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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, !10, i64 64}
!6 = !{!"facetT", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !8, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!10, !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!8, !8, i64 0}
!17 = !{!18, !10, i64 16}
!18 = !{!"vertexT", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !14}


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