; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (global_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.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.5 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_freebuffers(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds %struct.qhT, ptr %3, i32 0, i32 29
  %5 = load i32, ptr %4, align 8, !tbaa !9
  %6 = icmp sge i32 %5, 5
  br i1 %6, label %7, label %12

7:                                                ; preds = %1
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.qhT, ptr %9, i32 0, i32 158
  %11 = load ptr, ptr %10, align 8, !tbaa !16
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %8, ptr noundef %11, i32 noundef 5001, ptr noundef @.str.5)
  br label %12

12:                                               ; preds = %7, %1
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.qhT, ptr %14, i32 0, i32 225
  call void @qh_setfree(ptr noundef %13, ptr noundef %15)
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.qhT, ptr %17, i32 0, i32 226
  call void @qh_setfree(ptr noundef %16, ptr noundef %18)
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.qhT, ptr %20, i32 0, i32 236
  call void @qh_setfree(ptr noundef %19, ptr noundef %21)
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.qhT, ptr %23, i32 0, i32 145
  %25 = load ptr, ptr %24, align 8, !tbaa !17
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.qhT, ptr %26, i32 0, i32 110
  %28 = load i32, ptr %27, align 8, !tbaa !18
  %29 = mul nsw i32 %28, 8
  call void @qh_memfree(ptr noundef %22, ptr noundef %25, i32 noundef %29)
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.qhT, ptr %31, i32 0, i32 128
  %33 = load ptr, ptr %32, align 8, !tbaa !19
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.qhT, ptr %34, i32 0, i32 111
  %36 = load i32, ptr %35, align 4, !tbaa !20
  %37 = add nsw i32 %36, 1
  %38 = mul nsw i32 %37, 8
  call void @qh_memfree(ptr noundef %30, ptr noundef %33, i32 noundef %38)
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.qhT, ptr %40, i32 0, i32 127
  %42 = load ptr, ptr %41, align 8, !tbaa !21
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.qhT, ptr %43, i32 0, i32 111
  %45 = load i32, ptr %44, align 4, !tbaa !20
  %46 = add nsw i32 %45, 1
  %47 = mul nsw i32 %46, 8
  call void @qh_memfree(ptr noundef %39, ptr noundef %42, i32 noundef %47)
  %48 = load ptr, ptr %2, align 8, !tbaa !5
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.qhT, ptr %49, i32 0, i32 130
  %51 = load ptr, ptr %50, align 8, !tbaa !22
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.qhT, ptr %52, i32 0, i32 111
  %54 = load i32, ptr %53, align 4, !tbaa !20
  %55 = add nsw i32 %54, 1
  %56 = mul nsw i32 %55, 8
  call void @qh_memfree(ptr noundef %48, ptr noundef %51, i32 noundef %56)
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.qhT, ptr %58, i32 0, i32 129
  %60 = load ptr, ptr %59, align 8, !tbaa !23
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.qhT, ptr %61, i32 0, i32 111
  %63 = load i32, ptr %62, align 4, !tbaa !20
  %64 = add nsw i32 %63, 1
  %65 = mul nsw i32 %64, 8
  call void @qh_memfree(ptr noundef %57, ptr noundef %60, i32 noundef %65)
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.qhT, ptr %67, i32 0, i32 227
  %69 = load ptr, ptr %68, align 8, !tbaa !24
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.qhT, ptr %70, i32 0, i32 110
  %72 = load i32, ptr %71, align 8, !tbaa !18
  %73 = add nsw i32 %72, 1
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.qhT, ptr %74, i32 0, i32 110
  %76 = load i32, ptr %75, align 8, !tbaa !18
  %77 = mul nsw i32 %73, %76
  %78 = mul nsw i32 %77, 8
  call void @qh_memfree(ptr noundef %66, ptr noundef %69, i32 noundef %78)
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.qhT, ptr %80, i32 0, i32 228
  %82 = load ptr, ptr %81, align 8, !tbaa !25
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.qhT, ptr %83, i32 0, i32 110
  %85 = load i32, ptr %84, align 8, !tbaa !18
  %86 = add nsw i32 %85, 1
  %87 = mul nsw i32 %86, 8
  call void @qh_memfree(ptr noundef %79, ptr noundef %82, i32 noundef %87)
  %88 = load ptr, ptr %2, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.qhT, ptr %88, i32 0, i32 127
  store ptr null, ptr %89, align 8, !tbaa !21
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.qhT, ptr %90, i32 0, i32 128
  store ptr null, ptr %91, align 8, !tbaa !19
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.qhT, ptr %92, i32 0, i32 145
  store ptr null, ptr %93, align 8, !tbaa !17
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.qhT, ptr %94, i32 0, i32 129
  store ptr null, ptr %95, align 8, !tbaa !23
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.qhT, ptr %96, i32 0, i32 130
  store ptr null, ptr %97, align 8, !tbaa !22
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.qhT, ptr %98, i32 0, i32 227
  store ptr null, ptr %99, align 8, !tbaa !24
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.qhT, ptr %100, i32 0, i32 228
  store ptr null, ptr %101, align 8, !tbaa !25
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.qhT, ptr %102, i32 0, i32 229
  %104 = load ptr, ptr %103, align 8, !tbaa !26
  %105 = icmp ne ptr %104, null
  br i1 %105, label %106, label %110

106:                                              ; preds = %12
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.qhT, ptr %107, i32 0, i32 229
  %109 = load ptr, ptr %108, align 8, !tbaa !26
  call void @qh_free(ptr noundef %109)
  br label %110

110:                                              ; preds = %106, %12
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.qhT, ptr %111, i32 0, i32 231
  %113 = load ptr, ptr %112, align 8, !tbaa !27
  %114 = icmp ne ptr %113, null
  br i1 %114, label %115, label %119

115:                                              ; preds = %110
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.qhT, ptr %116, i32 0, i32 231
  %118 = load ptr, ptr %117, align 8, !tbaa !27
  call void @qh_free(ptr noundef %118)
  br label %119

119:                                              ; preds = %115, %110
  %120 = load ptr, ptr %2, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.qhT, ptr %120, i32 0, i32 232
  %122 = load ptr, ptr %121, align 8, !tbaa !28
  %123 = icmp ne ptr %122, null
  br i1 %123, label %124, label %128

124:                                              ; preds = %119
  %125 = load ptr, ptr %2, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.qhT, ptr %125, i32 0, i32 232
  %127 = load ptr, ptr %126, align 8, !tbaa !28
  call void @qh_free(ptr noundef %127)
  br label %128

128:                                              ; preds = %124, %119
  %129 = load ptr, ptr %2, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.qhT, ptr %129, i32 0, i32 107
  %131 = load ptr, ptr %130, align 8, !tbaa !29
  %132 = icmp ne ptr %131, null
  br i1 %132, label %133, label %137

133:                                              ; preds = %128
  %134 = load ptr, ptr %2, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.qhT, ptr %134, i32 0, i32 107
  %136 = load ptr, ptr %135, align 8, !tbaa !29
  call void @qh_free(ptr noundef %136)
  br label %137

137:                                              ; preds = %133, %128
  %138 = load ptr, ptr %2, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.qhT, ptr %138, i32 0, i32 106
  %140 = load ptr, ptr %139, align 8, !tbaa !30
  %141 = icmp ne ptr %140, null
  br i1 %141, label %142, label %146

142:                                              ; preds = %137
  %143 = load ptr, ptr %2, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.qhT, ptr %143, i32 0, i32 106
  %145 = load ptr, ptr %144, align 8, !tbaa !30
  call void @qh_free(ptr noundef %145)
  br label %146

146:                                              ; preds = %142, %137
  %147 = load ptr, ptr %2, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.qhT, ptr %147, i32 0, i32 106
  store ptr null, ptr %148, align 8, !tbaa !30
  %149 = load ptr, ptr %2, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.qhT, ptr %149, i32 0, i32 229
  store ptr null, ptr %150, align 8, !tbaa !26
  %151 = load ptr, ptr %2, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.qhT, ptr %151, i32 0, i32 232
  store ptr null, ptr %152, align 8, !tbaa !28
  %153 = load ptr, ptr %2, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.qhT, ptr %153, i32 0, i32 107
  store ptr null, ptr %154, align 8, !tbaa !29
  %155 = load ptr, ptr %2, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.qhT, ptr %155, i32 0, i32 231
  store ptr null, ptr %156, align 8, !tbaa !27
  %157 = load ptr, ptr %2, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.qhT, ptr %157, i32 0, i32 113
  %159 = load ptr, ptr %158, align 8, !tbaa !31
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %172

161:                                              ; preds = %146
  %162 = load ptr, ptr %2, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.qhT, ptr %162, i32 0, i32 114
  %164 = load i32, ptr %163, align 8, !tbaa !32
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %172

166:                                              ; preds = %161
  %167 = load ptr, ptr %2, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.qhT, ptr %167, i32 0, i32 113
  %169 = load ptr, ptr %168, align 8, !tbaa !31
  call void @qh_free(ptr noundef %169)
  %170 = load ptr, ptr %2, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.qhT, ptr %170, i32 0, i32 113
  store ptr null, ptr %171, align 8, !tbaa !31
  br label %172

172:                                              ; preds = %166, %161, %146
  %173 = load ptr, ptr %2, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.qhT, ptr %173, i32 0, i32 115
  %175 = load ptr, ptr %174, align 8, !tbaa !33
  %176 = icmp ne ptr %175, null
  br i1 %176, label %177, label %188

177:                                              ; preds = %172
  %178 = load ptr, ptr %2, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.qhT, ptr %178, i32 0, i32 116
  %180 = load i32, ptr %179, align 8, !tbaa !34
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %188

182:                                              ; preds = %177
  %183 = load ptr, ptr %2, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.qhT, ptr %183, i32 0, i32 115
  %185 = load ptr, ptr %184, align 8, !tbaa !33
  call void @qh_free(ptr noundef %185)
  %186 = load ptr, ptr %2, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.qhT, ptr %186, i32 0, i32 115
  store ptr null, ptr %187, align 8, !tbaa !33
  br label %188

188:                                              ; preds = %182, %177, %172
  %189 = load ptr, ptr %2, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.qhT, ptr %189, i32 0, i32 29
  %191 = load i32, ptr %190, align 8, !tbaa !9
  %192 = icmp sge i32 %191, 5
  br i1 %192, label %193, label %198

193:                                              ; preds = %188
  %194 = load ptr, ptr %2, align 8, !tbaa !5
  %195 = load ptr, ptr %2, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.qhT, ptr %195, i32 0, i32 158
  %197 = load ptr, ptr %196, align 8, !tbaa !16
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %194, ptr noundef %197, i32 noundef 5002, ptr noundef @.str.6)
  br label %198

198:                                              ; preds = %193, %188
  ret void
}

declare void @qh_setfree(ptr noundef, ptr noundef) #0

declare void @qh_memfree(ptr noundef, ptr noundef, i32 noundef) #0

declare void @qh_free(ptr noundef) #0

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

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


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

@.str.5 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_freebuffers(ptr noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 136
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = icmp sgt i32 %3, 4
  br i1 %4, label %5, label %8

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 2424
  %7 = load ptr, ptr %6, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %7, i32 noundef 5001, ptr noundef nonnull @.str.5) #3
  br label %8

8:                                                ; preds = %5, %1
  %9 = getelementptr inbounds i8, ptr %0, i64 2832
  tail call void @qh_setfree(ptr noundef nonnull %0, ptr noundef nonnull %9) #3
  %10 = getelementptr inbounds i8, ptr %0, i64 2840
  tail call void @qh_setfree(ptr noundef nonnull %0, ptr noundef nonnull %10) #3
  %11 = getelementptr inbounds i8, ptr %0, i64 2912
  tail call void @qh_setfree(ptr noundef nonnull %0, ptr noundef nonnull %11) #3
  %12 = getelementptr inbounds i8, ptr %0, i64 1872
  %13 = load ptr, ptr %12, align 8, !tbaa !16
  %14 = getelementptr inbounds i8, ptr %0, i64 632
  %15 = load i32, ptr %14, align 8, !tbaa !17
  %16 = shl nsw i32 %15, 3
  tail call void @qh_memfree(ptr noundef nonnull %0, ptr noundef %13, i32 noundef %16) #3
  %17 = getelementptr inbounds i8, ptr %0, i64 1736
  %18 = load ptr, ptr %17, align 8, !tbaa !18
  %19 = getelementptr inbounds i8, ptr %0, i64 636
  %20 = load i32, ptr %19, align 4, !tbaa !19
  %21 = shl i32 %20, 3
  %22 = add i32 %21, 8
  tail call void @qh_memfree(ptr noundef nonnull %0, ptr noundef %18, i32 noundef %22) #3
  %23 = getelementptr inbounds i8, ptr %0, i64 1728
  %24 = load ptr, ptr %23, align 8, !tbaa !20
  %25 = load i32, ptr %19, align 4, !tbaa !19
  %26 = shl i32 %25, 3
  %27 = add i32 %26, 8
  tail call void @qh_memfree(ptr noundef nonnull %0, ptr noundef %24, i32 noundef %27) #3
  %28 = getelementptr inbounds i8, ptr %0, i64 1752
  %29 = load ptr, ptr %28, align 8, !tbaa !21
  %30 = load i32, ptr %19, align 4, !tbaa !19
  %31 = shl i32 %30, 3
  %32 = add i32 %31, 8
  tail call void @qh_memfree(ptr noundef nonnull %0, ptr noundef %29, i32 noundef %32) #3
  %33 = getelementptr inbounds i8, ptr %0, i64 1744
  %34 = load ptr, ptr %33, align 8, !tbaa !22
  %35 = load i32, ptr %19, align 4, !tbaa !19
  %36 = shl i32 %35, 3
  %37 = add i32 %36, 8
  tail call void @qh_memfree(ptr noundef nonnull %0, ptr noundef %34, i32 noundef %37) #3
  %38 = getelementptr inbounds i8, ptr %0, i64 2848
  %39 = load ptr, ptr %38, align 8, !tbaa !23
  %40 = load i32, ptr %14, align 8, !tbaa !17
  %41 = add nsw i32 %40, 1
  %42 = shl i32 %40, 3
  %43 = mul i32 %42, %41
  tail call void @qh_memfree(ptr noundef nonnull %0, ptr noundef %39, i32 noundef %43) #3
  %44 = getelementptr inbounds i8, ptr %0, i64 2856
  %45 = load ptr, ptr %44, align 8, !tbaa !24
  %46 = load i32, ptr %14, align 8, !tbaa !17
  %47 = shl i32 %46, 3
  %48 = add i32 %47, 8
  tail call void @qh_memfree(ptr noundef nonnull %0, ptr noundef %45, i32 noundef %48) #3
  store ptr null, ptr %12, align 8, !tbaa !16
  %49 = getelementptr inbounds i8, ptr %0, i64 2864
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %23, i8 0, i64 32, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %38, i8 0, i64 16, i1 false)
  %50 = load ptr, ptr %49, align 8, !tbaa !25
  %.not = icmp eq ptr %50, null
  br i1 %.not, label %52, label %51

51:                                               ; preds = %8
  tail call void @qh_free(ptr noundef nonnull %50) #3
  br label %52

52:                                               ; preds = %51, %8
  %53 = getelementptr inbounds i8, ptr %0, i64 2880
  %54 = load ptr, ptr %53, align 8, !tbaa !26
  %.not70 = icmp eq ptr %54, null
  br i1 %.not70, label %56, label %55

55:                                               ; preds = %52
  tail call void @qh_free(ptr noundef nonnull %54) #3
  br label %56

56:                                               ; preds = %55, %52
  %57 = getelementptr inbounds i8, ptr %0, i64 2888
  %58 = load ptr, ptr %57, align 8, !tbaa !27
  %.not71 = icmp eq ptr %58, null
  br i1 %.not71, label %60, label %59

59:                                               ; preds = %56
  tail call void @qh_free(ptr noundef nonnull %58) #3
  br label %60

60:                                               ; preds = %59, %56
  %61 = getelementptr inbounds i8, ptr %0, i64 616
  %62 = load ptr, ptr %61, align 8, !tbaa !28
  %.not72 = icmp eq ptr %62, null
  br i1 %.not72, label %64, label %63

63:                                               ; preds = %60
  tail call void @qh_free(ptr noundef nonnull %62) #3
  br label %64

64:                                               ; preds = %63, %60
  %65 = getelementptr inbounds i8, ptr %0, i64 608
  %66 = load ptr, ptr %65, align 8, !tbaa !29
  %.not73 = icmp eq ptr %66, null
  br i1 %.not73, label %68, label %67

67:                                               ; preds = %64
  tail call void @qh_free(ptr noundef nonnull %66) #3
  br label %68

68:                                               ; preds = %67, %64
  store ptr null, ptr %49, align 8, !tbaa !25
  %69 = getelementptr inbounds i8, ptr %0, i64 648
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %65, i8 0, i64 16, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %53, i8 0, i64 16, i1 false)
  %70 = load ptr, ptr %69, align 8, !tbaa !30
  %.not74 = icmp eq ptr %70, null
  br i1 %.not74, label %75, label %71

71:                                               ; preds = %68
  %72 = getelementptr inbounds i8, ptr %0, i64 656
  %73 = load i32, ptr %72, align 8, !tbaa !31
  %.not75 = icmp eq i32 %73, 0
  br i1 %.not75, label %75, label %74

74:                                               ; preds = %71
  tail call void @qh_free(ptr noundef nonnull %70) #3
  store ptr null, ptr %69, align 8, !tbaa !30
  br label %75

75:                                               ; preds = %74, %71, %68
  %76 = getelementptr inbounds i8, ptr %0, i64 664
  %77 = load ptr, ptr %76, align 8, !tbaa !32
  %.not76 = icmp eq ptr %77, null
  br i1 %.not76, label %82, label %78

78:                                               ; preds = %75
  %79 = getelementptr inbounds i8, ptr %0, i64 672
  %80 = load i32, ptr %79, align 8, !tbaa !33
  %.not77 = icmp eq i32 %80, 0
  br i1 %.not77, label %82, label %81

81:                                               ; preds = %78
  tail call void @qh_free(ptr noundef nonnull %77) #3
  store ptr null, ptr %76, align 8, !tbaa !32
  br label %82

82:                                               ; preds = %81, %78, %75
  %83 = load i32, ptr %2, align 8, !tbaa !5
  %84 = icmp sgt i32 %83, 4
  br i1 %84, label %85, label %88

85:                                               ; preds = %82
  %86 = getelementptr inbounds i8, ptr %0, i64 2424
  %87 = load ptr, ptr %86, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %87, i32 noundef 5002, ptr noundef nonnull @.str.6) #3
  br label %88

88:                                               ; preds = %85, %82
  ret void
}

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

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

declare void @qh_free(ptr noundef) local_unnamed_addr #0

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 136}
!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, !7, i64 2984, !7, i64 2988, !8, i64 2992, !8, i64 3192, !7, i64 3232, !10, i64 3240, !11, i64 3248, !11, i64 3256, !11, i64 3264, !13, i64 3272, !14, i64 3424}
!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 = !{!"qhmemT", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !7, i64 64, !11, i64 72, !11, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144}
!14 = !{!"qhstatT", !8, i64 0, !8, i64 1992, !8, i64 2256, !8, i64 4248, !8, i64 4746, !8, i64 4995, !8, i64 5248, !7, i64 5320, !7, i64 5324, !7, i64 5328, !7, i64 5332, !10, i64 5336}
!15 = !{!6, !11, i64 2424}
!16 = !{!6, !11, i64 1872}
!17 = !{!6, !7, i64 632}
!18 = !{!6, !11, i64 1736}
!19 = !{!6, !7, i64 636}
!20 = !{!6, !11, i64 1728}
!21 = !{!6, !11, i64 1752}
!22 = !{!6, !11, i64 1744}
!23 = !{!6, !11, i64 2848}
!24 = !{!6, !11, i64 2856}
!25 = !{!6, !11, i64 2864}
!26 = !{!6, !11, i64 2880}
!27 = !{!6, !11, i64 2888}
!28 = !{!6, !11, i64 616}
!29 = !{!6, !11, i64 608}
!30 = !{!6, !11, i64 648}
!31 = !{!6, !7, i64 656}
!32 = !{!6, !11, i64 664}
!33 = !{!6, !7, i64 672}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InstCombinePass,MemCpyOptPass,ReassociatePass,SROAPass,TailCallElimPass