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

@.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, ptr noundef) #1

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

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

19:                                               ; preds = %3
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.qhT, ptr %20, i32 0, i32 202
  %22 = load i32, ptr %21, align 8, !tbaa !11
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %52

24:                                               ; preds = %19
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %25, ptr noundef %26, i32 noundef 9179, ptr noundef @.str.144)
  store ptr null, ptr %9, align 8, !tbaa !5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.facetT, ptr %27, i32 0, i32 9
  %29 = load ptr, ptr %28, align 8, !tbaa !17
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %49

31:                                               ; preds = %24
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.facetT, ptr %32, i32 0, i32 9
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %35 = getelementptr inbounds %struct.setT, ptr %34, i32 0, i32 1
  %36 = getelementptr inbounds [1 x %union.setelemT], ptr %35, i64 0, i64 0
  store ptr %36, ptr %10, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %42, %31
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds ptr, ptr %38, i32 1
  store ptr %39, ptr %10, align 8, !tbaa !5
  %40 = load ptr, ptr %38, align 8, !tbaa !5
  store ptr %40, ptr %9, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %48

42:                                               ; preds = %37
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ridgeT, ptr %45, i32 0, i32 3
  %47 = load i32, ptr %46, align 8, !tbaa !19
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %43, ptr noundef %44, i32 noundef 9180, ptr noundef @.str.145, i32 noundef %47)
  br label %37, !llvm.loop !21

48:                                               ; preds = %37
  br label %49

49:                                               ; preds = %48, %24
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %50, ptr noundef %51, i32 noundef 9181, ptr noundef @.str.18)
  br label %275

52:                                               ; preds = %19, %3
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %53, ptr noundef %54, i32 noundef 9182, ptr noundef @.str.146)
  store ptr null, ptr %9, align 8, !tbaa !5
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.facetT, ptr %55, i32 0, i32 9
  %57 = load ptr, ptr %56, align 8, !tbaa !17
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %77

59:                                               ; preds = %52
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.facetT, ptr %60, i32 0, i32 9
  %62 = load ptr, ptr %61, align 8, !tbaa !17
  %63 = getelementptr inbounds %struct.setT, ptr %62, i32 0, i32 1
  %64 = getelementptr inbounds [1 x %union.setelemT], ptr %63, i64 0, i64 0
  store ptr %64, ptr %10, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %70, %59
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds ptr, ptr %66, i32 1
  store ptr %67, ptr %10, align 8, !tbaa !5
  %68 = load ptr, ptr %66, align 8, !tbaa !5
  store ptr %68, ptr %9, align 8, !tbaa !5
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %76

70:                                               ; preds = %65
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ridgeT, ptr %71, i32 0, i32 4
  %73 = load i8, ptr %72, align 4
  %74 = and i8 %73, -2
  %75 = or i8 %74, 0
  store i8 %75, ptr %72, align 4
  br label %65, !llvm.loop !23

76:                                               ; preds = %65
  br label %77

77:                                               ; preds = %76, %52
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.qhT, ptr %78, i32 0, i32 110
  %80 = load i32, ptr %79, align 8, !tbaa !24
  %81 = icmp eq i32 %80, 3
  br i1 %81, label %82, label %117

82:                                               ; preds = %77
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.facetT, ptr %83, i32 0, i32 9
  %85 = load ptr, ptr %84, align 8, !tbaa !17
  %86 = getelementptr inbounds %struct.setT, ptr %85, i32 0, i32 1
  %87 = getelementptr inbounds [1 x %union.setelemT], ptr %86, i64 0, i64 0
  %88 = load ptr, ptr %87, align 8, !tbaa !25
  store ptr %88, ptr %9, align 8, !tbaa !5
  br label %89

89:                                               ; preds = %102, %82
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %100

92:                                               ; preds = %89
  %93 = load ptr, ptr %9, 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, 1
  %97 = zext i8 %96 to i32
  %98 = icmp ne i32 %97, 0
  %99 = xor i1 %98, true
  br label %100

100:                                              ; preds = %92, %89
  %101 = phi i1 [ false, %89 ], [ %99, %92 ]
  br i1 %101, label %102, label %116

102:                                              ; preds = %100
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ridgeT, ptr %103, i32 0, i32 4
  %105 = load i8, ptr %104, align 4
  %106 = and i8 %105, -2
  %107 = or i8 %106, 1
  store i8 %107, ptr %104, align 4
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_printridge(ptr noundef %108, ptr noundef %109, ptr noundef %110)
  %111 = load i32, ptr %11, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %11, align 4, !tbaa !9
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = call ptr @qh_nextridge3d(ptr noundef %113, ptr noundef %114, ptr noundef null)
  store ptr %115, ptr %9, align 8, !tbaa !5
  br label %89, !llvm.loop !26

116:                                              ; preds = %100
  br label %190

117:                                              ; preds = %77
  store ptr null, ptr %7, align 8, !tbaa !5
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.facetT, ptr %118, i32 0, i32 10
  %120 = load ptr, ptr %119, align 8, !tbaa !27
  %121 = icmp ne ptr %120, null
  br i1 %121, label %122, label %189

122:                                              ; preds = %117
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.facetT, ptr %123, i32 0, i32 10
  %125 = load ptr, ptr %124, align 8, !tbaa !27
  %126 = getelementptr inbounds %struct.setT, ptr %125, i32 0, i32 1
  %127 = getelementptr inbounds [1 x %union.setelemT], ptr %126, i64 0, i64 0
  store ptr %127, ptr %8, align 8, !tbaa !5
  br label %128

128:                                              ; preds = %187, %122
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = getelementptr inbounds ptr, ptr %129, i32 1
  store ptr %130, ptr %8, align 8, !tbaa !5
  %131 = load ptr, ptr %129, align 8, !tbaa !5
  store ptr %131, ptr %7, align 8, !tbaa !5
  %132 = icmp ne ptr %131, null
  br i1 %132, label %133, label %188

133:                                              ; preds = %128
  store ptr null, ptr %9, align 8, !tbaa !5
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.facetT, ptr %134, i32 0, i32 9
  %136 = load ptr, ptr %135, align 8, !tbaa !17
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %187

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

144:                                              ; preds = %185, %138
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = getelementptr inbounds ptr, ptr %145, i32 1
  store ptr %146, ptr %10, align 8, !tbaa !5
  %147 = load ptr, ptr %145, align 8, !tbaa !5
  store ptr %147, ptr %9, align 8, !tbaa !5
  %148 = icmp ne ptr %147, null
  br i1 %148, label %149, label %186

149:                                              ; preds = %144
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.ridgeT, ptr %150, i32 0, i32 1
  %152 = load ptr, ptr %151, align 8, !tbaa !28
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = icmp eq ptr %152, %153
  br i1 %154, label %155, label %159

155:                                              ; preds = %149
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.ridgeT, ptr %156, i32 0, i32 2
  %158 = load ptr, ptr %157, align 8, !tbaa !29
  br label %163

159:                                              ; preds = %149
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.ridgeT, ptr %160, i32 0, i32 1
  %162 = load ptr, ptr %161, align 8, !tbaa !28
  br label %163

163:                                              ; preds = %159, %155
  %164 = phi ptr [ %158, %155 ], [ %162, %159 ]
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = icmp eq ptr %164, %165
  br i1 %166, label %167, label %185

167:                                              ; preds = %163
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.ridgeT, ptr %168, i32 0, i32 4
  %170 = load i8, ptr %169, align 4
  %171 = and i8 %170, 1
  %172 = zext i8 %171 to i32
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %185, label %174

174:                                              ; preds = %167
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.ridgeT, ptr %175, i32 0, i32 4
  %177 = load i8, ptr %176, align 4
  %178 = and i8 %177, -2
  %179 = or i8 %178, 1
  store i8 %179, ptr %176, align 4
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_printridge(ptr noundef %180, ptr noundef %181, ptr noundef %182)
  %183 = load i32, ptr %11, align 4, !tbaa !9
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %11, align 4, !tbaa !9
  br label %185

185:                                              ; preds = %174, %167, %163
  br label %144, !llvm.loop !30

186:                                              ; preds = %144
  br label %187

187:                                              ; preds = %186, %133
  br label %128, !llvm.loop !31

188:                                              ; preds = %128
  br label %189

189:                                              ; preds = %188, %117
  br label %190

190:                                              ; preds = %189, %116
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.facetT, ptr %192, i32 0, i32 9
  %194 = load ptr, ptr %193, align 8, !tbaa !17
  %195 = call i32 @qh_setsize(ptr noundef %191, ptr noundef %194)
  store i32 %195, ptr %12, align 4, !tbaa !9
  %196 = load i32, ptr %12, align 4, !tbaa !9
  %197 = icmp eq i32 %196, 1
  br i1 %197, label %198, label %213

198:                                              ; preds = %190
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.facetT, ptr %199, i32 0, i32 15
  %201 = load i32, ptr %200, align 8
  %202 = lshr i32 %201, 10
  %203 = and i32 %202, 1
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %205, label %213

205:                                              ; preds = %198
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.qhT, ptr %206, i32 0, i32 203
  %208 = load i32, ptr %207, align 4, !tbaa !32
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %213

210:                                              ; preds = %205
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %211, ptr noundef %212, i32 noundef 9411, ptr noundef @.str.147)
  br label %213

213:                                              ; preds = %210, %205, %198, %190
  %214 = load i32, ptr %11, align 4, !tbaa !9
  %215 = load i32, ptr %12, align 4, !tbaa !9
  %216 = icmp ne i32 %214, %215
  br i1 %216, label %217, label %245

217:                                              ; preds = %213
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %218, ptr noundef %219, i32 noundef 9183, ptr noundef @.str.148)
  store ptr null, ptr %9, align 8, !tbaa !5
  %220 = load ptr, ptr %6, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.facetT, ptr %220, i32 0, i32 9
  %222 = load ptr, ptr %221, align 8, !tbaa !17
  %223 = icmp ne ptr %222, null
  br i1 %223, label %224, label %242

224:                                              ; preds = %217
  %225 = load ptr, ptr %6, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.facetT, ptr %225, i32 0, i32 9
  %227 = load ptr, ptr %226, align 8, !tbaa !17
  %228 = getelementptr inbounds %struct.setT, ptr %227, i32 0, i32 1
  %229 = getelementptr inbounds [1 x %union.setelemT], ptr %228, i64 0, i64 0
  store ptr %229, ptr %10, align 8, !tbaa !5
  br label %230

230:                                              ; preds = %235, %224
  %231 = load ptr, ptr %10, align 8, !tbaa !5
  %232 = getelementptr inbounds ptr, ptr %231, i32 1
  store ptr %232, ptr %10, align 8, !tbaa !5
  %233 = load ptr, ptr %231, align 8, !tbaa !5
  store ptr %233, ptr %9, align 8, !tbaa !5
  %234 = icmp ne ptr %233, null
  br i1 %234, label %235, label %241

235:                                              ; preds = %230
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = load ptr, ptr %9, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.ridgeT, ptr %238, i32 0, i32 3
  %240 = load i32, ptr %239, align 8, !tbaa !19
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %236, ptr noundef %237, i32 noundef 9184, ptr noundef @.str.145, i32 noundef %240)
  br label %230, !llvm.loop !33

241:                                              ; preds = %230
  br label %242

242:                                              ; preds = %241, %217
  %243 = load ptr, ptr %4, align 8, !tbaa !5
  %244 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %243, ptr noundef %244, i32 noundef 9185, ptr noundef @.str.18)
  br label %245

245:                                              ; preds = %242, %213
  store ptr null, ptr %9, align 8, !tbaa !5
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.facetT, ptr %246, i32 0, i32 9
  %248 = load ptr, ptr %247, align 8, !tbaa !17
  %249 = icmp ne ptr %248, null
  br i1 %249, label %250, label %274

250:                                              ; preds = %245
  %251 = load ptr, ptr %6, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.facetT, ptr %251, i32 0, i32 9
  %253 = load ptr, ptr %252, align 8, !tbaa !17
  %254 = getelementptr inbounds %struct.setT, ptr %253, i32 0, i32 1
  %255 = getelementptr inbounds [1 x %union.setelemT], ptr %254, i64 0, i64 0
  store ptr %255, ptr %10, align 8, !tbaa !5
  br label %256

256:                                              ; preds = %272, %250
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  %258 = getelementptr inbounds ptr, ptr %257, i32 1
  store ptr %258, ptr %10, align 8, !tbaa !5
  %259 = load ptr, ptr %257, align 8, !tbaa !5
  store ptr %259, ptr %9, align 8, !tbaa !5
  %260 = icmp ne ptr %259, null
  br i1 %260, label %261, label %273

261:                                              ; preds = %256
  %262 = load ptr, ptr %9, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.ridgeT, ptr %262, i32 0, i32 4
  %264 = load i8, ptr %263, align 4
  %265 = and i8 %264, 1
  %266 = zext i8 %265 to i32
  %267 = icmp ne i32 %266, 0
  br i1 %267, label %272, label %268

268:                                              ; preds = %261
  %269 = load ptr, ptr %4, align 8, !tbaa !5
  %270 = load ptr, ptr %5, align 8, !tbaa !5
  %271 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_printridge(ptr noundef %269, ptr noundef %270, ptr noundef %271)
  br label %272

272:                                              ; preds = %268, %261
  br label %256, !llvm.loop !34

273:                                              ; preds = %256
  br label %274

274:                                              ; preds = %273, %245
  br label %275

275:                                              ; preds = %274, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @qh_printridge(ptr noundef, 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, !10, i64 2984, !10, i64 2988, !7, i64 2992, !7, i64 3192, !10, i64 3232, !13, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !15, i64 3272, !16, i64 3424}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"qhmemT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144}
!16 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !10, i64 5320, !10, i64 5324, !10, i64 5328, !10, i64 5332, !13, i64 5336}
!17 = !{!18, !6, i64 72}
!18 = !{!"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}
!19 = !{!20, !10, i64 24}
!20 = !{!"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}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!12, !10, i64 632}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !22}
!27 = !{!18, !6, i64 80}
!28 = !{!20, !6, i64 8}
!29 = !{!20, !6, i64 16}
!30 = distinct !{!30, !22}
!31 = distinct !{!31, !22}
!32 = !{!12, !10, i64 2708}
!33 = distinct !{!33, !22}
!34 = distinct !{!34, !22}


; 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.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, ptr noundef) local_unnamed_addr #0

declare void @qh_fprintf(ptr noundef, 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, ptr noundef %2) local_unnamed_addr #1 {
  %4 = getelementptr inbounds i8, ptr %2, i64 112
  %5 = load i32, ptr %4, align 8
  %6 = and i32 %5, 2048
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %18, label %7

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 2704
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %.not91 = icmp eq i32 %9, 0
  br i1 %.not91, label %18, label %10

10:                                               ; preds = %7
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9179, ptr noundef nonnull @.str.144) #2
  %11 = getelementptr inbounds i8, ptr %2, i64 72
  %12 = load ptr, ptr %11, align 8, !tbaa !15
  %.not113 = icmp eq ptr %12, null
  br i1 %.not113, label %.loopexit125, label %.preheader124

.preheader124:                                    ; preds = %10
  %.071126 = getelementptr inbounds i8, ptr %12, i64 8
  %13 = load ptr, ptr %.071126, align 8, !tbaa !17
  %.not115127 = icmp eq ptr %13, null
  br i1 %.not115127, label %.loopexit125, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader124, %.lr.ph
  %14 = phi ptr [ %17, %.lr.ph ], [ %13, %.preheader124 ]
  %.071128 = phi ptr [ %.071, %.lr.ph ], [ %.071126, %.preheader124 ]
  %15 = getelementptr inbounds i8, ptr %14, i64 24
  %16 = load i32, ptr %15, align 8, !tbaa !18
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9180, ptr noundef nonnull @.str.145, i32 noundef %16) #2
  %.071 = getelementptr inbounds i8, ptr %.071128, i64 8
  %17 = load ptr, ptr %.071, align 8, !tbaa !17
  %.not115 = icmp eq ptr %17, null
  br i1 %.not115, label %.loopexit125, label %.lr.ph, !llvm.loop !20

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

18:                                               ; preds = %7, %3
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9182, ptr noundef nonnull @.str.146) #2
  %19 = getelementptr inbounds i8, ptr %2, i64 72
  %20 = load ptr, ptr %19, align 8, !tbaa !15
  %.not92 = icmp eq ptr %20, null
  br i1 %.not92, label %.loopexit123, label %.preheader122

.preheader122:                                    ; preds = %18
  %.172129 = getelementptr inbounds i8, ptr %20, i64 8
  %21 = load ptr, ptr %.172129, align 8, !tbaa !17
  %.not93130 = icmp eq ptr %21, null
  br i1 %.not93130, label %.loopexit123, label %.lr.ph132

.lr.ph132:                                        ; preds = %.preheader122, %.lr.ph132
  %22 = phi ptr [ %26, %.lr.ph132 ], [ %21, %.preheader122 ]
  %.172131 = phi ptr [ %.172, %.lr.ph132 ], [ %.172129, %.preheader122 ]
  %23 = getelementptr inbounds i8, ptr %22, i64 28
  %24 = load i8, ptr %23, align 4
  %25 = and i8 %24, -2
  store i8 %25, ptr %23, align 4
  %.172 = getelementptr inbounds i8, ptr %.172131, i64 8
  %26 = load ptr, ptr %.172, align 8, !tbaa !17
  %.not93 = icmp eq ptr %26, null
  br i1 %.not93, label %.loopexit123, label %.lr.ph132, !llvm.loop !22

.loopexit123:                                     ; preds = %.lr.ph132, %.preheader122, %18
  %27 = getelementptr inbounds i8, ptr %0, i64 632
  %28 = load i32, ptr %27, align 8, !tbaa !23
  %29 = icmp eq i32 %28, 3
  br i1 %29, label %30, label %41

30:                                               ; preds = %.loopexit123
  %31 = load ptr, ptr %19, align 8, !tbaa !15
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  %33 = load ptr, ptr %32, align 8, !tbaa !24
  %.not101144 = icmp eq ptr %33, null
  br i1 %.not101144, label %.critedge, label %.lr.ph147

.lr.ph147:                                        ; preds = %30, %37
  %.0146 = phi i32 [ %39, %37 ], [ 0, %30 ]
  %.076145 = phi ptr [ %40, %37 ], [ %33, %30 ]
  %34 = getelementptr inbounds i8, ptr %.076145, i64 28
  %35 = load i8, ptr %34, align 4
  %36 = and i8 %35, 1
  %.not102 = icmp eq i8 %36, 0
  br i1 %.not102, label %37, label %.critedge

37:                                               ; preds = %.lr.ph147
  %38 = or disjoint i8 %35, 1
  store i8 %38, ptr %34, align 4
  tail call void @qh_printridge(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %.076145)
  %39 = add nuw nsw i32 %.0146, 1
  %40 = tail call ptr @qh_nextridge3d(ptr noundef nonnull %.076145, ptr noundef %2, ptr noundef null) #2
  %.not101 = icmp eq ptr %40, null
  br i1 %.not101, label %.critedge, label %.lr.ph147, !llvm.loop !25

41:                                               ; preds = %.loopexit123
  %42 = getelementptr inbounds i8, ptr %2, i64 80
  %43 = load ptr, ptr %42, align 8, !tbaa !26
  %.not94 = icmp eq ptr %43, null
  br i1 %.not94, label %.critedge, label %.preheader120

.preheader120:                                    ; preds = %41
  %.077138 = getelementptr inbounds i8, ptr %43, i64 8
  %44 = load ptr, ptr %.077138, align 8, !tbaa !17
  %.not96139 = icmp eq ptr %44, null
  br i1 %.not96139, label %.critedge, label %.lr.ph142

.lr.ph142:                                        ; preds = %.preheader120
  %45 = load ptr, ptr %19, align 8, !tbaa !15
  %46 = icmp eq ptr %45, null
  br i1 %46, label %.critedge, label %.lr.ph142.split

.lr.ph142.splitthread-pre-split:                  ; preds = %.loopexit119
  %.pr = load ptr, ptr %19, align 8, !tbaa !15
  br label %.lr.ph142.split

.lr.ph142.split:                                  ; preds = %.lr.ph142, %.lr.ph142.splitthread-pre-split
  %47 = phi ptr [ %.pr, %.lr.ph142.splitthread-pre-split ], [ %45, %.lr.ph142 ]
  %48 = phi ptr [ %69, %.lr.ph142.splitthread-pre-split ], [ %44, %.lr.ph142 ]
  %.077141 = phi ptr [ %.077, %.lr.ph142.splitthread-pre-split ], [ %.077138, %.lr.ph142 ]
  %.1140 = phi i32 [ %.4, %.lr.ph142.splitthread-pre-split ], [ 0, %.lr.ph142 ]
  %.not97 = icmp eq ptr %47, null
  br i1 %.not97, label %.loopexit119, label %.preheader118

.preheader118:                                    ; preds = %.lr.ph142.split
  %.273133 = getelementptr inbounds i8, ptr %47, i64 8
  %49 = load ptr, ptr %.273133, align 8, !tbaa !17
  %.not99134 = icmp eq ptr %49, null
  br i1 %.not99134, label %.loopexit119, label %.lr.ph137

.lr.ph137:                                        ; preds = %.preheader118, %67
  %50 = phi ptr [ %68, %67 ], [ %49, %.preheader118 ]
  %.273136 = phi ptr [ %.273, %67 ], [ %.273133, %.preheader118 ]
  %.2135 = phi i32 [ %.3, %67 ], [ %.1140, %.preheader118 ]
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = load ptr, ptr %51, align 8, !tbaa !27
  %53 = icmp eq ptr %52, %2
  br i1 %53, label %54, label %57

54:                                               ; preds = %.lr.ph137
  %55 = getelementptr inbounds i8, ptr %50, i64 16
  %56 = load ptr, ptr %55, align 8, !tbaa !28
  br label %57

57:                                               ; preds = %.lr.ph137, %54
  %58 = phi ptr [ %56, %54 ], [ %52, %.lr.ph137 ]
  %59 = icmp eq ptr %58, %48
  br i1 %59, label %60, label %67

60:                                               ; preds = %57
  %61 = getelementptr inbounds i8, ptr %50, i64 28
  %62 = load i8, ptr %61, align 4
  %63 = and i8 %62, 1
  %.not100 = icmp eq i8 %63, 0
  br i1 %.not100, label %64, label %67

64:                                               ; preds = %60
  %65 = or disjoint i8 %62, 1
  store i8 %65, ptr %61, align 4
  tail call void @qh_printridge(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %50)
  %66 = add nsw i32 %.2135, 1
  br label %67

67:                                               ; preds = %64, %60, %57
  %.3 = phi i32 [ %.2135, %60 ], [ %66, %64 ], [ %.2135, %57 ]
  %.273 = getelementptr inbounds i8, ptr %.273136, i64 8
  %68 = load ptr, ptr %.273, align 8, !tbaa !17
  %.not99 = icmp eq ptr %68, null
  br i1 %.not99, label %.loopexit119, label %.lr.ph137, !llvm.loop !29

.loopexit119:                                     ; preds = %67, %.preheader118, %.lr.ph142.split
  %.4 = phi i32 [ %.1140, %.lr.ph142.split ], [ %.1140, %.preheader118 ], [ %.3, %67 ]
  %.077 = getelementptr inbounds i8, ptr %.077141, i64 8
  %69 = load ptr, ptr %.077, align 8, !tbaa !17
  %.not96 = icmp eq ptr %69, null
  br i1 %.not96, label %.critedge, label %.lr.ph142.splitthread-pre-split, !llvm.loop !30

.critedge:                                        ; preds = %.loopexit119, %37, %.lr.ph147, %.lr.ph142, %.preheader120, %30, %41
  %.5 = phi i32 [ 0, %41 ], [ 0, %30 ], [ 0, %.preheader120 ], [ 0, %.lr.ph142 ], [ %39, %37 ], [ %.0146, %.lr.ph147 ], [ %.4, %.loopexit119 ]
  %70 = load ptr, ptr %19, align 8, !tbaa !15
  %71 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %70) #2
  %72 = icmp eq i32 %71, 1
  br i1 %72, label %73, label %80

73:                                               ; preds = %.critedge
  %74 = load i32, ptr %4, align 8
  %75 = and i32 %74, 1024
  %.not103 = icmp eq i32 %75, 0
  br i1 %.not103, label %80, label %76

76:                                               ; preds = %73
  %77 = getelementptr inbounds i8, ptr %0, i64 2708
  %78 = load i32, ptr %77, align 4, !tbaa !32
  %.not104 = icmp eq i32 %78, 0
  br i1 %.not104, label %80, label %79

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

80:                                               ; preds = %79, %76, %73, %.critedge
  %.not105 = icmp eq i32 %.5, %71
  br i1 %.not105, label %88, label %81

81:                                               ; preds = %80
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9183, ptr noundef nonnull @.str.148) #2
  %82 = load ptr, ptr %19, align 8, !tbaa !15
  %.not106 = icmp eq ptr %82, null
  br i1 %.not106, label %.loopexit117, label %.preheader116

.preheader116:                                    ; preds = %81
  %.374151 = getelementptr inbounds i8, ptr %82, i64 8
  %83 = load ptr, ptr %.374151, align 8, !tbaa !17
  %.not108152 = icmp eq ptr %83, null
  br i1 %.not108152, label %.loopexit117, label %.lr.ph154

.lr.ph154:                                        ; preds = %.preheader116, %.lr.ph154
  %84 = phi ptr [ %87, %.lr.ph154 ], [ %83, %.preheader116 ]
  %.374153 = phi ptr [ %.374, %.lr.ph154 ], [ %.374151, %.preheader116 ]
  %85 = getelementptr inbounds i8, ptr %84, i64 24
  %86 = load i32, ptr %85, align 8, !tbaa !18
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9184, ptr noundef nonnull @.str.145, i32 noundef %86) #2
  %.374 = getelementptr inbounds i8, ptr %.374153, i64 8
  %87 = load ptr, ptr %.374, align 8, !tbaa !17
  %.not108 = icmp eq ptr %87, null
  br i1 %.not108, label %.loopexit117, label %.lr.ph154, !llvm.loop !33

.loopexit117:                                     ; preds = %.lr.ph154, %.preheader116, %81
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %1, i32 noundef 9185, ptr noundef nonnull @.str.18) #2
  br label %88

88:                                               ; preds = %.loopexit117, %80
  %89 = load ptr, ptr %19, align 8, !tbaa !15
  %.not109 = icmp eq ptr %89, null
  br i1 %.not109, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %88
  %.475155 = getelementptr inbounds i8, ptr %89, i64 8
  %90 = load ptr, ptr %.475155, align 8, !tbaa !17
  %.not111156 = icmp eq ptr %90, null
  br i1 %.not111156, label %.loopexit, label %.lr.ph158

.lr.ph158:                                        ; preds = %.preheader, %96
  %91 = phi ptr [ %97, %96 ], [ %90, %.preheader ]
  %.475157 = phi ptr [ %.475, %96 ], [ %.475155, %.preheader ]
  %92 = getelementptr inbounds i8, ptr %91, i64 28
  %93 = load i8, ptr %92, align 4
  %94 = and i8 %93, 1
  %.not112 = icmp eq i8 %94, 0
  br i1 %.not112, label %95, label %96

95:                                               ; preds = %.lr.ph158
  tail call void @qh_printridge(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %91)
  br label %96

96:                                               ; preds = %95, %.lr.ph158
  %.475 = getelementptr inbounds i8, ptr %.475157, i64 8
  %97 = load ptr, ptr %.475, align 8, !tbaa !17
  %.not111 = icmp eq ptr %97, null
  br i1 %.not111, label %.loopexit, label %.lr.ph158, !llvm.loop !34

.loopexit:                                        ; preds = %96, %.preheader, %88, %.loopexit125
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @qh_printridge(ptr noundef, 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, !7, i64 2704}
!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 = !{!16, !11, i64 72}
!16 = !{!"facetT", !10, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !8, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !7, i64 24}
!19 = !{!"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}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!6, !7, i64 632}
!24 = !{!8, !8, i64 0}
!25 = distinct !{!25, !21}
!26 = !{!16, !11, i64 80}
!27 = !{!19, !11, i64 8}
!28 = !{!19, !11, i64 16}
!29 = distinct !{!29, !21}
!30 = distinct !{!30, !21, !31}
!31 = !{!"llvm.loop.unswitch.partial.disable"}
!32 = !{!6, !7, i64 2708}
!33 = distinct !{!33, !21}
!34 = distinct !{!34, !21}


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