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

; 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 }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.ridgeT = type { ptr, ptr, ptr, i32, i8 }

@qh_qh = external global %struct.qhT, align 8
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [19 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 i32 @qh_setsize(ptr noundef) #1

declare void @qh_fprintf(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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printfacetridges(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.facetT, ptr %11, i32 0, i32 15
  %13 = load i32, ptr %12, align 8
  %14 = lshr i32 %13, 11
  %15 = and i32 %14, 1
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %17, label %45

17:                                               ; preds = %2
  %18 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 8, !tbaa !11
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %45

20:                                               ; preds = %17
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %21, i32 noundef 9179, ptr noundef @.str.144)
  store ptr null, ptr %7, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.facetT, ptr %22, i32 0, i32 9
  %24 = load ptr, ptr %23, align 8, !tbaa !15
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %43

26:                                               ; preds = %20
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.facetT, ptr %27, i32 0, i32 9
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = getelementptr inbounds %struct.setT, ptr %29, i32 0, i32 1
  %31 = getelementptr inbounds [1 x %union.setelemT], ptr %30, i64 0, i64 0
  store ptr %31, ptr %8, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %37, %26
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds ptr, ptr %33, i32 1
  store ptr %34, ptr %8, align 8, !tbaa !5
  %35 = load ptr, ptr %33, align 8, !tbaa !5
  store ptr %35, ptr %7, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %42

37:                                               ; preds = %32
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ridgeT, ptr %39, i32 0, i32 3
  %41 = load i32, ptr %40, align 8, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %38, i32 noundef 9180, ptr noundef @.str.145, i32 noundef %41)
  br label %32, !llvm.loop !19

42:                                               ; preds = %32
  br label %43

43:                                               ; preds = %42, %20
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %44, i32 noundef 9181, ptr noundef @.str.18)
  br label %255

45:                                               ; preds = %17, %2
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %46, i32 noundef 9182, ptr noundef @.str.146)
  store ptr null, ptr %7, align 8, !tbaa !5
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.facetT, ptr %47, i32 0, i32 9
  %49 = load ptr, ptr %48, align 8, !tbaa !15
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %69

51:                                               ; preds = %45
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.facetT, ptr %52, i32 0, i32 9
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  %55 = getelementptr inbounds %struct.setT, ptr %54, i32 0, i32 1
  %56 = getelementptr inbounds [1 x %union.setelemT], ptr %55, i64 0, i64 0
  store ptr %56, ptr %8, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %62, %51
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds ptr, ptr %58, i32 1
  store ptr %59, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %58, align 8, !tbaa !5
  store ptr %60, ptr %7, align 8, !tbaa !5
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %68

62:                                               ; preds = %57
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ridgeT, ptr %63, i32 0, i32 4
  %65 = load i8, ptr %64, align 4
  %66 = and i8 %65, -2
  %67 = or i8 %66, 0
  store i8 %67, ptr %64, align 4
  br label %57, !llvm.loop !21

68:                                               ; preds = %57
  br label %69

69:                                               ; preds = %68, %45
  %70 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !22
  %71 = icmp eq i32 %70, 3
  br i1 %71, label %72, label %106

72:                                               ; preds = %69
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.facetT, ptr %73, i32 0, i32 9
  %75 = load ptr, ptr %74, align 8, !tbaa !15
  %76 = getelementptr inbounds %struct.setT, ptr %75, i32 0, i32 1
  %77 = getelementptr inbounds [1 x %union.setelemT], ptr %76, i64 0, i64 0
  %78 = load ptr, ptr %77, align 8, !tbaa !23
  store ptr %78, ptr %7, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %92, %72
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %90

82:                                               ; preds = %79
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ridgeT, ptr %83, i32 0, i32 4
  %85 = load i8, ptr %84, align 4
  %86 = and i8 %85, 1
  %87 = zext i8 %86 to i32
  %88 = icmp ne i32 %87, 0
  %89 = xor i1 %88, true
  br label %90

90:                                               ; preds = %82, %79
  %91 = phi i1 [ false, %79 ], [ %89, %82 ]
  br i1 %91, label %92, label %105

92:                                               ; preds = %90
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.ridgeT, ptr %93, i32 0, i32 4
  %95 = load i8, ptr %94, align 4
  %96 = and i8 %95, -2
  %97 = or i8 %96, 1
  store i8 %97, ptr %94, align 4
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_printridge(ptr noundef %98, ptr noundef %99)
  %100 = load i32, ptr %9, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %9, align 4, !tbaa !9
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = call ptr @qh_nextridge3d(ptr noundef %102, ptr noundef %103, ptr noundef null)
  store ptr %104, ptr %7, align 8, !tbaa !5
  br label %79, !llvm.loop !24

105:                                              ; preds = %90
  br label %178

106:                                              ; preds = %69
  store ptr null, ptr %5, align 8, !tbaa !5
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.facetT, ptr %107, i32 0, i32 10
  %109 = load ptr, ptr %108, align 8, !tbaa !25
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %177

111:                                              ; preds = %106
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.facetT, ptr %112, i32 0, i32 10
  %114 = load ptr, ptr %113, align 8, !tbaa !25
  %115 = getelementptr inbounds %struct.setT, ptr %114, i32 0, i32 1
  %116 = getelementptr inbounds [1 x %union.setelemT], ptr %115, i64 0, i64 0
  store ptr %116, ptr %6, align 8, !tbaa !5
  br label %117

117:                                              ; preds = %175, %111
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds ptr, ptr %118, i32 1
  store ptr %119, ptr %6, align 8, !tbaa !5
  %120 = load ptr, ptr %118, align 8, !tbaa !5
  store ptr %120, ptr %5, align 8, !tbaa !5
  %121 = icmp ne ptr %120, null
  br i1 %121, label %122, label %176

122:                                              ; preds = %117
  store ptr null, ptr %7, align 8, !tbaa !5
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.facetT, ptr %123, i32 0, i32 9
  %125 = load ptr, ptr %124, align 8, !tbaa !15
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %175

127:                                              ; preds = %122
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.facetT, ptr %128, i32 0, i32 9
  %130 = load ptr, ptr %129, align 8, !tbaa !15
  %131 = getelementptr inbounds %struct.setT, ptr %130, i32 0, i32 1
  %132 = getelementptr inbounds [1 x %union.setelemT], ptr %131, i64 0, i64 0
  store ptr %132, ptr %8, align 8, !tbaa !5
  br label %133

133:                                              ; preds = %173, %127
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = getelementptr inbounds ptr, ptr %134, i32 1
  store ptr %135, ptr %8, align 8, !tbaa !5
  %136 = load ptr, ptr %134, align 8, !tbaa !5
  store ptr %136, ptr %7, align 8, !tbaa !5
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %174

138:                                              ; preds = %133
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.ridgeT, ptr %139, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8, !tbaa !26
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = icmp eq ptr %141, %142
  br i1 %143, label %144, label %148

144:                                              ; preds = %138
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.ridgeT, ptr %145, i32 0, i32 2
  %147 = load ptr, ptr %146, align 8, !tbaa !27
  br label %152

148:                                              ; preds = %138
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.ridgeT, ptr %149, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8, !tbaa !26
  br label %152

152:                                              ; preds = %148, %144
  %153 = phi ptr [ %147, %144 ], [ %151, %148 ]
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = icmp eq ptr %153, %154
  br i1 %155, label %156, label %173

156:                                              ; preds = %152
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.ridgeT, ptr %157, i32 0, i32 4
  %159 = load i8, ptr %158, align 4
  %160 = and i8 %159, 1
  %161 = zext i8 %160 to i32
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %173, label %163

163:                                              ; preds = %156
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.ridgeT, ptr %164, i32 0, i32 4
  %166 = load i8, ptr %165, align 4
  %167 = and i8 %166, -2
  %168 = or i8 %167, 1
  store i8 %168, ptr %165, align 4
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_printridge(ptr noundef %169, ptr noundef %170)
  %171 = load i32, ptr %9, align 4, !tbaa !9
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %9, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %163, %156, %152
  br label %133, !llvm.loop !28

174:                                              ; preds = %133
  br label %175

175:                                              ; preds = %174, %122
  br label %117, !llvm.loop !29

176:                                              ; preds = %117
  br label %177

177:                                              ; preds = %176, %106
  br label %178

178:                                              ; preds = %177, %105
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.facetT, ptr %179, i32 0, i32 9
  %181 = load ptr, ptr %180, align 8, !tbaa !15
  %182 = call i32 @qh_setsize(ptr noundef %181)
  store i32 %182, ptr %10, align 4, !tbaa !9
  %183 = load i32, ptr %10, align 4, !tbaa !9
  %184 = icmp eq i32 %183, 1
  br i1 %184, label %185, label %197

185:                                              ; preds = %178
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.facetT, ptr %186, i32 0, i32 15
  %188 = load i32, ptr %187, align 8
  %189 = lshr i32 %188, 10
  %190 = and i32 %189, 1
  %191 = icmp ne i32 %190, 0
  br i1 %191, label %192, label %197

192:                                              ; preds = %185
  %193 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 203), align 4, !tbaa !30
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %195, label %197

195:                                              ; preds = %192
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %196, i32 noundef 9411, ptr noundef @.str.147)
  br label %197

197:                                              ; preds = %195, %192, %185, %178
  %198 = load i32, ptr %9, align 4, !tbaa !9
  %199 = load i32, ptr %10, align 4, !tbaa !9
  %200 = icmp ne i32 %198, %199
  br i1 %200, label %201, label %226

201:                                              ; preds = %197
  %202 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %202, i32 noundef 9183, ptr noundef @.str.148)
  store ptr null, ptr %7, align 8, !tbaa !5
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.facetT, ptr %203, i32 0, i32 9
  %205 = load ptr, ptr %204, align 8, !tbaa !15
  %206 = icmp ne ptr %205, null
  br i1 %206, label %207, label %224

207:                                              ; preds = %201
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.facetT, ptr %208, i32 0, i32 9
  %210 = load ptr, ptr %209, align 8, !tbaa !15
  %211 = getelementptr inbounds %struct.setT, ptr %210, i32 0, i32 1
  %212 = getelementptr inbounds [1 x %union.setelemT], ptr %211, i64 0, i64 0
  store ptr %212, ptr %8, align 8, !tbaa !5
  br label %213

213:                                              ; preds = %218, %207
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = getelementptr inbounds ptr, ptr %214, i32 1
  store ptr %215, ptr %8, align 8, !tbaa !5
  %216 = load ptr, ptr %214, align 8, !tbaa !5
  store ptr %216, ptr %7, align 8, !tbaa !5
  %217 = icmp ne ptr %216, null
  br i1 %217, label %218, label %223

218:                                              ; preds = %213
  %219 = load ptr, ptr %3, align 8, !tbaa !5
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.ridgeT, ptr %220, i32 0, i32 3
  %222 = load i32, ptr %221, align 8, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %219, i32 noundef 9184, ptr noundef @.str.145, i32 noundef %222)
  br label %213, !llvm.loop !31

223:                                              ; preds = %213
  br label %224

224:                                              ; preds = %223, %201
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %225, i32 noundef 9185, ptr noundef @.str.18)
  br label %226

226:                                              ; preds = %224, %197
  store ptr null, ptr %7, align 8, !tbaa !5
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.facetT, ptr %227, i32 0, i32 9
  %229 = load ptr, ptr %228, align 8, !tbaa !15
  %230 = icmp ne ptr %229, null
  br i1 %230, label %231, label %254

231:                                              ; preds = %226
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.facetT, ptr %232, i32 0, i32 9
  %234 = load ptr, ptr %233, align 8, !tbaa !15
  %235 = getelementptr inbounds %struct.setT, ptr %234, i32 0, i32 1
  %236 = getelementptr inbounds [1 x %union.setelemT], ptr %235, i64 0, i64 0
  store ptr %236, ptr %8, align 8, !tbaa !5
  br label %237

237:                                              ; preds = %252, %231
  %238 = load ptr, ptr %8, align 8, !tbaa !5
  %239 = getelementptr inbounds ptr, ptr %238, i32 1
  store ptr %239, ptr %8, align 8, !tbaa !5
  %240 = load ptr, ptr %238, align 8, !tbaa !5
  store ptr %240, ptr %7, align 8, !tbaa !5
  %241 = icmp ne ptr %240, null
  br i1 %241, label %242, label %253

242:                                              ; preds = %237
  %243 = load ptr, ptr %7, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.ridgeT, ptr %243, i32 0, i32 4
  %245 = load i8, ptr %244, align 4
  %246 = and i8 %245, 1
  %247 = zext i8 %246 to i32
  %248 = icmp ne i32 %247, 0
  br i1 %248, label %252, label %249

249:                                              ; preds = %242
  %250 = load ptr, ptr %3, align 8, !tbaa !5
  %251 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_printridge(ptr noundef %250, ptr noundef %251)
  br label %252

252:                                              ; preds = %249, %242
  br label %237, !llvm.loop !32

253:                                              ; preds = %237
  br label %254

254:                                              ; preds = %253, %226
  br label %255

255:                                              ; preds = %254, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

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

declare ptr @qh_nextridge3d(ptr noundef, 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 2704}
!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}
!15 = !{!16, !6, i64 72}
!16 = !{!"facetT", !13, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115}
!17 = !{!18, !10, i64 24}
!18 = !{!"ridgeT", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28, !10, i64 28}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!12, !10, i64 632}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !20}
!25 = !{!16, !6, i64 80}
!26 = !{!18, !6, i64 8}
!27 = !{!18, !6, i64 16}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}
!30 = !{!12, !10, i64 2708}
!31 = distinct !{!31, !20}
!32 = distinct !{!32, !20}


; 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 local_unnamed_addr global %struct.qhT, align 8
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [19 x i8], align 1

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printfacetridges(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %1, i64 112
  %4 = load i32, ptr %3, align 8
  %5 = and i32 %4, 2048
  %6 = icmp ne i32 %5, 0
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2704), align 8
  %8 = icmp ne i32 %7, 0
  %or.cond = select i1 %6, i1 %8, i1 false
  %9 = getelementptr inbounds i8, ptr %1, i64 72
  br i1 %or.cond, label %10, label %17

10:                                               ; preds = %2
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9179, ptr noundef nonnull @.str.144) #2
  %11 = load ptr, ptr %9, align 8, !tbaa !5
  %.not97 = icmp eq ptr %11, null
  br i1 %.not97, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %10
  %.059139 = getelementptr inbounds i8, ptr %11, i64 8
  %12 = load ptr, ptr %.059139, align 8, !tbaa !12
  %.not99140 = icmp eq ptr %12, null
  br i1 %.not99140, label %.loopexit, label %.lr.ph142

.lr.ph142:                                        ; preds = %.preheader, %.lr.ph142
  %13 = phi ptr [ %16, %.lr.ph142 ], [ %12, %.preheader ]
  %.059141 = phi ptr [ %.059, %.lr.ph142 ], [ %.059139, %.preheader ]
  %14 = getelementptr inbounds i8, ptr %13, i64 24
  %15 = load i32, ptr %14, align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9180, ptr noundef nonnull @.str.145, i32 noundef %15) #2
  %.059 = getelementptr inbounds i8, ptr %.059141, i64 8
  %16 = load ptr, ptr %.059, align 8, !tbaa !12
  %.not99 = icmp eq ptr %16, null
  br i1 %.not99, label %.loopexit, label %.lr.ph142, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph142, %.preheader, %10
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9181, ptr noundef nonnull @.str.18) #2
  br label %.loopexit101

17:                                               ; preds = %2
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9182, ptr noundef nonnull @.str.146) #2
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %.not = icmp eq ptr %18, null
  br i1 %.not, label %.loopexit109, label %.preheader108

.preheader108:                                    ; preds = %17
  %.160110 = getelementptr inbounds i8, ptr %18, i64 8
  %19 = load ptr, ptr %.160110, align 8, !tbaa !12
  %.not79111 = icmp eq ptr %19, null
  br i1 %.not79111, label %.loopexit109, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader108, %.lr.ph
  %20 = phi ptr [ %24, %.lr.ph ], [ %19, %.preheader108 ]
  %.160112 = phi ptr [ %.160, %.lr.ph ], [ %.160110, %.preheader108 ]
  %21 = getelementptr inbounds i8, ptr %20, i64 28
  %22 = load i8, ptr %21, align 4
  %23 = and i8 %22, -2
  store i8 %23, ptr %21, align 4
  %.160 = getelementptr inbounds i8, ptr %.160112, i64 8
  %24 = load ptr, ptr %.160, align 8, !tbaa !12
  %.not79 = icmp eq ptr %24, null
  br i1 %.not79, label %.loopexit109, label %.lr.ph, !llvm.loop !17

.loopexit109:                                     ; preds = %.lr.ph, %.preheader108, %17
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !18
  %26 = icmp eq i32 %25, 3
  br i1 %26, label %27, label %38

27:                                               ; preds = %.loopexit109
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !21
  %.not87124 = icmp eq ptr %30, null
  br i1 %.not87124, label %.critedge, label %.lr.ph127

.lr.ph127:                                        ; preds = %27, %34
  %.0126 = phi i32 [ %36, %34 ], [ 0, %27 ]
  %.064125 = phi ptr [ %37, %34 ], [ %30, %27 ]
  %31 = getelementptr inbounds i8, ptr %.064125, i64 28
  %32 = load i8, ptr %31, align 4
  %33 = and i8 %32, 1
  %.not88 = icmp eq i8 %33, 0
  br i1 %.not88, label %34, label %.critedge

34:                                               ; preds = %.lr.ph127
  %35 = or disjoint i8 %32, 1
  store i8 %35, ptr %31, align 4
  tail call void @qh_printridge(ptr noundef %0, ptr noundef nonnull %.064125)
  %36 = add nuw nsw i32 %.0126, 1
  %37 = tail call ptr @qh_nextridge3d(ptr noundef nonnull %.064125, ptr noundef %1, ptr noundef null) #2
  %.not87 = icmp eq ptr %37, null
  br i1 %.not87, label %.critedge, label %.lr.ph127, !llvm.loop !22

38:                                               ; preds = %.loopexit109
  %39 = getelementptr inbounds i8, ptr %1, i64 80
  %40 = load ptr, ptr %39, align 8, !tbaa !23
  %.not80 = icmp eq ptr %40, null
  br i1 %.not80, label %.critedge, label %.preheader106

.preheader106:                                    ; preds = %38
  %.065118 = getelementptr inbounds i8, ptr %40, i64 8
  %41 = load ptr, ptr %.065118, align 8, !tbaa !12
  %.not82119 = icmp eq ptr %41, null
  br i1 %.not82119, label %.critedge, label %.lr.ph122

.lr.ph122:                                        ; preds = %.preheader106
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = icmp eq ptr %42, null
  br i1 %43, label %.critedge, label %.lr.ph122.split

.lr.ph122.splitthread-pre-split:                  ; preds = %.loopexit105
  %.pr = load ptr, ptr %9, align 8, !tbaa !5
  br label %.lr.ph122.split

.lr.ph122.split:                                  ; preds = %.lr.ph122, %.lr.ph122.splitthread-pre-split
  %44 = phi ptr [ %.pr, %.lr.ph122.splitthread-pre-split ], [ %42, %.lr.ph122 ]
  %45 = phi ptr [ %66, %.lr.ph122.splitthread-pre-split ], [ %41, %.lr.ph122 ]
  %.065121 = phi ptr [ %.065, %.lr.ph122.splitthread-pre-split ], [ %.065118, %.lr.ph122 ]
  %.1120 = phi i32 [ %.4, %.lr.ph122.splitthread-pre-split ], [ 0, %.lr.ph122 ]
  %.not83 = icmp eq ptr %44, null
  br i1 %.not83, label %.loopexit105, label %.preheader104

.preheader104:                                    ; preds = %.lr.ph122.split
  %.261113 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load ptr, ptr %.261113, align 8, !tbaa !12
  %.not85114 = icmp eq ptr %46, null
  br i1 %.not85114, label %.loopexit105, label %.lr.ph117

.lr.ph117:                                        ; preds = %.preheader104, %64
  %47 = phi ptr [ %65, %64 ], [ %46, %.preheader104 ]
  %.261116 = phi ptr [ %.261, %64 ], [ %.261113, %.preheader104 ]
  %.2115 = phi i32 [ %.3, %64 ], [ %.1120, %.preheader104 ]
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  %49 = load ptr, ptr %48, align 8, !tbaa !24
  %50 = icmp eq ptr %49, %1
  br i1 %50, label %51, label %54

51:                                               ; preds = %.lr.ph117
  %52 = getelementptr inbounds i8, ptr %47, i64 16
  %53 = load ptr, ptr %52, align 8, !tbaa !25
  br label %54

54:                                               ; preds = %.lr.ph117, %51
  %55 = phi ptr [ %53, %51 ], [ %49, %.lr.ph117 ]
  %56 = icmp eq ptr %55, %45
  br i1 %56, label %57, label %64

57:                                               ; preds = %54
  %58 = getelementptr inbounds i8, ptr %47, i64 28
  %59 = load i8, ptr %58, align 4
  %60 = and i8 %59, 1
  %.not86 = icmp eq i8 %60, 0
  br i1 %.not86, label %61, label %64

61:                                               ; preds = %57
  %62 = or disjoint i8 %59, 1
  store i8 %62, ptr %58, align 4
  tail call void @qh_printridge(ptr noundef %0, ptr noundef nonnull %47)
  %63 = add nsw i32 %.2115, 1
  br label %64

64:                                               ; preds = %61, %57, %54
  %.3 = phi i32 [ %.2115, %57 ], [ %63, %61 ], [ %.2115, %54 ]
  %.261 = getelementptr inbounds i8, ptr %.261116, i64 8
  %65 = load ptr, ptr %.261, align 8, !tbaa !12
  %.not85 = icmp eq ptr %65, null
  br i1 %.not85, label %.loopexit105, label %.lr.ph117, !llvm.loop !26

.loopexit105:                                     ; preds = %64, %.preheader104, %.lr.ph122.split
  %.4 = phi i32 [ %.1120, %.lr.ph122.split ], [ %.1120, %.preheader104 ], [ %.3, %64 ]
  %.065 = getelementptr inbounds i8, ptr %.065121, i64 8
  %66 = load ptr, ptr %.065, align 8, !tbaa !12
  %.not82 = icmp eq ptr %66, null
  br i1 %.not82, label %.critedge, label %.lr.ph122.splitthread-pre-split, !llvm.loop !27

.critedge:                                        ; preds = %.loopexit105, %34, %.lr.ph127, %.lr.ph122, %.preheader106, %27, %38
  %.5 = phi i32 [ 0, %38 ], [ 0, %27 ], [ 0, %.preheader106 ], [ 0, %.lr.ph122 ], [ %36, %34 ], [ %.0126, %.lr.ph127 ], [ %.4, %.loopexit105 ]
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = tail call i32 @qh_setsize(ptr noundef %67) #2
  %69 = icmp eq i32 %68, 1
  br i1 %69, label %70, label %77

70:                                               ; preds = %.critedge
  %71 = load i32, ptr %3, align 8
  %72 = and i32 %71, 1024
  %73 = icmp ne i32 %72, 0
  %74 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2708), align 4
  %75 = icmp ne i32 %74, 0
  %or.cond3 = select i1 %73, i1 %75, i1 false
  br i1 %or.cond3, label %76, label %77

76:                                               ; preds = %70
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9411, ptr noundef nonnull @.str.147) #2
  br label %77

77:                                               ; preds = %76, %70, %.critedge
  %.not89 = icmp eq i32 %.5, %68
  br i1 %.not89, label %85, label %78

78:                                               ; preds = %77
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9183, ptr noundef nonnull @.str.148) #2
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %.not90 = icmp eq ptr %79, null
  br i1 %.not90, label %.loopexit103, label %.preheader102

.preheader102:                                    ; preds = %78
  %.362131 = getelementptr inbounds i8, ptr %79, i64 8
  %80 = load ptr, ptr %.362131, align 8, !tbaa !12
  %.not92132 = icmp eq ptr %80, null
  br i1 %.not92132, label %.loopexit103, label %.lr.ph134

.lr.ph134:                                        ; preds = %.preheader102, %.lr.ph134
  %81 = phi ptr [ %84, %.lr.ph134 ], [ %80, %.preheader102 ]
  %.362133 = phi ptr [ %.362, %.lr.ph134 ], [ %.362131, %.preheader102 ]
  %82 = getelementptr inbounds i8, ptr %81, i64 24
  %83 = load i32, ptr %82, align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9184, ptr noundef nonnull @.str.145, i32 noundef %83) #2
  %.362 = getelementptr inbounds i8, ptr %.362133, i64 8
  %84 = load ptr, ptr %.362, align 8, !tbaa !12
  %.not92 = icmp eq ptr %84, null
  br i1 %.not92, label %.loopexit103, label %.lr.ph134, !llvm.loop !29

.loopexit103:                                     ; preds = %.lr.ph134, %.preheader102, %78
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, i32 noundef 9185, ptr noundef nonnull @.str.18) #2
  br label %85

85:                                               ; preds = %.loopexit103, %77
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %.not93 = icmp eq ptr %86, null
  br i1 %.not93, label %.loopexit101, label %.preheader100

.preheader100:                                    ; preds = %85
  %.463135 = getelementptr inbounds i8, ptr %86, i64 8
  %87 = load ptr, ptr %.463135, align 8, !tbaa !12
  %.not95136 = icmp eq ptr %87, null
  br i1 %.not95136, label %.loopexit101, label %.lr.ph138

.lr.ph138:                                        ; preds = %.preheader100, %93
  %88 = phi ptr [ %94, %93 ], [ %87, %.preheader100 ]
  %.463137 = phi ptr [ %.463, %93 ], [ %.463135, %.preheader100 ]
  %89 = getelementptr inbounds i8, ptr %88, i64 28
  %90 = load i8, ptr %89, align 4
  %91 = and i8 %90, 1
  %.not96 = icmp eq i8 %91, 0
  br i1 %.not96, label %92, label %93

92:                                               ; preds = %.lr.ph138
  tail call void @qh_printridge(ptr noundef %0, ptr noundef nonnull %88)
  br label %93

93:                                               ; preds = %92, %.lr.ph138
  %.463 = getelementptr inbounds i8, ptr %.463137, i64 8
  %94 = load ptr, ptr %.463, align 8, !tbaa !12
  %.not95 = icmp eq ptr %94, null
  br i1 %.not95, label %.loopexit101, label %.lr.ph138, !llvm.loop !30

.loopexit101:                                     ; preds = %93, %.preheader100, %85, %.loopexit
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @qh_printridge(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @qh_nextridge3d(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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, !10, i64 72}
!6 = !{!"facetT", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !8, 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, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!14, !11, i64 24}
!14 = !{!"ridgeT", !10, i64 0, !10, i64 8, !10, 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}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !11, i64 632}
!19 = !{!"qhT", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !7, 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, !7, i64 64, !7, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !10, i64 104, !11, i64 112, !11, i64 116, !10, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !7, i64 160, !7, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !7, i64 192, !7, i64 200, !11, i64 208, !11, i64 212, !7, 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, !8, 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, !7, i64 448, !7, i64 456, !7, 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, !7, 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, !7, i64 592, !11, i64 600, !10, i64 608, !10, i64 616, !11, i64 624, !11, i64 628, !11, i64 632, !11, i64 636, !11, i64 640, !10, i64 648, !11, i64 656, !10, i64 664, !11, i64 672, !8, i64 676, !11, i64 932, !8, i64 936, !8, i64 1192, !11, i64 1704, !11, i64 1708, !11, i64 1712, !11, i64 1716, !11, i64 1720, !11, i64 1724, !10, i64 1728, !10, i64 1736, !10, i64 1744, !10, i64 1752, !7, i64 1760, !7, i64 1768, !7, i64 1776, !7, i64 1784, !7, i64 1792, !7, i64 1800, !7, i64 1808, !7, i64 1816, !7, i64 1824, !7, i64 1832, !7, i64 1840, !7, i64 1848, !7, i64 1856, !7, i64 1864, !10, i64 1872, !7, i64 1880, !7, i64 1888, !7, i64 1896, !7, i64 1904, !11, i64 1912, !8, i64 1916, !8, i64 1928, !8, i64 2128, !8, i64 2168, !8, i64 2368, !10, i64 2408, !10, i64 2416, !10, i64 2424, !10, i64 2432, !11, i64 2440, !11, i64 2444, !11, i64 2448, !10, i64 2456, !10, i64 2464, !10, i64 2472, !10, i64 2480, !10, i64 2488, !11, i64 2496, !11, i64 2500, !10, i64 2504, !11, i64 2512, !10, i64 2520, !11, i64 2528, !10, i64 2536, !10, i64 2544, !10, i64 2552, !10, 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, !20, i64 2600, !11, i64 2608, !11, i64 2612, !11, i64 2616, !11, i64 2620, !11, i64 2624, !10, i64 2632, !10, i64 2640, !11, i64 2648, !11, i64 2652, !11, i64 2656, !7, i64 2664, !11, i64 2672, !7, i64 2680, !7, i64 2688, !7, i64 2696, !11, i64 2704, !11, i64 2708, !11, i64 2712, !11, i64 2716, !11, i64 2720, !7, i64 2728, !7, i64 2736, !11, i64 2744, !11, i64 2748, !11, i64 2752, !11, i64 2756, !11, i64 2760, !11, i64 2764, !7, i64 2768, !7, i64 2776, !11, i64 2784, !11, i64 2788, !11, i64 2792, !11, 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, !11, i64 2872, !10, i64 2880, !10, i64 2888, !11, i64 2896, !11, i64 2900, !11, i64 2904, !10, i64 2912, !7, i64 2920, !7, i64 2928, !7, i64 2936, !7, i64 2944, !11, i64 2952, !11, i64 2956, !11, i64 2960, !11, i64 2964, !11, i64 2968, !11, i64 2972, !10, i64 2976, !10, i64 2984, !11, i64 2992}
!20 = !{!"long", !8, i64 0}
!21 = !{!8, !8, i64 0}
!22 = distinct !{!22, !16}
!23 = !{!6, !10, i64 80}
!24 = !{!14, !10, i64 8}
!25 = !{!14, !10, i64 16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16, !28}
!28 = !{!"llvm.loop.unswitch.partial.disable"}
!29 = distinct !{!29, !16}
!30 = distinct !{!30, !16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass