; 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.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 }
%struct.ridgeT = type { ptr, ptr, ptr, i32, i8 }

@qh_qh = external global %struct.qhT, align 8
@.str.45 = external hidden unnamed_addr constant [137 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [143 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [148 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

declare i32 @qh_setsize(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_checkdelridge() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %5 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 223), align 8, !tbaa !5
  %6 = icmp ne ptr %5, null
  br i1 %6, label %7, label %19

7:                                                ; preds = %0
  %8 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 223), align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.setT, ptr %8, i32 0, i32 1
  %10 = getelementptr inbounds [1 x %union.setelemT], ptr %9, i64 0, i64 0
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %12 = icmp ne ptr %11, null
  br i1 %12, label %13, label %14

13:                                               ; preds = %7
  br i1 false, label %19, label %15

14:                                               ; preds = %7
  br i1 true, label %19, label %15

15:                                               ; preds = %14, %13
  %16 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %17 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 223), align 8, !tbaa !5
  %18 = call i32 @qh_setsize(ptr noundef %17)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %16, i32 noundef 6382, ptr noundef @.str.45, i32 noundef %18)
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %19

19:                                               ; preds = %15, %14, %13, %0
  %20 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !15
  store ptr %20, ptr %1, align 8, !tbaa !16
  br label %21

21:                                               ; preds = %68, %19
  %22 = load ptr, ptr %1, align 8, !tbaa !16
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %29

24:                                               ; preds = %21
  %25 = load ptr, ptr %1, align 8, !tbaa !16
  %26 = getelementptr inbounds %struct.facetT, ptr %25, i32 0, i32 7
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = icmp ne ptr %27, null
  br label %29

29:                                               ; preds = %24, %21
  %30 = phi i1 [ false, %21 ], [ %28, %24 ]
  br i1 %30, label %31, label %72

31:                                               ; preds = %29
  store ptr null, ptr %3, align 8, !tbaa !16
  %32 = load ptr, ptr %1, align 8, !tbaa !16
  %33 = getelementptr inbounds %struct.facetT, ptr %32, i32 0, i32 9
  %34 = load ptr, ptr %33, align 8, !tbaa !19
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %67

36:                                               ; preds = %31
  %37 = load ptr, ptr %1, align 8, !tbaa !16
  %38 = getelementptr inbounds %struct.facetT, ptr %37, i32 0, i32 9
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  %40 = getelementptr inbounds %struct.setT, ptr %39, i32 0, i32 1
  %41 = getelementptr inbounds [1 x %union.setelemT], ptr %40, i64 0, i64 0
  store ptr %41, ptr %4, align 8, !tbaa !16
  br label %42

42:                                               ; preds = %65, %36
  %43 = load ptr, ptr %4, align 8, !tbaa !16
  %44 = getelementptr inbounds ptr, ptr %43, i32 1
  store ptr %44, ptr %4, align 8, !tbaa !16
  %45 = load ptr, ptr %43, align 8, !tbaa !16
  store ptr %45, ptr %3, align 8, !tbaa !16
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %66

47:                                               ; preds = %42
  %48 = load ptr, ptr %3, align 8, !tbaa !16
  %49 = getelementptr inbounds %struct.ridgeT, ptr %48, i32 0, i32 4
  %50 = load i8, ptr %49, align 4
  %51 = lshr i8 %50, 2
  %52 = and i8 %51, 1
  %53 = zext i8 %52 to i32
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %65

55:                                               ; preds = %47
  %56 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %57 = load ptr, ptr %3, align 8, !tbaa !16
  %58 = getelementptr inbounds %struct.ridgeT, ptr %57, i32 0, i32 3
  %59 = load i32, ptr %58, align 8, !tbaa !20
  %60 = load ptr, ptr %1, align 8, !tbaa !16
  %61 = getelementptr inbounds %struct.facetT, ptr %60, i32 0, i32 14
  %62 = load i32, ptr %61, align 4, !tbaa !22
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %56, i32 noundef 6313, ptr noundef @.str.46, i32 noundef %59, i32 noundef %62)
  %63 = load ptr, ptr %1, align 8, !tbaa !16
  %64 = load ptr, ptr %3, align 8, !tbaa !16
  call void @qh_errexit(i32 noundef 5, ptr noundef %63, ptr noundef %64)
  br label %65

65:                                               ; preds = %55, %47
  br label %42, !llvm.loop !23

66:                                               ; preds = %42
  br label %67

67:                                               ; preds = %66, %31
  br label %68

68:                                               ; preds = %67
  %69 = load ptr, ptr %1, align 8, !tbaa !16
  %70 = getelementptr inbounds %struct.facetT, ptr %69, i32 0, i32 7
  %71 = load ptr, ptr %70, align 8, !tbaa !17
  store ptr %71, ptr %1, align 8, !tbaa !16
  br label %21, !llvm.loop !25

72:                                               ; preds = %29
  %73 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 167), align 8, !tbaa !26
  store ptr %73, ptr %2, align 8, !tbaa !16
  br label %74

74:                                               ; preds = %123, %72
  %75 = load ptr, ptr %2, align 8, !tbaa !16
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %84

77:                                               ; preds = %74
  %78 = load ptr, ptr %2, align 8, !tbaa !16
  %79 = getelementptr inbounds %struct.facetT, ptr %78, i32 0, i32 15
  %80 = load i32, ptr %79, align 8
  %81 = lshr i32 %80, 11
  %82 = and i32 %81, 1
  %83 = icmp ne i32 %82, 0
  br label %84

84:                                               ; preds = %77, %74
  %85 = phi i1 [ false, %74 ], [ %83, %77 ]
  br i1 %85, label %86, label %127

86:                                               ; preds = %84
  store ptr null, ptr %3, align 8, !tbaa !16
  %87 = load ptr, ptr %2, align 8, !tbaa !16
  %88 = getelementptr inbounds %struct.facetT, ptr %87, i32 0, i32 9
  %89 = load ptr, ptr %88, align 8, !tbaa !19
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %122

91:                                               ; preds = %86
  %92 = load ptr, ptr %2, align 8, !tbaa !16
  %93 = getelementptr inbounds %struct.facetT, ptr %92, i32 0, i32 9
  %94 = load ptr, ptr %93, align 8, !tbaa !19
  %95 = getelementptr inbounds %struct.setT, ptr %94, i32 0, i32 1
  %96 = getelementptr inbounds [1 x %union.setelemT], ptr %95, i64 0, i64 0
  store ptr %96, ptr %4, align 8, !tbaa !16
  br label %97

97:                                               ; preds = %120, %91
  %98 = load ptr, ptr %4, align 8, !tbaa !16
  %99 = getelementptr inbounds ptr, ptr %98, i32 1
  store ptr %99, ptr %4, align 8, !tbaa !16
  %100 = load ptr, ptr %98, align 8, !tbaa !16
  store ptr %100, ptr %3, align 8, !tbaa !16
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %121

102:                                              ; preds = %97
  %103 = load ptr, ptr %3, align 8, !tbaa !16
  %104 = getelementptr inbounds %struct.ridgeT, ptr %103, i32 0, i32 4
  %105 = load i8, ptr %104, align 4
  %106 = lshr i8 %105, 2
  %107 = and i8 %106, 1
  %108 = zext i8 %107 to i32
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %120

110:                                              ; preds = %102
  %111 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !14
  %112 = load ptr, ptr %3, align 8, !tbaa !16
  %113 = getelementptr inbounds %struct.ridgeT, ptr %112, i32 0, i32 3
  %114 = load i32, ptr %113, align 8, !tbaa !20
  %115 = load ptr, ptr %2, align 8, !tbaa !16
  %116 = getelementptr inbounds %struct.facetT, ptr %115, i32 0, i32 14
  %117 = load i32, ptr %116, align 4, !tbaa !22
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %111, i32 noundef 6385, ptr noundef @.str.47, i32 noundef %114, i32 noundef %117)
  %118 = load ptr, ptr %2, align 8, !tbaa !16
  %119 = load ptr, ptr %3, align 8, !tbaa !16
  call void @qh_errexit(i32 noundef 5, ptr noundef %118, ptr noundef %119)
  br label %120

120:                                              ; preds = %110, %102
  br label %97, !llvm.loop !27

121:                                              ; preds = %97
  br label %122

122:                                              ; preds = %121, %86
  br label %123

123:                                              ; preds = %122
  %124 = load ptr, ptr %2, align 8, !tbaa !16
  %125 = getelementptr inbounds %struct.facetT, ptr %124, i32 0, i32 7
  %126 = load ptr, ptr %125, align 8, !tbaa !17
  store ptr %126, ptr %2, align 8, !tbaa !16
  br label %74, !llvm.loop !28

127:                                              ; preds = %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #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, !11, i64 2816}
!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 = !{!8, !8, i64 0}
!14 = !{!6, !11, i64 2424}
!15 = !{!6, !11, i64 2480}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !11, i64 56}
!18 = !{!"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}
!19 = !{!18, !11, i64 72}
!20 = !{!21, !7, i64 24}
!21 = !{!"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}
!22 = !{!18, !7, i64 108}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = !{!6, !11, i64 2488}
!27 = distinct !{!27, !24}
!28 = distinct !{!28, !24}


; 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.45 = external hidden unnamed_addr constant [137 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [143 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [148 x i8], align 1

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

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_checkdelridge() local_unnamed_addr #1 {
  %1 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2816), align 8, !tbaa !5
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %8, label %2

2:                                                ; preds = %0
  %3 = getelementptr inbounds i8, ptr %1, i64 8
  %4 = load ptr, ptr %3, align 8, !tbaa !13
  %.not31 = icmp eq ptr %4, null
  br i1 %.not31, label %8, label %5

5:                                                ; preds = %2
  %6 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %7 = tail call i32 @qh_setsize(ptr noundef nonnull %1) #2
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %6, i32 noundef 6382, ptr noundef nonnull @.str.45, i32 noundef %7) #2
  tail call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #2
  br label %8

8:                                                ; preds = %2, %5, %0
  %.02548 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !15
  %.not3249 = icmp eq ptr %.02548, null
  br i1 %.not3249, label %.critedge, label %.lr.ph51

.lr.ph51:                                         ; preds = %8, %.loopexit44
  %.02550 = phi ptr [ %.025, %.loopexit44 ], [ %.02548, %8 ]
  %9 = getelementptr inbounds i8, ptr %.02550, i64 56
  %10 = load ptr, ptr %9, align 8, !tbaa !15
  %.not33 = icmp eq ptr %10, null
  br i1 %.not33, label %.critedge, label %11

11:                                               ; preds = %.lr.ph51
  %12 = getelementptr inbounds i8, ptr %.02550, i64 72
  %13 = load ptr, ptr %12, align 8, !tbaa !16
  %.not39 = icmp eq ptr %13, null
  br i1 %.not39, label %.loopexit44, label %.preheader43

.preheader43:                                     ; preds = %11
  %.045 = getelementptr inbounds i8, ptr %13, i64 8
  %14 = load ptr, ptr %.045, align 8, !tbaa !15
  %.not4146 = icmp eq ptr %14, null
  br i1 %.not4146, label %.loopexit44, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader43
  %15 = getelementptr inbounds i8, ptr %.02550, i64 108
  br label %16

16:                                               ; preds = %.lr.ph, %26
  %17 = phi ptr [ %14, %.lr.ph ], [ %27, %26 ]
  %.047 = phi ptr [ %.045, %.lr.ph ], [ %.0, %26 ]
  %18 = getelementptr inbounds i8, ptr %17, i64 28
  %19 = load i8, ptr %18, align 4
  %20 = and i8 %19, 4
  %.not42 = icmp eq i8 %20, 0
  br i1 %.not42, label %26, label %21

21:                                               ; preds = %16
  %22 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %23 = getelementptr inbounds i8, ptr %17, i64 24
  %24 = load i32, ptr %23, align 8, !tbaa !18
  %25 = load i32, ptr %15, align 4, !tbaa !20
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %22, i32 noundef 6313, ptr noundef nonnull @.str.46, i32 noundef %24, i32 noundef %25) #2
  tail call void @qh_errexit(i32 noundef 5, ptr noundef nonnull %.02550, ptr noundef nonnull %17) #2
  br label %26

26:                                               ; preds = %21, %16
  %.0 = getelementptr inbounds i8, ptr %.047, i64 8
  %27 = load ptr, ptr %.0, align 8, !tbaa !15
  %.not41 = icmp eq ptr %27, null
  br i1 %.not41, label %.loopexit44.loopexit, label %16, !llvm.loop !21

.loopexit44.loopexit:                             ; preds = %26
  %.025.pre = load ptr, ptr %9, align 8, !tbaa !15
  br label %.loopexit44

.loopexit44:                                      ; preds = %.loopexit44.loopexit, %.preheader43, %11
  %.025 = phi ptr [ %.025.pre, %.loopexit44.loopexit ], [ %10, %.preheader43 ], [ %10, %11 ]
  %.not32 = icmp eq ptr %.025, null
  br i1 %.not32, label %.critedge, label %.lr.ph51, !llvm.loop !23

.critedge:                                        ; preds = %.lr.ph51, %.loopexit44, %8
  %.02457 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2488), align 8, !tbaa !15
  %.not3458 = icmp eq ptr %.02457, null
  br i1 %.not3458, label %.critedge2, label %.lr.ph61

.lr.ph61:                                         ; preds = %.critedge, %.loopexit
  %.02459 = phi ptr [ %.024, %.loopexit ], [ %.02457, %.critedge ]
  %28 = getelementptr inbounds i8, ptr %.02459, i64 112
  %29 = load i32, ptr %28, align 8
  %30 = and i32 %29, 2048
  %.not35 = icmp eq i32 %30, 0
  br i1 %.not35, label %.critedge2, label %31

31:                                               ; preds = %.lr.ph61
  %32 = getelementptr inbounds i8, ptr %.02459, i64 72
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  %.not36 = icmp eq ptr %33, null
  br i1 %.not36, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %31
  %.153 = getelementptr inbounds i8, ptr %33, i64 8
  %34 = load ptr, ptr %.153, align 8, !tbaa !15
  %.not3754 = icmp eq ptr %34, null
  br i1 %.not3754, label %.loopexit, label %.lr.ph56

.lr.ph56:                                         ; preds = %.preheader
  %35 = getelementptr inbounds i8, ptr %.02459, i64 108
  br label %36

36:                                               ; preds = %.lr.ph56, %46
  %37 = phi ptr [ %34, %.lr.ph56 ], [ %47, %46 ]
  %.155 = phi ptr [ %.153, %.lr.ph56 ], [ %.1, %46 ]
  %38 = getelementptr inbounds i8, ptr %37, i64 28
  %39 = load i8, ptr %38, align 4
  %40 = and i8 %39, 4
  %.not38 = icmp eq i8 %40, 0
  br i1 %.not38, label %46, label %41

41:                                               ; preds = %36
  %42 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !14
  %43 = getelementptr inbounds i8, ptr %37, i64 24
  %44 = load i32, ptr %43, align 8, !tbaa !18
  %45 = load i32, ptr %35, align 4, !tbaa !20
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %42, i32 noundef 6385, ptr noundef nonnull @.str.47, i32 noundef %44, i32 noundef %45) #2
  tail call void @qh_errexit(i32 noundef 5, ptr noundef nonnull %.02459, ptr noundef nonnull %37) #2
  br label %46

46:                                               ; preds = %41, %36
  %.1 = getelementptr inbounds i8, ptr %.155, i64 8
  %47 = load ptr, ptr %.1, align 8, !tbaa !15
  %.not37 = icmp eq ptr %47, null
  br i1 %.not37, label %.loopexit, label %36, !llvm.loop !24

.loopexit:                                        ; preds = %46, %.preheader, %31
  %48 = getelementptr inbounds i8, ptr %.02459, i64 56
  %.024 = load ptr, ptr %48, align 8, !tbaa !15
  %.not34 = icmp eq ptr %.024, null
  br i1 %.not34, label %.critedge2, label %.lr.ph61, !llvm.loop !25

.critedge2:                                       ; preds = %.lr.ph61, %.loopexit, %.critedge
  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, !11, i64 2816}
!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 = !{!8, !8, i64 0}
!14 = !{!6, !11, i64 2424}
!15 = !{!11, !11, i64 0}
!16 = !{!17, !11, i64 72}
!17 = !{!"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}
!18 = !{!19, !7, i64 24}
!19 = !{!"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}
!20 = !{!17, !7, i64 108}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}


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