; LLVM IR from ekoontz/graphlab :: src/graphlab/extern/metis/libmetis (cmetis)

; 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.ContactInfoType = type { i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.DTreeNodeType = type { i64, double, i64, i64, i64, i64, i64, i64 }

@.str.15 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [14 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

declare i32 @mprintf(ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
declare dso_local void @BuildDTLeafContents(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 @METIS_UpdateContactInfo(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  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 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %14, ptr %12, align 8, !tbaa !5
  %15 = load ptr, ptr %12, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.ContactInfoType, ptr %15, i32 0, i32 8
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  store ptr %17, ptr %13, align 8, !tbaa !5
  %18 = load ptr, ptr %12, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.ContactInfoType, ptr %18, i32 0, i32 0
  %20 = load i64, ptr %19, align 8, !tbaa !12
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = load i64, ptr %21, align 8, !tbaa !13
  %23 = icmp ne i64 %20, %22
  br i1 %23, label %24, label %30

24:                                               ; preds = %4
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = load i64, ptr %25, align 8, !tbaa !13
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ContactInfoType, ptr %27, i32 0, i32 0
  %29 = load i64, ptr %28, align 8, !tbaa !12
  call void (ptr, ...) @errexit(ptr noundef @.str.15, i64 noundef %26, i64 noundef %29)
  br label %30

30:                                               ; preds = %24, %4
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %31

31:                                               ; preds = %46, %30
  %32 = load i64, ptr %9, align 8, !tbaa !13
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ContactInfoType, ptr %33, i32 0, i32 1
  %35 = load i64, ptr %34, align 8, !tbaa !14
  %36 = icmp slt i64 %32, %35
  br i1 %36, label %37, label %49

37:                                               ; preds = %31
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = load i64, ptr %9, align 8, !tbaa !13
  %40 = getelementptr inbounds %struct.DTreeNodeType, ptr %38, i64 %39
  %41 = getelementptr inbounds %struct.DTreeNodeType, ptr %40, i32 0, i32 2
  store i64 0, ptr %41, align 8, !tbaa !15
  %42 = load ptr, ptr %13, align 8, !tbaa !5
  %43 = load i64, ptr %9, align 8, !tbaa !13
  %44 = getelementptr inbounds %struct.DTreeNodeType, ptr %42, i64 %43
  %45 = getelementptr inbounds %struct.DTreeNodeType, ptr %44, i32 0, i32 3
  store i64 0, ptr %45, align 8, !tbaa !18
  br label %46

46:                                               ; preds = %37
  %47 = load i64, ptr %9, align 8, !tbaa !13
  %48 = add nsw i64 %47, 1
  store i64 %48, ptr %9, align 8, !tbaa !13
  br label %31, !llvm.loop !19

49:                                               ; preds = %31
  store i64 0, ptr %11, align 8, !tbaa !13
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %50

50:                                               ; preds = %147, %49
  %51 = load i64, ptr %9, align 8, !tbaa !13
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = load i64, ptr %52, align 8, !tbaa !13
  %54 = icmp slt i64 %51, %53
  br i1 %54, label %55, label %150

55:                                               ; preds = %50
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %56

56:                                               ; preds = %93, %55
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = load i64, ptr %10, align 8, !tbaa !13
  %59 = getelementptr inbounds %struct.DTreeNodeType, ptr %57, i64 %58
  %60 = getelementptr inbounds %struct.DTreeNodeType, ptr %59, i32 0, i32 4
  %61 = load i64, ptr %60, align 8, !tbaa !21
  %62 = icmp eq i64 %61, -1
  br i1 %62, label %63, label %95

63:                                               ; preds = %56
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load i64, ptr %9, align 8, !tbaa !13
  %66 = mul nsw i64 3, %65
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = load i64, ptr %10, align 8, !tbaa !13
  %69 = getelementptr inbounds %struct.DTreeNodeType, ptr %67, i64 %68
  %70 = getelementptr inbounds %struct.DTreeNodeType, ptr %69, i32 0, i32 0
  %71 = load i64, ptr %70, align 8, !tbaa !22
  %72 = add nsw i64 %66, %71
  %73 = getelementptr inbounds double, ptr %64, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !23
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = load i64, ptr %10, align 8, !tbaa !13
  %77 = getelementptr inbounds %struct.DTreeNodeType, ptr %75, i64 %76
  %78 = getelementptr inbounds %struct.DTreeNodeType, ptr %77, i32 0, i32 1
  %79 = load double, ptr %78, align 8, !tbaa !24
  %80 = fcmp ole double %74, %79
  br i1 %80, label %81, label %87

81:                                               ; preds = %63
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = load i64, ptr %10, align 8, !tbaa !13
  %84 = getelementptr inbounds %struct.DTreeNodeType, ptr %82, i64 %83
  %85 = getelementptr inbounds %struct.DTreeNodeType, ptr %84, i32 0, i32 6
  %86 = load i64, ptr %85, align 8, !tbaa !25
  br label %93

87:                                               ; preds = %63
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = load i64, ptr %10, align 8, !tbaa !13
  %90 = getelementptr inbounds %struct.DTreeNodeType, ptr %88, i64 %89
  %91 = getelementptr inbounds %struct.DTreeNodeType, ptr %90, i32 0, i32 7
  %92 = load i64, ptr %91, align 8, !tbaa !26
  br label %93

93:                                               ; preds = %87, %81
  %94 = phi i64 [ %86, %81 ], [ %92, %87 ]
  store i64 %94, ptr %10, align 8, !tbaa !13
  br label %56, !llvm.loop !27

95:                                               ; preds = %56
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ContactInfoType, ptr %96, i32 0, i32 7
  %98 = load ptr, ptr %97, align 8, !tbaa !28
  %99 = load i64, ptr %9, align 8, !tbaa !13
  %100 = getelementptr inbounds i64, ptr %98, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !13
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = load i64, ptr %10, align 8, !tbaa !13
  %104 = getelementptr inbounds %struct.DTreeNodeType, ptr %102, i64 %103
  %105 = getelementptr inbounds %struct.DTreeNodeType, ptr %104, i32 0, i32 4
  %106 = load i64, ptr %105, align 8, !tbaa !21
  %107 = icmp ne i64 %101, %106
  br i1 %107, label %108, label %117

108:                                              ; preds = %95
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = load i64, ptr %9, align 8, !tbaa !13
  %111 = getelementptr inbounds i64, ptr %109, i64 %110
  %112 = load i64, ptr %111, align 8, !tbaa !13
  %113 = icmp ne i64 %112, 0
  br i1 %113, label %114, label %117

114:                                              ; preds = %108
  %115 = load i64, ptr %11, align 8, !tbaa !13
  %116 = add nsw i64 %115, 1
  store i64 %116, ptr %11, align 8, !tbaa !13
  br label %117

117:                                              ; preds = %114, %108, %95
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = load i64, ptr %10, align 8, !tbaa !13
  %120 = getelementptr inbounds %struct.DTreeNodeType, ptr %118, i64 %119
  %121 = getelementptr inbounds %struct.DTreeNodeType, ptr %120, i32 0, i32 4
  %122 = load i64, ptr %121, align 8, !tbaa !21
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.ContactInfoType, ptr %123, i32 0, i32 7
  %125 = load ptr, ptr %124, align 8, !tbaa !28
  %126 = load i64, ptr %9, align 8, !tbaa !13
  %127 = getelementptr inbounds i64, ptr %125, i64 %126
  store i64 %122, ptr %127, align 8, !tbaa !13
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = load i64, ptr %10, align 8, !tbaa !13
  %130 = getelementptr inbounds %struct.DTreeNodeType, ptr %128, i64 %129
  %131 = getelementptr inbounds %struct.DTreeNodeType, ptr %130, i32 0, i32 2
  %132 = load i64, ptr %131, align 8, !tbaa !15
  %133 = add nsw i64 %132, 1
  store i64 %133, ptr %131, align 8, !tbaa !15
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = load i64, ptr %9, align 8, !tbaa !13
  %136 = getelementptr inbounds i64, ptr %134, i64 %135
  %137 = load i64, ptr %136, align 8, !tbaa !13
  %138 = icmp ne i64 %137, 0
  br i1 %138, label %139, label %146

139:                                              ; preds = %117
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  %141 = load i64, ptr %10, align 8, !tbaa !13
  %142 = getelementptr inbounds %struct.DTreeNodeType, ptr %140, i64 %141
  %143 = getelementptr inbounds %struct.DTreeNodeType, ptr %142, i32 0, i32 3
  %144 = load i64, ptr %143, align 8, !tbaa !18
  %145 = add nsw i64 %144, 1
  store i64 %145, ptr %143, align 8, !tbaa !18
  br label %146

146:                                              ; preds = %139, %117
  br label %147

147:                                              ; preds = %146
  %148 = load i64, ptr %9, align 8, !tbaa !13
  %149 = add nsw i64 %148, 1
  store i64 %149, ptr %9, align 8, !tbaa !13
  br label %50, !llvm.loop !29

150:                                              ; preds = %50
  %151 = load i64, ptr %11, align 8, !tbaa !13
  %152 = call i32 (ptr, ...) @mprintf(ptr noundef @.str.16, i64 noundef %151)
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  call void @BuildDTLeafContents(ptr noundef %153, ptr noundef %154)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

declare void @errexit(ptr noundef, ...) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!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 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 8}
!15 = !{!16, !11, i64 16}
!16 = !{!"", !11, i64 0, !17, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56}
!17 = !{!"double", !7, i64 0}
!18 = !{!16, !11, i64 24}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!16, !11, i64 32}
!22 = !{!16, !11, i64 0}
!23 = !{!17, !17, i64 0}
!24 = !{!16, !17, i64 8}
!25 = !{!16, !11, i64 48}
!26 = !{!16, !11, i64 56}
!27 = distinct !{!27, !20}
!28 = !{!10, !6, i64 56}
!29 = distinct !{!29, !20}


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

%struct.DTreeNodeType = type { i64, double, i64, i64, i64, i64, i64, i64 }

@.str.15 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [14 x i8], align 1

declare i32 @mprintf(ptr noundef, ...) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @METIS_UpdateContactInfo(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = getelementptr inbounds i8, ptr %0, i64 64
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = load i64, ptr %0, align 8, !tbaa !11
  %8 = load i64, ptr %1, align 8, !tbaa !12
  %.not = icmp eq i64 %7, %8
  br i1 %.not, label %10, label %9

9:                                                ; preds = %4
  tail call void (ptr, ...) @errexit(ptr noundef nonnull @.str.15, i64 noundef %8, i64 noundef %7) #3
  br label %10

10:                                               ; preds = %9, %4
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !13
  %13 = icmp sgt i64 %12, 0
  br i1 %13, label %.lr.ph.preheader, label %.preheader56

.lr.ph.preheader:                                 ; preds = %10
  %invariant.gep = getelementptr inbounds i8, ptr %6, i64 16
  %xtraiter = and i64 %12, 7
  %14 = icmp ult i64 %12, 8
  br i1 %14, label %.preheader56.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %12, 9223372036854775800
  br label %.lr.ph

.preheader56.loopexit.unr-lcssa:                  ; preds = %.lr.ph, %.lr.ph.preheader
  %.058.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %28, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader56, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader56.loopexit.unr-lcssa, %.lr.ph.epil
  %.058.epil = phi i64 [ %15, %.lr.ph.epil ], [ %.058.unr, %.preheader56.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader56.loopexit.unr-lcssa ]
  %gep.epil = getelementptr inbounds %struct.DTreeNodeType, ptr %invariant.gep, i64 %.058.epil
  %15 = add nuw nsw i64 %.058.epil, 1
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep.epil, i8 0, i64 16, i1 false)
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader56, label %.lr.ph.epil, !llvm.loop !14

.preheader56:                                     ; preds = %.preheader56.loopexit.unr-lcssa, %.lr.ph.epil, %10
  %16 = load i64, ptr %1, align 8, !tbaa !12
  %17 = icmp sgt i64 %16, 0
  br i1 %17, label %.preheader.lr.ph, label %._crit_edge63

.preheader.lr.ph:                                 ; preds = %.preheader56
  %18 = getelementptr inbounds i8, ptr %6, i64 32
  %19 = getelementptr inbounds i8, ptr %0, i64 56
  %20 = load ptr, ptr %19, align 8, !tbaa !16
  br label %.preheader

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.058 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %28, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.7, %.lr.ph ]
  %gep = getelementptr inbounds %struct.DTreeNodeType, ptr %invariant.gep, i64 %.058
  %21 = or disjoint i64 %.058, 1
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep, i8 0, i64 16, i1 false)
  %gep.1 = getelementptr inbounds %struct.DTreeNodeType, ptr %invariant.gep, i64 %21
  %22 = or disjoint i64 %.058, 2
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep.1, i8 0, i64 16, i1 false)
  %gep.2 = getelementptr inbounds %struct.DTreeNodeType, ptr %invariant.gep, i64 %22
  %23 = or disjoint i64 %.058, 3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep.2, i8 0, i64 16, i1 false)
  %gep.3 = getelementptr inbounds %struct.DTreeNodeType, ptr %invariant.gep, i64 %23
  %24 = or disjoint i64 %.058, 4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep.3, i8 0, i64 16, i1 false)
  %gep.4 = getelementptr inbounds %struct.DTreeNodeType, ptr %invariant.gep, i64 %24
  %25 = or disjoint i64 %.058, 5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep.4, i8 0, i64 16, i1 false)
  %gep.5 = getelementptr inbounds %struct.DTreeNodeType, ptr %invariant.gep, i64 %25
  %26 = or disjoint i64 %.058, 6
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep.5, i8 0, i64 16, i1 false)
  %gep.6 = getelementptr inbounds %struct.DTreeNodeType, ptr %invariant.gep, i64 %26
  %27 = or disjoint i64 %.058, 7
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep.6, i8 0, i64 16, i1 false)
  %gep.7 = getelementptr inbounds %struct.DTreeNodeType, ptr %invariant.gep, i64 %27
  %28 = add nuw nsw i64 %.058, 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep.7, i8 0, i64 16, i1 false)
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %.preheader56.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !17

.preheader:                                       ; preds = %.preheader.lr.ph, %61
  %.162 = phi i64 [ 0, %.preheader.lr.ph ], [ %62, %61 ]
  %.04861 = phi i64 [ 0, %.preheader.lr.ph ], [ %.149, %61 ]
  %29 = load i64, ptr %18, align 8, !tbaa !19
  %30 = icmp eq i64 %29, -1
  br i1 %30, label %.lr.ph59, label %._crit_edge

.lr.ph59:                                         ; preds = %.preheader
  %.idx = mul i64 %.162, 24
  %31 = getelementptr i8, ptr %2, i64 %.idx
  br label %32

32:                                               ; preds = %.lr.ph59, %32
  %33 = phi ptr [ %6, %.lr.ph59 ], [ %41, %32 ]
  %34 = load i64, ptr %33, align 8, !tbaa !22
  %35 = getelementptr double, ptr %31, i64 %34
  %36 = load double, ptr %35, align 8, !tbaa !23
  %37 = getelementptr inbounds i8, ptr %33, i64 8
  %38 = load double, ptr %37, align 8, !tbaa !24
  %39 = fcmp ugt double %36, %38
  %.in.v = select i1 %39, i64 56, i64 48
  %.in = getelementptr inbounds i8, ptr %33, i64 %.in.v
  %40 = load i64, ptr %.in, align 8, !tbaa !12
  %41 = getelementptr inbounds %struct.DTreeNodeType, ptr %6, i64 %40
  %42 = getelementptr inbounds i8, ptr %41, i64 32
  %43 = load i64, ptr %42, align 8, !tbaa !19
  %44 = icmp eq i64 %43, -1
  br i1 %44, label %32, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %32, %.preheader
  %.lcssa57 = phi ptr [ %6, %.preheader ], [ %41, %32 ]
  %.lcssa = phi i64 [ %29, %.preheader ], [ %43, %32 ]
  %45 = getelementptr inbounds i64, ptr %20, i64 %.162
  %46 = load i64, ptr %45, align 8, !tbaa !12
  %.not53 = icmp eq i64 %46, %.lcssa
  br i1 %.not53, label %51, label %47

47:                                               ; preds = %._crit_edge
  %48 = getelementptr inbounds i64, ptr %3, i64 %.162
  %49 = load i64, ptr %48, align 8, !tbaa !12
  %.not54 = icmp ne i64 %49, 0
  %50 = zext i1 %.not54 to i64
  %spec.select = add nsw i64 %.04861, %50
  br label %51

51:                                               ; preds = %47, %._crit_edge
  %.149 = phi i64 [ %.04861, %._crit_edge ], [ %spec.select, %47 ]
  store i64 %.lcssa, ptr %45, align 8, !tbaa !12
  %52 = getelementptr inbounds i8, ptr %.lcssa57, i64 16
  %53 = load i64, ptr %52, align 8, !tbaa !26
  %54 = add nsw i64 %53, 1
  store i64 %54, ptr %52, align 8, !tbaa !26
  %55 = getelementptr inbounds i64, ptr %3, i64 %.162
  %56 = load i64, ptr %55, align 8, !tbaa !12
  %.not55 = icmp eq i64 %56, 0
  br i1 %.not55, label %61, label %57

57:                                               ; preds = %51
  %58 = getelementptr inbounds i8, ptr %.lcssa57, i64 24
  %59 = load i64, ptr %58, align 8, !tbaa !27
  %60 = add nsw i64 %59, 1
  store i64 %60, ptr %58, align 8, !tbaa !27
  br label %61

61:                                               ; preds = %51, %57
  %62 = add nuw nsw i64 %.162, 1
  %63 = load i64, ptr %1, align 8, !tbaa !12
  %64 = icmp slt i64 %62, %63
  br i1 %64, label %.preheader, label %._crit_edge63, !llvm.loop !28

._crit_edge63:                                    ; preds = %61, %.preheader56
  %.048.lcssa = phi i64 [ 0, %.preheader56 ], [ %.149, %61 ]
  %65 = tail call i32 (ptr, ...) @mprintf(ptr noundef nonnull @.str.16, i64 noundef %.048.lcssa) #3
  tail call void @BuildDTLeafContents(ptr noundef nonnull %0, ptr noundef %3)
  ret void
}

declare void @errexit(ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

attributes #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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !10, i64 64}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !7, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = !{!6, !10, i64 56}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !7, i64 32}
!20 = !{!"", !7, i64 0, !21, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!21 = !{!"double", !8, i64 0}
!22 = !{!20, !7, i64 0}
!23 = !{!21, !21, i64 0}
!24 = !{!20, !21, i64 8}
!25 = distinct !{!25, !18}
!26 = !{!20, !7, i64 16}
!27 = !{!20, !7, i64 24}
!28 = distinct !{!28, !18}


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