; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (geom_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.37 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [91 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 speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

; 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
declare dso_local void @qh_backnormal(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @qh_gausselim(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @qh_normalize2(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @qh_sethyperplane_gauss(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #3 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i32 %4, ptr %13, align 4, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %22 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %22, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %21, align 4, !tbaa !9
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = load i32, ptr %10, align 4, !tbaa !9
  %26 = sub nsw i32 %25, 1
  %27 = load i32, ptr %10, align 4, !tbaa !9
  %28 = load ptr, ptr %16, align 8, !tbaa !5
  call void @qh_gausselim(ptr noundef %23, ptr noundef %24, i32 noundef %26, i32 noundef %27, ptr noundef %20, ptr noundef %28)
  %29 = load i32, ptr %10, align 4, !tbaa !9
  %30 = sub nsw i32 %29, 1
  store i32 %30, ptr %19, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %49, %8
  %32 = load i32, ptr %19, align 4, !tbaa !9
  %33 = add nsw i32 %32, -1
  store i32 %33, ptr %19, align 4, !tbaa !9
  %34 = icmp ne i32 %32, 0
  br i1 %34, label %35, label %50

35:                                               ; preds = %31
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = load i32, ptr %19, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds ptr, ptr %36, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = load i32, ptr %19, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds double, ptr %40, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !11
  %45 = fcmp olt double %44, 0.000000e+00
  br i1 %45, label %46, label %49

46:                                               ; preds = %35
  %47 = load i32, ptr %20, align 4, !tbaa !9
  %48 = xor i32 %47, 1
  store i32 %48, ptr %20, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %46, %35
  br label %31, !llvm.loop !13

50:                                               ; preds = %31
  %51 = load ptr, ptr %16, align 8, !tbaa !5
  %52 = load i32, ptr %51, align 4, !tbaa !9
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %81

54:                                               ; preds = %50
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.qhT, ptr %55, i32 0, i32 258
  %57 = getelementptr inbounds %struct.qhstatT, ptr %56, i32 0, i32 0
  %58 = getelementptr inbounds [249 x %union.intrealT], ptr %57, i64 0, i64 144
  %59 = load i32, ptr %58, align 8, !tbaa !15
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %58, align 8, !tbaa !15
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.qhT, ptr %61, i32 0, i32 29
  %63 = load i32, ptr %62, align 8, !tbaa !16
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %73

65:                                               ; preds = %54
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.qhT, ptr %67, i32 0, i32 158
  %69 = load ptr, ptr %68, align 8, !tbaa !21
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.qhT, ptr %70, i32 0, i32 190
  %72 = load i32, ptr %71, align 4, !tbaa !22
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %66, ptr noundef %69, i32 noundef 4, ptr noundef @.str.37, i32 noundef %72)
  br label %73

73:                                               ; preds = %65, %54
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = sub nsw i32 %76, 1
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = load i32, ptr %20, align 4, !tbaa !9
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  call void @qh_backnormal(ptr noundef %74, ptr noundef %75, i32 noundef %77, i32 noundef %78, i32 noundef %79, ptr noundef %80, ptr noundef %21)
  br label %112

81:                                               ; preds = %50
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = sub nsw i32 %84, 1
  %86 = load i32, ptr %10, align 4, !tbaa !9
  %87 = load i32, ptr %20, align 4, !tbaa !9
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  call void @qh_backnormal(ptr noundef %82, ptr noundef %83, i32 noundef %85, i32 noundef %86, i32 noundef %87, ptr noundef %88, ptr noundef %21)
  %89 = load i32, ptr %21, align 4, !tbaa !9
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %111

91:                                               ; preds = %81
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.qhT, ptr %92, i32 0, i32 258
  %94 = getelementptr inbounds %struct.qhstatT, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds [249 x %union.intrealT], ptr %94, i64 0, i64 144
  %96 = load i32, ptr %95, align 8, !tbaa !15
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %95, align 8, !tbaa !15
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.qhT, ptr %98, i32 0, i32 29
  %100 = load i32, ptr %99, align 8, !tbaa !16
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %110

102:                                              ; preds = %91
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.qhT, ptr %104, i32 0, i32 158
  %106 = load ptr, ptr %105, align 8, !tbaa !21
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.qhT, ptr %107, i32 0, i32 190
  %109 = load i32, ptr %108, align 4, !tbaa !22
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %103, ptr noundef %106, i32 noundef 5, ptr noundef @.str.38, i32 noundef %109)
  br label %110

110:                                              ; preds = %102, %91
  br label %111

111:                                              ; preds = %110, %81
  br label %112

112:                                              ; preds = %111, %73
  %113 = load i32, ptr %21, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %117

115:                                              ; preds = %112
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 1, ptr %116, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %115, %112
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_normalize2(ptr noundef %118, ptr noundef %119, i32 noundef %120, i32 noundef 1, ptr noundef null, ptr noundef null)
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %121, ptr %17, align 8, !tbaa !5
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %122, ptr %18, align 8, !tbaa !5
  %123 = load ptr, ptr %17, align 8, !tbaa !5
  %124 = getelementptr inbounds double, ptr %123, i32 1
  store ptr %124, ptr %17, align 8, !tbaa !5
  %125 = load double, ptr %123, align 8, !tbaa !11
  %126 = load ptr, ptr %18, align 8, !tbaa !5
  %127 = getelementptr inbounds double, ptr %126, i32 1
  store ptr %127, ptr %18, align 8, !tbaa !5
  %128 = load double, ptr %126, align 8, !tbaa !11
  %129 = fmul double %125, %128
  %130 = fneg double %129
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  store double %130, ptr %131, align 8, !tbaa !11
  %132 = load i32, ptr %10, align 4, !tbaa !9
  %133 = sub nsw i32 %132, 1
  store i32 %133, ptr %19, align 4, !tbaa !9
  br label %134

134:                                              ; preds = %138, %117
  %135 = load i32, ptr %19, align 4, !tbaa !9
  %136 = add nsw i32 %135, -1
  store i32 %136, ptr %19, align 4, !tbaa !9
  %137 = icmp ne i32 %135, 0
  br i1 %137, label %138, label %149

138:                                              ; preds = %134
  %139 = load ptr, ptr %17, align 8, !tbaa !5
  %140 = getelementptr inbounds double, ptr %139, i32 1
  store ptr %140, ptr %17, align 8, !tbaa !5
  %141 = load double, ptr %139, align 8, !tbaa !11
  %142 = load ptr, ptr %18, align 8, !tbaa !5
  %143 = getelementptr inbounds double, ptr %142, i32 1
  store ptr %143, ptr %18, align 8, !tbaa !5
  %144 = load double, ptr %142, align 8, !tbaa !11
  %145 = load ptr, ptr %15, align 8, !tbaa !5
  %146 = load double, ptr %145, align 8, !tbaa !11
  %147 = fneg double %141
  %148 = call double @llvm.fmuladd.f64(double %147, double %144, double %146)
  store double %148, ptr %145, align 8, !tbaa !11
  br label %134, !llvm.loop !23

149:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "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 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 #4 = { 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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !10, i64 136}
!17 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !12, 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, !12, i64 64, !12, 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, !12, i64 160, !12, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !12, i64 192, !12, i64 200, !10, i64 208, !10, i64 212, !12, 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, !12, i64 448, !12, i64 456, !12, 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, !12, 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, !12, 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, !12, i64 1760, !12, i64 1768, !12, i64 1776, !12, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !12, i64 1816, !12, i64 1824, !12, i64 1832, !12, i64 1840, !12, i64 1848, !12, i64 1856, !12, i64 1864, !6, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !12, i64 1904, !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, !18, 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, !12, i64 2664, !10, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !12, i64 2728, !12, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !12, i64 2768, !12, 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, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, 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, !12, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !19, i64 3272, !20, i64 3424}
!18 = !{!"long", !7, i64 0}
!19 = !{!"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}
!20 = !{!"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, !12, i64 5336}
!21 = !{!17, !6, i64 2424}
!22 = !{!17, !10, i64 2620}
!23 = distinct !{!23, !14}


; 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.37 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [91 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_backnormal(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @qh_gausselim(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @qh_normalize2(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @qh_sethyperplane_gauss(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4, ptr noundef %5, ptr nocapture noundef writeonly %6, ptr noundef %7) local_unnamed_addr #3 {
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  store i32 %4, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  %11 = add nsw i32 %1, -1
  call void @qh_gausselim(ptr noundef %0, ptr noundef %2, i32 noundef %11, i32 noundef %1, ptr noundef nonnull %9, ptr noundef %7)
  %.promoted = load i32, ptr %9, align 4, !tbaa !5
  %.not55 = icmp eq i32 %11, 0
  br i1 %.not55, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %8
  %12 = add i32 %1, -2
  %13 = sext i32 %12 to i64
  %14 = and i64 %13, 1
  %lcmp.mod.not.not = icmp eq i64 %14, 0
  br i1 %lcmp.mod.not.not, label %.lr.ph.prol, label %.lr.ph.prol.loopexit

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader
  %15 = getelementptr inbounds ptr, ptr %2, i64 %13
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = getelementptr inbounds double, ptr %16, i64 %13
  %18 = load double, ptr %17, align 8, !tbaa !11
  %19 = fcmp olt double %18, 0.000000e+00
  br i1 %19, label %20, label %.lr.ph.prol.loopexit.unr-lcssa

20:                                               ; preds = %.lr.ph.prol
  %21 = xor i32 %.promoted, 1
  store i32 %21, ptr %9, align 4, !tbaa !5
  br label %.lr.ph.prol.loopexit.unr-lcssa

.lr.ph.prol.loopexit.unr-lcssa:                   ; preds = %20, %.lr.ph.prol
  %22 = phi i32 [ %21, %20 ], [ %.promoted, %.lr.ph.prol ]
  %indvars.iv.next.prol = add nsw i64 %13, -1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol.loopexit.unr-lcssa, %.lr.ph.preheader
  %.lcssa.unr = phi i32 [ poison, %.lr.ph.preheader ], [ %22, %.lr.ph.prol.loopexit.unr-lcssa ]
  %indvars.iv.unr = phi i64 [ %13, %.lr.ph.preheader ], [ %indvars.iv.next.prol, %.lr.ph.prol.loopexit.unr-lcssa ]
  %.unr = phi i32 [ %.promoted, %.lr.ph.preheader ], [ %22, %.lr.ph.prol.loopexit.unr-lcssa ]
  %23 = icmp eq i32 %12, 0
  br i1 %23, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %40
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %40 ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %24 = phi i32 [ %41, %40 ], [ %.unr, %.lr.ph.prol.loopexit ]
  %25 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds double, ptr %26, i64 %indvars.iv
  %28 = load double, ptr %27, align 8, !tbaa !11
  %29 = fcmp olt double %28, 0.000000e+00
  br i1 %29, label %30, label %.lr.ph.1

30:                                               ; preds = %.lr.ph
  %31 = xor i32 %24, 1
  store i32 %31, ptr %9, align 4, !tbaa !5
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %30, %.lr.ph
  %32 = phi i32 [ %31, %30 ], [ %24, %.lr.ph ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %33 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds double, ptr %34, i64 %indvars.iv.next
  %36 = load double, ptr %35, align 8, !tbaa !11
  %37 = fcmp olt double %36, 0.000000e+00
  br i1 %37, label %38, label %40

38:                                               ; preds = %.lr.ph.1
  %39 = xor i32 %32, 1
  store i32 %39, ptr %9, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %38, %.lr.ph.1
  %41 = phi i32 [ %39, %38 ], [ %32, %.lr.ph.1 ]
  %indvars.iv.next.1 = add nsw i64 %indvars.iv, -2
  %42 = icmp eq i64 %indvars.iv.next, 0
  br i1 %42, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %40, %8
  %43 = phi i32 [ %.promoted, %8 ], [ %.lcssa.unr, %.lr.ph.prol.loopexit ], [ %41, %40 ]
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %.not47 = icmp eq i32 %44, 0
  br i1 %.not47, label %58, label %45

45:                                               ; preds = %._crit_edge
  %46 = getelementptr inbounds i8, ptr %0, i64 4576
  %47 = load i32, ptr %46, align 8, !tbaa !15
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %46, align 8, !tbaa !15
  %49 = getelementptr inbounds i8, ptr %0, i64 136
  %50 = load i32, ptr %49, align 8, !tbaa !16
  %.not50 = icmp eq i32 %50, 0
  br i1 %.not50, label %56, label %51

51:                                               ; preds = %45
  %52 = getelementptr inbounds i8, ptr %0, i64 2424
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  %54 = getelementptr inbounds i8, ptr %0, i64 2620
  %55 = load i32, ptr %54, align 4, !tbaa !22
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %53, i32 noundef 4, ptr noundef nonnull @.str.37, i32 noundef %55) #4
  %.pre = load i32, ptr %9, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %51, %45
  %57 = phi i32 [ %.pre, %51 ], [ %43, %45 ]
  call void @qh_backnormal(ptr noundef nonnull %0, ptr noundef %2, i32 noundef %11, i32 noundef %1, i32 noundef %57, ptr noundef %5, ptr noundef nonnull %10)
  br label %71

58:                                               ; preds = %._crit_edge
  call void @qh_backnormal(ptr noundef %0, ptr noundef %2, i32 noundef %11, i32 noundef %1, i32 noundef %43, ptr noundef %5, ptr noundef nonnull %10)
  %59 = load i32, ptr %10, align 4, !tbaa !5
  %.not48 = icmp eq i32 %59, 0
  br i1 %.not48, label %.thread, label %60

60:                                               ; preds = %58
  %61 = getelementptr inbounds i8, ptr %0, i64 4576
  %62 = load i32, ptr %61, align 8, !tbaa !15
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %61, align 8, !tbaa !15
  %64 = getelementptr inbounds i8, ptr %0, i64 136
  %65 = load i32, ptr %64, align 8, !tbaa !16
  %.not49 = icmp eq i32 %65, 0
  br i1 %.not49, label %71, label %66

66:                                               ; preds = %60
  %67 = getelementptr inbounds i8, ptr %0, i64 2424
  %68 = load ptr, ptr %67, align 8, !tbaa !21
  %69 = getelementptr inbounds i8, ptr %0, i64 2620
  %70 = load i32, ptr %69, align 4, !tbaa !22
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %68, i32 noundef 5, ptr noundef nonnull @.str.38, i32 noundef %70) #4
  br label %71

71:                                               ; preds = %66, %60, %56
  %.pr = load i32, ptr %10, align 4, !tbaa !5
  %.not51 = icmp eq i32 %.pr, 0
  br i1 %.not51, label %.thread, label %72

72:                                               ; preds = %71
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %58, %72, %71
  call void @qh_normalize2(ptr noundef %0, ptr noundef %5, i32 noundef %1, i32 noundef 1, ptr noundef null, ptr noundef null)
  %73 = load double, ptr %3, align 8, !tbaa !11
  %74 = load double, ptr %5, align 8, !tbaa !11
  %75 = fneg double %73
  %76 = fmul double %74, %75
  store double %76, ptr %6, align 8, !tbaa !11
  br i1 %.not55, label %._crit_edge62, label %.lr.ph61.preheader

.lr.ph61.preheader:                               ; preds = %.thread
  %xtraiter64 = and i32 %11, 1
  %lcmp.mod65.not = icmp eq i32 %xtraiter64, 0
  br i1 %lcmp.mod65.not, label %.lr.ph61.prol.loopexit, label %.lr.ph61.prol

.lr.ph61.prol:                                    ; preds = %.lr.ph61.preheader
  %.045.prol = getelementptr inbounds i8, ptr %5, i64 8
  %.046.prol = getelementptr inbounds i8, ptr %3, i64 8
  %77 = add nsw i32 %1, -2
  %78 = load double, ptr %.046.prol, align 8, !tbaa !11
  %79 = load double, ptr %.045.prol, align 8, !tbaa !11
  %80 = fneg double %78
  %81 = call double @llvm.fmuladd.f64(double %80, double %79, double %76)
  store double %81, ptr %6, align 8, !tbaa !11
  br label %.lr.ph61.prol.loopexit

.lr.ph61.prol.loopexit:                           ; preds = %.lr.ph61.prol, %.lr.ph61.preheader
  %.160.unr = phi i32 [ %11, %.lr.ph61.preheader ], [ %77, %.lr.ph61.prol ]
  %.pn5359.unr = phi ptr [ %5, %.lr.ph61.preheader ], [ %.045.prol, %.lr.ph61.prol ]
  %.pn58.unr = phi ptr [ %3, %.lr.ph61.preheader ], [ %.046.prol, %.lr.ph61.prol ]
  %storemerge57.unr = phi double [ %76, %.lr.ph61.preheader ], [ %81, %.lr.ph61.prol ]
  %82 = icmp eq i32 %1, 2
  br i1 %82, label %._crit_edge62, label %.lr.ph61

.lr.ph61:                                         ; preds = %.lr.ph61.prol.loopexit, %.lr.ph61
  %.160 = phi i32 [ %87, %.lr.ph61 ], [ %.160.unr, %.lr.ph61.prol.loopexit ]
  %.pn5359 = phi ptr [ %.045.1, %.lr.ph61 ], [ %.pn5359.unr, %.lr.ph61.prol.loopexit ]
  %.pn58 = phi ptr [ %.046.1, %.lr.ph61 ], [ %.pn58.unr, %.lr.ph61.prol.loopexit ]
  %storemerge57 = phi double [ %91, %.lr.ph61 ], [ %storemerge57.unr, %.lr.ph61.prol.loopexit ]
  %.045 = getelementptr inbounds i8, ptr %.pn5359, i64 8
  %.046 = getelementptr inbounds i8, ptr %.pn58, i64 8
  %83 = load double, ptr %.046, align 8, !tbaa !11
  %84 = load double, ptr %.045, align 8, !tbaa !11
  %85 = fneg double %83
  %86 = call double @llvm.fmuladd.f64(double %85, double %84, double %storemerge57)
  store double %86, ptr %6, align 8, !tbaa !11
  %.045.1 = getelementptr inbounds i8, ptr %.pn5359, i64 16
  %.046.1 = getelementptr inbounds i8, ptr %.pn58, i64 16
  %87 = add nsw i32 %.160, -2
  %88 = load double, ptr %.046.1, align 8, !tbaa !11
  %89 = load double, ptr %.045.1, align 8, !tbaa !11
  %90 = fneg double %88
  %91 = call double @llvm.fmuladd.f64(double %90, double %89, double %86)
  store double %91, ptr %6, align 8, !tbaa !11
  %.not52.1 = icmp eq i32 %87, 0
  br i1 %.not52.1, label %._crit_edge62, label %.lr.ph61, !llvm.loop !23

._crit_edge62:                                    ; preds = %.lr.ph61.prol.loopexit, %.lr.ph61, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "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 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 #4 = { 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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !6, i64 136}
!17 = !{!"qhT", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !12, 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, !12, i64 64, !12, 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, !12, i64 160, !12, i64 168, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188, !12, i64 192, !12, i64 200, !6, i64 208, !6, i64 212, !12, 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, !12, i64 448, !12, i64 456, !12, 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, !12, 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, !12, 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, !12, i64 1760, !12, i64 1768, !12, i64 1776, !12, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !12, i64 1816, !12, i64 1824, !12, i64 1832, !12, i64 1840, !12, i64 1848, !12, i64 1856, !12, i64 1864, !10, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !12, 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, !18, 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, !12, i64 2664, !6, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !6, i64 2704, !6, i64 2708, !6, i64 2712, !6, i64 2716, !6, i64 2720, !12, i64 2728, !12, i64 2736, !6, i64 2744, !6, i64 2748, !6, i64 2752, !6, i64 2756, !6, i64 2760, !6, i64 2764, !12, i64 2768, !12, 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, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, i64 2944, !6, i64 2952, !6, i64 2956, !6, i64 2960, !6, i64 2964, !6, i64 2968, !6, i64 2972, !10, i64 2976, !6, i64 2984, !6, i64 2988, !7, i64 2992, !7, i64 3192, !6, i64 3232, !12, i64 3240, !10, i64 3248, !10, i64 3256, !10, i64 3264, !19, i64 3272, !20, i64 3424}
!18 = !{!"long", !7, i64 0}
!19 = !{!"qhmemT", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !6, i64 64, !10, i64 72, !10, i64 80, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 116, !6, i64 120, !6, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144}
!20 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !6, i64 5320, !6, i64 5324, !6, i64 5328, !6, i64 5332, !12, i64 5336}
!21 = !{!17, !10, i64 2424}
!22 = !{!17, !6, i64 2620}
!23 = distinct !{!23, !14}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass