; LLVM IR from Discngine/fpocket :: src/qhull/src/qdelaunay (qdelaun)

; 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] }

@hidden_options = external dso_local global [100 x i8], align 16
@qh_prompta = external dso_local global [501 x i8], align 16
@qh_promptb = external dso_local global [248 x i8], align 16
@qh_promptc = external dso_local global [1487 x i8], align 16
@qh_promptd = external dso_local global [1224 x i8], align 16
@qh_prompte = external dso_local global [1017 x i8], align 16
@qh_prompt2 = external dso_local global [1316 x i8], align 16
@qh_prompt3 = external dso_local global [1041 x i8], align 16
@stdout = external global ptr, align 8
@qh_version = external constant [0 x i8], align 1
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@qh_version2 = external constant [0 x i8], align 1
@stdin = external global ptr, align 8
@stderr = external global ptr, align 8
@qh_qh = external global %struct.qhT, align 8
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [80 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @qh_lib_check(i32 noundef 0, i32 noundef 2896, i32 noundef 48, i32 noundef 32, i32 noundef 120, i32 noundef 16, i32 noundef 152)
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %14 = icmp eq i32 %13, 1
  br i1 %14, label %15, label %21

15:                                               ; preds = %2
  %16 = call i32 @isatty(i32 noundef 0)
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %21

18:                                               ; preds = %15
  %19 = load ptr, ptr @stdout, align 8, !tbaa !9
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @qh_prompt2, ptr noundef @qh_version) #6
  call void @exit(i32 noundef 0) #7
  unreachable

21:                                               ; preds = %15, %2
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 1
  br i1 %23, label %24, label %41

24:                                               ; preds = %21
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds ptr, ptr %25, i64 1
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = load i8, ptr %27, align 1, !tbaa !11
  %29 = sext i8 %28 to i32
  %30 = icmp eq i32 %29, 45
  br i1 %30, label %31, label %41

31:                                               ; preds = %24
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  %33 = getelementptr inbounds ptr, ptr %32, i64 1
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %34, i64 1
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %37 = icmp ne i8 %36, 0
  br i1 %37, label %41, label %38

38:                                               ; preds = %31
  %39 = load ptr, ptr @stdout, align 8, !tbaa !9
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @qh_prompta, ptr noundef @qh_version, ptr noundef @qh_promptb, ptr noundef @qh_promptc, ptr noundef @qh_promptd, ptr noundef @qh_prompte) #6
  call void @exit(i32 noundef 0) #7
  unreachable

41:                                               ; preds = %31, %24, %21
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = icmp sgt i32 %42, 1
  br i1 %43, label %44, label %61

44:                                               ; preds = %41
  %45 = load ptr, ptr %5, align 8, !tbaa !9
  %46 = getelementptr inbounds ptr, ptr %45, i64 1
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = load i8, ptr %47, align 1, !tbaa !11
  %49 = sext i8 %48 to i32
  %50 = icmp eq i32 %49, 46
  br i1 %50, label %51, label %61

51:                                               ; preds = %44
  %52 = load ptr, ptr %5, align 8, !tbaa !9
  %53 = getelementptr inbounds ptr, ptr %52, i64 1
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  %55 = getelementptr inbounds i8, ptr %54, i64 1
  %56 = load i8, ptr %55, align 1, !tbaa !11
  %57 = icmp ne i8 %56, 0
  br i1 %57, label %61, label %58

58:                                               ; preds = %51
  %59 = load ptr, ptr @stdout, align 8, !tbaa !9
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @qh_prompt3, ptr noundef @qh_version) #6
  call void @exit(i32 noundef 0) #7
  unreachable

61:                                               ; preds = %51, %44, %41
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = icmp sgt i32 %62, 1
  br i1 %63, label %64, label %82

64:                                               ; preds = %61
  %65 = load ptr, ptr %5, align 8, !tbaa !9
  %66 = getelementptr inbounds ptr, ptr %65, i64 1
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = load i8, ptr %67, align 1, !tbaa !11
  %69 = sext i8 %68 to i32
  %70 = icmp eq i32 %69, 45
  br i1 %70, label %71, label %82

71:                                               ; preds = %64
  %72 = load ptr, ptr %5, align 8, !tbaa !9
  %73 = getelementptr inbounds ptr, ptr %72, i64 1
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %74, i64 1
  %76 = load i8, ptr %75, align 1, !tbaa !11
  %77 = sext i8 %76 to i32
  %78 = icmp eq i32 %77, 86
  br i1 %78, label %79, label %82

79:                                               ; preds = %71
  %80 = load ptr, ptr @stdout, align 8, !tbaa !9
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str, ptr noundef @qh_version2) #6
  call void @exit(i32 noundef 0) #7
  unreachable

82:                                               ; preds = %71, %64, %61
  %83 = load ptr, ptr @stdin, align 8, !tbaa !9
  %84 = load ptr, ptr @stdout, align 8, !tbaa !9
  %85 = load ptr, ptr @stderr, align 8, !tbaa !9
  %86 = load i32, ptr %4, align 4, !tbaa !5
  %87 = load ptr, ptr %5, align 8, !tbaa !9
  call void @qh_init_A(ptr noundef %83, ptr noundef %84, ptr noundef %85, i32 noundef %86, ptr noundef %87)
  %88 = call i32 @_setjmp(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 145)) #8
  store i32 %88, ptr %8, align 4, !tbaa !5
  %89 = load i32, ptr %8, align 4, !tbaa !5
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %114, label %91

91:                                               ; preds = %82
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 4, !tbaa !12
  call void @qh_option(ptr noundef @.str.1, ptr noundef null, ptr noundef null)
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 13), align 8, !tbaa !16
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 77), align 8, !tbaa !17
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !18
  call void @qh_checkflags(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 111), ptr noundef @hidden_options)
  call void @qh_initflags(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 111))
  %92 = call ptr @qh_readpoints(ptr noundef %9, ptr noundef %10, ptr noundef %12)
  store ptr %92, ptr %11, align 8, !tbaa !9
  %93 = load i32, ptr %10, align 4, !tbaa !5
  %94 = icmp sge i32 %93, 5
  br i1 %94, label %95, label %96

95:                                               ; preds = %91
  call void @qh_option(ptr noundef @.str.2, ptr noundef null, ptr noundef null)
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 31), align 8, !tbaa !19
  br label %96

96:                                               ; preds = %95, %91
  %97 = load ptr, ptr %11, align 8, !tbaa !9
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = load i32, ptr %10, align 4, !tbaa !5
  %100 = load i32, ptr %12, align 4, !tbaa !5
  call void @qh_init_B(ptr noundef %97, i32 noundef %98, i32 noundef %99, i32 noundef %100)
  call void @qh_qhull()
  call void @qh_check_output()
  call void @qh_produce_output()
  %101 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 95), align 4, !tbaa !20
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %113

103:                                              ; preds = %96
  %104 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 16), align 4, !tbaa !21
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %113, label %106

106:                                              ; preds = %103
  %107 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 83), align 8, !tbaa !22
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %113, label %109

109:                                              ; preds = %106
  %110 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 82), align 4, !tbaa !23
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %113, label %112

112:                                              ; preds = %109
  call void @qh_check_points()
  br label %113

113:                                              ; preds = %112, %109, %106, %103, %96
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %113, %82
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 192), align 4, !tbaa !12
  call void @qh_freeqhull(i32 noundef 0)
  call void @qh_memfreeshort(ptr noundef %6, ptr noundef %7)
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %120, label %117

117:                                              ; preds = %114
  %118 = load i32, ptr %7, align 4, !tbaa !5
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %123

120:                                              ; preds = %117, %114
  %121 = load i32, ptr %7, align 4, !tbaa !5
  %122 = load i32, ptr %6, align 4, !tbaa !5
  call void (i32, ptr, ...) @qh_fprintf_stderr(i32 noundef 6263, ptr noundef @.str.3, i32 noundef %121, i32 noundef %122)
  br label %123

123:                                              ; preds = %120, %117
  %124 = load i32, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  ret i32 %124
}

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

declare void @qh_lib_check(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare i32 @isatty(i32 noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

declare void @qh_init_A(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) #5

declare void @qh_option(ptr noundef, ptr noundef, ptr noundef) #2

declare void @qh_checkflags(ptr noundef, ptr noundef) #2

declare void @qh_initflags(ptr noundef) #2

declare ptr @qh_readpoints(ptr noundef, ptr noundef, ptr noundef) #2

declare void @qh_init_B(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare void @qh_qhull() #2

declare void @qh_check_output() #2

declare void @qh_produce_output() #2

declare void @qh_check_points() #2

declare void @qh_freeqhull(i32 noundef) #2

declare void @qh_memfreeshort(ptr noundef, ptr noundef) #2

declare void @qh_fprintf_stderr(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) #1

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 "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 = { noreturn nounwind "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 #5 = { nounwind returns_twice "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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { nounwind returns_twice }

!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 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 2660}
!13 = !{!"qhT", !6, i64 0, !6, i64 4, !6, i64 8, !14, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !14, i64 56, !14, i64 64, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !10, i64 96, !6, i64 104, !6, i64 108, !10, i64 112, !6, i64 120, !6, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144, !14, i64 152, !14, i64 160, !6, i64 168, !6, i64 172, !6, i64 176, !14, i64 184, !14, i64 192, !6, i64 200, !14, 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, !14, i64 448, !14, i64 456, !14, 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, !14, 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, !14, i64 584, !6, i64 592, !10, i64 600, !10, i64 608, !6, i64 616, !6, i64 620, !6, i64 624, !6, i64 628, !6, i64 632, !10, i64 640, !6, i64 648, !10, 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, !10, i64 1720, !10, i64 1728, !10, i64 1736, !10, i64 1744, !14, i64 1752, !14, i64 1760, !14, i64 1768, !14, i64 1776, !14, i64 1784, !14, i64 1792, !14, i64 1800, !14, i64 1808, !14, i64 1816, !14, i64 1824, !14, i64 1832, !14, i64 1840, !14, i64 1848, !6, i64 1856, !10, i64 1864, !14, i64 1872, !14, i64 1880, !14, i64 1888, !14, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 2112, !7, i64 2152, !7, i64 2352, !10, i64 2392, !10, i64 2400, !10, i64 2408, !10, i64 2416, !6, i64 2424, !6, i64 2428, !6, i64 2432, !10, i64 2440, !10, i64 2448, !10, i64 2456, !10, i64 2464, !10, i64 2472, !6, i64 2480, !6, i64 2484, !10, i64 2488, !6, i64 2496, !10, i64 2504, !10, i64 2512, !10, i64 2520, !10, i64 2528, !6, i64 2536, !6, i64 2540, !6, i64 2544, !6, i64 2548, !6, i64 2552, !6, i64 2556, !6, i64 2560, !15, i64 2568, !6, i64 2576, !6, i64 2580, !6, i64 2584, !6, i64 2588, !10, i64 2592, !6, i64 2600, !6, i64 2604, !14, i64 2608, !6, i64 2616, !14, i64 2624, !14, i64 2632, !14, i64 2640, !6, i64 2648, !6, i64 2652, !6, i64 2656, !6, i64 2660, !14, i64 2664, !14, i64 2672, !6, i64 2680, !6, i64 2684, !6, i64 2688, !6, i64 2692, !14, i64 2696, !14, i64 2704, !6, i64 2712, !6, i64 2716, !6, i64 2720, !6, i64 2724, !10, i64 2728, !10, i64 2736, !10, i64 2744, !10, i64 2752, !10, i64 2760, !10, i64 2768, !10, i64 2776, !10, i64 2784, !6, i64 2792, !10, i64 2800, !10, i64 2808, !6, i64 2816, !6, i64 2820, !6, i64 2824, !10, i64 2832, !14, i64 2840, !14, i64 2848, !14, i64 2856, !6, i64 2864, !6, i64 2868, !10, i64 2872, !10, i64 2880, !6, i64 2888}
!14 = !{!"double", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!13, !6, i64 72}
!17 = !{!13, !6, i64 496}
!18 = !{!13, !6, i64 136}
!19 = !{!13, !6, i64 168}
!20 = !{!13, !6, i64 572}
!21 = !{!13, !6, i64 84}
!22 = !{!13, !6, i64 520}
!23 = !{!13, !6, i64 516}


; 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] }

@hidden_options = external dso_local global [100 x i8], align 16
@qh_prompta = external dso_local global [501 x i8], align 16
@qh_promptb = external dso_local global [248 x i8], align 16
@qh_promptc = external dso_local global [1487 x i8], align 16
@qh_promptd = external dso_local global [1224 x i8], align 16
@qh_prompte = external dso_local global [1017 x i8], align 16
@qh_prompt2 = external dso_local global [1316 x i8], align 16
@qh_prompt3 = external dso_local global [1041 x i8], align 16
@stdout = external local_unnamed_addr global ptr, align 8
@qh_version = external constant [0 x i8], align 1
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@qh_version2 = external constant [0 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@qh_qh = external global %struct.qhT, align 8
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [80 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @qh_lib_check(i32 noundef 0, i32 noundef 2896, i32 noundef 48, i32 noundef 32, i32 noundef 120, i32 noundef 16, i32 noundef 152) #6
  %8 = icmp eq i32 %0, 1
  br i1 %8, label %9, label %14

9:                                                ; preds = %2
  %10 = call i32 @isatty(i32 noundef 0) #6
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %.critedge25, label %11

11:                                               ; preds = %9
  %12 = load ptr, ptr @stdout, align 8, !tbaa !5
  %13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @qh_prompt2, ptr noundef nonnull @qh_version) #6
  call void @exit(i32 noundef 0) #7
  unreachable

14:                                               ; preds = %2
  %15 = icmp sgt i32 %0, 1
  br i1 %15, label %16, label %.critedge25

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = load i8, ptr %18, align 1, !tbaa !9
  switch i8 %19, label %.critedge25 [
    i8 45, label %20
    i8 46, label %26
  ]

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %18, i64 1
  %22 = load i8, ptr %21, align 1, !tbaa !9
  switch i8 %22, label %.critedge25 [
    i8 0, label %23
    i8 86, label %32
  ]

23:                                               ; preds = %20
  %24 = load ptr, ptr @stdout, align 8, !tbaa !5
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @qh_prompta, ptr noundef nonnull @qh_version, ptr noundef nonnull @qh_promptb, ptr noundef nonnull @qh_promptc, ptr noundef nonnull @qh_promptd, ptr noundef nonnull @qh_prompte) #6
  call void @exit(i32 noundef 0) #7
  unreachable

26:                                               ; preds = %16
  %27 = getelementptr inbounds i8, ptr %18, i64 1
  %28 = load i8, ptr %27, align 1, !tbaa !9
  %.not23 = icmp eq i8 %28, 0
  br i1 %.not23, label %29, label %.critedge25

29:                                               ; preds = %26
  %30 = load ptr, ptr @stdout, align 8, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @qh_prompt3, ptr noundef nonnull @qh_version) #6
  call void @exit(i32 noundef 0) #7
  unreachable

32:                                               ; preds = %20
  %33 = load ptr, ptr @stdout, align 8, !tbaa !5
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str, ptr noundef nonnull @qh_version2) #6
  call void @exit(i32 noundef 0) #7
  unreachable

.critedge25:                                      ; preds = %20, %16, %26, %9, %14
  %35 = load ptr, ptr @stdin, align 8, !tbaa !5
  %36 = load ptr, ptr @stdout, align 8, !tbaa !5
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @qh_init_A(ptr noundef %35, ptr noundef %36, ptr noundef %37, i32 noundef %0, ptr noundef %1) #6
  %38 = call i32 @_setjmp(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 1912)) #8
  %.not24 = icmp eq i32 %38, 0
  br i1 %.not24, label %39, label %57

39:                                               ; preds = %.critedge25
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2660), align 4, !tbaa !10
  call void @qh_option(ptr noundef nonnull @.str.1, ptr noundef null, ptr noundef null) #6
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 72), align 8, !tbaa !15
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 496), align 8, !tbaa !16
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !17
  call void @qh_checkflags(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 668), ptr noundef nonnull @hidden_options) #6
  call void @qh_initflags(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 668)) #6
  %40 = call ptr @qh_readpoints(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7) #6
  %41 = load i32, ptr %6, align 4, !tbaa !18
  %42 = icmp sgt i32 %41, 4
  br i1 %42, label %43, label %44

43:                                               ; preds = %39
  call void @qh_option(ptr noundef nonnull @.str.2, ptr noundef null, ptr noundef null) #6
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 168), align 8, !tbaa !19
  %.pre = load i32, ptr %6, align 4, !tbaa !18
  br label %44

44:                                               ; preds = %43, %39
  %45 = phi i32 [ %.pre, %43 ], [ %41, %39 ]
  %46 = load i32, ptr %5, align 4, !tbaa !18
  %47 = load i32, ptr %7, align 4, !tbaa !18
  call void @qh_init_B(ptr noundef %40, i32 noundef %46, i32 noundef %45, i32 noundef %47) #6
  call void @qh_qhull() #6
  call void @qh_check_output() #6
  call void @qh_produce_output() #6
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 572), align 4, !tbaa !20
  %49 = icmp eq i32 %48, 0
  %50 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 84), align 4
  %51 = icmp ne i32 %50, 0
  %or.cond = select i1 %49, i1 true, i1 %51
  %52 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 520), align 8
  %53 = icmp ne i32 %52, 0
  %or.cond3 = select i1 %or.cond, i1 true, i1 %53
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 516), align 4
  %55 = icmp ne i32 %54, 0
  %or.cond5 = select i1 %or.cond3, i1 true, i1 %55
  br i1 %or.cond5, label %57, label %56

56:                                               ; preds = %44
  call void @qh_check_points() #6
  br label %57

57:                                               ; preds = %44, %56, %.critedge25
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2660), align 4, !tbaa !10
  call void @qh_freeqhull(i32 noundef 0) #6
  call void @qh_memfreeshort(ptr noundef nonnull %3, ptr noundef nonnull %4) #6
  %58 = load i32, ptr %3, align 4, !tbaa !18
  %59 = icmp ne i32 %58, 0
  %60 = load i32, ptr %4, align 4
  %61 = icmp ne i32 %60, 0
  %or.cond7 = select i1 %59, i1 true, i1 %61
  br i1 %or.cond7, label %62, label %63

62:                                               ; preds = %57
  call void (i32, ptr, ...) @qh_fprintf_stderr(i32 noundef 6263, ptr noundef nonnull @.str.3, i32 noundef %60, i32 noundef %58) #6
  br label %63

63:                                               ; preds = %57, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  ret i32 %38
}

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

declare void @qh_lib_check(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @isatty(i32 noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) local_unnamed_addr #5

declare void @qh_option(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @qh_checkflags(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @qh_initflags(ptr noundef) local_unnamed_addr #2

declare ptr @qh_readpoints(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @qh_qhull() local_unnamed_addr #2

declare void @qh_check_output() local_unnamed_addr #2

declare void @qh_produce_output() local_unnamed_addr #2

declare void @qh_check_points() local_unnamed_addr #2

declare void @qh_freeqhull(i32 noundef) local_unnamed_addr #2

declare void @qh_memfreeshort(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @qh_fprintf_stderr(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) #1

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nofree nounwind "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 = { noreturn nounwind "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 #5 = { nounwind returns_twice "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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { nounwind returns_twice }

!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 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 2660}
!11 = !{!"qhT", !12, i64 0, !12, i64 4, !12, i64 8, !13, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !13, i64 56, !13, i64 64, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !6, i64 96, !12, i64 104, !12, i64 108, !6, i64 112, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !13, i64 152, !13, i64 160, !12, i64 168, !12, i64 172, !12, i64 176, !13, i64 184, !13, i64 192, !12, i64 200, !13, i64 208, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !12, i64 232, !12, i64 236, !12, i64 240, !12, i64 244, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !12, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !12, i64 288, !12, i64 292, !7, i64 296, !12, i64 412, !12, i64 416, !12, i64 420, !12, i64 424, !12, i64 428, !12, i64 432, !12, i64 436, !12, i64 440, !12, i64 444, !13, i64 448, !13, i64 456, !13, i64 464, !12, i64 472, !12, i64 476, !12, i64 480, !12, i64 484, !12, i64 488, !12, i64 492, !12, i64 496, !12, i64 500, !12, i64 504, !12, i64 508, !12, i64 512, !12, i64 516, !12, i64 520, !12, i64 524, !12, i64 528, !12, i64 532, !12, i64 536, !12, i64 540, !13, i64 544, !12, i64 552, !12, i64 556, !12, i64 560, !12, i64 564, !12, i64 568, !12, i64 572, !12, i64 576, !12, i64 580, !13, i64 584, !12, i64 592, !6, i64 600, !6, i64 608, !12, i64 616, !12, i64 620, !12, i64 624, !12, i64 628, !12, i64 632, !6, i64 640, !12, i64 648, !6, i64 656, !12, i64 664, !7, i64 668, !12, i64 924, !7, i64 928, !7, i64 1184, !12, i64 1696, !12, i64 1700, !12, i64 1704, !12, i64 1708, !12, i64 1712, !12, i64 1716, !6, i64 1720, !6, i64 1728, !6, i64 1736, !6, i64 1744, !13, i64 1752, !13, i64 1760, !13, i64 1768, !13, i64 1776, !13, i64 1784, !13, i64 1792, !13, i64 1800, !13, i64 1808, !13, i64 1816, !13, i64 1824, !13, i64 1832, !13, i64 1840, !13, i64 1848, !12, i64 1856, !6, i64 1864, !13, i64 1872, !13, i64 1880, !13, i64 1888, !13, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 2112, !7, i64 2152, !7, i64 2352, !6, i64 2392, !6, i64 2400, !6, i64 2408, !6, i64 2416, !12, i64 2424, !12, i64 2428, !12, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !12, i64 2480, !12, i64 2484, !6, i64 2488, !12, i64 2496, !6, i64 2504, !6, i64 2512, !6, i64 2520, !6, i64 2528, !12, i64 2536, !12, i64 2540, !12, i64 2544, !12, i64 2548, !12, i64 2552, !12, i64 2556, !12, i64 2560, !14, i64 2568, !12, i64 2576, !12, i64 2580, !12, i64 2584, !12, i64 2588, !6, i64 2592, !12, i64 2600, !12, i64 2604, !13, i64 2608, !12, i64 2616, !13, i64 2624, !13, i64 2632, !13, i64 2640, !12, i64 2648, !12, i64 2652, !12, i64 2656, !12, i64 2660, !13, i64 2664, !13, i64 2672, !12, i64 2680, !12, i64 2684, !12, i64 2688, !12, i64 2692, !13, i64 2696, !13, i64 2704, !12, i64 2712, !12, i64 2716, !12, i64 2720, !12, i64 2724, !6, i64 2728, !6, i64 2736, !6, i64 2744, !6, i64 2752, !6, i64 2760, !6, i64 2768, !6, i64 2776, !6, i64 2784, !12, i64 2792, !6, i64 2800, !6, i64 2808, !12, i64 2816, !12, i64 2820, !12, i64 2824, !6, i64 2832, !13, i64 2840, !13, i64 2848, !13, i64 2856, !12, i64 2864, !12, i64 2868, !6, i64 2872, !6, i64 2880, !12, i64 2888}
!12 = !{!"int", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!11, !12, i64 72}
!16 = !{!11, !12, i64 496}
!17 = !{!11, !12, i64 136}
!18 = !{!12, !12, i64 0}
!19 = !{!11, !12, i64 168}
!20 = !{!11, !12, i64 572}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass