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

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

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@qh_qh = external global %struct.qhT, align 8
@.str.32 = external hidden unnamed_addr constant [69 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @qh_matchvertices(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #2 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store i32 %0, ptr %8, align 4, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store ptr null, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %19 = load ptr, ptr %9, align 8, !tbaa !9
  %20 = getelementptr inbounds %struct.setT, ptr %19, i32 0, i32 1
  %21 = load i32, ptr %8, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [1 x %union.setelemT], ptr %20, i64 0, i64 %22
  store ptr %23, ptr %14, align 8, !tbaa !9
  %24 = load ptr, ptr %11, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct.setT, ptr %24, i32 0, i32 1
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [1 x %union.setelemT], ptr %25, i64 0, i64 %27
  store ptr %28, ptr %15, align 8, !tbaa !9
  %29 = load ptr, ptr %9, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct.setT, ptr %29, i32 0, i32 1
  %31 = load i32, ptr %10, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [1 x %union.setelemT], ptr %30, i64 0, i64 %32
  store ptr %33, ptr %17, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %54, %6
  %35 = load ptr, ptr %14, align 8, !tbaa !9
  %36 = load ptr, ptr %17, align 8, !tbaa !9
  %37 = icmp ne ptr %35, %36
  br i1 %37, label %38, label %53

38:                                               ; preds = %34
  br label %39

39:                                               ; preds = %50, %38
  %40 = load ptr, ptr %14, align 8, !tbaa !9
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = load ptr, ptr %15, align 8, !tbaa !9
  %43 = getelementptr inbounds ptr, ptr %42, i32 1
  store ptr %43, ptr %15, align 8, !tbaa !9
  %44 = load ptr, ptr %42, align 8, !tbaa !9
  %45 = icmp ne ptr %41, %44
  br i1 %45, label %46, label %52

46:                                               ; preds = %39
  %47 = load ptr, ptr %16, align 8, !tbaa !9
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %50

49:                                               ; preds = %46
  store i32 0, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %105

50:                                               ; preds = %46
  %51 = load ptr, ptr %15, align 8, !tbaa !9
  store ptr %51, ptr %16, align 8, !tbaa !9
  br label %39, !llvm.loop !11

52:                                               ; preds = %39
  br label %53

53:                                               ; preds = %52, %34
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %14, align 8, !tbaa !9
  %56 = getelementptr inbounds ptr, ptr %55, i32 1
  store ptr %56, ptr %14, align 8, !tbaa !9
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = icmp ne ptr %57, null
  br i1 %58, label %34, label %59, !llvm.loop !13

59:                                               ; preds = %54
  %60 = load ptr, ptr %16, align 8, !tbaa !9
  %61 = icmp ne ptr %60, null
  br i1 %61, label %65, label %62

62:                                               ; preds = %59
  %63 = load ptr, ptr %15, align 8, !tbaa !9
  %64 = getelementptr inbounds ptr, ptr %63, i32 1
  store ptr %64, ptr %15, align 8, !tbaa !9
  store ptr %64, ptr %16, align 8, !tbaa !9
  br label %65

65:                                               ; preds = %62, %59
  %66 = load ptr, ptr %16, align 8, !tbaa !9
  %67 = load ptr, ptr %11, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.setT, ptr %67, i32 0, i32 1
  %69 = getelementptr inbounds [1 x %union.setelemT], ptr %68, i64 0, i64 1
  %70 = ptrtoint ptr %66 to i64
  %71 = ptrtoint ptr %69 to i64
  %72 = sub i64 %70, %71
  %73 = sdiv exact i64 %72, 8
  %74 = trunc i64 %73 to i32
  %75 = load ptr, ptr %12, align 8, !tbaa !9
  store i32 %74, ptr %75, align 4, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !5
  %77 = and i32 %76, 1
  %78 = load ptr, ptr %12, align 8, !tbaa !9
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = and i32 %79, 1
  %81 = xor i32 %77, %80
  %82 = icmp ne i32 %81, 0
  %83 = xor i1 %82, true
  %84 = zext i1 %83 to i32
  %85 = load ptr, ptr %13, align 8, !tbaa !9
  store i32 %84, ptr %85, align 4, !tbaa !5
  %86 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !14
  %87 = icmp sge i32 %86, 4
  br i1 %87, label %88, label %104

88:                                               ; preds = %65
  %89 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !18
  %90 = load i32, ptr %10, align 4, !tbaa !5
  %91 = load ptr, ptr %17, align 8, !tbaa !9
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.vertexT, ptr %92, i32 0, i32 4
  %94 = load i32, ptr %93, align 8, !tbaa !19
  %95 = load ptr, ptr %12, align 8, !tbaa !9
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = load ptr, ptr %16, align 8, !tbaa !9
  %98 = getelementptr inbounds ptr, ptr %97, i64 -1
  %99 = load ptr, ptr %98, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.vertexT, ptr %99, i32 0, i32 4
  %101 = load i32, ptr %100, align 8, !tbaa !19
  %102 = load ptr, ptr %13, align 8, !tbaa !9
  %103 = load i32, ptr %102, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %89, i32 noundef 4054, ptr noundef @.str.32, i32 noundef %90, i32 noundef %94, i32 noundef %96, i32 noundef %101, i32 noundef %103)
  br label %104

104:                                              ; preds = %88, %65
  store i32 1, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %105

105:                                              ; preds = %104, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  %106 = load i32, ptr %7, align 4
  ret i32 %106
}

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


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

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%union.setelemT = type { ptr }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.str.32 = external hidden unnamed_addr constant [69 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @qh_matchvertices(i32 noundef %0, ptr noundef readonly %1, i32 noundef %2, ptr noundef %3, ptr nocapture noundef %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #1 {
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = sext i32 %0 to i64
  %9 = getelementptr inbounds [1 x %union.setelemT], ptr %7, i64 0, i64 %8
  %10 = getelementptr inbounds i8, ptr %3, i64 8
  %11 = getelementptr inbounds [1 x %union.setelemT], ptr %10, i64 0, i64 %8
  %12 = sext i32 %2 to i64
  %13 = getelementptr inbounds [1 x %union.setelemT], ptr %7, i64 0, i64 %12
  br label %14

14:                                               ; preds = %.loopexit, %6
  %.030 = phi ptr [ %9, %6 ], [ %20, %.loopexit ]
  %.027 = phi ptr [ %11, %6 ], [ %.229, %.loopexit ]
  %.026 = phi ptr [ null, %6 ], [ %.2, %.loopexit ]
  %.not = icmp eq ptr %.030, %13
  br i1 %.not, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %14
  %15 = load ptr, ptr %.030, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %.preheader, %19
  %.128 = phi ptr [ %17, %19 ], [ %.027, %.preheader ]
  %.1 = phi ptr [ %17, %19 ], [ %.026, %.preheader ]
  %17 = getelementptr inbounds i8, ptr %.128, i64 8
  %18 = load ptr, ptr %.128, align 8, !tbaa !5
  %.not31 = icmp eq ptr %15, %18
  br i1 %.not31, label %.loopexit, label %19

19:                                               ; preds = %16
  %.not35 = icmp eq ptr %.1, null
  br i1 %.not35, label %16, label %.loopexit36, !llvm.loop !9

.loopexit:                                        ; preds = %16, %14
  %.229 = phi ptr [ %.027, %14 ], [ %17, %16 ]
  %.2 = phi ptr [ %.026, %14 ], [ %.1, %16 ]
  %20 = getelementptr inbounds i8, ptr %.030, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %.not32 = icmp eq ptr %21, null
  br i1 %.not32, label %22, label %14, !llvm.loop !11

22:                                               ; preds = %.loopexit
  %.not33 = icmp eq ptr %.2, null
  %23 = getelementptr inbounds i8, ptr %.229, i64 8
  %spec.select = select i1 %.not33, ptr %23, ptr %.2
  %24 = getelementptr inbounds i8, ptr %3, i64 16
  %25 = ptrtoint ptr %spec.select to i64
  %26 = ptrtoint ptr %24 to i64
  %27 = sub i64 %25, %26
  %28 = lshr exact i64 %27, 3
  %29 = trunc i64 %28 to i32
  store i32 %29, ptr %4, align 4, !tbaa !12
  %30 = xor i32 %29, %2
  %31 = and i32 %30, 1
  %32 = xor i32 %31, 1
  store i32 %32, ptr %5, align 4, !tbaa !12
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !14
  %34 = icmp sgt i32 %33, 3
  br i1 %34, label %35, label %.loopexit36

35:                                               ; preds = %22
  %36 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !18
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 32
  %39 = load i32, ptr %38, align 8, !tbaa !19
  %40 = load i32, ptr %4, align 4, !tbaa !12
  %41 = getelementptr inbounds i8, ptr %spec.select, i64 -8
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 32
  %44 = load i32, ptr %43, align 8, !tbaa !19
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %36, i32 noundef 4054, ptr noundef nonnull @.str.32, i32 noundef %2, i32 noundef %39, i32 noundef %40, i32 noundef %44, i32 noundef %32) #2
  br label %.loopexit36

.loopexit36:                                      ; preds = %19, %22, %35
  %.0 = phi i32 [ 1, %35 ], [ 1, %22 ], [ 0, %19 ]
  ret i32 %.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, !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 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 136}
!15 = !{!"qhT", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !16, 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, !16, i64 64, !16, 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, !16, i64 160, !16, i64 168, !13, i64 176, !13, i64 180, !13, i64 184, !13, i64 188, !16, i64 192, !16, i64 200, !13, i64 208, !13, i64 212, !16, 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, !16, i64 448, !16, i64 456, !16, 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, !16, 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, !16, 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, !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, !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, !17, 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, !16, i64 2664, !13, i64 2672, !16, i64 2680, !16, i64 2688, !16, i64 2696, !13, i64 2704, !13, i64 2708, !13, i64 2712, !13, i64 2716, !13, i64 2720, !16, i64 2728, !16, i64 2736, !13, i64 2744, !13, i64 2748, !13, i64 2752, !13, i64 2756, !13, i64 2760, !13, i64 2764, !16, i64 2768, !16, 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, !16, i64 2920, !16, i64 2928, !16, i64 2936, !16, i64 2944, !13, i64 2952, !13, i64 2956, !13, i64 2960, !13, i64 2964, !13, i64 2968, !13, i64 2972, !6, i64 2976, !6, i64 2984, !13, i64 2992}
!16 = !{!"double", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!15, !6, i64 2424}
!19 = !{!20, !13, i64 32}
!20 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 40, !13, i64 40, !13, i64 40, !13, i64 40, !13, i64 40}


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