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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }

@.str.13 = external hidden unnamed_addr constant [76 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, 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 void @qh_errexit2(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @qh_gethash(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.setT, ptr %18, i32 0, i32 1
  %20 = load i32, ptr %11, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [1 x %union.setelemT], ptr %19, i64 0, i64 %21
  store ptr %22, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store i64 0, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %23 = load i32, ptr %10, align 4, !tbaa !9
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = sub nsw i32 %23, %24
  switch i32 %25, label %143 [
    i32 1, label %26
    i32 2, label %33
    i32 3, label %45
    i32 4, label %62
    i32 5, label %84
    i32 6, label %111
  ]

26:                                               ; preds = %6
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = ptrtoint ptr %28 to i64
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = ptrtoint ptr %30 to i64
  %32 = sub nsw i64 %29, %31
  store i64 %32, ptr %14, align 8, !tbaa !11
  br label %179

33:                                               ; preds = %6
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = ptrtoint ptr %35 to i64
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = getelementptr inbounds ptr, ptr %37, i64 1
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = ptrtoint ptr %39 to i64
  %41 = add nsw i64 %36, %40
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = ptrtoint ptr %42 to i64
  %44 = sub nsw i64 %41, %43
  store i64 %44, ptr %14, align 8, !tbaa !11
  br label %179

45:                                               ; preds = %6
  %46 = load ptr, ptr %13, align 8, !tbaa !5
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = ptrtoint ptr %47 to i64
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = getelementptr inbounds ptr, ptr %49, i64 1
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = ptrtoint ptr %51 to i64
  %53 = add nsw i64 %48, %52
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = getelementptr inbounds ptr, ptr %54, i64 2
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = ptrtoint ptr %56 to i64
  %58 = add nsw i64 %53, %57
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = ptrtoint ptr %59 to i64
  %61 = sub nsw i64 %58, %60
  store i64 %61, ptr %14, align 8, !tbaa !11
  br label %179

62:                                               ; preds = %6
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = ptrtoint ptr %64 to i64
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = getelementptr inbounds ptr, ptr %66, i64 1
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = ptrtoint ptr %68 to i64
  %70 = add nsw i64 %65, %69
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = getelementptr inbounds ptr, ptr %71, i64 2
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = ptrtoint ptr %73 to i64
  %75 = add nsw i64 %70, %74
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = getelementptr inbounds ptr, ptr %76, i64 3
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = ptrtoint ptr %78 to i64
  %80 = add nsw i64 %75, %79
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = ptrtoint ptr %81 to i64
  %83 = sub nsw i64 %80, %82
  store i64 %83, ptr %14, align 8, !tbaa !11
  br label %179

84:                                               ; preds = %6
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = ptrtoint ptr %86 to i64
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = getelementptr inbounds ptr, ptr %88, i64 1
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = ptrtoint ptr %90 to i64
  %92 = add nsw i64 %87, %91
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds ptr, ptr %93, i64 2
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = ptrtoint ptr %95 to i64
  %97 = add nsw i64 %92, %96
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = getelementptr inbounds ptr, ptr %98, i64 3
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = ptrtoint ptr %100 to i64
  %102 = add nsw i64 %97, %101
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = getelementptr inbounds ptr, ptr %103, i64 4
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = ptrtoint ptr %105 to i64
  %107 = add nsw i64 %102, %106
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = ptrtoint ptr %108 to i64
  %110 = sub nsw i64 %107, %109
  store i64 %110, ptr %14, align 8, !tbaa !11
  br label %179

111:                                              ; preds = %6
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = ptrtoint ptr %113 to i64
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds ptr, ptr %115, i64 1
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = ptrtoint ptr %117 to i64
  %119 = add nsw i64 %114, %118
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = getelementptr inbounds ptr, ptr %120, i64 2
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  %123 = ptrtoint ptr %122 to i64
  %124 = add nsw i64 %119, %123
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = getelementptr inbounds ptr, ptr %125, i64 3
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = ptrtoint ptr %127 to i64
  %129 = add nsw i64 %124, %128
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = getelementptr inbounds ptr, ptr %130, i64 4
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = ptrtoint ptr %132 to i64
  %134 = add nsw i64 %129, %133
  %135 = load ptr, ptr %13, align 8, !tbaa !5
  %136 = getelementptr inbounds ptr, ptr %135, i64 5
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = ptrtoint ptr %137 to i64
  %139 = add nsw i64 %134, %138
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  %141 = ptrtoint ptr %140 to i64
  %142 = sub nsw i64 %139, %141
  store i64 %142, ptr %14, align 8, !tbaa !11
  br label %179

143:                                              ; preds = %6
  store i64 0, ptr %14, align 8, !tbaa !11
  store i32 3, ptr %17, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %174, %143
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = getelementptr inbounds ptr, ptr %145, i32 1
  store ptr %146, ptr %13, align 8, !tbaa !5
  %147 = load ptr, ptr %145, align 8, !tbaa !5
  %148 = ptrtoint ptr %147 to i64
  store i64 %148, ptr %15, align 8, !tbaa !11
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = ptrtoint ptr %149 to i64
  %151 = icmp ne i64 %148, %150
  br i1 %151, label %152, label %173

152:                                              ; preds = %144
  %153 = load i64, ptr %15, align 8, !tbaa !11
  %154 = load i32, ptr %17, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = shl i64 %153, %155
  %157 = load i64, ptr %15, align 8, !tbaa !11
  %158 = load i32, ptr %17, align 4, !tbaa !9
  %159 = sub nsw i32 32, %158
  %160 = zext i32 %159 to i64
  %161 = ashr i64 %157, %160
  %162 = add nsw i64 %156, %161
  %163 = load i64, ptr %14, align 8, !tbaa !11
  %164 = xor i64 %163, %162
  store i64 %164, ptr %14, align 8, !tbaa !11
  %165 = load i32, ptr %17, align 4, !tbaa !9
  %166 = add nsw i32 %165, 3
  store i32 %166, ptr %17, align 4, !tbaa !9
  %167 = load i32, ptr %17, align 4, !tbaa !9
  %168 = icmp sge i32 %167, 32
  br i1 %168, label %169, label %172

169:                                              ; preds = %152
  %170 = load i32, ptr %17, align 4, !tbaa !9
  %171 = sub nsw i32 %170, 32
  store i32 %171, ptr %17, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %169, %152
  br label %173

173:                                              ; preds = %172, %144
  br label %174

174:                                              ; preds = %173
  %175 = load ptr, ptr %13, align 8, !tbaa !5
  %176 = load ptr, ptr %175, align 8, !tbaa !5
  %177 = icmp ne ptr %176, null
  br i1 %177, label %144, label %178, !llvm.loop !13

178:                                              ; preds = %174
  br label %179

179:                                              ; preds = %178, %111, %84, %62, %45, %33, %26
  %180 = load i32, ptr %8, align 4, !tbaa !9
  %181 = icmp slt i32 %180, 0
  br i1 %181, label %182, label %189

182:                                              ; preds = %179
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.qhT, ptr %184, i32 0, i32 158
  %186 = load ptr, ptr %185, align 8, !tbaa !15
  %187 = load i32, ptr %8, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %183, ptr noundef %186, i32 noundef 6202, ptr noundef @.str.13, i32 noundef %187)
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_errexit2(ptr noundef %188, i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %189

189:                                              ; preds = %182, %179
  %190 = load i64, ptr %14, align 8, !tbaa !11
  %191 = trunc i64 %190 to i32
  store i32 %191, ptr %16, align 4, !tbaa !9
  %192 = load i32, ptr %8, align 4, !tbaa !9
  %193 = load i32, ptr %16, align 4, !tbaa !9
  %194 = urem i32 %193, %192
  store i32 %194, ptr %16, align 4, !tbaa !9
  %195 = load i32, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  ret i32 %195
}

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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !6, i64 2424}
!16 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !17, 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, !17, i64 64, !17, 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, !17, i64 160, !17, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !17, i64 192, !17, i64 200, !10, i64 208, !10, i64 212, !17, 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, !17, i64 448, !17, i64 456, !17, 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, !17, 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, !17, 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, !17, i64 1760, !17, i64 1768, !17, i64 1776, !17, i64 1784, !17, i64 1792, !17, i64 1800, !17, i64 1808, !17, i64 1816, !17, i64 1824, !17, i64 1832, !17, i64 1840, !17, i64 1848, !17, i64 1856, !17, i64 1864, !6, i64 1872, !17, i64 1880, !17, i64 1888, !17, i64 1896, !17, 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, !12, 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, !17, i64 2664, !10, i64 2672, !17, i64 2680, !17, i64 2688, !17, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !17, i64 2728, !17, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !17, i64 2768, !17, 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, !17, i64 2920, !17, i64 2928, !17, i64 2936, !17, i64 2944, !10, i64 2952, !10, i64 2956, !10, i64 2960, !10, i64 2964, !10, i64 2968, !10, i64 2972, !6, i64 2976, !10, i64 2984, !10, i64 2988, !7, i64 2992, !7, i64 3192, !10, i64 3232, !17, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !18, i64 3272, !19, i64 3424}
!17 = !{!"double", !7, i64 0}
!18 = !{!"qhmemT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144}
!19 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !10, i64 5320, !10, i64 5324, !10, i64 5328, !10, i64 5332, !17, i64 5336}


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

%union.setelemT = type { ptr }

@.str.13 = external hidden unnamed_addr constant [76 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @qh_gethash(ptr noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = getelementptr inbounds i8, ptr %2, i64 8
  %8 = sext i32 %4 to i64
  %9 = getelementptr inbounds [1 x %union.setelemT], ptr %7, i64 0, i64 %8
  %10 = sub nsw i32 %3, %4
  %.pre = load ptr, ptr %9, align 8, !tbaa !5
  switch i32 %10, label %.preheader [
    i32 1, label %11
    i32 2, label %15
    i32 3, label %23
    i32 4, label %35
    i32 5, label %51
    i32 6, label %59
  ]

11:                                               ; preds = %6
  %12 = ptrtoint ptr %.pre to i64
  %13 = ptrtoint ptr %5 to i64
  %14 = sub nsw i64 %12, %13
  br label %.loopexit

15:                                               ; preds = %6
  %16 = ptrtoint ptr %.pre to i64
  %17 = getelementptr inbounds i8, ptr %9, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = ptrtoint ptr %18 to i64
  %20 = ptrtoint ptr %5 to i64
  %21 = sub i64 %16, %20
  %22 = add i64 %21, %19
  br label %.loopexit

23:                                               ; preds = %6
  %24 = ptrtoint ptr %.pre to i64
  %25 = getelementptr inbounds i8, ptr %9, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = ptrtoint ptr %26 to i64
  %28 = getelementptr inbounds i8, ptr %9, i64 16
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = ptrtoint ptr %29 to i64
  %31 = ptrtoint ptr %5 to i64
  %32 = sub i64 %24, %31
  %33 = add i64 %32, %27
  %34 = add i64 %33, %30
  br label %.loopexit

35:                                               ; preds = %6
  %36 = ptrtoint ptr %.pre to i64
  %37 = getelementptr inbounds i8, ptr %9, i64 8
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = ptrtoint ptr %38 to i64
  %40 = getelementptr inbounds i8, ptr %9, i64 16
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = ptrtoint ptr %41 to i64
  %43 = getelementptr inbounds i8, ptr %9, i64 24
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = ptrtoint ptr %44 to i64
  %46 = ptrtoint ptr %5 to i64
  %47 = sub i64 %36, %46
  %48 = add i64 %47, %39
  %49 = add i64 %48, %42
  %50 = add i64 %49, %45
  br label %.loopexit

51:                                               ; preds = %6
  %52 = ptrtoint ptr %.pre to i64
  %53 = getelementptr inbounds i8, ptr %9, i64 8
  %54 = load <4 x ptr>, ptr %53, align 8, !tbaa !5
  %55 = ptrtoint <4 x ptr> %54 to <4 x i64>
  %56 = ptrtoint ptr %5 to i64
  %57 = sub i64 %52, %56
  %58 = tail call i64 @llvm.vector.reduce.add.v4i64(<4 x i64> %55)
  %op.rdx63 = add i64 %58, %57
  br label %.loopexit

59:                                               ; preds = %6
  %60 = ptrtoint ptr %.pre to i64
  %61 = getelementptr inbounds i8, ptr %9, i64 8
  %62 = load <4 x ptr>, ptr %61, align 8, !tbaa !5
  %63 = ptrtoint <4 x ptr> %62 to <4 x i64>
  %64 = getelementptr inbounds i8, ptr %9, i64 40
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = ptrtoint ptr %65 to i64
  %67 = ptrtoint ptr %5 to i64
  %68 = sub i64 %60, %67
  %69 = tail call i64 @llvm.vector.reduce.add.v4i64(<4 x i64> %63)
  %op.rdx = add i64 %69, %66
  %op.rdx62 = add i64 %op.rdx, %68
  br label %.loopexit

.preheader:                                       ; preds = %6, %82
  %70 = phi ptr [ %83, %82 ], [ %.pre, %6 ]
  %.051 = phi i64 [ %.152, %82 ], [ 0, %6 ]
  %.050 = phi ptr [ %71, %82 ], [ %9, %6 ]
  %.0 = phi i32 [ %.1, %82 ], [ 3, %6 ]
  %71 = getelementptr inbounds i8, ptr %.050, i64 8
  %.not = icmp eq ptr %70, %5
  br i1 %.not, label %82, label %72

72:                                               ; preds = %.preheader
  %73 = ptrtoint ptr %70 to i64
  %74 = zext nneg i32 %.0 to i64
  %75 = shl i64 %73, %74
  %76 = sub nsw i32 32, %.0
  %77 = zext nneg i32 %76 to i64
  %78 = ashr i64 %73, %77
  %79 = add nsw i64 %75, %78
  %80 = xor i64 %79, %.051
  %81 = icmp sgt i32 %.0, 28
  %spec.select.v = select i1 %81, i32 -29, i32 3
  %spec.select = add nsw i32 %spec.select.v, %.0
  br label %82

82:                                               ; preds = %72, %.preheader
  %.152 = phi i64 [ %.051, %.preheader ], [ %80, %72 ]
  %.1 = phi i32 [ %.0, %.preheader ], [ %spec.select, %72 ]
  %83 = load ptr, ptr %71, align 8, !tbaa !5
  %.not57 = icmp eq ptr %83, null
  br i1 %.not57, label %.loopexit, label %.preheader, !llvm.loop !9

.loopexit:                                        ; preds = %82, %59, %51, %35, %23, %15, %11
  %.2 = phi i64 [ %op.rdx62, %59 ], [ %op.rdx63, %51 ], [ %50, %35 ], [ %34, %23 ], [ %22, %15 ], [ %14, %11 ], [ %.152, %82 ]
  %84 = icmp slt i32 %1, 0
  br i1 %84, label %85, label %88

85:                                               ; preds = %.loopexit
  %86 = getelementptr inbounds i8, ptr %0, i64 2424
  %87 = load ptr, ptr %86, align 8, !tbaa !11
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %87, i32 noundef 6202, ptr noundef nonnull @.str.13, i32 noundef %1) #3
  tail call void @qh_errexit2(ptr noundef %0, i32 noundef 5, ptr noundef null, ptr noundef null) #3
  br label %88

88:                                               ; preds = %85, %.loopexit
  %89 = trunc i64 %.2 to i32
  %90 = urem i32 %89, %1
  ret i32 %90
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v4i64(<4 x i64>) #2

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 2424}
!12 = !{!"qhT", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !14, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !14, i64 64, !14, i64 72, !13, i64 80, !13, i64 84, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !6, i64 104, !13, i64 112, !13, i64 116, !6, i64 120, !13, i64 128, !13, i64 132, !13, i64 136, !13, i64 140, !13, i64 144, !13, i64 148, !13, i64 152, !14, i64 160, !14, i64 168, !13, i64 176, !13, i64 180, !13, i64 184, !13, i64 188, !14, i64 192, !14, i64 200, !13, i64 208, !13, i64 212, !14, i64 216, !13, i64 224, !13, i64 228, !13, i64 232, !13, i64 236, !13, i64 240, !13, i64 244, !13, i64 248, !13, i64 252, !13, i64 256, !13, i64 260, !13, i64 264, !13, i64 268, !13, i64 272, !13, i64 276, !13, i64 280, !13, i64 284, !13, i64 288, !13, i64 292, !13, i64 296, !7, i64 300, !13, i64 416, !13, i64 420, !13, i64 424, !13, i64 428, !13, i64 432, !13, i64 436, !13, i64 440, !13, i64 444, !14, i64 448, !14, i64 456, !14, i64 464, !13, i64 472, !13, i64 476, !13, i64 480, !13, i64 484, !13, i64 488, !13, i64 492, !13, i64 496, !13, i64 500, !13, i64 504, !13, i64 508, !13, i64 512, !13, i64 516, !13, i64 520, !13, i64 524, !13, i64 528, !13, i64 532, !13, i64 536, !13, i64 540, !13, i64 544, !14, i64 552, !13, i64 560, !13, i64 564, !13, i64 568, !13, i64 572, !13, i64 576, !13, i64 580, !13, i64 584, !13, i64 588, !14, i64 592, !13, i64 600, !6, i64 608, !6, i64 616, !13, i64 624, !13, i64 628, !13, i64 632, !13, i64 636, !13, i64 640, !6, i64 648, !13, i64 656, !6, i64 664, !13, i64 672, !7, i64 676, !13, i64 932, !7, i64 936, !7, i64 1192, !13, i64 1704, !13, i64 1708, !13, i64 1712, !13, i64 1716, !13, i64 1720, !13, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !14, i64 1760, !14, i64 1768, !14, i64 1776, !14, i64 1784, !14, i64 1792, !14, i64 1800, !14, i64 1808, !14, i64 1816, !14, i64 1824, !14, i64 1832, !14, i64 1840, !14, i64 1848, !14, i64 1856, !14, i64 1864, !6, i64 1872, !14, i64 1880, !14, i64 1888, !14, i64 1896, !14, i64 1904, !13, 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, !13, i64 2440, !13, i64 2444, !13, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !13, i64 2496, !13, i64 2500, !6, i64 2504, !13, i64 2512, !6, i64 2520, !13, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !13, i64 2568, !13, i64 2572, !13, i64 2576, !13, i64 2580, !13, i64 2584, !13, i64 2588, !13, i64 2592, !13, i64 2596, !15, i64 2600, !13, i64 2608, !13, i64 2612, !13, i64 2616, !13, i64 2620, !13, i64 2624, !6, i64 2632, !6, i64 2640, !13, i64 2648, !13, i64 2652, !13, i64 2656, !14, i64 2664, !13, i64 2672, !14, i64 2680, !14, i64 2688, !14, i64 2696, !13, i64 2704, !13, i64 2708, !13, i64 2712, !13, i64 2716, !13, i64 2720, !14, i64 2728, !14, i64 2736, !13, i64 2744, !13, i64 2748, !13, i64 2752, !13, i64 2756, !13, i64 2760, !13, i64 2764, !14, i64 2768, !14, i64 2776, !13, i64 2784, !13, i64 2788, !13, i64 2792, !13, 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, !13, i64 2872, !6, i64 2880, !6, i64 2888, !13, i64 2896, !13, i64 2900, !13, i64 2904, !6, i64 2912, !14, i64 2920, !14, i64 2928, !14, i64 2936, !14, i64 2944, !13, i64 2952, !13, i64 2956, !13, i64 2960, !13, i64 2964, !13, i64 2968, !13, i64 2972, !6, i64 2976, !13, i64 2984, !13, i64 2988, !7, i64 2992, !7, i64 3192, !13, i64 3232, !14, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !16, i64 3272, !17, i64 3424}
!13 = !{!"int", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"qhmemT", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !13, i64 64, !6, i64 72, !6, i64 80, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !13, i64 140, !13, i64 144}
!17 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !13, i64 5320, !13, i64 5324, !13, i64 5328, !13, i64 5332, !14, i64 5336}


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