; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (io_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.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }
%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 }
%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 }

@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.184 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.185 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.186 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [7 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

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

16:                                               ; preds = %3
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %17, ptr noundef %18, i32 noundef 9234, ptr noundef @.str.183)
  store i32 1, ptr %13, align 4
  br label %159

19:                                               ; preds = %3
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.vertexT, ptr %23, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = call i32 @qh_pointid(ptr noundef %22, ptr noundef %25)
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.vertexT, ptr %27, i32 0, i32 4
  %29 = load i32, ptr %28, align 8, !tbaa !13
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %20, ptr noundef %21, i32 noundef 9235, ptr noundef @.str.184, i32 noundef %26, i32 noundef %29)
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.vertexT, ptr %30, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  store ptr %32, ptr %7, align 8, !tbaa !5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %51

35:                                               ; preds = %19
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.qhT, ptr %36, i32 0, i32 110
  %38 = load i32, ptr %37, align 8, !tbaa !14
  store i32 %38, ptr %8, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %43, %35
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = add nsw i32 %40, -1
  store i32 %41, ptr %8, align 4, !tbaa !9
  %42 = icmp ne i32 %40, 0
  br i1 %42, label %43, label %50

43:                                               ; preds = %39
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds double, ptr %44, i32 1
  store ptr %45, ptr %7, align 8, !tbaa !5
  %46 = load double, ptr %44, align 8, !tbaa !20
  store double %46, ptr %12, align 8, !tbaa !20
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = load double, ptr %12, align 8, !tbaa !20
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %47, ptr noundef %48, i32 noundef 9236, ptr noundef @.str.185, double noundef %49)
  br label %39, !llvm.loop !21

50:                                               ; preds = %39
  br label %51

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

59:                                               ; preds = %51
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %60, ptr noundef %61, i32 noundef 9237, ptr noundef @.str.186)
  br label %62

62:                                               ; preds = %59, %51
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.vertexT, ptr %63, i32 0, i32 6
  %65 = load i8, ptr %64, align 8
  %66 = lshr i8 %65, 3
  %67 = and i8 %66, 1
  %68 = zext i8 %67 to i32
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %73

70:                                               ; preds = %62
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %71, ptr noundef %72, i32 noundef 9238, ptr noundef @.str.187)
  br label %73

73:                                               ; preds = %70, %62
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.vertexT, ptr %74, i32 0, i32 6
  %76 = load i8, ptr %75, align 8
  %77 = lshr i8 %76, 4
  %78 = and i8 %77, 1
  %79 = zext i8 %78 to i32
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %84

81:                                               ; preds = %73
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %82, ptr noundef %83, i32 noundef 9415, ptr noundef @.str.100)
  br label %84

84:                                               ; preds = %81, %73
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.vertexT, ptr %85, i32 0, i32 6
  %87 = load i8, ptr %86, align 8
  %88 = and i8 %87, 1
  %89 = zext i8 %88 to i32
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %99

91:                                               ; preds = %84
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.qhT, ptr %92, i32 0, i32 29
  %94 = load i32, ptr %93, align 8, !tbaa !23
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %99

96:                                               ; preds = %91
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %97, ptr noundef %98, i32 noundef 9416, ptr noundef @.str.103)
  br label %99

99:                                               ; preds = %96, %91, %84
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.vertexT, ptr %100, i32 0, i32 6
  %102 = load i8, ptr %101, align 8
  %103 = lshr i8 %102, 1
  %104 = and i8 %103, 1
  %105 = zext i8 %104 to i32
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %115

107:                                              ; preds = %99
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.qhT, ptr %108, i32 0, i32 29
  %110 = load i32, ptr %109, align 8, !tbaa !23
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %115

112:                                              ; preds = %107
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %113, ptr noundef %114, i32 noundef 9417, ptr noundef @.str.104)
  br label %115

115:                                              ; preds = %112, %107, %99
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %116, ptr noundef %117, i32 noundef 9239, ptr noundef @.str.18)
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.vertexT, ptr %118, i32 0, i32 3
  %120 = load ptr, ptr %119, align 8, !tbaa !24
  %121 = icmp ne ptr %120, null
  br i1 %121, label %122, label %158

122:                                              ; preds = %115
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %123, ptr noundef %124, i32 noundef 9240, ptr noundef @.str.188)
  store ptr null, ptr %10, align 8, !tbaa !5
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.vertexT, ptr %125, i32 0, i32 3
  %127 = load ptr, ptr %126, align 8, !tbaa !24
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %155

129:                                              ; preds = %122
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.vertexT, ptr %130, i32 0, i32 3
  %132 = load ptr, ptr %131, align 8, !tbaa !24
  %133 = getelementptr inbounds %struct.setT, ptr %132, i32 0, i32 1
  %134 = getelementptr inbounds [1 x %union.setelemT], ptr %133, i64 0, i64 0
  store ptr %134, ptr %11, align 8, !tbaa !5
  br label %135

135:                                              ; preds = %148, %129
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = getelementptr inbounds ptr, ptr %136, i32 1
  store ptr %137, ptr %11, align 8, !tbaa !5
  %138 = load ptr, ptr %136, align 8, !tbaa !5
  store ptr %138, ptr %10, align 8, !tbaa !5
  %139 = icmp ne ptr %138, null
  br i1 %139, label %140, label %154

140:                                              ; preds = %135
  %141 = load i32, ptr %9, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %9, align 4, !tbaa !9
  %143 = srem i32 %142, 100
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %148

145:                                              ; preds = %140
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %146, ptr noundef %147, i32 noundef 9241, ptr noundef @.str.189)
  br label %148

148:                                              ; preds = %145, %140
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.facetT, ptr %151, i32 0, i32 14
  %153 = load i32, ptr %152, align 4, !tbaa !25
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %149, ptr noundef %150, i32 noundef 9242, ptr noundef @.str.143, i32 noundef %153)
  br label %135, !llvm.loop !27

154:                                              ; preds = %135
  br label %155

155:                                              ; preds = %154, %122
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %156, ptr noundef %157, i32 noundef 9243, ptr noundef @.str.18)
  br label %158

158:                                              ; preds = %155, %115
  store i32 0, ptr %13, align 4
  br label %159

159:                                              ; preds = %158, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  %160 = load i32, ptr %13, align 4
  switch i32 %160, label %162 [
    i32 0, label %161
    i32 1, label %161
  ]

161:                                              ; preds = %159, %159
  ret void

162:                                              ; preds = %159
  unreachable
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40}
!13 = !{!12, !10, i64 32}
!14 = !{!15, !10, i64 632}
!15 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !16, 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, !16, i64 64, !16, 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, !16, i64 160, !16, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !16, i64 192, !16, i64 200, !10, i64 208, !10, i64 212, !16, 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, !16, i64 448, !16, i64 456, !16, 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, !16, 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, !16, 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, !16, i64 1760, !16, i64 1768, !16, i64 1776, !16, i64 1784, !16, i64 1792, !16, i64 1800, !16, i64 1808, !16, i64 1816, !16, i64 1824, !16, i64 1832, !16, i64 1840, !16, i64 1848, !16, i64 1856, !16, i64 1864, !6, i64 1872, !16, i64 1880, !16, i64 1888, !16, i64 1896, !16, 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, !17, 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, !16, i64 2664, !10, i64 2672, !16, i64 2680, !16, i64 2688, !16, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !16, i64 2728, !16, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !16, i64 2768, !16, 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, !16, i64 2920, !16, i64 2928, !16, i64 2936, !16, 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, !16, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !18, i64 3272, !19, i64 3424}
!16 = !{!"double", !7, i64 0}
!17 = !{!"long", !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, !16, i64 5336}
!20 = !{!16, !16, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!15, !10, i64 136}
!24 = !{!12, !6, i64 24}
!25 = !{!26, !10, i64 108}
!26 = !{!"facetT", !16, i64 0, !16, i64 8, !16, i64 16, !6, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115}
!27 = distinct !{!27, !22}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.184 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.185 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.186 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [7 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_printvertex(ptr noundef %0, ptr noundef %1, ptr noundef readonly %2) local_unnamed_addr #1 {
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %4, label %5

4:                                                ; preds = %3
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9234, ptr noundef nonnull @.str.183) #2
  br label %59

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %2, i64 16
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = tail call i32 @qh_pointid(ptr noundef %0, ptr noundef %7) #2
  %9 = getelementptr inbounds i8, ptr %2, i64 32
  %10 = load i32, ptr %9, align 8, !tbaa !11
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9235, ptr noundef nonnull @.str.184, i32 noundef %8, i32 noundef %10) #2
  %11 = load ptr, ptr %6, align 8, !tbaa !5
  %.not55 = icmp eq ptr %11, null
  br i1 %.not55, label %.loopexit67, label %12

12:                                               ; preds = %5
  %13 = getelementptr inbounds i8, ptr %0, i64 632
  %14 = load i32, ptr %13, align 8, !tbaa !12
  %.not5668 = icmp eq i32 %14, 0
  br i1 %.not5668, label %.loopexit67, label %.lr.ph

.lr.ph:                                           ; preds = %12, %.lr.ph
  %.070 = phi ptr [ %16, %.lr.ph ], [ %11, %12 ]
  %.05069 = phi i32 [ %15, %.lr.ph ], [ %14, %12 ]
  %15 = add nsw i32 %.05069, -1
  %16 = getelementptr inbounds i8, ptr %.070, i64 8
  %17 = load double, ptr %.070, align 8, !tbaa !18
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9236, ptr noundef nonnull @.str.185, double noundef %17) #2
  %.not56 = icmp eq i32 %15, 0
  br i1 %.not56, label %.loopexit67, label %.lr.ph, !llvm.loop !19

.loopexit67:                                      ; preds = %.lr.ph, %12, %5
  %18 = getelementptr inbounds i8, ptr %2, i64 40
  %19 = load i8, ptr %18, align 8
  %20 = and i8 %19, 4
  %.not57 = icmp eq i8 %20, 0
  br i1 %.not57, label %22, label %21

21:                                               ; preds = %.loopexit67
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9237, ptr noundef nonnull @.str.186) #2
  %.pre = load i8, ptr %18, align 8
  br label %22

22:                                               ; preds = %21, %.loopexit67
  %23 = phi i8 [ %.pre, %21 ], [ %19, %.loopexit67 ]
  %24 = and i8 %23, 8
  %.not58 = icmp eq i8 %24, 0
  br i1 %.not58, label %26, label %25

25:                                               ; preds = %22
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9238, ptr noundef nonnull @.str.187) #2
  %.pre76 = load i8, ptr %18, align 8
  br label %26

26:                                               ; preds = %25, %22
  %27 = phi i8 [ %.pre76, %25 ], [ %23, %22 ]
  %28 = and i8 %27, 16
  %.not59 = icmp eq i8 %28, 0
  br i1 %.not59, label %30, label %29

29:                                               ; preds = %26
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9415, ptr noundef nonnull @.str.100) #2
  %.pre77 = load i8, ptr %18, align 8
  br label %30

30:                                               ; preds = %29, %26
  %31 = phi i8 [ %.pre77, %29 ], [ %27, %26 ]
  %32 = and i8 %31, 1
  %.not60 = icmp eq i8 %32, 0
  br i1 %.not60, label %37, label %33

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %0, i64 136
  %35 = load i32, ptr %34, align 8, !tbaa !21
  %.not61 = icmp eq i32 %35, 0
  br i1 %.not61, label %37, label %36

36:                                               ; preds = %33
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9416, ptr noundef nonnull @.str.103) #2
  %.pre78 = load i8, ptr %18, align 8
  br label %37

37:                                               ; preds = %36, %33, %30
  %38 = phi i8 [ %.pre78, %36 ], [ %31, %33 ], [ %31, %30 ]
  %39 = and i8 %38, 2
  %.not62 = icmp eq i8 %39, 0
  br i1 %.not62, label %44, label %40

40:                                               ; preds = %37
  %41 = getelementptr inbounds i8, ptr %0, i64 136
  %42 = load i32, ptr %41, align 8, !tbaa !21
  %.not63 = icmp eq i32 %42, 0
  br i1 %.not63, label %44, label %43

43:                                               ; preds = %40
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9417, ptr noundef nonnull @.str.104) #2
  br label %44

44:                                               ; preds = %43, %40, %37
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9239, ptr noundef nonnull @.str.18) #2
  %45 = getelementptr inbounds i8, ptr %2, i64 24
  %46 = load ptr, ptr %45, align 8, !tbaa !22
  %.not64 = icmp eq ptr %46, null
  br i1 %.not64, label %59, label %47

47:                                               ; preds = %44
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9240, ptr noundef nonnull @.str.188) #2
  %48 = load ptr, ptr %45, align 8, !tbaa !22
  %.not65 = icmp eq ptr %48, null
  br i1 %.not65, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %47
  %.04871 = getelementptr inbounds i8, ptr %48, i64 8
  %49 = load ptr, ptr %.04871, align 8, !tbaa !23
  %.not6672 = icmp eq ptr %49, null
  br i1 %.not6672, label %.loopexit, label %.lr.ph75

.lr.ph75:                                         ; preds = %.preheader, %55
  %50 = phi ptr [ %58, %55 ], [ %49, %.preheader ]
  %.04874 = phi ptr [ %.048, %55 ], [ %.04871, %.preheader ]
  %.04973 = phi i32 [ %51, %55 ], [ 0, %.preheader ]
  %51 = add nuw nsw i32 %.04973, 1
  %52 = urem i32 %51, 100
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %.lr.ph75
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9241, ptr noundef nonnull @.str.189) #2
  br label %55

55:                                               ; preds = %54, %.lr.ph75
  %56 = getelementptr inbounds i8, ptr %50, i64 108
  %57 = load i32, ptr %56, align 4, !tbaa !24
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9242, ptr noundef nonnull @.str.143, i32 noundef %57) #2
  %.048 = getelementptr inbounds i8, ptr %.04874, i64 8
  %58 = load ptr, ptr %.048, align 8, !tbaa !23
  %.not66 = icmp eq ptr %58, null
  br i1 %.not66, label %.loopexit, label %.lr.ph75, !llvm.loop !26

.loopexit:                                        ; preds = %55, %.preheader, %47
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9243, ptr noundef nonnull @.str.18) #2
  br label %59

59:                                               ; preds = %44, %.loopexit, %4
  ret void
}

declare i32 @qh_pointid(ptr noundef, ptr noundef) local_unnamed_addr #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" }
attributes #2 = { nounwind }

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

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


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