; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (merge_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 }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.ridgeT = type { ptr, ptr, ptr, i32, i8 }

@.str.64 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [82 x i8], align 1

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

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

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

declare i32 @qh_setsize(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_comparevisit(ptr noundef, ptr noundef) #2

declare ptr @qh_setdelnth(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_find_newvertex(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.qhT, ptr %20, i32 0, i32 29
  %22 = load i32, ptr %21, align 8, !tbaa !9
  %23 = icmp sge i32 %22, 4
  br i1 %23, label %24, label %78

24:                                               ; preds = %4
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.qhT, ptr %26, i32 0, i32 158
  %28 = load ptr, ptr %27, align 8, !tbaa !16
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.vertexT, ptr %29, i32 0, i32 4
  %31 = load i32, ptr %30, align 8, !tbaa !17
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %25, ptr noundef %28, i32 noundef 8063, ptr noundef @.str.64, i32 noundef %31)
  store ptr null, ptr %10, align 8, !tbaa !5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %52

34:                                               ; preds = %24
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.setT, ptr %35, i32 0, i32 1
  %37 = getelementptr inbounds [1 x %union.setelemT], ptr %36, i64 0, i64 0
  store ptr %37, ptr %11, align 8, !tbaa !5
  br label %38

38:                                               ; preds = %43, %34
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = getelementptr inbounds ptr, ptr %39, i32 1
  store ptr %40, ptr %11, align 8, !tbaa !5
  %41 = load ptr, ptr %39, align 8, !tbaa !5
  store ptr %41, ptr %10, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %51

43:                                               ; preds = %38
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.qhT, ptr %45, i32 0, i32 158
  %47 = load ptr, ptr %46, align 8, !tbaa !16
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.vertexT, ptr %48, i32 0, i32 4
  %50 = load i32, ptr %49, align 8, !tbaa !17
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %44, ptr noundef %47, i32 noundef 8064, ptr noundef @.str.65, i32 noundef %50)
  br label %38, !llvm.loop !19

51:                                               ; preds = %38
  br label %52

52:                                               ; preds = %51, %24
  store ptr null, ptr %13, align 8, !tbaa !5
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %73

55:                                               ; preds = %52
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.setT, ptr %56, i32 0, i32 1
  %58 = getelementptr inbounds [1 x %union.setelemT], ptr %57, i64 0, i64 0
  store ptr %58, ptr %14, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %64, %55
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  %61 = getelementptr inbounds ptr, ptr %60, i32 1
  store ptr %61, ptr %14, align 8, !tbaa !5
  %62 = load ptr, ptr %60, align 8, !tbaa !5
  store ptr %62, ptr %13, align 8, !tbaa !5
  %63 = icmp ne ptr %62, null
  br i1 %63, label %64, label %72

64:                                               ; preds = %59
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.qhT, ptr %66, i32 0, i32 158
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ridgeT, ptr %69, i32 0, i32 3
  %71 = load i32, ptr %70, align 8, !tbaa !21
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %65, ptr noundef %68, i32 noundef 8065, ptr noundef @.str.66, i32 noundef %71)
  br label %59, !llvm.loop !23

72:                                               ; preds = %59
  br label %73

73:                                               ; preds = %72, %52
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.qhT, ptr %75, i32 0, i32 158
  %77 = load ptr, ptr %76, align 8, !tbaa !16
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %74, ptr noundef %77, i32 noundef 8066, ptr noundef @.str.67)
  br label %78

78:                                               ; preds = %73, %4
  store ptr null, ptr %13, align 8, !tbaa !5
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %115

81:                                               ; preds = %78
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.setT, ptr %82, i32 0, i32 1
  %84 = getelementptr inbounds [1 x %union.setelemT], ptr %83, i64 0, i64 0
  store ptr %84, ptr %14, align 8, !tbaa !5
  br label %85

85:                                               ; preds = %113, %81
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = getelementptr inbounds ptr, ptr %86, i32 1
  store ptr %87, ptr %14, align 8, !tbaa !5
  %88 = load ptr, ptr %86, align 8, !tbaa !5
  store ptr %88, ptr %13, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %114

90:                                               ; preds = %85
  store ptr null, ptr %10, align 8, !tbaa !5
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.ridgeT, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !24
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %113

95:                                               ; preds = %90
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ridgeT, ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !24
  %99 = getelementptr inbounds %struct.setT, ptr %98, i32 0, i32 1
  %100 = getelementptr inbounds [1 x %union.setelemT], ptr %99, i64 0, i64 0
  store ptr %100, ptr %11, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %106, %95
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = getelementptr inbounds ptr, ptr %102, i32 1
  store ptr %103, ptr %11, align 8, !tbaa !5
  %104 = load ptr, ptr %102, align 8, !tbaa !5
  store ptr %104, ptr %10, align 8, !tbaa !5
  %105 = icmp ne ptr %104, null
  br i1 %105, label %106, label %112

106:                                              ; preds = %101
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.vertexT, ptr %107, i32 0, i32 6
  %109 = load i8, ptr %108, align 8
  %110 = and i8 %109, -2
  %111 = or i8 %110, 0
  store i8 %111, ptr %108, align 8
  br label %101, !llvm.loop !25

112:                                              ; preds = %101
  br label %113

113:                                              ; preds = %112, %90
  br label %85, !llvm.loop !26

114:                                              ; preds = %85
  br label %115

115:                                              ; preds = %114, %78
  store ptr null, ptr %10, align 8, !tbaa !5
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = icmp ne ptr %116, null
  br i1 %117, label %118, label %136

118:                                              ; preds = %115
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.setT, ptr %119, i32 0, i32 1
  %121 = getelementptr inbounds [1 x %union.setelemT], ptr %120, i64 0, i64 0
  store ptr %121, ptr %11, align 8, !tbaa !5
  br label %122

122:                                              ; preds = %127, %118
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = getelementptr inbounds ptr, ptr %123, i32 1
  store ptr %124, ptr %11, align 8, !tbaa !5
  %125 = load ptr, ptr %123, align 8, !tbaa !5
  store ptr %125, ptr %10, align 8, !tbaa !5
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %135

127:                                              ; preds = %122
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.vertexT, ptr %128, i32 0, i32 5
  store i32 0, ptr %129, align 4, !tbaa !27
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.vertexT, ptr %130, i32 0, i32 6
  %132 = load i8, ptr %131, align 8
  %133 = and i8 %132, -2
  %134 = or i8 %133, 1
  store i8 %134, ptr %131, align 8
  br label %122, !llvm.loop !28

135:                                              ; preds = %122
  br label %136

136:                                              ; preds = %135, %115
  store ptr null, ptr %13, align 8, !tbaa !5
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = icmp ne ptr %137, null
  br i1 %138, label %139, label %180

139:                                              ; preds = %136
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.setT, ptr %140, i32 0, i32 1
  %142 = getelementptr inbounds [1 x %union.setelemT], ptr %141, i64 0, i64 0
  store ptr %142, ptr %14, align 8, !tbaa !5
  br label %143

143:                                              ; preds = %178, %139
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  %145 = getelementptr inbounds ptr, ptr %144, i32 1
  store ptr %145, ptr %14, align 8, !tbaa !5
  %146 = load ptr, ptr %144, align 8, !tbaa !5
  store ptr %146, ptr %13, align 8, !tbaa !5
  %147 = icmp ne ptr %146, null
  br i1 %147, label %148, label %179

148:                                              ; preds = %143
  store ptr null, ptr %10, align 8, !tbaa !5
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.ridgeT, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !24
  %152 = icmp ne ptr %151, null
  br i1 %152, label %153, label %178

153:                                              ; preds = %148
  %154 = load ptr, ptr %13, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.ridgeT, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !24
  %157 = getelementptr inbounds %struct.setT, ptr %156, i32 0, i32 1
  %158 = getelementptr inbounds [1 x %union.setelemT], ptr %157, i64 0, i64 0
  store ptr %158, ptr %11, align 8, !tbaa !5
  br label %159

159:                                              ; preds = %176, %153
  %160 = load ptr, ptr %11, align 8, !tbaa !5
  %161 = getelementptr inbounds ptr, ptr %160, i32 1
  store ptr %161, ptr %11, align 8, !tbaa !5
  %162 = load ptr, ptr %160, align 8, !tbaa !5
  store ptr %162, ptr %10, align 8, !tbaa !5
  %163 = icmp ne ptr %162, null
  br i1 %163, label %164, label %177

164:                                              ; preds = %159
  %165 = load ptr, ptr %10, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.vertexT, ptr %165, i32 0, i32 6
  %167 = load i8, ptr %166, align 8
  %168 = and i8 %167, 1
  %169 = zext i8 %168 to i32
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %176

171:                                              ; preds = %164
  %172 = load ptr, ptr %10, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.vertexT, ptr %172, i32 0, i32 5
  %174 = load i32, ptr %173, align 4, !tbaa !27
  %175 = add i32 %174, 1
  store i32 %175, ptr %173, align 4, !tbaa !27
  br label %176

176:                                              ; preds = %171, %164
  br label %159, !llvm.loop !29

177:                                              ; preds = %159
  br label %178

178:                                              ; preds = %177, %148
  br label %143, !llvm.loop !30

179:                                              ; preds = %143
  br label %180

180:                                              ; preds = %179, %136
  store ptr null, ptr %10, align 8, !tbaa !5
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = icmp ne ptr %181, null
  br i1 %182, label %183, label %214

183:                                              ; preds = %180
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.setT, ptr %184, i32 0, i32 1
  %186 = getelementptr inbounds [1 x %union.setelemT], ptr %185, i64 0, i64 0
  store ptr %186, ptr %11, align 8, !tbaa !5
  br label %187

187:                                              ; preds = %212, %183
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = getelementptr inbounds ptr, ptr %188, i32 1
  store ptr %189, ptr %11, align 8, !tbaa !5
  %190 = load ptr, ptr %188, align 8, !tbaa !5
  store ptr %190, ptr %10, align 8, !tbaa !5
  %191 = icmp ne ptr %190, null
  br i1 %191, label %192, label %213

192:                                              ; preds = %187
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.vertexT, ptr %193, i32 0, i32 5
  %195 = load i32, ptr %194, align 4, !tbaa !27
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %212, label %197

197:                                              ; preds = %192
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = load ptr, ptr %11, align 8, !tbaa !5
  %201 = load ptr, ptr %8, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.setT, ptr %201, i32 0, i32 1
  %203 = getelementptr inbounds [1 x %union.setelemT], ptr %202, i64 0, i64 1
  %204 = ptrtoint ptr %200 to i64
  %205 = ptrtoint ptr %203 to i64
  %206 = sub i64 %204, %205
  %207 = sdiv exact i64 %206, 8
  %208 = trunc i64 %207 to i32
  %209 = call ptr @qh_setdelnth(ptr noundef %198, ptr noundef %199, i32 noundef %208)
  %210 = load ptr, ptr %11, align 8, !tbaa !5
  %211 = getelementptr inbounds ptr, ptr %210, i32 -1
  store ptr %211, ptr %11, align 8, !tbaa !5
  br label %212

212:                                              ; preds = %197, %192
  br label %187, !llvm.loop !31

213:                                              ; preds = %187
  br label %214

214:                                              ; preds = %213, %180
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  %217 = call i32 @qh_setsize(ptr noundef %215, ptr noundef %216)
  store i32 %217, ptr %18, align 4, !tbaa !32
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.qhT, ptr %218, i32 0, i32 218
  %220 = load i32, ptr %219, align 4, !tbaa !33
  %221 = load i32, ptr %18, align 4, !tbaa !32
  %222 = icmp ult i32 %220, %221
  br i1 %222, label %223, label %227

223:                                              ; preds = %214
  %224 = load i32, ptr %18, align 4, !tbaa !32
  %225 = load ptr, ptr %6, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.qhT, ptr %225, i32 0, i32 218
  store i32 %224, ptr %226, align 4, !tbaa !33
  br label %227

227:                                              ; preds = %223, %214
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = load ptr, ptr %8, align 8, !tbaa !5
  %230 = call i32 @qh_setsize(ptr noundef %228, ptr noundef %229)
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %246, label %232

232:                                              ; preds = %227
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.qhT, ptr %233, i32 0, i32 29
  %235 = load i32, ptr %234, align 8, !tbaa !9
  %236 = icmp sge i32 %235, 4
  br i1 %236, label %237, label %245

237:                                              ; preds = %232
  %238 = load ptr, ptr %6, align 8, !tbaa !5
  %239 = load ptr, ptr %6, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.qhT, ptr %239, i32 0, i32 158
  %241 = load ptr, ptr %240, align 8, !tbaa !16
  %242 = load ptr, ptr %7, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.vertexT, ptr %242, i32 0, i32 4
  %244 = load i32, ptr %243, align 8, !tbaa !17
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %238, ptr noundef %241, i32 noundef 4023, ptr noundef @.str.68, i32 noundef %244)
  br label %245

245:                                              ; preds = %237, %232
  store ptr null, ptr %5, align 8
  store i32 1, ptr %19, align 4
  br label %423

246:                                              ; preds = %227
  %247 = load ptr, ptr %8, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.setT, ptr %247, i32 0, i32 1
  %249 = getelementptr inbounds [1 x %union.setelemT], ptr %248, i64 0, i64 0
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = load ptr, ptr %8, align 8, !tbaa !5
  %252 = call i32 @qh_setsize(ptr noundef %250, ptr noundef %251)
  %253 = sext i32 %252 to i64
  call void @qsort(ptr noundef %249, i64 noundef %253, i64 noundef 8, ptr noundef @qh_comparevisit)
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.qhT, ptr %254, i32 0, i32 67
  %256 = load i32, ptr %255, align 8, !tbaa !34
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %289

258:                                              ; preds = %246
  %259 = load ptr, ptr %6, align 8, !tbaa !5
  %260 = load ptr, ptr %8, align 8, !tbaa !5
  %261 = call i32 @qh_setsize(ptr noundef %259, ptr noundef %260)
  store i32 %261, ptr %15, align 4, !tbaa !32
  %262 = load ptr, ptr %6, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.qhT, ptr %262, i32 0, i32 258
  %264 = getelementptr inbounds %struct.qhstatT, ptr %263, i32 0, i32 0
  %265 = getelementptr inbounds [249 x %union.intrealT], ptr %264, i64 0, i64 111
  %266 = load i32, ptr %265, align 8, !tbaa !35
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %265, align 8, !tbaa !35
  %268 = load i32, ptr %15, align 4, !tbaa !32
  %269 = load ptr, ptr %6, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.qhT, ptr %269, i32 0, i32 258
  %271 = getelementptr inbounds %struct.qhstatT, ptr %270, i32 0, i32 0
  %272 = getelementptr inbounds [249 x %union.intrealT], ptr %271, i64 0, i64 115
  %273 = load i32, ptr %272, align 8, !tbaa !35
  %274 = add nsw i32 %273, %268
  store i32 %274, ptr %272, align 8, !tbaa !35
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.qhT, ptr %275, i32 0, i32 258
  %277 = getelementptr inbounds %struct.qhstatT, ptr %276, i32 0, i32 0
  %278 = getelementptr inbounds [249 x %union.intrealT], ptr %277, i64 0, i64 113
  %279 = load i32, ptr %278, align 8, !tbaa !35
  %280 = load i32, ptr %15, align 4, !tbaa !32
  %281 = icmp slt i32 %279, %280
  br i1 %281, label %282, label %288

282:                                              ; preds = %258
  %283 = load i32, ptr %15, align 4, !tbaa !32
  %284 = load ptr, ptr %6, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.qhT, ptr %284, i32 0, i32 258
  %286 = getelementptr inbounds %struct.qhstatT, ptr %285, i32 0, i32 0
  %287 = getelementptr inbounds [249 x %union.intrealT], ptr %286, i64 0, i64 113
  store i32 %283, ptr %287, align 8, !tbaa !35
  br label %288

288:                                              ; preds = %282, %258
  br label %289

289:                                              ; preds = %288, %246
  %290 = load ptr, ptr %6, align 8, !tbaa !5
  %291 = load ptr, ptr %6, align 8, !tbaa !5
  %292 = load ptr, ptr %9, align 8, !tbaa !5
  %293 = call i32 @qh_setsize(ptr noundef %291, ptr noundef %292)
  %294 = call i32 @qh_newhashtable(ptr noundef %290, i32 noundef %293)
  store i32 %294, ptr %16, align 4, !tbaa !32
  store ptr null, ptr %13, align 8, !tbaa !5
  %295 = load ptr, ptr %9, align 8, !tbaa !5
  %296 = icmp ne ptr %295, null
  br i1 %296, label %297, label %315

297:                                              ; preds = %289
  %298 = load ptr, ptr %9, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.setT, ptr %298, i32 0, i32 1
  %300 = getelementptr inbounds [1 x %union.setelemT], ptr %299, i64 0, i64 0
  store ptr %300, ptr %14, align 8, !tbaa !5
  br label %301

301:                                              ; preds = %306, %297
  %302 = load ptr, ptr %14, align 8, !tbaa !5
  %303 = getelementptr inbounds ptr, ptr %302, i32 1
  store ptr %303, ptr %14, align 8, !tbaa !5
  %304 = load ptr, ptr %302, align 8, !tbaa !5
  store ptr %304, ptr %13, align 8, !tbaa !5
  %305 = icmp ne ptr %304, null
  br i1 %305, label %306, label %314

306:                                              ; preds = %301
  %307 = load ptr, ptr %6, align 8, !tbaa !5
  %308 = load ptr, ptr %6, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.qhT, ptr %308, i32 0, i32 224
  %310 = load ptr, ptr %309, align 8, !tbaa !36
  %311 = load i32, ptr %16, align 4, !tbaa !32
  %312 = load ptr, ptr %13, align 8, !tbaa !5
  %313 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_hashridge(ptr noundef %307, ptr noundef %310, i32 noundef %311, ptr noundef %312, ptr noundef %313)
  br label %301, !llvm.loop !37

314:                                              ; preds = %301
  br label %315

315:                                              ; preds = %314, %289
  store ptr null, ptr %10, align 8, !tbaa !5
  %316 = load ptr, ptr %8, align 8, !tbaa !5
  %317 = icmp ne ptr %316, null
  br i1 %317, label %318, label %369

318:                                              ; preds = %315
  %319 = load ptr, ptr %8, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.setT, ptr %319, i32 0, i32 1
  %321 = getelementptr inbounds [1 x %union.setelemT], ptr %320, i64 0, i64 0
  store ptr %321, ptr %11, align 8, !tbaa !5
  br label %322

322:                                              ; preds = %367, %318
  %323 = load ptr, ptr %11, align 8, !tbaa !5
  %324 = getelementptr inbounds ptr, ptr %323, i32 1
  store ptr %324, ptr %11, align 8, !tbaa !5
  %325 = load ptr, ptr %323, align 8, !tbaa !5
  store ptr %325, ptr %10, align 8, !tbaa !5
  %326 = icmp ne ptr %325, null
  br i1 %326, label %327, label %368

327:                                              ; preds = %322
  %328 = load ptr, ptr %6, align 8, !tbaa !5
  %329 = load ptr, ptr %10, align 8, !tbaa !5
  %330 = call ptr @qh_vertexridges(ptr noundef %328, ptr noundef %329, i32 noundef 0)
  store ptr %330, ptr %12, align 8, !tbaa !5
  store ptr null, ptr %13, align 8, !tbaa !5
  %331 = load ptr, ptr %12, align 8, !tbaa !5
  %332 = icmp ne ptr %331, null
  br i1 %332, label %333, label %362

333:                                              ; preds = %327
  %334 = load ptr, ptr %12, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.setT, ptr %334, i32 0, i32 1
  %336 = getelementptr inbounds [1 x %union.setelemT], ptr %335, i64 0, i64 0
  store ptr %336, ptr %14, align 8, !tbaa !5
  br label %337

337:                                              ; preds = %360, %333
  %338 = load ptr, ptr %14, align 8, !tbaa !5
  %339 = getelementptr inbounds ptr, ptr %338, i32 1
  store ptr %339, ptr %14, align 8, !tbaa !5
  %340 = load ptr, ptr %338, align 8, !tbaa !5
  store ptr %340, ptr %13, align 8, !tbaa !5
  %341 = icmp ne ptr %340, null
  br i1 %341, label %342, label %361

342:                                              ; preds = %337
  %343 = load ptr, ptr %6, align 8, !tbaa !5
  %344 = load ptr, ptr %6, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.qhT, ptr %344, i32 0, i32 224
  %346 = load ptr, ptr %345, align 8, !tbaa !36
  %347 = load i32, ptr %16, align 4, !tbaa !32
  %348 = load ptr, ptr %13, align 8, !tbaa !5
  %349 = load ptr, ptr %10, align 8, !tbaa !5
  %350 = load ptr, ptr %7, align 8, !tbaa !5
  %351 = call ptr @qh_hashridge_find(ptr noundef %343, ptr noundef %346, i32 noundef %347, ptr noundef %348, ptr noundef %349, ptr noundef %350, ptr noundef %17)
  %352 = icmp ne ptr %351, null
  br i1 %352, label %353, label %360

353:                                              ; preds = %342
  %354 = load ptr, ptr %6, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.qhT, ptr %354, i32 0, i32 258
  %356 = getelementptr inbounds %struct.qhstatT, ptr %355, i32 0, i32 0
  %357 = getelementptr inbounds [249 x %union.intrealT], ptr %356, i64 0, i64 235
  %358 = load i32, ptr %357, align 8, !tbaa !35
  %359 = add nsw i32 %358, 1
  store i32 %359, ptr %357, align 8, !tbaa !35
  br label %361

360:                                              ; preds = %342
  br label %337, !llvm.loop !38

361:                                              ; preds = %353, %337
  br label %362

362:                                              ; preds = %361, %327
  %363 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_settempfree(ptr noundef %363, ptr noundef %12)
  %364 = load ptr, ptr %13, align 8, !tbaa !5
  %365 = icmp ne ptr %364, null
  br i1 %365, label %367, label %366

366:                                              ; preds = %362
  br label %368

367:                                              ; preds = %362
  br label %322, !llvm.loop !39

368:                                              ; preds = %366, %322
  br label %369

369:                                              ; preds = %368, %315
  %370 = load ptr, ptr %10, align 8, !tbaa !5
  %371 = icmp ne ptr %370, null
  br i1 %371, label %372, label %395

372:                                              ; preds = %369
  %373 = load ptr, ptr %6, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.qhT, ptr %373, i32 0, i32 29
  %375 = load i32, ptr %374, align 8, !tbaa !9
  %376 = icmp sge i32 %375, 2
  br i1 %376, label %377, label %394

377:                                              ; preds = %372
  %378 = load ptr, ptr %6, align 8, !tbaa !5
  %379 = load ptr, ptr %6, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.qhT, ptr %379, i32 0, i32 158
  %381 = load ptr, ptr %380, align 8, !tbaa !16
  %382 = load ptr, ptr %10, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.vertexT, ptr %382, i32 0, i32 4
  %384 = load i32, ptr %383, align 8, !tbaa !17
  %385 = load ptr, ptr %7, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.vertexT, ptr %385, i32 0, i32 4
  %387 = load i32, ptr %386, align 8, !tbaa !17
  %388 = load ptr, ptr %6, align 8, !tbaa !5
  %389 = load ptr, ptr %8, align 8, !tbaa !5
  %390 = call i32 @qh_setsize(ptr noundef %388, ptr noundef %389)
  %391 = load ptr, ptr %6, align 8, !tbaa !5
  %392 = load ptr, ptr %9, align 8, !tbaa !5
  %393 = call i32 @qh_setsize(ptr noundef %391, ptr noundef %392)
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %378, ptr noundef %381, i32 noundef 2020, ptr noundef @.str.69, i32 noundef %384, i32 noundef %387, i32 noundef %390, i32 noundef %393)
  br label %394

394:                                              ; preds = %377, %372
  br label %418

395:                                              ; preds = %369
  %396 = load ptr, ptr %6, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.qhT, ptr %396, i32 0, i32 258
  %398 = getelementptr inbounds %struct.qhstatT, ptr %397, i32 0, i32 0
  %399 = getelementptr inbounds [249 x %union.intrealT], ptr %398, i64 0, i64 94
  %400 = load i32, ptr %399, align 8, !tbaa !35
  %401 = add nsw i32 %400, 1
  store i32 %401, ptr %399, align 8, !tbaa !35
  %402 = load ptr, ptr %6, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.qhT, ptr %402, i32 0, i32 29
  %404 = load i32, ptr %403, align 8, !tbaa !9
  %405 = icmp ne i32 %404, 0
  br i1 %405, label %406, label %417

406:                                              ; preds = %395
  %407 = load ptr, ptr %6, align 8, !tbaa !5
  %408 = load ptr, ptr %6, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.qhT, ptr %408, i32 0, i32 158
  %410 = load ptr, ptr %409, align 8, !tbaa !16
  %411 = load ptr, ptr %7, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.vertexT, ptr %411, i32 0, i32 4
  %413 = load i32, ptr %412, align 8, !tbaa !17
  %414 = load ptr, ptr %6, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.qhT, ptr %414, i32 0, i32 190
  %416 = load i32, ptr %415, align 4, !tbaa !40
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %407, ptr noundef %410, i32 noundef 14, ptr noundef @.str.70, i32 noundef %413, i32 noundef %416)
  br label %417

417:                                              ; preds = %406, %395
  br label %418

418:                                              ; preds = %417, %394
  %419 = load ptr, ptr %6, align 8, !tbaa !5
  %420 = load ptr, ptr %6, align 8, !tbaa !5
  %421 = getelementptr inbounds %struct.qhT, ptr %420, i32 0, i32 224
  call void @qh_setfree(ptr noundef %419, ptr noundef %421)
  %422 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %422, ptr %5, align 8
  store i32 1, ptr %19, align 4
  br label %423

423:                                              ; preds = %418, %245
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %424 = load ptr, ptr %5, align 8
  ret ptr %424
}

declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

declare i32 @qh_newhashtable(ptr noundef, i32 noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_vertexridges(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_hashridge_find(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @qh_settempfree(ptr noundef, ptr noundef) #1

declare void @qh_setfree(ptr noundef, ptr noundef) #1

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

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

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


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

@.str.64 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [82 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

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

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

declare i32 @qh_setsize(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_comparevisit(ptr noundef, ptr noundef) #2

declare ptr @qh_setdelnth(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @qh_find_newvertex(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %7 = getelementptr inbounds i8, ptr %0, i64 136
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = icmp sgt i32 %8, 3
  br i1 %9, label %10, label %28

10:                                               ; preds = %4
  %11 = getelementptr inbounds i8, ptr %0, i64 2424
  %12 = load ptr, ptr %11, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %1, i64 32
  %14 = load i32, ptr %13, align 8, !tbaa !16
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %12, i32 noundef 8063, ptr noundef nonnull @.str.64, i32 noundef %14) #4
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %.loopexit205, label %.preheader204

.preheader204:                                    ; preds = %10
  %.0118208 = getelementptr inbounds i8, ptr %2, i64 8
  %15 = load ptr, ptr %.0118208, align 8, !tbaa !18
  %.not150209 = icmp eq ptr %15, null
  br i1 %.not150209, label %.loopexit205, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader204, %.lr.ph
  %16 = phi ptr [ %20, %.lr.ph ], [ %15, %.preheader204 ]
  %.0118210 = phi ptr [ %.0118, %.lr.ph ], [ %.0118208, %.preheader204 ]
  %17 = load ptr, ptr %11, align 8, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %16, i64 32
  %19 = load i32, ptr %18, align 8, !tbaa !16
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %17, i32 noundef 8064, ptr noundef nonnull @.str.65, i32 noundef %19) #4
  %.0118 = getelementptr inbounds i8, ptr %.0118210, i64 8
  %20 = load ptr, ptr %.0118, align 8, !tbaa !18
  %.not150 = icmp eq ptr %20, null
  br i1 %.not150, label %.loopexit205, label %.lr.ph, !llvm.loop !19

.loopexit205:                                     ; preds = %.lr.ph, %.preheader204, %10
  %.not151 = icmp eq ptr %3, null
  br i1 %.not151, label %.loopexit203, label %.preheader202

.preheader202:                                    ; preds = %.loopexit205
  %.0119211 = getelementptr inbounds i8, ptr %3, i64 8
  %21 = load ptr, ptr %.0119211, align 8, !tbaa !18
  %.not153212 = icmp eq ptr %21, null
  br i1 %.not153212, label %.loopexit203, label %.lr.ph214

.lr.ph214:                                        ; preds = %.preheader202, %.lr.ph214
  %22 = phi ptr [ %26, %.lr.ph214 ], [ %21, %.preheader202 ]
  %.0119213 = phi ptr [ %.0119, %.lr.ph214 ], [ %.0119211, %.preheader202 ]
  %23 = load ptr, ptr %11, align 8, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %22, i64 24
  %25 = load i32, ptr %24, align 8, !tbaa !21
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %23, i32 noundef 8065, ptr noundef nonnull @.str.66, i32 noundef %25) #4
  %.0119 = getelementptr inbounds i8, ptr %.0119213, i64 8
  %26 = load ptr, ptr %.0119, align 8, !tbaa !18
  %.not153 = icmp eq ptr %26, null
  br i1 %.not153, label %.loopexit203, label %.lr.ph214, !llvm.loop !23

.loopexit203:                                     ; preds = %.lr.ph214, %.preheader202, %.loopexit205
  %27 = load ptr, ptr %11, align 8, !tbaa !15
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %27, i32 noundef 8066, ptr noundef nonnull @.str.67) #4
  br label %28

28:                                               ; preds = %.loopexit203, %4
  %.not154 = icmp eq ptr %3, null
  br i1 %.not154, label %.loopexit201, label %.preheader200

.preheader200:                                    ; preds = %28
  %.1120219 = getelementptr inbounds i8, ptr %3, i64 8
  %29 = load ptr, ptr %.1120219, align 8, !tbaa !18
  %.not156220 = icmp eq ptr %29, null
  br i1 %.not156220, label %.loopexit201, label %.lr.ph222

.lr.ph222:                                        ; preds = %.preheader200, %.loopexit199
  %30 = phi ptr [ %38, %.loopexit199 ], [ %29, %.preheader200 ]
  %.1120221 = phi ptr [ %.1120, %.loopexit199 ], [ %.1120219, %.preheader200 ]
  %31 = load ptr, ptr %30, align 8, !tbaa !24
  %.not180 = icmp eq ptr %31, null
  br i1 %.not180, label %.loopexit199, label %.preheader198

.preheader198:                                    ; preds = %.lr.ph222
  %.1215 = getelementptr inbounds i8, ptr %31, i64 8
  %32 = load ptr, ptr %.1215, align 8, !tbaa !18
  %.not182216 = icmp eq ptr %32, null
  br i1 %.not182216, label %.loopexit199, label %.lr.ph218

.lr.ph218:                                        ; preds = %.preheader198, %.lr.ph218
  %33 = phi ptr [ %37, %.lr.ph218 ], [ %32, %.preheader198 ]
  %.1217 = phi ptr [ %.1, %.lr.ph218 ], [ %.1215, %.preheader198 ]
  %34 = getelementptr inbounds i8, ptr %33, i64 40
  %35 = load i8, ptr %34, align 8
  %36 = and i8 %35, -2
  store i8 %36, ptr %34, align 8
  %.1 = getelementptr inbounds i8, ptr %.1217, i64 8
  %37 = load ptr, ptr %.1, align 8, !tbaa !18
  %.not182 = icmp eq ptr %37, null
  br i1 %.not182, label %.loopexit199, label %.lr.ph218, !llvm.loop !25

.loopexit199:                                     ; preds = %.lr.ph218, %.preheader198, %.lr.ph222
  %.1120 = getelementptr inbounds i8, ptr %.1120221, i64 8
  %38 = load ptr, ptr %.1120, align 8, !tbaa !18
  %.not156 = icmp eq ptr %38, null
  br i1 %.not156, label %.loopexit201, label %.lr.ph222, !llvm.loop !26

.loopexit201:                                     ; preds = %.loopexit199, %.preheader200, %28
  %.not157 = icmp eq ptr %2, null
  br i1 %.not157, label %.loopexit197, label %.preheader196

.preheader196:                                    ; preds = %.loopexit201
  %.2223 = getelementptr inbounds i8, ptr %2, i64 8
  %39 = load ptr, ptr %.2223, align 8, !tbaa !18
  %.not159224 = icmp eq ptr %39, null
  br i1 %.not159224, label %.loopexit197, label %.lr.ph226

.lr.ph226:                                        ; preds = %.preheader196, %.lr.ph226
  %40 = phi ptr [ %45, %.lr.ph226 ], [ %39, %.preheader196 ]
  %.2225 = phi ptr [ %.2, %.lr.ph226 ], [ %.2223, %.preheader196 ]
  %41 = getelementptr inbounds i8, ptr %40, i64 36
  store i32 0, ptr %41, align 4, !tbaa !27
  %42 = getelementptr inbounds i8, ptr %40, i64 40
  %43 = load i8, ptr %42, align 8
  %44 = or i8 %43, 1
  store i8 %44, ptr %42, align 8
  %.2 = getelementptr inbounds i8, ptr %.2225, i64 8
  %45 = load ptr, ptr %.2, align 8, !tbaa !18
  %.not159 = icmp eq ptr %45, null
  br i1 %.not159, label %.loopexit197, label %.lr.ph226, !llvm.loop !28

.loopexit197:                                     ; preds = %.lr.ph226, %.preheader196, %.loopexit201
  br i1 %.not154, label %.loopexit195, label %.preheader194

.preheader194:                                    ; preds = %.loopexit197
  %.2121231 = getelementptr inbounds i8, ptr %3, i64 8
  %46 = load ptr, ptr %.2121231, align 8, !tbaa !18
  %.not161232 = icmp eq ptr %46, null
  br i1 %.not161232, label %.loopexit195, label %.lr.ph234

.lr.ph234:                                        ; preds = %.preheader194, %.loopexit193
  %47 = phi ptr [ %60, %.loopexit193 ], [ %46, %.preheader194 ]
  %.2121233 = phi ptr [ %.2121, %.loopexit193 ], [ %.2121231, %.preheader194 ]
  %48 = load ptr, ptr %47, align 8, !tbaa !24
  %.not176 = icmp eq ptr %48, null
  br i1 %.not176, label %.loopexit193, label %.preheader192

.preheader192:                                    ; preds = %.lr.ph234
  %.3227 = getelementptr inbounds i8, ptr %48, i64 8
  %49 = load ptr, ptr %.3227, align 8, !tbaa !18
  %.not178228 = icmp eq ptr %49, null
  br i1 %.not178228, label %.loopexit193, label %.lr.ph230

.lr.ph230:                                        ; preds = %.preheader192, %58
  %50 = phi ptr [ %59, %58 ], [ %49, %.preheader192 ]
  %.3229 = phi ptr [ %.3, %58 ], [ %.3227, %.preheader192 ]
  %51 = getelementptr inbounds i8, ptr %50, i64 40
  %52 = load i8, ptr %51, align 8
  %53 = and i8 %52, 1
  %.not179 = icmp eq i8 %53, 0
  br i1 %.not179, label %58, label %54

54:                                               ; preds = %.lr.ph230
  %55 = getelementptr inbounds i8, ptr %50, i64 36
  %56 = load i32, ptr %55, align 4, !tbaa !27
  %57 = add i32 %56, 1
  store i32 %57, ptr %55, align 4, !tbaa !27
  br label %58

58:                                               ; preds = %54, %.lr.ph230
  %.3 = getelementptr inbounds i8, ptr %.3229, i64 8
  %59 = load ptr, ptr %.3, align 8, !tbaa !18
  %.not178 = icmp eq ptr %59, null
  br i1 %.not178, label %.loopexit193, label %.lr.ph230, !llvm.loop !29

.loopexit193:                                     ; preds = %58, %.preheader192, %.lr.ph234
  %.2121 = getelementptr inbounds i8, ptr %.2121233, i64 8
  %60 = load ptr, ptr %.2121, align 8, !tbaa !18
  %.not161 = icmp eq ptr %60, null
  br i1 %.not161, label %.loopexit195, label %.lr.ph234, !llvm.loop !30

.loopexit195:                                     ; preds = %.loopexit193, %.preheader194, %.loopexit197
  br i1 %.not157, label %.loopexit191, label %61

61:                                               ; preds = %.loopexit195
  %62 = getelementptr inbounds i8, ptr %2, i64 8
  %63 = load ptr, ptr %62, align 8, !tbaa !18
  %.not162235 = icmp eq ptr %63, null
  br i1 %.not162235, label %.loopexit191, label %.lr.ph237

.lr.ph237:                                        ; preds = %61
  %64 = getelementptr inbounds i8, ptr %2, i64 16
  %65 = ptrtoint ptr %64 to i64
  br label %66

66:                                               ; preds = %.lr.ph237, %77
  %67 = phi ptr [ %63, %.lr.ph237 ], [ %79, %77 ]
  %68 = phi ptr [ %64, %.lr.ph237 ], [ %78, %77 ]
  %.4236 = phi ptr [ %62, %.lr.ph237 ], [ %.5, %77 ]
  %69 = getelementptr inbounds i8, ptr %67, i64 36
  %70 = load i32, ptr %69, align 4, !tbaa !27
  %.not175 = icmp eq i32 %70, 0
  br i1 %.not175, label %71, label %77

71:                                               ; preds = %66
  %72 = ptrtoint ptr %68 to i64
  %73 = sub i64 %72, %65
  %74 = lshr exact i64 %73, 3
  %75 = trunc i64 %74 to i32
  %76 = tail call ptr @qh_setdelnth(ptr noundef %0, ptr noundef nonnull %2, i32 noundef %75) #4
  br label %77

77:                                               ; preds = %71, %66
  %.5 = phi ptr [ %68, %66 ], [ %.4236, %71 ]
  %78 = getelementptr inbounds i8, ptr %.5, i64 8
  %79 = load ptr, ptr %.5, align 8, !tbaa !18
  %.not162 = icmp eq ptr %79, null
  br i1 %.not162, label %.loopexit191, label %66, !llvm.loop !31

.loopexit191:                                     ; preds = %77, %61, %.loopexit195
  %80 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %3) #4
  %81 = getelementptr inbounds i8, ptr %0, i64 2788
  %82 = load i32, ptr %81, align 4, !tbaa !32
  %83 = icmp ult i32 %82, %80
  br i1 %83, label %84, label %85

84:                                               ; preds = %.loopexit191
  store i32 %80, ptr %81, align 4, !tbaa !32
  br label %85

85:                                               ; preds = %84, %.loopexit191
  %86 = tail call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %2) #4
  %.not163 = icmp eq i32 %86, 0
  br i1 %.not163, label %87, label %95

87:                                               ; preds = %85
  %88 = load i32, ptr %7, align 8, !tbaa !5
  %89 = icmp sgt i32 %88, 3
  br i1 %89, label %90, label %164

90:                                               ; preds = %87
  %91 = getelementptr inbounds i8, ptr %0, i64 2424
  %92 = load ptr, ptr %91, align 8, !tbaa !15
  %93 = getelementptr inbounds i8, ptr %1, i64 32
  %94 = load i32, ptr %93, align 8, !tbaa !16
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %92, i32 noundef 4023, ptr noundef nonnull @.str.68, i32 noundef %94) #4
  br label %164

95:                                               ; preds = %85
  %96 = getelementptr inbounds i8, ptr %2, i64 8
  %97 = tail call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %2) #4
  %98 = sext i32 %97 to i64
  tail call void @qsort(ptr noundef nonnull %96, i64 noundef %98, i64 noundef 8, ptr noundef nonnull @qh_comparevisit) #4
  %99 = getelementptr inbounds i8, ptr %0, i64 424
  %100 = load i32, ptr %99, align 8, !tbaa !33
  %.not164 = icmp eq i32 %100, 0
  br i1 %.not164, label %113, label %101

101:                                              ; preds = %95
  %102 = tail call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %2) #4
  %103 = getelementptr inbounds i8, ptr %0, i64 4312
  %104 = load i32, ptr %103, align 8, !tbaa !34
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %103, align 8, !tbaa !34
  %106 = getelementptr inbounds i8, ptr %0, i64 4344
  %107 = load i32, ptr %106, align 8, !tbaa !34
  %108 = add nsw i32 %107, %102
  store i32 %108, ptr %106, align 8, !tbaa !34
  %109 = getelementptr inbounds i8, ptr %0, i64 4328
  %110 = load i32, ptr %109, align 8, !tbaa !34
  %111 = icmp slt i32 %110, %102
  br i1 %111, label %112, label %113

112:                                              ; preds = %101
  store i32 %102, ptr %109, align 8, !tbaa !34
  br label %113

113:                                              ; preds = %101, %112, %95
  %114 = tail call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %3) #4
  %115 = tail call i32 @qh_newhashtable(ptr noundef nonnull %0, i32 noundef %114) #4
  br i1 %.not154, label %.loopexit, label %.preheader190

.preheader190:                                    ; preds = %113
  %.3122238 = getelementptr inbounds i8, ptr %3, i64 8
  %116 = load ptr, ptr %.3122238, align 8, !tbaa !18
  %.not166239 = icmp eq ptr %116, null
  br i1 %.not166239, label %.loopexit, label %.lr.ph241

.lr.ph241:                                        ; preds = %.preheader190
  %117 = getelementptr inbounds i8, ptr %0, i64 2824
  br label %118

118:                                              ; preds = %.lr.ph241, %118
  %119 = phi ptr [ %116, %.lr.ph241 ], [ %121, %118 ]
  %.3122240 = phi ptr [ %.3122238, %.lr.ph241 ], [ %.3122, %118 ]
  %120 = load ptr, ptr %117, align 8, !tbaa !35
  tail call void @qh_hashridge(ptr noundef nonnull %0, ptr noundef %120, i32 noundef %115, ptr noundef nonnull %119, ptr noundef %1)
  %.3122 = getelementptr inbounds i8, ptr %.3122240, i64 8
  %121 = load ptr, ptr %.3122, align 8, !tbaa !18
  %.not166 = icmp eq ptr %121, null
  br i1 %.not166, label %.loopexit, label %118, !llvm.loop !36

.loopexit:                                        ; preds = %118, %.preheader190, %113
  br i1 %.not157, label %.thread, label %.preheader189

.preheader189:                                    ; preds = %.loopexit
  %122 = load ptr, ptr %96, align 8, !tbaa !18
  %.not167242 = icmp eq ptr %122, null
  br i1 %.not167242, label %.thread, label %.lr.ph243

.lr.ph243:                                        ; preds = %.preheader189
  %123 = getelementptr inbounds i8, ptr %2, i64 16
  %124 = getelementptr inbounds i8, ptr %0, i64 2824
  %125 = getelementptr inbounds i8, ptr %0, i64 5304
  br label %126

126:                                              ; preds = %.lr.ph243, %.critedge
  %127 = phi ptr [ %122, %.lr.ph243 ], [ %137, %.critedge ]
  %128 = phi ptr [ %123, %.lr.ph243 ], [ %136, %.critedge ]
  %129 = call ptr @qh_vertexridges(ptr noundef nonnull %0, ptr noundef nonnull %127, i32 noundef 0)
  store ptr %129, ptr %5, align 8, !tbaa !18
  %.not168 = icmp eq ptr %129, null
  br i1 %.not168, label %.thread187, label %.preheader

.thread187:                                       ; preds = %126
  call void @qh_settempfree(ptr noundef nonnull %0, ptr noundef nonnull %5) #4
  br label %139

.preheader:                                       ; preds = %126, %131
  %.pn169 = phi ptr [ %.4123, %131 ], [ %129, %126 ]
  %.4123 = getelementptr inbounds i8, ptr %.pn169, i64 8
  %130 = load ptr, ptr %.4123, align 8, !tbaa !18
  %.not170 = icmp eq ptr %130, null
  br i1 %.not170, label %138, label %131

131:                                              ; preds = %.preheader
  %132 = load ptr, ptr %124, align 8, !tbaa !35
  %133 = call ptr @qh_hashridge_find(ptr noundef %0, ptr noundef %132, i32 noundef %115, ptr noundef nonnull %130, ptr noundef nonnull %127, ptr noundef %1, ptr noundef nonnull %6)
  %.not171 = icmp eq ptr %133, null
  br i1 %.not171, label %.preheader, label %.critedge, !llvm.loop !37

.critedge:                                        ; preds = %131
  %134 = load i32, ptr %125, align 8, !tbaa !34
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %125, align 8, !tbaa !34
  call void @qh_settempfree(ptr noundef nonnull %0, ptr noundef nonnull %5) #4
  %136 = getelementptr inbounds i8, ptr %128, i64 8
  %137 = load ptr, ptr %128, align 8, !tbaa !18
  %.not167 = icmp eq ptr %137, null
  br i1 %.not167, label %.thread, label %126

138:                                              ; preds = %.preheader
  call void @qh_settempfree(ptr noundef %0, ptr noundef nonnull %5) #4
  br label %139

139:                                              ; preds = %138, %.thread187
  %140 = load i32, ptr %7, align 8, !tbaa !5
  %141 = icmp sgt i32 %140, 1
  br i1 %141, label %142, label %162

142:                                              ; preds = %139
  %143 = getelementptr inbounds i8, ptr %0, i64 2424
  %144 = load ptr, ptr %143, align 8, !tbaa !15
  %145 = getelementptr inbounds i8, ptr %127, i64 32
  %146 = load i32, ptr %145, align 8, !tbaa !16
  %147 = getelementptr inbounds i8, ptr %1, i64 32
  %148 = load i32, ptr %147, align 8, !tbaa !16
  %149 = call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef nonnull %2) #4
  %150 = call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %3) #4
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %144, i32 noundef 2020, ptr noundef nonnull @.str.69, i32 noundef %146, i32 noundef %148, i32 noundef %149, i32 noundef %150) #4
  br label %162

.thread:                                          ; preds = %.critedge, %.preheader189, %.loopexit
  %151 = getelementptr inbounds i8, ptr %0, i64 4176
  %152 = load i32, ptr %151, align 8, !tbaa !34
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %151, align 8, !tbaa !34
  %154 = load i32, ptr %7, align 8, !tbaa !5
  %.not174 = icmp eq i32 %154, 0
  br i1 %.not174, label %162, label %155

155:                                              ; preds = %.thread
  %156 = getelementptr inbounds i8, ptr %0, i64 2424
  %157 = load ptr, ptr %156, align 8, !tbaa !15
  %158 = getelementptr inbounds i8, ptr %1, i64 32
  %159 = load i32, ptr %158, align 8, !tbaa !16
  %160 = getelementptr inbounds i8, ptr %0, i64 2620
  %161 = load i32, ptr %160, align 4, !tbaa !38
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %157, i32 noundef 14, ptr noundef nonnull @.str.70, i32 noundef %159, i32 noundef %161) #4
  br label %162

162:                                              ; preds = %.thread, %155, %139, %142
  %.0117185 = phi ptr [ null, %.thread ], [ null, %155 ], [ %127, %139 ], [ %127, %142 ]
  %163 = getelementptr inbounds i8, ptr %0, i64 2824
  call void @qh_setfree(ptr noundef nonnull %0, ptr noundef nonnull %163) #4
  br label %164

164:                                              ; preds = %87, %90, %162
  %.0 = phi ptr [ %.0117185, %162 ], [ null, %90 ], [ null, %87 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  ret ptr %.0
}

; Function Attrs: nofree
declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #3

declare i32 @qh_newhashtable(ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_vertexridges(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_hashridge_find(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @qh_settempfree(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @qh_setfree(ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree "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, !7, i64 136}
!6 = !{!"qhT", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !10, i64 64, !10, i64 72, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !11, i64 104, !7, i64 112, !7, i64 116, !11, i64 120, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !10, i64 160, !10, i64 168, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !10, i64 192, !10, i64 200, !7, i64 208, !7, i64 212, !10, i64 216, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !7, i64 296, !8, i64 300, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !10, i64 448, !10, i64 456, !10, i64 464, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !7, i64 512, !7, i64 516, !7, i64 520, !7, i64 524, !7, i64 528, !7, i64 532, !7, i64 536, !7, i64 540, !7, i64 544, !10, i64 552, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !7, i64 584, !7, i64 588, !10, i64 592, !7, i64 600, !11, i64 608, !11, i64 616, !7, i64 624, !7, i64 628, !7, i64 632, !7, i64 636, !7, i64 640, !11, i64 648, !7, i64 656, !11, i64 664, !7, i64 672, !8, i64 676, !7, i64 932, !8, i64 936, !8, i64 1192, !7, i64 1704, !7, i64 1708, !7, i64 1712, !7, i64 1716, !7, i64 1720, !7, i64 1724, !11, i64 1728, !11, i64 1736, !11, i64 1744, !11, i64 1752, !10, i64 1760, !10, i64 1768, !10, i64 1776, !10, i64 1784, !10, i64 1792, !10, i64 1800, !10, i64 1808, !10, i64 1816, !10, i64 1824, !10, i64 1832, !10, i64 1840, !10, i64 1848, !10, i64 1856, !10, i64 1864, !11, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !10, i64 1904, !7, i64 1912, !8, i64 1916, !8, i64 1928, !8, i64 2128, !8, i64 2168, !8, i64 2368, !11, i64 2408, !11, i64 2416, !11, i64 2424, !11, i64 2432, !7, i64 2440, !7, i64 2444, !7, i64 2448, !11, i64 2456, !11, i64 2464, !11, i64 2472, !11, i64 2480, !11, i64 2488, !7, i64 2496, !7, i64 2500, !11, i64 2504, !7, i64 2512, !11, i64 2520, !7, i64 2528, !11, i64 2536, !11, i64 2544, !11, i64 2552, !11, i64 2560, !7, i64 2568, !7, i64 2572, !7, i64 2576, !7, i64 2580, !7, i64 2584, !7, i64 2588, !7, i64 2592, !7, i64 2596, !12, i64 2600, !7, i64 2608, !7, i64 2612, !7, i64 2616, !7, i64 2620, !7, i64 2624, !11, i64 2632, !11, i64 2640, !7, i64 2648, !7, i64 2652, !7, i64 2656, !10, i64 2664, !7, i64 2672, !10, i64 2680, !10, i64 2688, !10, i64 2696, !7, i64 2704, !7, i64 2708, !7, i64 2712, !7, i64 2716, !7, i64 2720, !10, i64 2728, !10, i64 2736, !7, i64 2744, !7, i64 2748, !7, i64 2752, !7, i64 2756, !7, i64 2760, !7, i64 2764, !10, i64 2768, !10, i64 2776, !7, i64 2784, !7, i64 2788, !7, i64 2792, !7, i64 2796, !11, i64 2800, !11, i64 2808, !11, i64 2816, !11, i64 2824, !11, i64 2832, !11, i64 2840, !11, i64 2848, !11, i64 2856, !11, i64 2864, !7, i64 2872, !11, i64 2880, !11, i64 2888, !7, i64 2896, !7, i64 2900, !7, i64 2904, !11, i64 2912, !10, i64 2920, !10, i64 2928, !10, i64 2936, !10, i64 2944, !7, i64 2952, !7, i64 2956, !7, i64 2960, !7, i64 2964, !7, i64 2968, !7, i64 2972, !11, i64 2976, !7, i64 2984, !7, i64 2988, !8, i64 2992, !8, i64 3192, !7, i64 3232, !10, i64 3240, !11, i64 3248, !11, i64 3256, !11, i64 3264, !13, i64 3272, !14, i64 3424}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"qhmemT", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !7, i64 64, !11, i64 72, !11, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144}
!14 = !{!"qhstatT", !8, i64 0, !8, i64 1992, !8, i64 2256, !8, i64 4248, !8, i64 4746, !8, i64 4995, !8, i64 5248, !7, i64 5320, !7, i64 5324, !7, i64 5328, !7, i64 5332, !10, i64 5336}
!15 = !{!6, !11, i64 2424}
!16 = !{!17, !7, i64 32}
!17 = !{!"vertexT", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40}
!18 = !{!11, !11, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !7, i64 24}
!22 = !{!"ridgeT", !11, i64 0, !11, i64 8, !11, i64 16, !7, i64 24, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28}
!23 = distinct !{!23, !20}
!24 = !{!22, !11, i64 0}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = !{!17, !7, i64 36}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}
!30 = distinct !{!30, !20}
!31 = distinct !{!31, !20}
!32 = !{!6, !7, i64 2788}
!33 = !{!6, !7, i64 424}
!34 = !{!8, !8, i64 0}
!35 = !{!6, !11, i64 2824}
!36 = distinct !{!36, !20}
!37 = distinct !{!37, !20}
!38 = !{!6, !7, i64 2620}


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