; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (geom2_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.64 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [61 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

declare void @qh_errexit(ptr noundef, i32 noundef, ptr 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_projectpoints(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7) #2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i32 %4, ptr %13, align 4, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !5
  store i32 %7, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %25 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %25, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 0, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %39, %8
  %27 = load i32, ptr %22, align 4, !tbaa !9
  %28 = load i32, ptr %11, align 4, !tbaa !9
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %30, label %42

30:                                               ; preds = %26
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = load i32, ptr %22, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds i8, ptr %31, i64 %33
  %35 = load i8, ptr %34, align 1, !tbaa !11
  %36 = sext i8 %35 to i32
  %37 = load i32, ptr %17, align 4, !tbaa !9
  %38 = add nsw i32 %37, %36
  store i32 %38, ptr %17, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %30
  %40 = load i32, ptr %22, align 4, !tbaa !9
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %22, align 4, !tbaa !9
  br label %26, !llvm.loop !12

42:                                               ; preds = %26
  %43 = load i32, ptr %17, align 4, !tbaa !9
  %44 = load i32, ptr %16, align 4, !tbaa !9
  %45 = icmp ne i32 %43, %44
  br i1 %45, label %46, label %54

46:                                               ; preds = %42
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.qhT, ptr %48, i32 0, i32 158
  %50 = load ptr, ptr %49, align 8, !tbaa !14
  %51 = load i32, ptr %16, align 4, !tbaa !9
  %52 = load i32, ptr %17, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %47, ptr noundef %50, i32 noundef 6018, ptr noundef @.str.64, i32 noundef %51, i32 noundef %52)
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %53, i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %54

54:                                               ; preds = %46, %42
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %124, %54
  %56 = load i32, ptr %21, align 4, !tbaa !9
  %57 = load i32, ptr %11, align 4, !tbaa !9
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %59, label %127

59:                                               ; preds = %55
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = load i32, ptr %21, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i8, ptr %60, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !11
  %65 = sext i8 %64 to i32
  %66 = icmp eq i32 %65, -1
  br i1 %66, label %67, label %70

67:                                               ; preds = %59
  %68 = load i32, ptr %18, align 4, !tbaa !9
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %18, align 4, !tbaa !9
  br label %118

70:                                               ; preds = %59
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = load i32, ptr %19, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %19, align 4, !tbaa !9
  %74 = sext i32 %72 to i64
  %75 = getelementptr inbounds double, ptr %71, i64 %74
  store ptr %75, ptr %23, align 8, !tbaa !5
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load i32, ptr %21, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i8, ptr %76, i64 %78
  %80 = load i8, ptr %79, align 1, !tbaa !11
  %81 = sext i8 %80 to i32
  %82 = icmp eq i32 %81, 1
  br i1 %82, label %83, label %93

83:                                               ; preds = %70
  %84 = load i32, ptr %18, align 4, !tbaa !9
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = icmp sge i32 %84, %85
  br i1 %86, label %87, label %88

87:                                               ; preds = %83
  br label %124

88:                                               ; preds = %83
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = load i32, ptr %18, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %89, i64 %91
  store ptr %92, ptr %24, align 8, !tbaa !5
  br label %99

93:                                               ; preds = %70
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = load i32, ptr %18, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %18, align 4, !tbaa !9
  %97 = sext i32 %95 to i64
  %98 = getelementptr inbounds double, ptr %94, i64 %97
  store ptr %98, ptr %24, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %93, %88
  %100 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %100, ptr %20, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %105, %99
  %102 = load i32, ptr %20, align 4, !tbaa !9
  %103 = add nsw i32 %102, -1
  store i32 %103, ptr %20, align 4, !tbaa !9
  %104 = icmp ne i32 %102, 0
  br i1 %104, label %105, label %117

105:                                              ; preds = %101
  %106 = load ptr, ptr %24, align 8, !tbaa !5
  %107 = load double, ptr %106, align 8, !tbaa !20
  %108 = load ptr, ptr %23, align 8, !tbaa !5
  store double %107, ptr %108, align 8, !tbaa !20
  %109 = load i32, ptr %16, align 4, !tbaa !9
  %110 = load ptr, ptr %23, align 8, !tbaa !5
  %111 = sext i32 %109 to i64
  %112 = getelementptr inbounds double, ptr %110, i64 %111
  store ptr %112, ptr %23, align 8, !tbaa !5
  %113 = load i32, ptr %14, align 4, !tbaa !9
  %114 = load ptr, ptr %24, align 8, !tbaa !5
  %115 = sext i32 %113 to i64
  %116 = getelementptr inbounds double, ptr %114, i64 %115
  store ptr %116, ptr %24, align 8, !tbaa !5
  br label %101, !llvm.loop !21

117:                                              ; preds = %101
  br label %118

118:                                              ; preds = %117, %67
  %119 = load i32, ptr %18, align 4, !tbaa !9
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = icmp sge i32 %119, %120
  br i1 %121, label %122, label %123

122:                                              ; preds = %118
  br label %127

123:                                              ; preds = %118
  br label %124

124:                                              ; preds = %123, %87
  %125 = load i32, ptr %21, align 4, !tbaa !9
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %21, align 4, !tbaa !9
  br label %55, !llvm.loop !22

127:                                              ; preds = %122, %55
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.qhT, ptr %128, i32 0, i32 29
  %130 = load i32, ptr %129, align 8, !tbaa !23
  %131 = icmp sge i32 %130, 1
  br i1 %131, label %132, label %140

132:                                              ; preds = %127
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.qhT, ptr %134, i32 0, i32 158
  %136 = load ptr, ptr %135, align 8, !tbaa !14
  %137 = load i32, ptr %13, align 4, !tbaa !9
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = load i32, ptr %16, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %133, ptr noundef %136, i32 noundef 1004, ptr noundef @.str.65, i32 noundef %137, i32 noundef %138, i32 noundef %139)
  br label %140

140:                                              ; preds = %132, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #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 = !{!"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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !6, i64 2424}
!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, !13}
!22 = distinct !{!22, !13}
!23 = !{!15, !10, i64 136}


; 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.64 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [61 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_projectpoints(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4, i32 noundef %5, ptr nocapture noundef writeonly %6, i32 noundef %7) local_unnamed_addr #1 {
  %9 = icmp sgt i32 %2, 0
  br i1 %9, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %8
  %wide.trip.count = zext nneg i32 %2 to i64
  %min.iters.check = icmp ult i32 %2, 8
  br i1 %min.iters.check, label %.lr.ph.preheader90, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  %10 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %5, i64 0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ %10, %vector.ph ], [ %15, %vector.body ]
  %vec.phi88 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %16, %vector.body ]
  %11 = getelementptr inbounds i8, ptr %1, i64 %index
  %12 = getelementptr inbounds i8, ptr %11, i64 4
  %wide.load = load <4 x i8>, ptr %11, align 1, !tbaa !5
  %wide.load89 = load <4 x i8>, ptr %12, align 1, !tbaa !5
  %13 = sext <4 x i8> %wide.load to <4 x i32>
  %14 = sext <4 x i8> %wide.load89 to <4 x i32>
  %15 = add <4 x i32> %vec.phi, %13
  %16 = add <4 x i32> %vec.phi88, %14
  %index.next = add nuw i64 %index, 8
  %17 = icmp eq i64 %index.next, %n.vec
  br i1 %17, label %middle.block, label %vector.body, !llvm.loop !8

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %16, %15
  %18 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader90

.lr.ph.preheader90:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %.05461.ph = phi i32 [ %5, %.lr.ph.preheader ], [ %18, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader90, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader90 ]
  %.05461 = phi i32 [ %22, %.lr.ph ], [ %.05461.ph, %.lr.ph.preheader90 ]
  %19 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %21 = sext i8 %20 to i32
  %22 = add nsw i32 %.05461, %21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %8
  %.054.lcssa = phi i32 [ %5, %8 ], [ %18, %middle.block ], [ %22, %.lr.ph ]
  %.not = icmp eq i32 %.054.lcssa, %7
  br i1 %.not, label %26, label %23

23:                                               ; preds = %._crit_edge
  %24 = getelementptr inbounds i8, ptr %0, i64 2424
  %25 = load ptr, ptr %24, align 8, !tbaa !13
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %25, i32 noundef 6018, ptr noundef nonnull @.str.64, i32 noundef %7, i32 noundef %.054.lcssa) #3
  tail call void @qh_errexit(ptr noundef %0, i32 noundef 5, ptr noundef null, ptr noundef null) #3
  br label %26

26:                                               ; preds = %23, %._crit_edge
  br i1 %9, label %.lr.ph73, label %._crit_edge74

.lr.ph73:                                         ; preds = %26
  %.not5963 = icmp eq i32 %4, 0
  %27 = sext i32 %7 to i64
  %28 = sext i32 %5 to i64
  br i1 %.not5963, label %._crit_edge74, label %.lr.ph73.split.preheader

.lr.ph73.split.preheader:                         ; preds = %.lr.ph73
  %wide.trip.count81 = zext nneg i32 %2 to i64
  %xtraiter = and i32 %4, 7
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  %29 = icmp ult i32 %4, 8
  br label %.lr.ph73.split

.lr.ph73.split:                                   ; preds = %.lr.ph73.split.preheader, %72
  %indvars.iv78 = phi i64 [ 0, %.lr.ph73.split.preheader ], [ %indvars.iv.next79, %72 ]
  %.04970 = phi i32 [ 0, %.lr.ph73.split.preheader ], [ %.2, %72 ]
  %.05169 = phi i32 [ 0, %.lr.ph73.split.preheader ], [ %.3, %72 ]
  %30 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv78
  %31 = load i8, ptr %30, align 1, !tbaa !5
  %32 = icmp eq i8 %31, -1
  br i1 %32, label %33, label %35

33:                                               ; preds = %.lr.ph73.split
  %34 = add nsw i32 %.05169, 1
  br label %..loopexit_crit_edge

35:                                               ; preds = %.lr.ph73.split
  %36 = add nsw i32 %.04970, 1
  %37 = sext i32 %.04970 to i64
  %38 = getelementptr inbounds double, ptr %6, i64 %37
  %39 = icmp eq i8 %31, 1
  br i1 %39, label %40, label %41

40:                                               ; preds = %35
  %.not58 = icmp slt i32 %.05169, %5
  br i1 %.not58, label %.lr.ph68, label %72

41:                                               ; preds = %35
  %42 = add nsw i32 %.05169, 1
  br label %.lr.ph68

.lr.ph68:                                         ; preds = %40, %41
  %.152 = phi i32 [ %42, %41 ], [ %.05169, %40 ]
  %.pn = sext i32 %.05169 to i64
  %.0 = getelementptr inbounds double, ptr %3, i64 %.pn
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph68, %.prol.preheader
  %.166.prol = phi ptr [ %46, %.prol.preheader ], [ %.0, %.lr.ph68 ]
  %.04565.prol = phi ptr [ %45, %.prol.preheader ], [ %38, %.lr.ph68 ]
  %.04864.prol = phi i32 [ %43, %.prol.preheader ], [ %4, %.lr.ph68 ]
  %prol.iter = phi i32 [ %prol.iter.next, %.prol.preheader ], [ 0, %.lr.ph68 ]
  %43 = add nsw i32 %.04864.prol, -1
  %44 = load double, ptr %.166.prol, align 8, !tbaa !21
  store double %44, ptr %.04565.prol, align 8, !tbaa !21
  %45 = getelementptr inbounds double, ptr %.04565.prol, i64 %27
  %46 = getelementptr inbounds double, ptr %.166.prol, i64 %28
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.prol.loopexit, label %.prol.preheader, !llvm.loop !22

.prol.loopexit:                                   ; preds = %.prol.preheader, %.lr.ph68
  %.166.unr = phi ptr [ %.0, %.lr.ph68 ], [ %46, %.prol.preheader ]
  %.04565.unr = phi ptr [ %38, %.lr.ph68 ], [ %45, %.prol.preheader ]
  %.04864.unr = phi i32 [ %4, %.lr.ph68 ], [ %43, %.prol.preheader ]
  br i1 %29, label %..loopexit_crit_edge, label %.lr.ph68.new

.lr.ph68.new:                                     ; preds = %.prol.loopexit, %.lr.ph68.new
  %.166 = phi ptr [ %71, %.lr.ph68.new ], [ %.166.unr, %.prol.loopexit ]
  %.04565 = phi ptr [ %70, %.lr.ph68.new ], [ %.04565.unr, %.prol.loopexit ]
  %.04864 = phi i32 [ %68, %.lr.ph68.new ], [ %.04864.unr, %.prol.loopexit ]
  %47 = load double, ptr %.166, align 8, !tbaa !21
  store double %47, ptr %.04565, align 8, !tbaa !21
  %48 = getelementptr inbounds double, ptr %.04565, i64 %27
  %49 = getelementptr inbounds double, ptr %.166, i64 %28
  %50 = load double, ptr %49, align 8, !tbaa !21
  store double %50, ptr %48, align 8, !tbaa !21
  %51 = getelementptr inbounds double, ptr %48, i64 %27
  %52 = getelementptr inbounds double, ptr %49, i64 %28
  %53 = load double, ptr %52, align 8, !tbaa !21
  store double %53, ptr %51, align 8, !tbaa !21
  %54 = getelementptr inbounds double, ptr %51, i64 %27
  %55 = getelementptr inbounds double, ptr %52, i64 %28
  %56 = load double, ptr %55, align 8, !tbaa !21
  store double %56, ptr %54, align 8, !tbaa !21
  %57 = getelementptr inbounds double, ptr %54, i64 %27
  %58 = getelementptr inbounds double, ptr %55, i64 %28
  %59 = load double, ptr %58, align 8, !tbaa !21
  store double %59, ptr %57, align 8, !tbaa !21
  %60 = getelementptr inbounds double, ptr %57, i64 %27
  %61 = getelementptr inbounds double, ptr %58, i64 %28
  %62 = load double, ptr %61, align 8, !tbaa !21
  store double %62, ptr %60, align 8, !tbaa !21
  %63 = getelementptr inbounds double, ptr %60, i64 %27
  %64 = getelementptr inbounds double, ptr %61, i64 %28
  %65 = load double, ptr %64, align 8, !tbaa !21
  store double %65, ptr %63, align 8, !tbaa !21
  %66 = getelementptr inbounds double, ptr %63, i64 %27
  %67 = getelementptr inbounds double, ptr %64, i64 %28
  %68 = add nsw i32 %.04864, -8
  %69 = load double, ptr %67, align 8, !tbaa !21
  store double %69, ptr %66, align 8, !tbaa !21
  %70 = getelementptr inbounds double, ptr %66, i64 %27
  %71 = getelementptr inbounds double, ptr %67, i64 %28
  %.not59.7 = icmp eq i32 %68, 0
  br i1 %.not59.7, label %..loopexit_crit_edge, label %.lr.ph68.new, !llvm.loop !24

..loopexit_crit_edge:                             ; preds = %.prol.loopexit, %.lr.ph68.new, %33
  %.253 = phi i32 [ %34, %33 ], [ %.152, %.lr.ph68.new ], [ %.152, %.prol.loopexit ]
  %.150 = phi i32 [ %.04970, %33 ], [ %36, %.lr.ph68.new ], [ %36, %.prol.loopexit ]
  %.not60 = icmp slt i32 %.253, %5
  br i1 %.not60, label %72, label %._crit_edge74

72:                                               ; preds = %..loopexit_crit_edge, %40
  %.3 = phi i32 [ %.253, %..loopexit_crit_edge ], [ %.05169, %40 ]
  %.2 = phi i32 [ %.150, %..loopexit_crit_edge ], [ %36, %40 ]
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %exitcond82.not = icmp eq i64 %indvars.iv.next79, %wide.trip.count81
  br i1 %exitcond82.not, label %._crit_edge74, label %.lr.ph73.split, !llvm.loop !25

._crit_edge74:                                    ; preds = %72, %..loopexit_crit_edge, %.lr.ph73, %26
  %73 = getelementptr inbounds i8, ptr %0, i64 136
  %74 = load i32, ptr %73, align 8, !tbaa !26
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %76, label %79

76:                                               ; preds = %._crit_edge74
  %77 = getelementptr inbounds i8, ptr %0, i64 2424
  %78 = load ptr, ptr %77, align 8, !tbaa !13
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %78, i32 noundef 1004, ptr noundef nonnull @.str.65, i32 noundef %4, i32 noundef %5, i32 noundef %7) #3
  br label %79

79:                                               ; preds = %76, %._crit_edge74
  ret void
}

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

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

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

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


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass