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

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

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

@qh_qh = external global %struct.qhT, align 8
@stderr = external global ptr, align 8
@stdout = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [389 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [88 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @print_summary() #0

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

declare i32 @printf(ptr noundef, ...) #2

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @findDelaunay(i32 noundef) #0

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

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

; 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 [56 x double], align 16
  %9 = alloca [14 x ptr], align 16
  %10 = alloca i32, align 4
  %11 = alloca [250 x i8], align 16
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %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
  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) #5
  store i32 3, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 448, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 112, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 250, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %19 = load ptr, ptr @stdout, align 8, !tbaa !9
  store ptr %19, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %20 = load ptr, ptr @stderr, align 8, !tbaa !9
  store ptr %20, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @qh_lib_check(i32 noundef 0, i32 noundef 3000, i32 noundef 48, i32 noundef 32, i32 noundef 120, i32 noundef 16, i32 noundef 152)
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %23 = getelementptr inbounds [250 x i8], ptr %11, i64 0, i64 0
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = icmp sge i32 %24, 2
  br i1 %25, label %26, label %30

26:                                               ; preds = %2
  %27 = load ptr, ptr %5, align 8, !tbaa !9
  %28 = getelementptr inbounds ptr, ptr %27, i64 1
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  br label %31

30:                                               ; preds = %2
  br label %31

31:                                               ; preds = %30, %26
  %32 = phi ptr [ %29, %26 ], [ @.str.9, %30 ]
  %33 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %23, ptr noundef @.str.8, ptr noundef %32) #5
  store i32 8, ptr %7, align 4, !tbaa !5
  %34 = getelementptr inbounds [56 x double], ptr %8, i64 0, i64 0
  %35 = load i32, ptr %7, align 4, !tbaa !5
  call void @makecube(ptr noundef %34, i32 noundef %35, i32 noundef 3)
  %36 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %36, ptr %18, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %41, %31
  %38 = load i32, ptr %18, align 4, !tbaa !5
  %39 = add nsw i32 %38, -1
  store i32 %39, ptr %18, align 4, !tbaa !5
  %40 = icmp ne i32 %38, 0
  br i1 %40, label %41, label %51

41:                                               ; preds = %37
  %42 = getelementptr inbounds [56 x double], ptr %8, i64 0, i64 0
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = load i32, ptr %18, align 4, !tbaa !5
  %45 = mul nsw i32 %43, %44
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds double, ptr %42, i64 %46
  %48 = load i32, ptr %18, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [14 x ptr], ptr %9, i64 0, i64 %49
  store ptr %47, ptr %50, align 8, !tbaa !9
  br label %37, !llvm.loop !11

51:                                               ; preds = %37
  %52 = load ptr, ptr %12, align 8, !tbaa !9
  %53 = getelementptr inbounds [14 x ptr], ptr %9, i64 0, i64 0
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = load i32, ptr %6, align 4, !tbaa !5
  call void @qh_printmatrix(ptr noundef %52, ptr noundef @.str.10, ptr noundef %53, i32 noundef %54, i32 noundef %55)
  %56 = call i32 @fflush(ptr noundef null)
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = getelementptr inbounds [56 x double], ptr %8, i64 0, i64 0
  %60 = load i32, ptr %10, align 4, !tbaa !5
  %61 = getelementptr inbounds [250 x i8], ptr %11, i64 0, i64 0
  %62 = load ptr, ptr %12, align 8, !tbaa !9
  %63 = load ptr, ptr %13, align 8, !tbaa !9
  %64 = call i32 @qh_new_qhull(i32 noundef %57, i32 noundef %58, ptr noundef %59, i32 noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %63)
  store i32 %64, ptr %14, align 4, !tbaa !5
  %65 = call i32 @fflush(ptr noundef null)
  %66 = load i32, ptr %14, align 4, !tbaa !5
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %86, label %68

68:                                               ; preds = %51
  call void @print_summary()
  %69 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !13
  store ptr %69, ptr %15, align 8, !tbaa !9
  br label %70

70:                                               ; preds = %81, %68
  %71 = load ptr, ptr %15, align 8, !tbaa !9
  %72 = icmp ne ptr %71, null
  br i1 %72, label %73, label %78

73:                                               ; preds = %70
  %74 = load ptr, ptr %15, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.facetT, ptr %74, i32 0, i32 7
  %76 = load ptr, ptr %75, align 8, !tbaa !17
  %77 = icmp ne ptr %76, null
  br label %78

78:                                               ; preds = %73, %70
  %79 = phi i1 [ false, %70 ], [ %77, %73 ]
  br i1 %79, label %80, label %85

80:                                               ; preds = %78
  br label %81

81:                                               ; preds = %80
  %82 = load ptr, ptr %15, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.facetT, ptr %82, i32 0, i32 7
  %84 = load ptr, ptr %83, align 8, !tbaa !17
  store ptr %84, ptr %15, align 8, !tbaa !9
  br label %70, !llvm.loop !19

85:                                               ; preds = %78
  br label %86

86:                                               ; preds = %85, %51
  call void @qh_freeqhull(i32 noundef 0)
  call void @qh_memfreeshort(ptr noundef %16, ptr noundef %17)
  %87 = load i32, ptr %16, align 4, !tbaa !5
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %92, label %89

89:                                               ; preds = %86
  %90 = load i32, ptr %17, align 4, !tbaa !5
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %97

92:                                               ; preds = %89, %86
  %93 = load ptr, ptr %13, align 8, !tbaa !9
  %94 = load i32, ptr %17, align 4, !tbaa !5
  %95 = load i32, ptr %16, align 4, !tbaa !5
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.11, i32 noundef %94, i32 noundef %95) #5
  br label %97

97:                                               ; preds = %92, %89
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %98)
  %100 = getelementptr inbounds [250 x i8], ptr %11, i64 0, i64 0
  %101 = load i32, ptr %4, align 4, !tbaa !5
  %102 = icmp sge i32 %101, 3
  br i1 %102, label %103, label %107

103:                                              ; preds = %97
  %104 = load ptr, ptr %5, align 8, !tbaa !9
  %105 = getelementptr inbounds ptr, ptr %104, i64 2
  %106 = load ptr, ptr %105, align 8, !tbaa !9
  br label %108

107:                                              ; preds = %97
  br label %108

108:                                              ; preds = %107, %103
  %109 = phi ptr [ %106, %103 ], [ @.str.9, %107 ]
  %110 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %100, ptr noundef @.str.13, ptr noundef %109) #5
  store i32 8, ptr %7, align 4, !tbaa !5
  %111 = getelementptr inbounds [56 x double], ptr %8, i64 0, i64 0
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = load i32, ptr %6, align 4, !tbaa !5
  %114 = call i64 @time(ptr noundef null) #5
  %115 = trunc i64 %114 to i32
  call void @makeDelaunay(ptr noundef %111, i32 noundef %112, i32 noundef %113, i32 noundef %115)
  %116 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %116, ptr %18, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %121, %108
  %118 = load i32, ptr %18, align 4, !tbaa !5
  %119 = add nsw i32 %118, -1
  store i32 %119, ptr %18, align 4, !tbaa !5
  %120 = icmp ne i32 %118, 0
  br i1 %120, label %121, label %131

121:                                              ; preds = %117
  %122 = getelementptr inbounds [56 x double], ptr %8, i64 0, i64 0
  %123 = load i32, ptr %6, align 4, !tbaa !5
  %124 = load i32, ptr %18, align 4, !tbaa !5
  %125 = mul nsw i32 %123, %124
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds double, ptr %122, i64 %126
  %128 = load i32, ptr %18, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [14 x ptr], ptr %9, i64 0, i64 %129
  store ptr %127, ptr %130, align 8, !tbaa !9
  br label %117, !llvm.loop !20

131:                                              ; preds = %117
  %132 = load ptr, ptr %12, align 8, !tbaa !9
  %133 = getelementptr inbounds [14 x ptr], ptr %9, i64 0, i64 0
  %134 = load i32, ptr %7, align 4, !tbaa !5
  %135 = load i32, ptr %6, align 4, !tbaa !5
  call void @qh_printmatrix(ptr noundef %132, ptr noundef @.str.10, ptr noundef %133, i32 noundef %134, i32 noundef %135)
  %136 = call i32 @fflush(ptr noundef null)
  %137 = load i32, ptr %6, align 4, !tbaa !5
  %138 = load i32, ptr %7, align 4, !tbaa !5
  %139 = getelementptr inbounds [56 x double], ptr %8, i64 0, i64 0
  %140 = load i32, ptr %10, align 4, !tbaa !5
  %141 = getelementptr inbounds [250 x i8], ptr %11, i64 0, i64 0
  %142 = load ptr, ptr %12, align 8, !tbaa !9
  %143 = load ptr, ptr %13, align 8, !tbaa !9
  %144 = call i32 @qh_new_qhull(i32 noundef %137, i32 noundef %138, ptr noundef %139, i32 noundef %140, ptr noundef %141, ptr noundef %142, ptr noundef %143)
  store i32 %144, ptr %14, align 4, !tbaa !5
  %145 = call i32 @fflush(ptr noundef null)
  %146 = load i32, ptr %14, align 4, !tbaa !5
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %173, label %148

148:                                              ; preds = %131
  call void @print_summary()
  %149 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !13
  store ptr %149, ptr %15, align 8, !tbaa !9
  br label %150

150:                                              ; preds = %161, %148
  %151 = load ptr, ptr %15, align 8, !tbaa !9
  %152 = icmp ne ptr %151, null
  br i1 %152, label %153, label %158

153:                                              ; preds = %150
  %154 = load ptr, ptr %15, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct.facetT, ptr %154, i32 0, i32 7
  %156 = load ptr, ptr %155, align 8, !tbaa !17
  %157 = icmp ne ptr %156, null
  br label %158

158:                                              ; preds = %153, %150
  %159 = phi i1 [ false, %150 ], [ %157, %153 ]
  br i1 %159, label %160, label %165

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160
  %162 = load ptr, ptr %15, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct.facetT, ptr %162, i32 0, i32 7
  %164 = load ptr, ptr %163, align 8, !tbaa !17
  store ptr %164, ptr %15, align 8, !tbaa !9
  br label %150, !llvm.loop !21

165:                                              ; preds = %158
  %166 = load i32, ptr %6, align 4, !tbaa !5
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %166)
  %168 = call i32 @_setjmp(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 152)) #6
  store i32 %168, ptr %14, align 4, !tbaa !5
  %169 = load i32, ptr %14, align 4, !tbaa !5
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %172, label %171

171:                                              ; preds = %165
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 206), align 8, !tbaa !22
  call void @findDelaunay(i32 noundef 3)
  br label %172

172:                                              ; preds = %171, %165
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 206), align 8, !tbaa !22
  br label %173

173:                                              ; preds = %172, %131
  call void @qh_freeqhull(i32 noundef 0)
  call void @qh_memfreeshort(ptr noundef %16, ptr noundef %17)
  %174 = load i32, ptr %16, align 4, !tbaa !5
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %179, label %176

176:                                              ; preds = %173
  %177 = load i32, ptr %17, align 4, !tbaa !5
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %179, label %184

179:                                              ; preds = %176, %173
  %180 = load ptr, ptr %13, align 8, !tbaa !9
  %181 = load i32, ptr %17, align 4, !tbaa !5
  %182 = load i32, ptr %16, align 4, !tbaa !5
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef @.str.15, i32 noundef %181, i32 noundef %182) #5
  br label %184

184:                                              ; preds = %179, %176
  %185 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  %186 = getelementptr inbounds [250 x i8], ptr %11, i64 0, i64 0
  %187 = load i32, ptr %4, align 4, !tbaa !5
  %188 = icmp sge i32 %187, 4
  br i1 %188, label %189, label %193

189:                                              ; preds = %184
  %190 = load ptr, ptr %5, align 8, !tbaa !9
  %191 = getelementptr inbounds ptr, ptr %190, i64 3
  %192 = load ptr, ptr %191, align 8, !tbaa !9
  br label %194

193:                                              ; preds = %184
  br label %194

194:                                              ; preds = %193, %189
  %195 = phi ptr [ %192, %189 ], [ @.str.18, %193 ]
  %196 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %186, ptr noundef @.str.17, ptr noundef %195) #5
  store i32 8, ptr %7, align 4, !tbaa !5
  %197 = getelementptr inbounds [56 x double], ptr %8, i64 0, i64 0
  %198 = load i32, ptr %7, align 4, !tbaa !5
  %199 = load i32, ptr %6, align 4, !tbaa !5
  call void @makehalf(ptr noundef %197, i32 noundef %198, i32 noundef %199)
  %200 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %200, ptr %18, align 4, !tbaa !5
  br label %201

201:                                              ; preds = %205, %194
  %202 = load i32, ptr %18, align 4, !tbaa !5
  %203 = add nsw i32 %202, -1
  store i32 %203, ptr %18, align 4, !tbaa !5
  %204 = icmp ne i32 %202, 0
  br i1 %204, label %205, label %216

205:                                              ; preds = %201
  %206 = getelementptr inbounds [56 x double], ptr %8, i64 0, i64 0
  %207 = load i32, ptr %6, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  %209 = load i32, ptr %18, align 4, !tbaa !5
  %210 = mul nsw i32 %208, %209
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds double, ptr %206, i64 %211
  %213 = load i32, ptr %18, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [14 x ptr], ptr %9, i64 0, i64 %214
  store ptr %212, ptr %215, align 8, !tbaa !9
  br label %201, !llvm.loop !23

216:                                              ; preds = %201
  %217 = load ptr, ptr %12, align 8, !tbaa !9
  %218 = getelementptr inbounds [14 x ptr], ptr %9, i64 0, i64 0
  %219 = load i32, ptr %7, align 4, !tbaa !5
  %220 = load i32, ptr %6, align 4, !tbaa !5
  %221 = add nsw i32 %220, 1
  call void @qh_printmatrix(ptr noundef %217, ptr noundef @.str.19, ptr noundef %218, i32 noundef %219, i32 noundef %221)
  %222 = call i32 @fflush(ptr noundef null)
  %223 = load i32, ptr %6, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  %225 = load i32, ptr %7, align 4, !tbaa !5
  %226 = getelementptr inbounds [56 x double], ptr %8, i64 0, i64 0
  %227 = load i32, ptr %10, align 4, !tbaa !5
  %228 = getelementptr inbounds [250 x i8], ptr %11, i64 0, i64 0
  %229 = load ptr, ptr %12, align 8, !tbaa !9
  %230 = load ptr, ptr %13, align 8, !tbaa !9
  %231 = call i32 @qh_new_qhull(i32 noundef %224, i32 noundef %225, ptr noundef %226, i32 noundef %227, ptr noundef %228, ptr noundef %229, ptr noundef %230)
  store i32 %231, ptr %14, align 4, !tbaa !5
  %232 = call i32 @fflush(ptr noundef null)
  %233 = load i32, ptr %14, align 4, !tbaa !5
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %236, label %235

235:                                              ; preds = %216
  call void @print_summary()
  br label %236

236:                                              ; preds = %235, %216
  call void @qh_freeqhull(i32 noundef 0)
  call void @qh_memfreeshort(ptr noundef %16, ptr noundef %17)
  %237 = load i32, ptr %16, align 4, !tbaa !5
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %242, label %239

239:                                              ; preds = %236
  %240 = load i32, ptr %17, align 4, !tbaa !5
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %247

242:                                              ; preds = %239, %236
  %243 = load ptr, ptr @stderr, align 8, !tbaa !9
  %244 = load i32, ptr %17, align 4, !tbaa !5
  %245 = load i32, ptr %16, align 4, !tbaa !5
  %246 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef @.str.20, i32 noundef %244, i32 noundef %245) #5
  br label %247

247:                                              ; preds = %242, %239
  %248 = load i32, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 250, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 448, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  ret i32 %248
}

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

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

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

declare i32 @fflush(ptr noundef) #2

declare i32 @qh_new_qhull(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @qh_freeqhull(i32 noundef) #2

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

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3

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

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 = { 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 #5 = { nounwind }
attributes #6 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 2456}
!14 = !{!"qhT", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !15, 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, !15, i64 64, !15, 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, !15, i64 160, !15, i64 168, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188, !15, i64 192, !15, i64 200, !6, i64 208, !6, i64 212, !15, 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, !15, i64 448, !15, i64 456, !15, 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, !15, 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, !15, 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, !15, i64 1760, !15, i64 1768, !15, i64 1776, !15, i64 1784, !15, i64 1792, !15, i64 1800, !15, i64 1808, !15, i64 1816, !15, i64 1824, !15, i64 1832, !15, i64 1840, !15, i64 1848, !15, i64 1856, !15, i64 1864, !10, i64 1872, !15, i64 1880, !15, i64 1888, !15, i64 1896, !15, 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, !16, 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, !15, i64 2664, !6, i64 2672, !15, i64 2680, !15, i64 2688, !15, i64 2696, !6, i64 2704, !6, i64 2708, !6, i64 2712, !6, i64 2716, !6, i64 2720, !15, i64 2728, !15, i64 2736, !6, i64 2744, !6, i64 2748, !6, i64 2752, !6, i64 2756, !6, i64 2760, !6, i64 2764, !15, i64 2768, !15, 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, !15, i64 2920, !15, i64 2928, !15, i64 2936, !15, i64 2944, !6, i64 2952, !6, i64 2956, !6, i64 2960, !6, i64 2964, !6, i64 2968, !6, i64 2972, !10, i64 2976, !10, i64 2984, !6, i64 2992}
!15 = !{!"double", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !10, i64 56}
!18 = !{!"facetT", !15, i64 0, !15, i64 8, !15, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = !{!14, !6, i64 2720}
!23 = distinct !{!23, !12}


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

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

@qh_qh = external global %struct.qhT, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [389 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [88 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @print_summary() local_unnamed_addr #0

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @findDelaunay(i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [56 x double], align 16
  %4 = alloca [14 x ptr], align 16
  %5 = alloca [250 x i8], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 448, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 250, ptr nonnull %5) #6
  %8 = load ptr, ptr @stdout, align 8, !tbaa !5
  %9 = load ptr, ptr @stderr, align 8, !tbaa !5
  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 3000, i32 noundef 48, i32 noundef 32, i32 noundef 120, i32 noundef 16, i32 noundef 152) #6
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %12 = icmp sgt i32 %0, 1
  br i1 %12, label %13, label %16

13:                                               ; preds = %2
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %2, %13
  %17 = phi ptr [ %15, %13 ], [ @.str.9, %2 ]
  %18 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef %17) #6
  call void @makecube(ptr noundef nonnull %3, i32 noundef 8, i32 noundef 3)
  %19 = getelementptr inbounds i8, ptr %3, i64 168
  %20 = getelementptr inbounds i8, ptr %4, i64 56
  store ptr %19, ptr %20, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %3, i64 144
  %22 = getelementptr inbounds i8, ptr %4, i64 48
  store ptr %21, ptr %22, align 16, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %3, i64 120
  %24 = getelementptr inbounds i8, ptr %4, i64 40
  store ptr %23, ptr %24, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %3, i64 96
  %26 = getelementptr inbounds i8, ptr %4, i64 32
  store ptr %25, ptr %26, align 16, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %3, i64 72
  %28 = getelementptr inbounds i8, ptr %4, i64 24
  store ptr %27, ptr %28, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %3, i64 48
  %30 = getelementptr inbounds i8, ptr %4, i64 16
  store ptr %29, ptr %30, align 16, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %3, i64 24
  %32 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %31, ptr %32, align 8, !tbaa !5
  store ptr %3, ptr %4, align 16, !tbaa !5
  call void @qh_printmatrix(ptr noundef %8, ptr noundef nonnull @.str.10, ptr noundef nonnull %4, i32 noundef 8, i32 noundef 3) #6
  %33 = call i32 @fflush(ptr noundef null)
  %34 = call i32 @qh_new_qhull(i32 noundef 3, i32 noundef 8, ptr noundef nonnull %3, i32 noundef 0, ptr noundef nonnull %5, ptr noundef %8, ptr noundef %9) #6
  %35 = call i32 @fflush(ptr noundef null)
  %.not75 = icmp eq i32 %34, 0
  br i1 %.not75, label %.critedge.loopexit, label %.critedge

.critedge.loopexit:                               ; preds = %16
  call void @print_summary()
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %16
  call void @qh_freeqhull(i32 noundef 0) #6
  call void @qh_memfreeshort(ptr noundef nonnull %6, ptr noundef nonnull %7) #6
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = icmp ne i32 %36, 0
  %38 = load i32, ptr %7, align 4
  %39 = icmp ne i32 %38, 0
  %or.cond = select i1 %37, i1 true, i1 %39
  br i1 %or.cond, label %40, label %42

40:                                               ; preds = %.critedge
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.11, i32 noundef %38, i32 noundef %36) #7
  br label %42

42:                                               ; preds = %.critedge, %40
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef 3)
  %44 = icmp sgt i32 %0, 2
  br i1 %44, label %45, label %48

45:                                               ; preds = %42
  %46 = getelementptr inbounds i8, ptr %1, i64 16
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %42, %45
  %49 = phi ptr [ %47, %45 ], [ @.str.9, %42 ]
  %50 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef %49) #6
  %51 = call i64 @time(ptr noundef null) #6
  %52 = trunc i64 %51 to i32
  call void @makeDelaunay(ptr noundef nonnull %3, i32 noundef 8, i32 noundef 3, i32 noundef %52)
  store ptr %19, ptr %20, align 8, !tbaa !5
  store ptr %21, ptr %22, align 16, !tbaa !5
  store ptr %23, ptr %24, align 8, !tbaa !5
  store ptr %25, ptr %26, align 16, !tbaa !5
  store ptr %27, ptr %28, align 8, !tbaa !5
  store ptr %29, ptr %30, align 16, !tbaa !5
  store ptr %31, ptr %32, align 8, !tbaa !5
  store ptr %3, ptr %4, align 16, !tbaa !5
  call void @qh_printmatrix(ptr noundef %8, ptr noundef nonnull @.str.10, ptr noundef nonnull %4, i32 noundef 8, i32 noundef 3) #6
  %53 = call i32 @fflush(ptr noundef null)
  %54 = call i32 @qh_new_qhull(i32 noundef 3, i32 noundef 8, ptr noundef nonnull %3, i32 noundef 0, ptr noundef nonnull %5, ptr noundef %8, ptr noundef %9) #6
  %55 = call i32 @fflush(ptr noundef null)
  %.not79 = icmp eq i32 %54, 0
  br i1 %.not79, label %.critedge3, label %60

.critedge3:                                       ; preds = %48
  call void @print_summary()
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef 3)
  %57 = call i32 @_setjmp(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 1928)) #8
  %.not82 = icmp eq i32 %57, 0
  br i1 %.not82, label %58, label %59

58:                                               ; preds = %.critedge3
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2720), align 8, !tbaa !11
  call void @findDelaunay(i32 noundef 3)
  br label %59

59:                                               ; preds = %58, %.critedge3
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2720), align 8, !tbaa !11
  br label %60

60:                                               ; preds = %59, %48
  call void @qh_freeqhull(i32 noundef 0) #6
  call void @qh_memfreeshort(ptr noundef nonnull %6, ptr noundef nonnull %7) #6
  %61 = load i32, ptr %6, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  %63 = load i32, ptr %7, align 4
  %64 = icmp ne i32 %63, 0
  %or.cond5 = select i1 %62, i1 true, i1 %64
  br i1 %or.cond5, label %65, label %67

65:                                               ; preds = %60
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.15, i32 noundef %63, i32 noundef %61) #7
  br label %67

67:                                               ; preds = %60, %65
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  %69 = icmp sgt i32 %0, 3
  br i1 %69, label %70, label %73

70:                                               ; preds = %67
  %71 = getelementptr inbounds i8, ptr %1, i64 24
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %67, %70
  %74 = phi ptr [ %72, %70 ], [ @.str.18, %67 ]
  %75 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.17, ptr noundef %74) #6
  call void @makehalf(ptr noundef nonnull %3, i32 noundef 8, i32 noundef 3)
  %76 = getelementptr inbounds i8, ptr %3, i64 224
  store ptr %76, ptr %20, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %3, i64 192
  store ptr %77, ptr %22, align 16, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %3, i64 160
  store ptr %78, ptr %24, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %3, i64 128
  store ptr %79, ptr %26, align 16, !tbaa !5
  store ptr %25, ptr %28, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %3, i64 64
  store ptr %80, ptr %30, align 16, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %3, i64 32
  store ptr %81, ptr %32, align 8, !tbaa !5
  store ptr %3, ptr %4, align 16, !tbaa !5
  call void @qh_printmatrix(ptr noundef %8, ptr noundef nonnull @.str.19, ptr noundef nonnull %4, i32 noundef 8, i32 noundef 4) #6
  %82 = call i32 @fflush(ptr noundef null)
  %83 = call i32 @qh_new_qhull(i32 noundef 4, i32 noundef 8, ptr noundef nonnull %3, i32 noundef 0, ptr noundef nonnull %5, ptr noundef %8, ptr noundef %9) #6
  %84 = call i32 @fflush(ptr noundef null)
  %.not84 = icmp eq i32 %83, 0
  br i1 %.not84, label %85, label %86

85:                                               ; preds = %73
  call void @print_summary()
  br label %86

86:                                               ; preds = %85, %73
  call void @qh_freeqhull(i32 noundef 0) #6
  call void @qh_memfreeshort(ptr noundef nonnull %6, ptr noundef nonnull %7) #6
  %87 = load i32, ptr %6, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  %89 = load i32, ptr %7, align 4
  %90 = icmp ne i32 %89, 0
  %or.cond7 = select i1 %88, i1 true, i1 %90
  br i1 %or.cond7, label %91, label %94

91:                                               ; preds = %86
  %92 = load ptr, ptr @stderr, align 8, !tbaa !5
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef nonnull @.str.20, i32 noundef %89, i32 noundef %87) #7
  br label %94

94:                                               ; preds = %86, %91
  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 250, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 448, ptr nonnull %3) #6
  ret i32 %83
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

declare void @qh_printmatrix(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #2

declare i32 @qh_new_qhull(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @qh_freeqhull(i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #4

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

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 = { 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 #3 = { "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 "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 = { cold 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 2720}
!12 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !13, 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, !13, i64 64, !13, 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, !13, i64 160, !13, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !13, i64 192, !13, i64 200, !10, i64 208, !10, i64 212, !13, 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, !13, i64 448, !13, i64 456, !13, 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, !13, 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, !13, 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, !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, !13, i64 1856, !13, i64 1864, !6, i64 1872, !13, i64 1880, !13, i64 1888, !13, i64 1896, !13, 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, !14, 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, !13, i64 2664, !10, i64 2672, !13, i64 2680, !13, i64 2688, !13, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !13, i64 2728, !13, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !13, i64 2768, !13, 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, !13, i64 2920, !13, i64 2928, !13, i64 2936, !13, i64 2944, !10, i64 2952, !10, i64 2956, !10, i64 2960, !10, i64 2964, !10, i64 2968, !10, i64 2972, !6, i64 2976, !6, i64 2984, !10, i64 2992}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass