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

; 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.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }

@qh_qh = external global %struct.qhT, align 8
@.str.66 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [74 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 @qh_setsize(ptr noundef) #1

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

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

declare i32 @qh_pointid(ptr noundef) #1

declare void @qh_errexit(i32 noundef, ptr noundef, ptr noundef) #1

declare void @qh_errprint(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @qh_setin(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_checkvertex(ptr noundef %0, i32 noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store ptr null, ptr %10, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.vertexT, ptr %11, i32 0, i32 2
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %14 = call i32 @qh_pointid(ptr noundef %13)
  %15 = icmp eq i32 %14, -1
  br i1 %15, label %16, label %21

16:                                               ; preds = %3
  %17 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !13
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.vertexT, ptr %18, i32 0, i32 2
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %17, i32 noundef 6144, ptr noundef @.str.127, ptr noundef %20)
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %16, %3
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.vertexT, ptr %22, i32 0, i32 4
  %24 = load i32, ptr %23, align 8, !tbaa !17
  %25 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 184), align 8, !tbaa !18
  %26 = icmp uge i32 %24, %25
  br i1 %26, label %27, label %33

27:                                               ; preds = %21
  %28 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !13
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.vertexT, ptr %29, i32 0, i32 4
  %31 = load i32, ptr %30, align 8, !tbaa !17
  %32 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 184), align 8, !tbaa !18
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %28, i32 noundef 6145, ptr noundef @.str.128, i32 noundef %31, i32 noundef %32)
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %27, %21
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.vertexT, ptr %34, i32 0, i32 5
  %36 = load i32, ptr %35, align 4, !tbaa !19
  %37 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !20
  %38 = icmp ugt i32 %36, %37
  br i1 %38, label %39, label %48

39:                                               ; preds = %33
  %40 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !13
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.vertexT, ptr %41, i32 0, i32 4
  %43 = load i32, ptr %42, align 8, !tbaa !17
  %44 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !20
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.vertexT, ptr %45, i32 0, i32 5
  %47 = load i32, ptr %46, align 4, !tbaa !19
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %40, i32 noundef 6413, ptr noundef @.str.129, i32 noundef %43, i32 noundef %44, i32 noundef %47)
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %39, %33
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %104

51:                                               ; preds = %48
  %52 = load i32, ptr %7, align 4, !tbaa !9
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %104, label %54

54:                                               ; preds = %51
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.vertexT, ptr %55, i32 0, i32 6
  %57 = load i8, ptr %56, align 8
  %58 = lshr i8 %57, 2
  %59 = and i8 %58, 1
  %60 = zext i8 %59 to i32
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %104, label %62

62:                                               ; preds = %54
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.vertexT, ptr %63, i32 0, i32 3
  %65 = load ptr, ptr %64, align 8, !tbaa !21
  %66 = call i32 @qh_setsize(ptr noundef %65)
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %103

68:                                               ; preds = %62
  store ptr null, ptr %8, align 8, !tbaa !5
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.vertexT, ptr %69, i32 0, i32 3
  %71 = load ptr, ptr %70, align 8, !tbaa !21
  %72 = icmp ne ptr %71, null
  br i1 %72, label %73, label %102

73:                                               ; preds = %68
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.vertexT, ptr %74, i32 0, i32 3
  %76 = load ptr, ptr %75, align 8, !tbaa !21
  %77 = getelementptr inbounds %struct.setT, ptr %76, i32 0, i32 1
  %78 = getelementptr inbounds [1 x %union.setelemT], ptr %77, i64 0, i64 0
  store ptr %78, ptr %9, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %100, %73
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds ptr, ptr %80, i32 1
  store ptr %81, ptr %9, align 8, !tbaa !5
  %82 = load ptr, ptr %80, align 8, !tbaa !5
  store ptr %82, ptr %8, align 8, !tbaa !5
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %101

84:                                               ; preds = %79
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.facetT, ptr %85, i32 0, i32 8
  %87 = load ptr, ptr %86, align 8, !tbaa !22
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = call i32 @qh_setin(ptr noundef %87, ptr noundef %88)
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %100, label %91

91:                                               ; preds = %84
  %92 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !13
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.facetT, ptr %93, i32 0, i32 14
  %95 = load i32, ptr %94, align 4, !tbaa !24
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.vertexT, ptr %96, i32 0, i32 4
  %98 = load i32, ptr %97, align 8, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %92, i32 noundef 6146, ptr noundef @.str.130, i32 noundef %95, i32 noundef %98)
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %99, ptr %10, align 8, !tbaa !5
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %91, %84
  br label %79, !llvm.loop !25

101:                                              ; preds = %79
  br label %102

102:                                              ; preds = %101, %68
  br label %103

103:                                              ; preds = %102, %62
  br label %104

104:                                              ; preds = %103, %54, %51, %48
  %105 = load i32, ptr %7, align 4, !tbaa !9
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %115

107:                                              ; preds = %104
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_errprint(ptr noundef @.str.66, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef %108)
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %113

111:                                              ; preds = %107
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  call void @qh_errexit(i32 noundef 5, ptr noundef %112, ptr noundef null)
  br label %113

113:                                              ; preds = %111, %107
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 1, ptr %114, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %113, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret void
}

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

%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] }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.str.66 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [74 x i8], align 1

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #0

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

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #0

declare void @qh_errexit(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @qh_errprint(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @qh_setin(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @qh_checkvertex(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #1 {
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = tail call i32 @qh_pointid(ptr noundef %5) #2
  %7 = icmp eq i32 %6, -1
  br i1 %7, label %8, label %11

8:                                                ; preds = %3
  %9 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !11
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %9, i32 noundef 6144, ptr noundef nonnull @.str.127, ptr noundef %10) #2
  br label %11

11:                                               ; preds = %8, %3
  %.025 = phi i32 [ 1, %8 ], [ 0, %3 ]
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  %13 = load i32, ptr %12, align 8, !tbaa !15
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2592), align 8, !tbaa !16
  %.not = icmp ult i32 %13, %14
  br i1 %.not, label %17, label %15

15:                                               ; preds = %11
  %16 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !11
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %16, i32 noundef 6145, ptr noundef nonnull @.str.128, i32 noundef %13, i32 noundef %14) #2
  br label %17

17:                                               ; preds = %15, %11
  %.126 = phi i32 [ 1, %15 ], [ %.025, %11 ]
  %18 = getelementptr inbounds i8, ptr %0, i64 36
  %19 = load i32, ptr %18, align 4, !tbaa !17
  %20 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !18
  %21 = icmp ugt i32 %19, %20
  br i1 %21, label %.thread52, label %24

.thread52:                                        ; preds = %17
  %22 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !11
  %23 = load i32, ptr %12, align 8, !tbaa !15
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %22, i32 noundef 6413, ptr noundef nonnull @.str.129, i32 noundef %23, i32 noundef %20, i32 noundef %19) #2
  tail call void @qh_errprint(ptr noundef nonnull @.str.66, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef nonnull %0) #2
  br label %51

24:                                               ; preds = %17
  %25 = icmp eq i32 %1, 0
  %26 = icmp ne i32 %.126, 0
  %or.cond = or i1 %25, %26
  br i1 %or.cond, label %.loopexit.thread64, label %27

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %0, i64 40
  %29 = load i8, ptr %28, align 8
  %30 = and i8 %29, 4
  %.not34 = icmp eq i8 %30, 0
  br i1 %.not34, label %31, label %.thread43

31:                                               ; preds = %27
  %32 = getelementptr inbounds i8, ptr %0, i64 24
  %33 = load ptr, ptr %32, align 8, !tbaa !19
  %34 = tail call i32 @qh_setsize(ptr noundef %33) #2
  %.not35 = icmp eq i32 %34, 0
  br i1 %.not35, label %.thread43, label %35

35:                                               ; preds = %31
  %36 = load ptr, ptr %32, align 8, !tbaa !19
  %.not36 = icmp eq ptr %36, null
  br i1 %.not36, label %.thread43, label %.preheader

.preheader:                                       ; preds = %35
  %.02455 = getelementptr inbounds i8, ptr %36, i64 8
  %37 = load ptr, ptr %.02455, align 8, !tbaa !20
  %.not3756 = icmp eq ptr %37, null
  br i1 %.not3756, label %.thread43, label %.lr.ph.outer

.lr.ph.outer:                                     ; preds = %.preheader, %.thread71
  %.ph = phi ptr [ %48, %.thread71 ], [ %37, %.preheader ]
  %.02459.ph = phi ptr [ %.02474, %.thread71 ], [ %.02455, %.preheader ]
  %.058.ph = phi ptr [ %38, %.thread71 ], [ null, %.preheader ]
  %.not39 = phi i1 [ false, %.thread71 ], [ true, %.preheader ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.outer, %42
  %38 = phi ptr [ %43, %42 ], [ %.ph, %.lr.ph.outer ]
  %.02459 = phi ptr [ %.024, %42 ], [ %.02459.ph, %.lr.ph.outer ]
  %39 = getelementptr inbounds i8, ptr %38, i64 64
  %40 = load ptr, ptr %39, align 8, !tbaa !21
  %41 = tail call i32 @qh_setin(ptr noundef %40, ptr noundef %0) #2
  %.not38 = icmp eq i32 %41, 0
  br i1 %.not38, label %.thread71, label %42

42:                                               ; preds = %.lr.ph
  %.024 = getelementptr inbounds i8, ptr %.02459, i64 8
  %43 = load ptr, ptr %.024, align 8, !tbaa !20
  %.not37 = icmp eq ptr %43, null
  br i1 %.not37, label %.loopexit, label %.lr.ph, !llvm.loop !23

.thread71:                                        ; preds = %.lr.ph
  %44 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !11
  %45 = getelementptr inbounds i8, ptr %38, i64 108
  %46 = load i32, ptr %45, align 4, !tbaa !25
  %47 = load i32, ptr %12, align 8, !tbaa !15
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %44, i32 noundef 6146, ptr noundef nonnull @.str.130, i32 noundef %46, i32 noundef %47) #2
  %.02474 = getelementptr inbounds i8, ptr %.02459, i64 8
  %48 = load ptr, ptr %.02474, align 8, !tbaa !20
  %.not3775 = icmp eq ptr %48, null
  br i1 %.not3775, label %.thread82, label %.lr.ph.outer, !llvm.loop !23

.thread82:                                        ; preds = %.thread71
  tail call void @qh_errprint(ptr noundef nonnull @.str.66, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef nonnull %0) #2
  br label %50

.loopexit:                                        ; preds = %42
  br i1 %.not39, label %.thread43, label %49

.loopexit.thread64:                               ; preds = %24
  %.not3967 = icmp eq i32 %.126, 0
  br i1 %.not3967, label %.thread43, label %.thread

.thread:                                          ; preds = %.loopexit.thread64
  tail call void @qh_errprint(ptr noundef nonnull @.str.66, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef nonnull %0) #2
  br label %51

49:                                               ; preds = %.loopexit
  tail call void @qh_errprint(ptr noundef nonnull @.str.66, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef %0) #2
  %.not40 = icmp eq ptr %.058.ph, null
  br i1 %.not40, label %51, label %50

50:                                               ; preds = %.thread82, %49
  %.26885 = phi ptr [ %38, %.thread82 ], [ %.058.ph, %49 ]
  tail call void @qh_errexit(i32 noundef 5, ptr noundef nonnull %.26885, ptr noundef null) #2
  br label %51

51:                                               ; preds = %.thread, %.thread52, %50, %49
  store i32 1, ptr %2, align 4, !tbaa !26
  br label %.thread43

.thread43:                                        ; preds = %.preheader, %.loopexit.thread64, %31, %35, %27, %51, %.loopexit
  ret void
}

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


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