; LLVM IR from Discngine/fpocket :: src/qhull/src/libqhull (poly2)

; 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, double, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, double, i32, double, i32, 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, i32, double, double, double, 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, i32, ptr, double, double, double, double, [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, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, ptr, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, 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.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@qh_qh = external global %struct.qhT, align 8
@.str.113 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [85 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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printlists() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !5
  %4 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %4, i32 noundef 8108, ptr noundef @.str.138)
  %5 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 156), align 8, !tbaa !14
  store ptr %5, ptr %1, align 8, !tbaa !15
  br label %6

6:                                                ; preds = %28, %0
  %7 = load ptr, ptr %1, align 8, !tbaa !15
  %8 = icmp ne ptr %7, null
  br i1 %8, label %9, label %14

9:                                                ; preds = %6
  %10 = load ptr, ptr %1, align 8, !tbaa !15
  %11 = getelementptr inbounds %struct.facetT, ptr %10, i32 0, i32 7
  %12 = load ptr, ptr %11, align 8, !tbaa !16
  %13 = icmp ne ptr %12, null
  br label %14

14:                                               ; preds = %9, %6
  %15 = phi i1 [ false, %6 ], [ %13, %9 ]
  br i1 %15, label %16, label %32

16:                                               ; preds = %14
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %3, align 4, !tbaa !5
  %19 = srem i32 %18, 100
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %23

21:                                               ; preds = %16
  %22 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %22, i32 noundef 8109, ptr noundef @.str.139)
  br label %23

23:                                               ; preds = %21, %16
  %24 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !9
  %25 = load ptr, ptr %1, align 8, !tbaa !15
  %26 = getelementptr inbounds %struct.facetT, ptr %25, i32 0, i32 14
  %27 = load i32, ptr %26, align 4, !tbaa !18
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %24, i32 noundef 8110, ptr noundef @.str.137, i32 noundef %27)
  br label %28

28:                                               ; preds = %23
  %29 = load ptr, ptr %1, align 8, !tbaa !15
  %30 = getelementptr inbounds %struct.facetT, ptr %29, i32 0, i32 7
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  store ptr %31, ptr %1, align 8, !tbaa !15
  br label %6, !llvm.loop !19

32:                                               ; preds = %14
  %33 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !9
  %34 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 159), align 8, !tbaa !21
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %40

36:                                               ; preds = %32
  %37 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 159), align 8, !tbaa !21
  %38 = getelementptr inbounds %struct.facetT, ptr %37, i32 0, i32 14
  %39 = load i32, ptr %38, align 4, !tbaa !18
  br label %41

40:                                               ; preds = %32
  br label %41

41:                                               ; preds = %40, %36
  %42 = phi i32 [ %39, %36 ], [ -1, %40 ]
  %43 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !22
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %49

45:                                               ; preds = %41
  %46 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !22
  %47 = getelementptr inbounds %struct.facetT, ptr %46, i32 0, i32 14
  %48 = load i32, ptr %47, align 4, !tbaa !18
  br label %50

49:                                               ; preds = %41
  br label %50

50:                                               ; preds = %49, %45
  %51 = phi i32 [ %48, %45 ], [ -1, %49 ]
  %52 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %58

54:                                               ; preds = %50
  %55 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %56 = getelementptr inbounds %struct.facetT, ptr %55, i32 0, i32 14
  %57 = load i32, ptr %56, align 4, !tbaa !18
  br label %59

58:                                               ; preds = %50
  br label %59

59:                                               ; preds = %58, %54
  %60 = phi i32 [ %57, %54 ], [ -1, %58 ]
  %61 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !24
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %67

63:                                               ; preds = %59
  %64 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !24
  %65 = getelementptr inbounds %struct.vertexT, ptr %64, i32 0, i32 4
  %66 = load i32, ptr %65, align 8, !tbaa !25
  br label %68

67:                                               ; preds = %59
  br label %68

68:                                               ; preds = %67, %63
  %69 = phi i32 [ %66, %63 ], [ -1, %67 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %33, i32 noundef 8111, ptr noundef @.str.140, i32 noundef %42, i32 noundef %51, i32 noundef %60, i32 noundef %69)
  store i32 0, ptr %3, align 4, !tbaa !5
  %70 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !27
  store ptr %70, ptr %2, align 8, !tbaa !15
  br label %71

71:                                               ; preds = %93, %68
  %72 = load ptr, ptr %2, align 8, !tbaa !15
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %79

74:                                               ; preds = %71
  %75 = load ptr, ptr %2, align 8, !tbaa !15
  %76 = getelementptr inbounds %struct.vertexT, ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !28
  %78 = icmp ne ptr %77, null
  br label %79

79:                                               ; preds = %74, %71
  %80 = phi i1 [ false, %71 ], [ %78, %74 ]
  br i1 %80, label %81, label %97

81:                                               ; preds = %79
  %82 = load i32, ptr %3, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %3, align 4, !tbaa !5
  %84 = srem i32 %83, 100
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %86, label %88

86:                                               ; preds = %81
  %87 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %87, i32 noundef 8112, ptr noundef @.str.139)
  br label %88

88:                                               ; preds = %86, %81
  %89 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !9
  %90 = load ptr, ptr %2, align 8, !tbaa !15
  %91 = getelementptr inbounds %struct.vertexT, ptr %90, i32 0, i32 4
  %92 = load i32, ptr %91, align 8, !tbaa !25
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %89, i32 noundef 8113, ptr noundef @.str.137, i32 noundef %92)
  br label %93

93:                                               ; preds = %88
  %94 = load ptr, ptr %2, align 8, !tbaa !15
  %95 = getelementptr inbounds %struct.vertexT, ptr %94, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8, !tbaa !28
  store ptr %96, ptr %2, align 8, !tbaa !15
  br label %71, !llvm.loop !29

97:                                               ; preds = %79
  %98 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %98, i32 noundef 8114, ptr noundef @.str.113)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 2408}
!10 = !{!"qhT", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !11, i64 56, !11, i64 64, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !12, i64 96, !6, i64 104, !6, i64 108, !12, i64 112, !6, i64 120, !6, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144, !11, i64 152, !11, i64 160, !6, i64 168, !6, i64 172, !6, i64 176, !11, i64 184, !11, i64 192, !6, i64 200, !11, i64 208, !6, i64 216, !6, i64 220, !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, !7, i64 296, !6, i64 412, !6, i64 416, !6, i64 420, !6, i64 424, !6, i64 428, !6, i64 432, !6, i64 436, !6, i64 440, !6, i64 444, !11, i64 448, !11, i64 456, !11, 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, !11, i64 544, !6, i64 552, !6, i64 556, !6, i64 560, !6, i64 564, !6, i64 568, !6, i64 572, !6, i64 576, !6, i64 580, !11, i64 584, !6, i64 592, !12, i64 600, !12, i64 608, !6, i64 616, !6, i64 620, !6, i64 624, !6, i64 628, !6, i64 632, !12, i64 640, !6, i64 648, !12, i64 656, !6, i64 664, !7, i64 668, !6, i64 924, !7, i64 928, !7, i64 1184, !6, i64 1696, !6, i64 1700, !6, i64 1704, !6, i64 1708, !6, i64 1712, !6, i64 1716, !12, i64 1720, !12, i64 1728, !12, i64 1736, !12, i64 1744, !11, i64 1752, !11, i64 1760, !11, i64 1768, !11, i64 1776, !11, i64 1784, !11, i64 1792, !11, i64 1800, !11, i64 1808, !11, i64 1816, !11, i64 1824, !11, i64 1832, !11, i64 1840, !11, i64 1848, !6, i64 1856, !12, i64 1864, !11, i64 1872, !11, i64 1880, !11, i64 1888, !11, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 2112, !7, i64 2152, !7, i64 2352, !12, i64 2392, !12, i64 2400, !12, i64 2408, !12, i64 2416, !6, i64 2424, !6, i64 2428, !6, i64 2432, !12, i64 2440, !12, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !6, i64 2480, !6, i64 2484, !12, i64 2488, !6, i64 2496, !12, i64 2504, !12, i64 2512, !12, i64 2520, !12, i64 2528, !6, i64 2536, !6, i64 2540, !6, i64 2544, !6, i64 2548, !6, i64 2552, !6, i64 2556, !6, i64 2560, !13, i64 2568, !6, i64 2576, !6, i64 2580, !6, i64 2584, !6, i64 2588, !12, i64 2592, !6, i64 2600, !6, i64 2604, !11, i64 2608, !6, i64 2616, !11, i64 2624, !11, i64 2632, !11, i64 2640, !6, i64 2648, !6, i64 2652, !6, i64 2656, !6, i64 2660, !11, i64 2664, !11, i64 2672, !6, i64 2680, !6, i64 2684, !6, i64 2688, !6, i64 2692, !11, i64 2696, !11, i64 2704, !6, i64 2712, !6, i64 2716, !6, i64 2720, !6, i64 2724, !12, i64 2728, !12, i64 2736, !12, i64 2744, !12, i64 2752, !12, i64 2760, !12, i64 2768, !12, i64 2776, !12, i64 2784, !6, i64 2792, !12, i64 2800, !12, i64 2808, !6, i64 2816, !6, i64 2820, !6, i64 2824, !12, i64 2832, !11, i64 2840, !11, i64 2848, !11, i64 2856, !6, i64 2864, !6, i64 2868, !12, i64 2872, !12, i64 2880, !6, i64 2888}
!11 = !{!"double", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !12, i64 2440}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !12, i64 56}
!17 = !{!"facetT", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !7, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115}
!18 = !{!17, !6, i64 108}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!10, !12, i64 2464}
!22 = !{!10, !12, i64 2472}
!23 = !{!10, !12, i64 2456}
!24 = !{!10, !12, i64 2528}
!25 = !{!26, !6, i64 32}
!26 = !{!"vertexT", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 40, !6, i64 40, !6, i64 40, !6, i64 40}
!27 = !{!10, !12, i64 2512}
!28 = !{!26, !12, i64 0}
!29 = distinct !{!29, !20}


; 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, double, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, double, i32, double, i32, 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, i32, double, double, double, 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, i32, ptr, double, double, double, double, [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, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, ptr, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.str.113 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [85 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 void @qh_printlists() local_unnamed_addr #1 {
  %1 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !5
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %1, i32 noundef 8108, ptr noundef nonnull @.str.138) #2
  %.01224 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8, !tbaa !13
  %.not25 = icmp eq ptr %.01224, null
  br i1 %.not25, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %10
  %.01227 = phi ptr [ %.012, %10 ], [ %.01224, %0 ]
  %.026 = phi i32 [ %5, %10 ], [ 0, %0 ]
  %2 = getelementptr inbounds i8, ptr %.01227, i64 56
  %3 = load ptr, ptr %2, align 8, !tbaa !14
  %.not17 = icmp eq ptr %3, null
  br i1 %.not17, label %.critedge, label %4

4:                                                ; preds = %.lr.ph
  %5 = add nuw nsw i32 %.026, 1
  %6 = urem i32 %5, 100
  %7 = icmp eq i32 %6, 0
  br i1 %7, label %8, label %10

8:                                                ; preds = %4
  %9 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !5
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %9, i32 noundef 8109, ptr noundef nonnull @.str.139) #2
  br label %10

10:                                               ; preds = %8, %4
  %11 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %.01227, i64 108
  %13 = load i32, ptr %12, align 4, !tbaa !16
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %11, i32 noundef 8110, ptr noundef nonnull @.str.137, i32 noundef %13) #2
  %.012 = load ptr, ptr %2, align 8, !tbaa !13
  %.not = icmp eq ptr %.012, null
  br i1 %.not, label %.critedge, label %.lr.ph, !llvm.loop !17

.critedge:                                        ; preds = %.lr.ph, %10, %0
  %14 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !5
  %15 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2464), align 8, !tbaa !19
  %.not18 = icmp eq ptr %15, null
  br i1 %.not18, label %19, label %16

16:                                               ; preds = %.critedge
  %17 = getelementptr inbounds i8, ptr %15, i64 108
  %18 = load i32, ptr %17, align 4, !tbaa !16
  br label %19

19:                                               ; preds = %.critedge, %16
  %20 = phi i32 [ %18, %16 ], [ -1, %.critedge ]
  %21 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2472), align 8, !tbaa !20
  %.not19 = icmp eq ptr %21, null
  br i1 %.not19, label %25, label %22

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %21, i64 108
  %24 = load i32, ptr %23, align 4, !tbaa !16
  br label %25

25:                                               ; preds = %19, %22
  %26 = phi i32 [ %24, %22 ], [ -1, %19 ]
  %27 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !21
  %.not20 = icmp eq ptr %27, null
  br i1 %.not20, label %31, label %28

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %27, i64 108
  %30 = load i32, ptr %29, align 4, !tbaa !16
  br label %31

31:                                               ; preds = %25, %28
  %32 = phi i32 [ %30, %28 ], [ -1, %25 ]
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2528), align 8, !tbaa !22
  %.not21 = icmp eq ptr %33, null
  br i1 %.not21, label %37, label %34

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %33, i64 32
  %36 = load i32, ptr %35, align 8, !tbaa !23
  br label %37

37:                                               ; preds = %31, %34
  %38 = phi i32 [ %36, %34 ], [ -1, %31 ]
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %14, i32 noundef 8111, ptr noundef nonnull @.str.140, i32 noundef %20, i32 noundef %26, i32 noundef %32, i32 noundef %38) #2
  %.01129 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2512), align 8, !tbaa !13
  %.not2230 = icmp eq ptr %.01129, null
  br i1 %.not2230, label %.critedge2, label %.lr.ph33

.lr.ph33:                                         ; preds = %37, %46
  %.01132 = phi ptr [ %.011, %46 ], [ %.01129, %37 ]
  %.131 = phi i32 [ %41, %46 ], [ 0, %37 ]
  %39 = load ptr, ptr %.01132, align 8, !tbaa !25
  %.not23 = icmp eq ptr %39, null
  br i1 %.not23, label %.critedge2, label %40

40:                                               ; preds = %.lr.ph33
  %41 = add nuw nsw i32 %.131, 1
  %42 = urem i32 %41, 100
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %46

44:                                               ; preds = %40
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !5
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %45, i32 noundef 8112, ptr noundef nonnull @.str.139) #2
  br label %46

46:                                               ; preds = %44, %40
  %47 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %.01132, i64 32
  %49 = load i32, ptr %48, align 8, !tbaa !23
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %47, i32 noundef 8113, ptr noundef nonnull @.str.137, i32 noundef %49) #2
  %.011 = load ptr, ptr %.01132, align 8, !tbaa !13
  %.not22 = icmp eq ptr %.011, null
  br i1 %.not22, label %.critedge2, label %.lr.ph33, !llvm.loop !26

.critedge2:                                       ; preds = %.lr.ph33, %46, %37
  %50 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !5
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %50, i32 noundef 8114, ptr noundef nonnull @.str.113) #2
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 2408}
!6 = !{!"qhT", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !11, i64 96, !7, i64 104, !7, i64 108, !11, i64 112, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !7, i64 172, !7, i64 176, !10, i64 184, !10, i64 192, !7, i64 200, !10, i64 208, !7, i64 216, !7, i64 220, !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, !8, i64 296, !7, i64 412, !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, !10, i64 544, !7, i64 552, !7, i64 556, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !10, i64 584, !7, i64 592, !11, i64 600, !11, i64 608, !7, i64 616, !7, i64 620, !7, i64 624, !7, i64 628, !7, i64 632, !11, i64 640, !7, i64 648, !11, i64 656, !7, i64 664, !8, i64 668, !7, i64 924, !8, i64 928, !8, i64 1184, !7, i64 1696, !7, i64 1700, !7, i64 1704, !7, i64 1708, !7, i64 1712, !7, i64 1716, !11, i64 1720, !11, i64 1728, !11, i64 1736, !11, i64 1744, !10, 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, !7, i64 1856, !11, i64 1864, !10, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !8, i64 1904, !8, i64 1912, !8, i64 2112, !8, i64 2152, !8, i64 2352, !11, i64 2392, !11, i64 2400, !11, i64 2408, !11, i64 2416, !7, i64 2424, !7, i64 2428, !7, i64 2432, !11, i64 2440, !11, i64 2448, !11, i64 2456, !11, i64 2464, !11, i64 2472, !7, i64 2480, !7, i64 2484, !11, i64 2488, !7, i64 2496, !11, i64 2504, !11, i64 2512, !11, i64 2520, !11, i64 2528, !7, i64 2536, !7, i64 2540, !7, i64 2544, !7, i64 2548, !7, i64 2552, !7, i64 2556, !7, i64 2560, !12, i64 2568, !7, i64 2576, !7, i64 2580, !7, i64 2584, !7, i64 2588, !11, i64 2592, !7, i64 2600, !7, i64 2604, !10, i64 2608, !7, i64 2616, !10, i64 2624, !10, i64 2632, !10, i64 2640, !7, i64 2648, !7, i64 2652, !7, i64 2656, !7, i64 2660, !10, i64 2664, !10, i64 2672, !7, i64 2680, !7, i64 2684, !7, i64 2688, !7, i64 2692, !10, i64 2696, !10, i64 2704, !7, i64 2712, !7, i64 2716, !7, i64 2720, !7, i64 2724, !11, i64 2728, !11, i64 2736, !11, i64 2744, !11, i64 2752, !11, i64 2760, !11, i64 2768, !11, i64 2776, !11, i64 2784, !7, i64 2792, !11, i64 2800, !11, i64 2808, !7, i64 2816, !7, i64 2820, !7, i64 2824, !11, i64 2832, !10, i64 2840, !10, i64 2848, !10, i64 2856, !7, i64 2864, !7, i64 2868, !11, i64 2872, !11, i64 2880, !7, i64 2888}
!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 = !{!11, !11, i64 0}
!14 = !{!15, !11, i64 56}
!15 = !{!"facetT", !10, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !8, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115}
!16 = !{!15, !7, i64 108}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !11, i64 2464}
!20 = !{!6, !11, i64 2472}
!21 = !{!6, !11, i64 2456}
!22 = !{!6, !11, i64 2528}
!23 = !{!24, !7, i64 32}
!24 = !{!"vertexT", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40}
!25 = !{!24, !11, i64 0}
!26 = distinct !{!26, !18}


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