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

; 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.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, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.ridgeT = type { ptr, ptr, ptr, i32, i8 }
%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 }

@qh_qh = external global %struct.qhT, align 8
@.str.109 = external hidden unnamed_addr constant [136 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 void @qh_fprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1

; 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
declare dso_local void @qh_appendvertexmerge(ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_findbest_ridgevertex(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @qh_maybe_duplicateridge(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %13 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !9
  %14 = sub nsw i32 %13, 2
  store i32 %14, ptr %11, align 4, !tbaa !14
  %15 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !9
  %16 = icmp slt i32 %15, 3
  br i1 %16, label %17, label %18

17:                                               ; preds = %1
  store i32 1, ptr %12, align 4
  br label %191

18:                                               ; preds = %1
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.ridgeT, ptr %19, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  store ptr %21, ptr %7, align 8, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !14
  br label %22

22:                                               ; preds = %184, %18
  %23 = load i32, ptr %9, align 4, !tbaa !14
  %24 = icmp slt i32 %23, 2
  br i1 %24, label %25, label %190

25:                                               ; preds = %22
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.facetT, ptr %26, i32 0, i32 15
  %28 = load i32, ptr %27, align 8
  %29 = lshr i32 %28, 13
  %30 = and i32 %29, 1
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %183, label %32

32:                                               ; preds = %25
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.facetT, ptr %33, i32 0, i32 15
  %35 = load i32, ptr %34, align 8
  %36 = and i32 %35, 511
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %38, label %183

38:                                               ; preds = %32
  store ptr null, ptr %3, align 8, !tbaa !5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.facetT, ptr %39, i32 0, i32 9
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %182

43:                                               ; preds = %38
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.facetT, ptr %44, i32 0, i32 9
  %46 = load ptr, ptr %45, align 8, !tbaa !17
  %47 = getelementptr inbounds %struct.setT, ptr %46, i32 0, i32 1
  %48 = getelementptr inbounds [1 x %union.setelemT], ptr %47, i64 0, i64 0
  store ptr %48, ptr %4, align 8, !tbaa !5
  br label %49

49:                                               ; preds = %180, %43
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds ptr, ptr %50, i32 1
  store ptr %51, ptr %4, align 8, !tbaa !5
  %52 = load ptr, ptr %50, align 8, !tbaa !5
  store ptr %52, ptr %3, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %181

54:                                               ; preds = %49
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = icmp ne ptr %55, %56
  br i1 %57, label %58, label %180

58:                                               ; preds = %54
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ridgeT, ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !19
  %62 = getelementptr inbounds %struct.setT, ptr %61, i32 0, i32 1
  %63 = getelementptr inbounds [1 x %union.setelemT], ptr %62, i64 0, i64 0
  %64 = load ptr, ptr %63, align 8, !tbaa !20
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ridgeT, ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !19
  %68 = getelementptr inbounds %struct.setT, ptr %67, i32 0, i32 1
  %69 = getelementptr inbounds [1 x %union.setelemT], ptr %68, i64 0, i64 0
  %70 = load ptr, ptr %69, align 8, !tbaa !20
  %71 = icmp eq ptr %64, %70
  br i1 %71, label %72, label %180

72:                                               ; preds = %58
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ridgeT, ptr %73, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !19
  %76 = getelementptr inbounds %struct.setT, ptr %75, i32 0, i32 1
  %77 = load i32, ptr %11, align 4, !tbaa !14
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [1 x %union.setelemT], ptr %76, i64 0, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !20
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ridgeT, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !19
  %84 = getelementptr inbounds %struct.setT, ptr %83, i32 0, i32 1
  %85 = load i32, ptr %11, align 4, !tbaa !14
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [1 x %union.setelemT], ptr %84, i64 0, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !20
  %89 = icmp eq ptr %80, %88
  br i1 %89, label %90, label %179

90:                                               ; preds = %72
  store i32 1, ptr %10, align 4, !tbaa !14
  br label %91

91:                                               ; preds = %115, %90
  %92 = load i32, ptr %10, align 4, !tbaa !14
  %93 = load i32, ptr %11, align 4, !tbaa !14
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %95, label %118

95:                                               ; preds = %91
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ridgeT, ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !19
  %99 = getelementptr inbounds %struct.setT, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %10, align 4, !tbaa !14
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [1 x %union.setelemT], ptr %99, i64 0, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !20
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ridgeT, ptr %104, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8, !tbaa !19
  %107 = getelementptr inbounds %struct.setT, ptr %106, i32 0, i32 1
  %108 = load i32, ptr %10, align 4, !tbaa !14
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [1 x %union.setelemT], ptr %107, i64 0, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !20
  %112 = icmp ne ptr %103, %111
  br i1 %112, label %113, label %114

113:                                              ; preds = %95
  br label %118

114:                                              ; preds = %95
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %10, align 4, !tbaa !14
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %10, align 4, !tbaa !14
  br label %91, !llvm.loop !21

118:                                              ; preds = %113, %91
  %119 = load i32, ptr %10, align 4, !tbaa !14
  %120 = load i32, ptr %11, align 4, !tbaa !14
  %121 = icmp eq i32 %119, %120
  br i1 %121, label %122, label %178

122:                                              ; preds = %118
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = call ptr @qh_findbest_ridgevertex(ptr noundef %123, ptr noundef %6, ptr noundef %8)
  store ptr %124, ptr %5, align 8, !tbaa !5
  %125 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !23
  %126 = icmp sge i32 %125, 2
  br i1 %126, label %127, label %162

127:                                              ; preds = %122
  %128 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !24
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.vertexT, ptr %129, i32 0, i32 4
  %131 = load i32, ptr %130, align 8, !tbaa !25
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.vertexT, ptr %132, i32 0, i32 4
  %134 = load i32, ptr %133, align 8, !tbaa !25
  %135 = load double, ptr %8, align 8, !tbaa !27
  %136 = load ptr, ptr %2, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ridgeT, ptr %136, i32 0, i32 3
  %138 = load i32, ptr %137, align 8, !tbaa !28
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.ridgeT, ptr %139, i32 0, i32 3
  %141 = load i32, ptr %140, align 8, !tbaa !28
  %142 = load ptr, ptr %2, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ridgeT, ptr %142, i32 0, i32 1
  %144 = load ptr, ptr %143, align 8, !tbaa !15
  %145 = getelementptr inbounds %struct.facetT, ptr %144, i32 0, i32 14
  %146 = load i32, ptr %145, align 4, !tbaa !29
  %147 = load ptr, ptr %2, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.ridgeT, ptr %147, i32 0, i32 2
  %149 = load ptr, ptr %148, align 8, !tbaa !30
  %150 = getelementptr inbounds %struct.facetT, ptr %149, i32 0, i32 14
  %151 = load i32, ptr %150, align 4, !tbaa !29
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.ridgeT, ptr %152, i32 0, i32 1
  %154 = load ptr, ptr %153, align 8, !tbaa !15
  %155 = getelementptr inbounds %struct.facetT, ptr %154, i32 0, i32 14
  %156 = load i32, ptr %155, align 4, !tbaa !29
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.ridgeT, ptr %157, i32 0, i32 2
  %159 = load ptr, ptr %158, align 8, !tbaa !30
  %160 = getelementptr inbounds %struct.facetT, ptr %159, i32 0, i32 14
  %161 = load i32, ptr %160, align 4, !tbaa !29
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %128, i32 noundef 2069, ptr noundef @.str.109, i32 noundef %131, i32 noundef %134, double noundef %135, i32 noundef %138, i32 noundef %141, i32 noundef %146, i32 noundef %151, i32 noundef %156, i32 noundef %161)
  br label %162

162:                                              ; preds = %127, %122
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = load double, ptr %8, align 8, !tbaa !27
  %166 = load ptr, ptr %2, align 8, !tbaa !5
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_appendvertexmerge(ptr noundef %163, ptr noundef %164, i32 noundef 9, double noundef %165, ptr noundef %166, ptr noundef %167)
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.ridgeT, ptr %168, i32 0, i32 4
  %170 = load i8, ptr %169, align 4
  %171 = and i8 %170, -9
  %172 = or i8 %171, 8
  store i8 %172, ptr %169, align 4
  %173 = load ptr, ptr %2, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.ridgeT, ptr %173, i32 0, i32 4
  %175 = load i8, ptr %174, align 4
  %176 = and i8 %175, -9
  %177 = or i8 %176, 8
  store i8 %177, ptr %174, align 4
  br label %178

178:                                              ; preds = %162, %118
  br label %179

179:                                              ; preds = %178, %72
  br label %180

180:                                              ; preds = %179, %58, %54
  br label %49, !llvm.loop !31

181:                                              ; preds = %49
  br label %182

182:                                              ; preds = %181, %38
  br label %183

183:                                              ; preds = %182, %32, %25
  br label %184

184:                                              ; preds = %183
  %185 = load ptr, ptr %2, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.ridgeT, ptr %185, i32 0, i32 2
  %187 = load ptr, ptr %186, align 8, !tbaa !30
  store ptr %187, ptr %7, align 8, !tbaa !5
  %188 = load i32, ptr %9, align 4, !tbaa !14
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %9, align 4, !tbaa !14
  br label %22, !llvm.loop !32

190:                                              ; preds = %22
  store i32 0, ptr %12, align 4
  br label %191

191:                                              ; preds = %190, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  %192 = load i32, ptr %12, align 4
  switch i32 %192, label %194 [
    i32 0, label %193
    i32 1, label %193
  ]

193:                                              ; preds = %191, %191
  ret void

194:                                              ; preds = %191
  unreachable
}

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, !11, i64 632}
!10 = !{!"qhT", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !12, i64 64, !12, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !6, i64 104, !11, i64 112, !11, i64 116, !6, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !12, i64 160, !12, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !12, i64 192, !12, i64 200, !11, i64 208, !11, i64 212, !12, i64 216, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !11, i64 296, !7, i64 300, !11, i64 416, !11, i64 420, !11, i64 424, !11, i64 428, !11, i64 432, !11, i64 436, !11, i64 440, !11, i64 444, !12, i64 448, !12, i64 456, !12, i64 464, !11, i64 472, !11, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !11, i64 496, !11, i64 500, !11, i64 504, !11, i64 508, !11, i64 512, !11, i64 516, !11, i64 520, !11, i64 524, !11, i64 528, !11, i64 532, !11, i64 536, !11, i64 540, !11, i64 544, !12, i64 552, !11, i64 560, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !11, i64 584, !11, i64 588, !12, i64 592, !11, i64 600, !6, i64 608, !6, i64 616, !11, i64 624, !11, i64 628, !11, i64 632, !11, i64 636, !11, i64 640, !6, i64 648, !11, i64 656, !6, i64 664, !11, i64 672, !7, i64 676, !11, i64 932, !7, i64 936, !7, i64 1192, !11, i64 1704, !11, i64 1708, !11, i64 1712, !11, i64 1716, !11, i64 1720, !11, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !12, i64 1760, !12, i64 1768, !12, i64 1776, !12, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !12, i64 1816, !12, i64 1824, !12, i64 1832, !12, i64 1840, !12, i64 1848, !12, i64 1856, !12, i64 1864, !6, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !12, i64 1904, !11, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !6, i64 2408, !6, i64 2416, !6, i64 2424, !6, i64 2432, !11, i64 2440, !11, i64 2444, !11, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !11, i64 2496, !11, i64 2500, !6, i64 2504, !11, i64 2512, !6, i64 2520, !11, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !11, i64 2568, !11, i64 2572, !11, i64 2576, !11, i64 2580, !11, i64 2584, !11, i64 2588, !11, i64 2592, !11, i64 2596, !13, i64 2600, !11, i64 2608, !11, i64 2612, !11, i64 2616, !11, i64 2620, !11, i64 2624, !6, i64 2632, !6, i64 2640, !11, i64 2648, !11, i64 2652, !11, i64 2656, !12, i64 2664, !11, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !11, i64 2704, !11, i64 2708, !11, i64 2712, !11, i64 2716, !11, i64 2720, !12, i64 2728, !12, i64 2736, !11, i64 2744, !11, i64 2748, !11, i64 2752, !11, i64 2756, !11, i64 2760, !11, i64 2764, !12, i64 2768, !12, i64 2776, !11, i64 2784, !11, i64 2788, !11, i64 2792, !11, i64 2796, !6, i64 2800, !6, i64 2808, !6, i64 2816, !6, i64 2824, !6, i64 2832, !6, i64 2840, !6, i64 2848, !6, i64 2856, !6, i64 2864, !11, i64 2872, !6, i64 2880, !6, i64 2888, !11, i64 2896, !11, i64 2900, !11, i64 2904, !6, i64 2912, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, i64 2944, !11, i64 2952, !11, i64 2956, !11, i64 2960, !11, i64 2964, !11, i64 2968, !11, i64 2972, !6, i64 2976, !6, i64 2984, !11, i64 2992}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !6, i64 8}
!16 = !{!"ridgeT", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 28, !11, i64 28, !11, i64 28, !11, i64 28, !11, i64 28, !11, i64 28}
!17 = !{!18, !6, i64 72}
!18 = !{!"facetT", !12, i64 0, !12, i64 8, !12, 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, !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}
!19 = !{!16, !6, i64 0}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!10, !11, i64 136}
!24 = !{!10, !6, i64 2424}
!25 = !{!26, !11, i64 32}
!26 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, 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}
!27 = !{!12, !12, i64 0}
!28 = !{!16, !11, i64 24}
!29 = !{!18, !11, i64 108}
!30 = !{!16, !6, i64 16}
!31 = distinct !{!31, !22}
!32 = distinct !{!32, !22}


; 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.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, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%union.setelemT = type { ptr }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.str.109 = external hidden unnamed_addr constant [136 x i8], align 1

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

declare void @qh_fprintf(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_appendvertexmerge(ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_findbest_ridgevertex(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @qh_maybe_duplicateridge(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !5
  %5 = add i32 %4, -2
  %6 = icmp slt i32 %4, 3
  br i1 %6, label %.loopexit50, label %7

7:                                                ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = zext nneg i32 %5 to i64
  %.not61 = icmp eq i32 %4, 3
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = getelementptr inbounds i8, ptr %0, i64 28
  %.03960 = load ptr, ptr %8, align 8, !tbaa !13
  %13 = getelementptr inbounds i8, ptr %.03960, i64 112
  %14 = load i32, ptr %13, align 8
  %15 = and i32 %14, 8192
  %.not = icmp ne i32 %15, 0
  %16 = and i32 %14, 511
  %.not44 = icmp eq i32 %16, 0
  %or.cond = or i1 %.not, %.not44
  br i1 %or.cond, label %.loopexit, label %17

17:                                               ; preds = %7
  %18 = getelementptr inbounds i8, ptr %.03960, i64 72
  %19 = load ptr, ptr %18, align 8, !tbaa !14
  %.not45 = icmp eq ptr %19, null
  br i1 %.not45, label %.loopexit, label %.preheader49

.preheader49:                                     ; preds = %17
  %.04054 = getelementptr inbounds i8, ptr %19, i64 8
  %20 = load ptr, ptr %.04054, align 8, !tbaa !13
  %.not4655 = icmp eq ptr %20, null
  br i1 %.not4655, label %.loopexit, label %.lr.ph57.preheader

.lr.ph57.preheader:                               ; preds = %.preheader49
  %wide.trip.count = zext i32 %5 to i64
  br label %.lr.ph57

.lr.ph57:                                         ; preds = %.lr.ph57.preheader, %79
  %21 = phi ptr [ %80, %79 ], [ %20, %.lr.ph57.preheader ]
  %.04056 = phi ptr [ %.040, %79 ], [ %.04054, %.lr.ph57.preheader ]
  %.not47 = icmp eq ptr %21, %0
  br i1 %.not47, label %79, label %22

22:                                               ; preds = %.lr.ph57
  %23 = load ptr, ptr %21, align 8, !tbaa !16
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !18
  %26 = load ptr, ptr %0, align 8, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !18
  %29 = icmp eq ptr %25, %28
  br i1 %29, label %30, label %79

30:                                               ; preds = %22
  %31 = getelementptr inbounds [1 x %union.setelemT], ptr %24, i64 0, i64 %9
  %32 = load ptr, ptr %31, align 8, !tbaa !18
  %33 = getelementptr inbounds [1 x %union.setelemT], ptr %27, i64 0, i64 %9
  %34 = load ptr, ptr %33, align 8, !tbaa !18
  %35 = icmp eq ptr %32, %34
  br i1 %35, label %.preheader, label %79

.preheader:                                       ; preds = %30
  br i1 %.not61, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %40
  %indvars.iv = phi i64 [ %indvars.iv.next, %40 ], [ 1, %.preheader ]
  %36 = getelementptr inbounds [1 x %union.setelemT], ptr %24, i64 0, i64 %indvars.iv
  %37 = load ptr, ptr %36, align 8, !tbaa !18
  %38 = getelementptr inbounds [1 x %union.setelemT], ptr %27, i64 0, i64 %indvars.iv
  %39 = load ptr, ptr %38, align 8, !tbaa !18
  %.not48 = icmp eq ptr %37, %39
  br i1 %.not48, label %40, label %._crit_edge.loopexit

40:                                               ; preds = %.lr.ph
  %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.thread, label %.lr.ph, !llvm.loop !19

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %41 = trunc nuw nsw i64 %indvars.iv to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %.0.lcssa = phi i32 [ 1, %.preheader ], [ %41, %._crit_edge.loopexit ]
  %42 = icmp eq i32 %.0.lcssa, %5
  br i1 %42, label %._crit_edge.thread, label %79

._crit_edge.thread:                               ; preds = %40, %._crit_edge
  %43 = call ptr @qh_findbest_ridgevertex(ptr noundef nonnull %21, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !21
  %45 = icmp sgt i32 %44, 1
  br i1 %45, label %46, label %71

46:                                               ; preds = %._crit_edge.thread
  %47 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !22
  %48 = load ptr, ptr %2, align 8, !tbaa !13
  %49 = getelementptr inbounds i8, ptr %48, i64 32
  %50 = load i32, ptr %49, align 8, !tbaa !23
  %51 = getelementptr inbounds i8, ptr %43, i64 32
  %52 = load i32, ptr %51, align 8, !tbaa !23
  %53 = load double, ptr %3, align 8, !tbaa !25
  %54 = load i32, ptr %10, align 8, !tbaa !26
  %55 = getelementptr inbounds i8, ptr %21, i64 24
  %56 = load i32, ptr %55, align 8, !tbaa !26
  %57 = load ptr, ptr %8, align 8, !tbaa !27
  %58 = getelementptr inbounds i8, ptr %57, i64 108
  %59 = load i32, ptr %58, align 4, !tbaa !28
  %60 = load ptr, ptr %11, align 8, !tbaa !29
  %61 = getelementptr inbounds i8, ptr %60, i64 108
  %62 = load i32, ptr %61, align 4, !tbaa !28
  %63 = getelementptr inbounds i8, ptr %21, i64 8
  %64 = load ptr, ptr %63, align 8, !tbaa !27
  %65 = getelementptr inbounds i8, ptr %64, i64 108
  %66 = load i32, ptr %65, align 4, !tbaa !28
  %67 = getelementptr inbounds i8, ptr %21, i64 16
  %68 = load ptr, ptr %67, align 8, !tbaa !29
  %69 = getelementptr inbounds i8, ptr %68, i64 108
  %70 = load i32, ptr %69, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %47, i32 noundef 2069, ptr noundef nonnull @.str.109, i32 noundef %50, i32 noundef %52, double noundef %53, i32 noundef %54, i32 noundef %56, i32 noundef %59, i32 noundef %62, i32 noundef %66, i32 noundef %70) #3
  br label %71

71:                                               ; preds = %46, %._crit_edge.thread
  %72 = load ptr, ptr %2, align 8, !tbaa !13
  %73 = load double, ptr %3, align 8, !tbaa !25
  call void @qh_appendvertexmerge(ptr noundef %72, ptr noundef %43, i32 noundef 9, double noundef %73, ptr noundef nonnull %0, ptr noundef nonnull %21)
  %74 = getelementptr inbounds i8, ptr %21, i64 28
  %75 = load i8, ptr %74, align 4
  %76 = or i8 %75, 8
  store i8 %76, ptr %74, align 4
  %77 = load i8, ptr %12, align 4
  %78 = or i8 %77, 8
  store i8 %78, ptr %12, align 4
  br label %79

79:                                               ; preds = %30, %71, %._crit_edge, %22, %.lr.ph57
  %.040 = getelementptr inbounds i8, ptr %.04056, i64 8
  %80 = load ptr, ptr %.040, align 8, !tbaa !13
  %.not46 = icmp eq ptr %80, null
  br i1 %.not46, label %.loopexit, label %.lr.ph57, !llvm.loop !30

.loopexit:                                        ; preds = %79, %.preheader49, %7, %17
  %.03960.1 = load ptr, ptr %11, align 8, !tbaa !13
  %81 = getelementptr inbounds i8, ptr %.03960.1, i64 112
  %82 = load i32, ptr %81, align 8
  %83 = and i32 %82, 8192
  %.not.1 = icmp ne i32 %83, 0
  %84 = and i32 %82, 511
  %.not44.1 = icmp eq i32 %84, 0
  %or.cond.1 = or i1 %.not.1, %.not44.1
  br i1 %or.cond.1, label %.loopexit50, label %85

85:                                               ; preds = %.loopexit
  %86 = getelementptr inbounds i8, ptr %.03960.1, i64 72
  %87 = load ptr, ptr %86, align 8, !tbaa !14
  %.not45.1 = icmp eq ptr %87, null
  br i1 %.not45.1, label %.loopexit50, label %.preheader49.1

.preheader49.1:                                   ; preds = %85
  %.04054.1 = getelementptr inbounds i8, ptr %87, i64 8
  %88 = load ptr, ptr %.04054.1, align 8, !tbaa !13
  %.not4655.1 = icmp eq ptr %88, null
  br i1 %.not4655.1, label %.loopexit50, label %.lr.ph57.preheader.1

.lr.ph57.preheader.1:                             ; preds = %.preheader49.1
  %wide.trip.count.1 = zext i32 %5 to i64
  br label %.lr.ph57.1

.lr.ph57.1:                                       ; preds = %147, %.lr.ph57.preheader.1
  %89 = phi ptr [ %148, %147 ], [ %88, %.lr.ph57.preheader.1 ]
  %.04056.1 = phi ptr [ %.040.1, %147 ], [ %.04054.1, %.lr.ph57.preheader.1 ]
  %.not47.1 = icmp eq ptr %89, %0
  br i1 %.not47.1, label %147, label %90

90:                                               ; preds = %.lr.ph57.1
  %91 = load ptr, ptr %89, align 8, !tbaa !16
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  %93 = load ptr, ptr %92, align 8, !tbaa !18
  %94 = load ptr, ptr %0, align 8, !tbaa !16
  %95 = getelementptr inbounds i8, ptr %94, i64 8
  %96 = load ptr, ptr %95, align 8, !tbaa !18
  %97 = icmp eq ptr %93, %96
  br i1 %97, label %98, label %147

98:                                               ; preds = %90
  %99 = getelementptr inbounds [1 x %union.setelemT], ptr %92, i64 0, i64 %9
  %100 = load ptr, ptr %99, align 8, !tbaa !18
  %101 = getelementptr inbounds [1 x %union.setelemT], ptr %95, i64 0, i64 %9
  %102 = load ptr, ptr %101, align 8, !tbaa !18
  %103 = icmp eq ptr %100, %102
  br i1 %103, label %.preheader.1, label %147

.preheader.1:                                     ; preds = %98
  br i1 %.not61, label %._crit_edge.1, label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.preheader.1, %108
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %108 ], [ 1, %.preheader.1 ]
  %104 = getelementptr inbounds [1 x %union.setelemT], ptr %92, i64 0, i64 %indvars.iv.1
  %105 = load ptr, ptr %104, align 8, !tbaa !18
  %106 = getelementptr inbounds [1 x %union.setelemT], ptr %95, i64 0, i64 %indvars.iv.1
  %107 = load ptr, ptr %106, align 8, !tbaa !18
  %.not48.1 = icmp eq ptr %105, %107
  br i1 %.not48.1, label %108, label %._crit_edge.1.loopexit

108:                                              ; preds = %.lr.ph.1
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, %wide.trip.count.1
  br i1 %exitcond.1.not, label %._crit_edge.1.thread, label %.lr.ph.1, !llvm.loop !19

._crit_edge.1.loopexit:                           ; preds = %.lr.ph.1
  %109 = trunc nuw nsw i64 %indvars.iv.1 to i32
  br label %._crit_edge.1

._crit_edge.1:                                    ; preds = %._crit_edge.1.loopexit, %.preheader.1
  %.0.lcssa.1 = phi i32 [ 1, %.preheader.1 ], [ %109, %._crit_edge.1.loopexit ]
  %110 = icmp eq i32 %.0.lcssa.1, %5
  br i1 %110, label %._crit_edge.1.thread, label %147

._crit_edge.1.thread:                             ; preds = %108, %._crit_edge.1
  %111 = call ptr @qh_findbest_ridgevertex(ptr noundef nonnull %89, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %112 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !21
  %113 = icmp sgt i32 %112, 1
  br i1 %113, label %114, label %139

114:                                              ; preds = %._crit_edge.1.thread
  %115 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !22
  %116 = load ptr, ptr %2, align 8, !tbaa !13
  %117 = getelementptr inbounds i8, ptr %116, i64 32
  %118 = load i32, ptr %117, align 8, !tbaa !23
  %119 = getelementptr inbounds i8, ptr %111, i64 32
  %120 = load i32, ptr %119, align 8, !tbaa !23
  %121 = load double, ptr %3, align 8, !tbaa !25
  %122 = load i32, ptr %10, align 8, !tbaa !26
  %123 = getelementptr inbounds i8, ptr %89, i64 24
  %124 = load i32, ptr %123, align 8, !tbaa !26
  %125 = load ptr, ptr %8, align 8, !tbaa !27
  %126 = getelementptr inbounds i8, ptr %125, i64 108
  %127 = load i32, ptr %126, align 4, !tbaa !28
  %128 = load ptr, ptr %11, align 8, !tbaa !29
  %129 = getelementptr inbounds i8, ptr %128, i64 108
  %130 = load i32, ptr %129, align 4, !tbaa !28
  %131 = getelementptr inbounds i8, ptr %89, i64 8
  %132 = load ptr, ptr %131, align 8, !tbaa !27
  %133 = getelementptr inbounds i8, ptr %132, i64 108
  %134 = load i32, ptr %133, align 4, !tbaa !28
  %135 = getelementptr inbounds i8, ptr %89, i64 16
  %136 = load ptr, ptr %135, align 8, !tbaa !29
  %137 = getelementptr inbounds i8, ptr %136, i64 108
  %138 = load i32, ptr %137, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %115, i32 noundef 2069, ptr noundef nonnull @.str.109, i32 noundef %118, i32 noundef %120, double noundef %121, i32 noundef %122, i32 noundef %124, i32 noundef %127, i32 noundef %130, i32 noundef %134, i32 noundef %138) #3
  br label %139

139:                                              ; preds = %114, %._crit_edge.1.thread
  %140 = load ptr, ptr %2, align 8, !tbaa !13
  %141 = load double, ptr %3, align 8, !tbaa !25
  call void @qh_appendvertexmerge(ptr noundef %140, ptr noundef %111, i32 noundef 9, double noundef %141, ptr noundef nonnull %0, ptr noundef nonnull %89)
  %142 = getelementptr inbounds i8, ptr %89, i64 28
  %143 = load i8, ptr %142, align 4
  %144 = or i8 %143, 8
  store i8 %144, ptr %142, align 4
  %145 = load i8, ptr %12, align 4
  %146 = or i8 %145, 8
  store i8 %146, ptr %12, align 4
  br label %147

147:                                              ; preds = %139, %._crit_edge.1, %98, %90, %.lr.ph57.1
  %.040.1 = getelementptr inbounds i8, ptr %.04056.1, i64 8
  %148 = load ptr, ptr %.040.1, align 8, !tbaa !13
  %.not46.1 = icmp eq ptr %148, null
  br i1 %.not46.1, label %.loopexit50, label %.lr.ph57.1, !llvm.loop !30

.loopexit50:                                      ; preds = %147, %.loopexit, %85, %.preheader49.1, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  ret void
}

attributes #0 = { mustprogress 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, !7, i64 632}
!6 = !{!"qhT", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !10, i64 64, !10, i64 72, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !11, i64 104, !7, i64 112, !7, i64 116, !11, i64 120, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !10, i64 160, !10, i64 168, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !10, i64 192, !10, i64 200, !7, i64 208, !7, i64 212, !10, i64 216, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !7, i64 296, !8, i64 300, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !10, i64 448, !10, i64 456, !10, i64 464, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !7, i64 512, !7, i64 516, !7, i64 520, !7, i64 524, !7, i64 528, !7, i64 532, !7, i64 536, !7, i64 540, !7, i64 544, !10, i64 552, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !7, i64 584, !7, i64 588, !10, i64 592, !7, i64 600, !11, i64 608, !11, i64 616, !7, i64 624, !7, i64 628, !7, i64 632, !7, i64 636, !7, i64 640, !11, i64 648, !7, i64 656, !11, i64 664, !7, i64 672, !8, i64 676, !7, i64 932, !8, i64 936, !8, i64 1192, !7, i64 1704, !7, i64 1708, !7, i64 1712, !7, i64 1716, !7, i64 1720, !7, i64 1724, !11, i64 1728, !11, i64 1736, !11, i64 1744, !11, i64 1752, !10, i64 1760, !10, i64 1768, !10, i64 1776, !10, i64 1784, !10, i64 1792, !10, i64 1800, !10, i64 1808, !10, i64 1816, !10, i64 1824, !10, i64 1832, !10, i64 1840, !10, i64 1848, !10, i64 1856, !10, i64 1864, !11, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !10, i64 1904, !7, i64 1912, !8, i64 1916, !8, i64 1928, !8, i64 2128, !8, i64 2168, !8, i64 2368, !11, i64 2408, !11, i64 2416, !11, i64 2424, !11, i64 2432, !7, i64 2440, !7, i64 2444, !7, i64 2448, !11, i64 2456, !11, i64 2464, !11, i64 2472, !11, i64 2480, !11, i64 2488, !7, i64 2496, !7, i64 2500, !11, i64 2504, !7, i64 2512, !11, i64 2520, !7, i64 2528, !11, i64 2536, !11, i64 2544, !11, i64 2552, !11, i64 2560, !7, i64 2568, !7, i64 2572, !7, i64 2576, !7, i64 2580, !7, i64 2584, !7, i64 2588, !7, i64 2592, !7, i64 2596, !12, i64 2600, !7, i64 2608, !7, i64 2612, !7, i64 2616, !7, i64 2620, !7, i64 2624, !11, i64 2632, !11, i64 2640, !7, i64 2648, !7, i64 2652, !7, i64 2656, !10, i64 2664, !7, i64 2672, !10, i64 2680, !10, i64 2688, !10, i64 2696, !7, i64 2704, !7, i64 2708, !7, i64 2712, !7, i64 2716, !7, i64 2720, !10, i64 2728, !10, i64 2736, !7, i64 2744, !7, i64 2748, !7, i64 2752, !7, i64 2756, !7, i64 2760, !7, i64 2764, !10, i64 2768, !10, i64 2776, !7, i64 2784, !7, i64 2788, !7, i64 2792, !7, i64 2796, !11, i64 2800, !11, i64 2808, !11, i64 2816, !11, i64 2824, !11, i64 2832, !11, i64 2840, !11, i64 2848, !11, i64 2856, !11, i64 2864, !7, i64 2872, !11, i64 2880, !11, i64 2888, !7, i64 2896, !7, i64 2900, !7, i64 2904, !11, i64 2912, !10, i64 2920, !10, i64 2928, !10, i64 2936, !10, i64 2944, !7, i64 2952, !7, i64 2956, !7, i64 2960, !7, i64 2964, !7, i64 2968, !7, i64 2972, !11, i64 2976, !11, i64 2984, !7, i64 2992}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !11, i64 72}
!15 = !{!"facetT", !10, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !8, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115}
!16 = !{!17, !11, i64 0}
!17 = !{!"ridgeT", !11, i64 0, !11, i64 8, !11, i64 16, !7, i64 24, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28}
!18 = !{!8, !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !7, i64 136}
!22 = !{!6, !11, i64 2424}
!23 = !{!24, !7, i64 32}
!24 = !{!"vertexT", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40}
!25 = !{!10, !10, i64 0}
!26 = !{!17, !7, i64 24}
!27 = !{!17, !11, i64 8}
!28 = !{!15, !7, i64 108}
!29 = !{!17, !11, i64 16}
!30 = distinct !{!30, !20}


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