; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/testqset_r (testqset_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"

@error_count = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [52 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @testSetequalInEtc(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr @stderr, align 8, !tbaa !5
  %17 = load i32, ptr %6, align 4, !tbaa !9
  %18 = sub nsw i32 %17, 1
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %15, ptr noundef %16, i32 noundef 8151, ptr noundef @.str.51, i32 noundef %18)
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %388, %4
  %20 = load i32, ptr %13, align 4, !tbaa !9
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %23, label %391

23:                                               ; preds = %19
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = load i32, ptr %13, align 4, !tbaa !9
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = call i32 @log_i(ptr noundef %24, ptr noundef %25, ptr noundef @.str.30, i32 noundef %26, i32 noundef %27, i32 noundef %28)
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %387

31:                                               ; preds = %23
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = call i32 @qh_setsize(ptr noundef %32, ptr noundef %33)
  store i32 %34, ptr %14, align 4, !tbaa !9
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setlarger(ptr noundef %35, ptr noundef %9)
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = load i32, ptr %14, align 4, !tbaa !9
  call void @checkSetContents(ptr noundef %36, ptr noundef @.str.52, ptr noundef %37, i32 noundef %38, i32 noundef 0, i32 noundef -1, i32 noundef -1)
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = call i32 @qh_setsize(ptr noundef %39, ptr noundef %40)
  store i32 %41, ptr %12, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %52, %31
  %43 = load i32, ptr %12, align 4, !tbaa !9
  %44 = load i32, ptr %13, align 4, !tbaa !9
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %46, label %55

46:                                               ; preds = %42
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = load i32, ptr %12, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds i32, ptr %48, i64 %50
  call void @qh_setappend(ptr noundef %47, ptr noundef %9, ptr noundef %51)
  br label %52

52:                                               ; preds = %46
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %12, align 4, !tbaa !9
  br label %42, !llvm.loop !11

55:                                               ; preds = %42
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = load i32, ptr %13, align 4, !tbaa !9
  call void @checkSetContents(ptr noundef %56, ptr noundef @.str.19, ptr noundef %57, i32 noundef %58, i32 noundef 0, i32 noundef -1, i32 noundef -1)
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = call i32 @qh_setequal(ptr noundef %59, ptr noundef %60)
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %69, label %63

63:                                               ; preds = %55
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = load ptr, ptr @stderr, align 8, !tbaa !5
  %66 = load i32, ptr %13, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %64, ptr noundef %65, i32 noundef 6300, ptr noundef @.str.53, i32 noundef %66)
  %67 = load i32, ptr @error_count, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr @error_count, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %63, %55
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %82

72:                                               ; preds = %69
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = call i32 @qh_setequal(ptr noundef %73, ptr noundef %74)
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %82, label %77

77:                                               ; preds = %72
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %78, ptr noundef %79, i32 noundef 6323, ptr noundef @.str.54)
  %80 = load i32, ptr @error_count, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr @error_count, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %77, %72, %69
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %85, label %385

85:                                               ; preds = %82
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = call i32 @qh_setequal(ptr noundef %86, ptr noundef %87)
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %96

90:                                               ; preds = %85
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load ptr, ptr @stderr, align 8, !tbaa !5
  %93 = load i32, ptr %13, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %91, ptr noundef %92, i32 noundef 6324, ptr noundef @.str.55, i32 noundef %93)
  %94 = load i32, ptr @error_count, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr @error_count, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %90, %85
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setfree(ptr noundef %97, ptr noundef %11)
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = call ptr @qh_setcopy(ptr noundef %98, ptr noundef %99, i32 noundef 0)
  store ptr %100, ptr %11, align 8, !tbaa !5
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = load i32, ptr %13, align 4, !tbaa !9
  call void @checkSetContents(ptr noundef %101, ptr noundef @.str.56, ptr noundef %102, i32 noundef %103, i32 noundef 0, i32 noundef -1, i32 noundef -1)
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = load i32, ptr %13, align 4, !tbaa !9
  %108 = sdiv i32 %107, 2
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i32, ptr %106, i64 %109
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = sdiv i32 %112, 2
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i32, ptr %111, i64 %114
  %116 = getelementptr inbounds i32, ptr %115, i64 1
  call void @qh_setreplace(ptr noundef %104, ptr noundef %105, ptr noundef %110, ptr noundef %116)
  %117 = load i32, ptr %13, align 4, !tbaa !9
  %118 = icmp eq i32 %117, 1
  br i1 %118, label %119, label %126

119:                                              ; preds = %96
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = load i32, ptr %13, align 4, !tbaa !9
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = sdiv i32 %123, 2
  %125 = add nsw i32 %124, 1
  call void @checkSetContents(ptr noundef %120, ptr noundef @.str.57, ptr noundef %121, i32 noundef %122, i32 noundef %125, i32 noundef -1, i32 noundef -1)
  br label %147

126:                                              ; preds = %96
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = icmp eq i32 %127, 2
  br i1 %128, label %129, label %136

129:                                              ; preds = %126
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = load i32, ptr %13, align 4, !tbaa !9
  %134 = sdiv i32 %133, 2
  %135 = add nsw i32 %134, 1
  call void @checkSetContents(ptr noundef %130, ptr noundef @.str.58, ptr noundef %131, i32 noundef %132, i32 noundef 0, i32 noundef %135, i32 noundef -1)
  br label %146

136:                                              ; preds = %126
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = load i32, ptr %13, align 4, !tbaa !9
  %140 = load i32, ptr %13, align 4, !tbaa !9
  %141 = sdiv i32 %140, 2
  %142 = add nsw i32 %141, 1
  %143 = load i32, ptr %13, align 4, !tbaa !9
  %144 = sdiv i32 %143, 2
  %145 = add nsw i32 %144, 1
  call void @checkSetContents(ptr noundef %137, ptr noundef @.str.58, ptr noundef %138, i32 noundef %139, i32 noundef 0, i32 noundef %142, i32 noundef %145)
  br label %146

146:                                              ; preds = %136, %129
  br label %147

147:                                              ; preds = %146, %119
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = call i32 @qh_setequal(ptr noundef %148, ptr noundef %149)
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %152, label %158

152:                                              ; preds = %147
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = load ptr, ptr @stderr, align 8, !tbaa !5
  %155 = load i32, ptr %13, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %153, ptr noundef %154, i32 noundef 6325, ptr noundef @.str.59, i32 noundef %155)
  %156 = load i32, ptr @error_count, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr @error_count, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %152, %147
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = load i32, ptr %13, align 4, !tbaa !9
  %162 = sdiv i32 %161, 2
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i32, ptr %160, i64 %163
  %165 = load ptr, ptr %11, align 8, !tbaa !5
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = load i32, ptr %13, align 4, !tbaa !9
  %168 = sdiv i32 %167, 2
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds i32, ptr %166, i64 %169
  %171 = getelementptr inbounds i32, ptr %170, i64 1
  %172 = call i32 @qh_setequal_except(ptr noundef %159, ptr noundef %164, ptr noundef %165, ptr noundef %171)
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %180, label %174

174:                                              ; preds = %158
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = load ptr, ptr @stderr, align 8, !tbaa !5
  %177 = load i32, ptr %13, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %175, ptr noundef %176, i32 noundef 6326, ptr noundef @.str.60, i32 noundef %177)
  %178 = load i32, ptr @error_count, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr @error_count, align 4, !tbaa !9
  br label %180

180:                                              ; preds = %174, %158
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = load i32, ptr %13, align 4, !tbaa !9
  %184 = sdiv i32 %183, 2
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds i32, ptr %182, i64 %185
  %187 = load ptr, ptr %11, align 8, !tbaa !5
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = call i32 @qh_setequal_except(ptr noundef %181, ptr noundef %186, ptr noundef %187, ptr noundef %188)
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %191, label %197

191:                                              ; preds = %180
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = load ptr, ptr @stderr, align 8, !tbaa !5
  %194 = load i32, ptr %13, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %192, ptr noundef %193, i32 noundef 6327, ptr noundef @.str.61, i32 noundef %194)
  %195 = load i32, ptr @error_count, align 4, !tbaa !9
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr @error_count, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %191, %180
  %198 = load ptr, ptr %9, align 8, !tbaa !5
  %199 = load i32, ptr %13, align 4, !tbaa !9
  %200 = sdiv i32 %199, 2
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = load i32, ptr %13, align 4, !tbaa !9
  %203 = sdiv i32 %202, 2
  %204 = call i32 @qh_setequal_skip(ptr noundef %198, i32 noundef %200, ptr noundef %201, i32 noundef %203)
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %212, label %206

206:                                              ; preds = %197
  %207 = load ptr, ptr %5, align 8, !tbaa !5
  %208 = load ptr, ptr @stderr, align 8, !tbaa !5
  %209 = load i32, ptr %13, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %207, ptr noundef %208, i32 noundef 6328, ptr noundef @.str.62, i32 noundef %209)
  %210 = load i32, ptr @error_count, align 4, !tbaa !9
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr @error_count, align 4, !tbaa !9
  br label %212

212:                                              ; preds = %206, %197
  %213 = load i32, ptr %13, align 4, !tbaa !9
  %214 = icmp sgt i32 %213, 2
  br i1 %214, label %215, label %228

215:                                              ; preds = %212
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  %217 = load i32, ptr %13, align 4, !tbaa !9
  %218 = sdiv i32 %217, 2
  %219 = load ptr, ptr %11, align 8, !tbaa !5
  %220 = call i32 @qh_setequal_skip(ptr noundef %216, i32 noundef %218, ptr noundef %219, i32 noundef 0)
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %222, label %228

222:                                              ; preds = %215
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = load ptr, ptr @stderr, align 8, !tbaa !5
  %225 = load i32, ptr %13, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %223, ptr noundef %224, i32 noundef 6329, ptr noundef @.str.63, i32 noundef %225)
  %226 = load i32, ptr @error_count, align 4, !tbaa !9
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr @error_count, align 4, !tbaa !9
  br label %228

228:                                              ; preds = %222, %215, %212
  %229 = load ptr, ptr %7, align 8, !tbaa !5
  %230 = load i32, ptr %13, align 4, !tbaa !9
  %231 = sdiv i32 %230, 2
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds i32, ptr %229, i64 %232
  %234 = getelementptr inbounds i32, ptr %233, i64 1
  %235 = load ptr, ptr %11, align 8, !tbaa !5
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  %237 = load i32, ptr %13, align 4, !tbaa !9
  %238 = sdiv i32 %237, 2
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds i32, ptr %236, i64 %239
  %241 = getelementptr inbounds i32, ptr %240, i64 1
  %242 = call ptr @qh_setdel(ptr noundef %235, ptr noundef %241)
  %243 = icmp ne ptr %234, %242
  br i1 %243, label %244, label %250

244:                                              ; preds = %228
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = load ptr, ptr @stderr, align 8, !tbaa !5
  %247 = load i32, ptr %13, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %245, ptr noundef %246, i32 noundef 6330, ptr noundef @.str.64, i32 noundef %247)
  %248 = load i32, ptr @error_count, align 4, !tbaa !9
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr @error_count, align 4, !tbaa !9
  br label %250

250:                                              ; preds = %244, %228
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = load ptr, ptr %11, align 8, !tbaa !5
  %253 = load i32, ptr %13, align 4, !tbaa !9
  %254 = sub nsw i32 %253, 1
  %255 = load i32, ptr %13, align 4, !tbaa !9
  %256 = sub nsw i32 %255, 1
  %257 = load i32, ptr %13, align 4, !tbaa !9
  %258 = icmp eq i32 %257, 1
  br i1 %258, label %259, label %260

259:                                              ; preds = %250
  br label %264

260:                                              ; preds = %250
  %261 = load i32, ptr %13, align 4, !tbaa !9
  %262 = sdiv i32 %261, 2
  %263 = add nsw i32 %262, 1
  br label %264

264:                                              ; preds = %260, %259
  %265 = phi i32 [ -1, %259 ], [ %263, %260 ]
  call void @checkSetContents(ptr noundef %251, ptr noundef @.str.65, ptr noundef %252, i32 noundef %254, i32 noundef 0, i32 noundef %256, i32 noundef %265)
  %266 = load i32, ptr %13, align 4, !tbaa !9
  %267 = icmp sgt i32 %266, 3
  br i1 %267, label %268, label %289

268:                                              ; preds = %264
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = load ptr, ptr %11, align 8, !tbaa !5
  %271 = load i32, ptr %13, align 4, !tbaa !9
  %272 = sdiv i32 %271, 2
  %273 = call ptr @qh_setdelnth(ptr noundef %269, ptr noundef %270, i32 noundef %272)
  %274 = load ptr, ptr %5, align 8, !tbaa !5
  %275 = load ptr, ptr %11, align 8, !tbaa !5
  %276 = load i32, ptr %13, align 4, !tbaa !9
  %277 = sub nsw i32 %276, 2
  %278 = load i32, ptr %13, align 4, !tbaa !9
  %279 = sub nsw i32 %278, 2
  %280 = load i32, ptr %13, align 4, !tbaa !9
  %281 = icmp eq i32 %280, 2
  br i1 %281, label %282, label %283

282:                                              ; preds = %268
  br label %287

283:                                              ; preds = %268
  %284 = load i32, ptr %13, align 4, !tbaa !9
  %285 = sdiv i32 %284, 2
  %286 = add nsw i32 %285, 1
  br label %287

287:                                              ; preds = %283, %282
  %288 = phi i32 [ -1, %282 ], [ %286, %283 ]
  call void @checkSetContents(ptr noundef %274, ptr noundef @.str.66, ptr noundef %275, i32 noundef %277, i32 noundef 0, i32 noundef %279, i32 noundef %288)
  br label %289

289:                                              ; preds = %287, %264
  %290 = load ptr, ptr %11, align 8, !tbaa !5
  %291 = load ptr, ptr %7, align 8, !tbaa !5
  %292 = load i32, ptr %13, align 4, !tbaa !9
  %293 = sdiv i32 %292, 2
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds i32, ptr %291, i64 %294
  %296 = call i32 @qh_setin(ptr noundef %290, ptr noundef %295)
  %297 = icmp ne i32 %296, 0
  br i1 %297, label %298, label %303

298:                                              ; preds = %289
  %299 = load ptr, ptr %5, align 8, !tbaa !5
  %300 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %299, ptr noundef %300, i32 noundef 6331, ptr noundef @.str.67)
  %301 = load i32, ptr @error_count, align 4, !tbaa !9
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr @error_count, align 4, !tbaa !9
  br label %303

303:                                              ; preds = %298, %289
  %304 = load i32, ptr %13, align 4, !tbaa !9
  %305 = icmp sgt i32 %304, 4
  br i1 %305, label %306, label %317

306:                                              ; preds = %303
  %307 = load ptr, ptr %11, align 8, !tbaa !5
  %308 = load ptr, ptr %7, align 8, !tbaa !5
  %309 = getelementptr inbounds i32, ptr %308, i64 1
  %310 = call i32 @qh_setin(ptr noundef %307, ptr noundef %309)
  %311 = icmp ne i32 %310, 0
  br i1 %311, label %317, label %312

312:                                              ; preds = %306
  %313 = load ptr, ptr %5, align 8, !tbaa !5
  %314 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %313, ptr noundef %314, i32 noundef 6332, ptr noundef @.str.68)
  %315 = load i32, ptr @error_count, align 4, !tbaa !9
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr @error_count, align 4, !tbaa !9
  br label %317

317:                                              ; preds = %312, %306, %303
  %318 = load i32, ptr %13, align 4, !tbaa !9
  %319 = icmp sgt i32 %318, 4
  br i1 %319, label %320, label %334

320:                                              ; preds = %317
  %321 = load ptr, ptr %11, align 8, !tbaa !5
  %322 = load ptr, ptr %7, align 8, !tbaa !5
  %323 = load i32, ptr %13, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds i32, ptr %322, i64 %324
  %326 = getelementptr inbounds i32, ptr %325, i64 -2
  %327 = call i32 @qh_setin(ptr noundef %321, ptr noundef %326)
  %328 = icmp ne i32 %327, 0
  br i1 %328, label %334, label %329

329:                                              ; preds = %320
  %330 = load ptr, ptr %5, align 8, !tbaa !5
  %331 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %330, ptr noundef %331, i32 noundef 6333, ptr noundef @.str.69)
  %332 = load i32, ptr @error_count, align 4, !tbaa !9
  %333 = add nsw i32 %332, 1
  store i32 %333, ptr @error_count, align 4, !tbaa !9
  br label %334

334:                                              ; preds = %329, %320, %317
  %335 = load ptr, ptr %10, align 8, !tbaa !5
  %336 = load ptr, ptr %7, align 8, !tbaa !5
  %337 = call i32 @qh_setindex(ptr noundef %335, ptr noundef %336)
  %338 = icmp ne i32 -1, %337
  br i1 %338, label %339, label %344

339:                                              ; preds = %334
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  %341 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %340, ptr noundef %341, i32 noundef 6334, ptr noundef @.str.70)
  %342 = load i32, ptr @error_count, align 4, !tbaa !9
  %343 = add nsw i32 %342, 1
  store i32 %343, ptr @error_count, align 4, !tbaa !9
  br label %344

344:                                              ; preds = %339, %334
  %345 = load ptr, ptr %11, align 8, !tbaa !5
  %346 = load ptr, ptr %7, align 8, !tbaa !5
  %347 = load i32, ptr %13, align 4, !tbaa !9
  %348 = sdiv i32 %347, 2
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds i32, ptr %346, i64 %349
  %351 = call i32 @qh_setindex(ptr noundef %345, ptr noundef %350)
  %352 = icmp ne i32 -1, %351
  br i1 %352, label %353, label %358

353:                                              ; preds = %344
  %354 = load ptr, ptr %5, align 8, !tbaa !5
  %355 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %354, ptr noundef %355, i32 noundef 6335, ptr noundef @.str.71)
  %356 = load i32, ptr @error_count, align 4, !tbaa !9
  %357 = add nsw i32 %356, 1
  store i32 %357, ptr @error_count, align 4, !tbaa !9
  br label %358

358:                                              ; preds = %353, %344
  %359 = load ptr, ptr %9, align 8, !tbaa !5
  %360 = load ptr, ptr %7, align 8, !tbaa !5
  %361 = call i32 @qh_setindex(ptr noundef %359, ptr noundef %360)
  %362 = icmp ne i32 0, %361
  br i1 %362, label %363, label %368

363:                                              ; preds = %358
  %364 = load ptr, ptr %5, align 8, !tbaa !5
  %365 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %364, ptr noundef %365, i32 noundef 6336, ptr noundef @.str.72)
  %366 = load i32, ptr @error_count, align 4, !tbaa !9
  %367 = add nsw i32 %366, 1
  store i32 %367, ptr @error_count, align 4, !tbaa !9
  br label %368

368:                                              ; preds = %363, %358
  %369 = load i32, ptr %13, align 4, !tbaa !9
  %370 = sub nsw i32 %369, 1
  %371 = load ptr, ptr %9, align 8, !tbaa !5
  %372 = load ptr, ptr %7, align 8, !tbaa !5
  %373 = load i32, ptr %13, align 4, !tbaa !9
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds i32, ptr %372, i64 %374
  %376 = getelementptr inbounds i32, ptr %375, i64 -1
  %377 = call i32 @qh_setindex(ptr noundef %371, ptr noundef %376)
  %378 = icmp ne i32 %370, %377
  br i1 %378, label %379, label %384

379:                                              ; preds = %368
  %380 = load ptr, ptr %5, align 8, !tbaa !5
  %381 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %380, ptr noundef %381, i32 noundef 6337, ptr noundef @.str.73)
  %382 = load i32, ptr @error_count, align 4, !tbaa !9
  %383 = add nsw i32 %382, 1
  store i32 %383, ptr @error_count, align 4, !tbaa !9
  br label %384

384:                                              ; preds = %379, %368
  br label %385

385:                                              ; preds = %384, %82
  %386 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setfree(ptr noundef %386, ptr noundef %10)
  br label %387

387:                                              ; preds = %385, %23
  br label %388

388:                                              ; preds = %387
  %389 = load i32, ptr %13, align 4, !tbaa !9
  %390 = add nsw i32 %389, 1
  store i32 %390, ptr %13, align 4, !tbaa !9
  br label %19, !llvm.loop !13

391:                                              ; preds = %19
  %392 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setfree(ptr noundef %392, ptr noundef %11)
  %393 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setfreelong(ptr noundef %393, ptr noundef %9)
  %394 = load ptr, ptr %9, align 8, !tbaa !5
  %395 = icmp ne ptr %394, null
  br i1 %395, label %396, label %398

396:                                              ; preds = %391
  %397 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setfree(ptr noundef %397, ptr noundef %9)
  br label %398

398:                                              ; preds = %396, %391
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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

@error_count = external dso_local local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [52 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @testSetequalInEtc(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  store ptr null, ptr %7, align 8, !tbaa !5
  %8 = load ptr, ptr @stderr, align 8, !tbaa !5
  %9 = add nsw i32 %1, -1
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %8, i32 noundef 8151, ptr noundef nonnull @.str.51, i32 noundef %9)
  %invariant.gep = getelementptr i8, ptr %2, i64 -8
  %invariant.gep135 = getelementptr i8, ptr %2, i64 -4
  %10 = icmp sgt i32 %1, 0
  br i1 %10, label %.lr.ph140, label %._crit_edge141

.lr.ph140:                                        ; preds = %4
  %11 = getelementptr inbounds i8, ptr %2, i64 4
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %12

12:                                               ; preds = %.lr.ph140, %174
  %indvars.iv143 = phi i64 [ 0, %.lr.ph140 ], [ %indvars.iv.next144, %174 ]
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = trunc nuw nsw i64 %indvars.iv143 to i32
  %15 = call i32 @log_i(ptr noundef %0, ptr noundef %13, ptr noundef nonnull @.str.30, i32 noundef %14, i32 noundef %1, i32 noundef %3)
  %.not116 = icmp eq i32 %15, 0
  br i1 %.not116, label %174, label %16

16:                                               ; preds = %12
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = call i32 @qh_setsize(ptr noundef %0, ptr noundef %17) #3
  call void @qh_setlarger(ptr noundef %0, ptr noundef nonnull %5) #3
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  call void @checkSetContents(ptr noundef %0, ptr noundef nonnull @.str.52, ptr noundef %19, i32 noundef %18, i32 noundef 0, i32 noundef -1, i32 noundef -1)
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = call i32 @qh_setsize(ptr noundef %0, ptr noundef %20) #3
  %22 = sext i32 %21 to i64
  %23 = icmp sgt i64 %indvars.iv143, %22
  br i1 %23, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %16, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %22, %16 ]
  %24 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv
  call void @qh_setappend(ptr noundef %0, ptr noundef nonnull %5, ptr noundef %24) #3
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %25 = and i64 %indvars.iv.next, 4294967295
  %exitcond.not = icmp eq i64 %25, %indvars.iv143
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %16
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  call void @checkSetContents(ptr noundef %0, ptr noundef nonnull @.str.19, ptr noundef %26, i32 noundef %14, i32 noundef 0, i32 noundef -1, i32 noundef -1)
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = call i32 @qh_setequal(ptr noundef %27, ptr noundef %27) #3
  %.not117 = icmp eq i32 %28, 0
  br i1 %.not117, label %29, label %33

29:                                               ; preds = %._crit_edge
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %30, i32 noundef 6300, ptr noundef nonnull @.str.53, i32 noundef %14)
  %31 = load i32, ptr @error_count, align 4, !tbaa !11
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr @error_count, align 4, !tbaa !11
  br label %33

33:                                               ; preds = %29, %._crit_edge
  %cond = icmp eq i64 %indvars.iv143, 0
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = call i32 @qh_setequal(ptr noundef %34, ptr noundef %35) #3
  %.not118 = icmp eq i32 %36, 0
  br i1 %cond, label %37, label %40

37:                                               ; preds = %33
  br i1 %.not118, label %38, label %173

38:                                               ; preds = %37
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %39, i32 noundef 6323, ptr noundef nonnull @.str.54)
  br label %.sink.split

40:                                               ; preds = %33
  br i1 %.not118, label %45, label %41

41:                                               ; preds = %40
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %42, i32 noundef 6324, ptr noundef nonnull @.str.55, i32 noundef %14)
  %43 = load i32, ptr @error_count, align 4, !tbaa !11
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr @error_count, align 4, !tbaa !11
  br label %45

45:                                               ; preds = %41, %40
  call void @qh_setfree(ptr noundef %0, ptr noundef nonnull %7) #3
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = call ptr @qh_setcopy(ptr noundef %0, ptr noundef %46, i32 noundef 0) #3
  store ptr %47, ptr %7, align 8, !tbaa !5
  call void @checkSetContents(ptr noundef %0, ptr noundef nonnull @.str.56, ptr noundef %47, i32 noundef %14, i32 noundef 0, i32 noundef -1, i32 noundef -1)
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = lshr i32 %14, 1
  %50 = zext nneg i32 %49 to i64
  %51 = getelementptr inbounds i32, ptr %2, i64 %50
  %52 = getelementptr inbounds i8, ptr %51, i64 4
  call void @qh_setreplace(ptr noundef %0, ptr noundef %48, ptr noundef %51, ptr noundef nonnull %52) #3
  %53 = icmp eq i64 %indvars.iv143, 1
  br i1 %53, label %54, label %56

54:                                               ; preds = %45
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  call void @checkSetContents(ptr noundef %0, ptr noundef nonnull @.str.57, ptr noundef %55, i32 noundef 1, i32 noundef 1, i32 noundef -1, i32 noundef -1)
  br label %62

56:                                               ; preds = %45
  %57 = icmp eq i64 %indvars.iv143, 2
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  br i1 %57, label %59, label %60

59:                                               ; preds = %56
  call void @checkSetContents(ptr noundef %0, ptr noundef nonnull @.str.58, ptr noundef %58, i32 noundef 2, i32 noundef 0, i32 noundef 2, i32 noundef -1)
  br label %62

60:                                               ; preds = %56
  %61 = add nuw nsw i32 %49, 1
  call void @checkSetContents(ptr noundef %0, ptr noundef nonnull @.str.58, ptr noundef %58, i32 noundef %14, i32 noundef 0, i32 noundef %61, i32 noundef %61)
  br label %62

62:                                               ; preds = %59, %60, %54
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = call i32 @qh_setequal(ptr noundef %63, ptr noundef %64) #3
  %.not121 = icmp eq i32 %65, 0
  br i1 %.not121, label %70, label %66

66:                                               ; preds = %62
  %67 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %67, i32 noundef 6325, ptr noundef nonnull @.str.59, i32 noundef %14)
  %68 = load i32, ptr @error_count, align 4, !tbaa !11
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr @error_count, align 4, !tbaa !11
  br label %70

70:                                               ; preds = %66, %62
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = call i32 @qh_setequal_except(ptr noundef %71, ptr noundef %51, ptr noundef %72, ptr noundef nonnull %52) #3
  %.not122 = icmp eq i32 %73, 0
  br i1 %.not122, label %74, label %78

74:                                               ; preds = %70
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %75, i32 noundef 6326, ptr noundef nonnull @.str.60, i32 noundef %14)
  %76 = load i32, ptr @error_count, align 4, !tbaa !11
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr @error_count, align 4, !tbaa !11
  br label %78

78:                                               ; preds = %74, %70
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = call i32 @qh_setequal_except(ptr noundef %79, ptr noundef %51, ptr noundef %80, ptr noundef %2) #3
  %.not123 = icmp eq i32 %81, 0
  br i1 %.not123, label %86, label %82

82:                                               ; preds = %78
  %83 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %83, i32 noundef 6327, ptr noundef nonnull @.str.61, i32 noundef %14)
  %84 = load i32, ptr @error_count, align 4, !tbaa !11
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr @error_count, align 4, !tbaa !11
  br label %86

86:                                               ; preds = %82, %78
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = call i32 @qh_setequal_skip(ptr noundef %87, i32 noundef %49, ptr noundef %88, i32 noundef %49) #3
  %.not124 = icmp eq i32 %89, 0
  br i1 %.not124, label %90, label %94

90:                                               ; preds = %86
  %91 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %91, i32 noundef 6328, ptr noundef nonnull @.str.62, i32 noundef %14)
  %92 = load i32, ptr @error_count, align 4, !tbaa !11
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr @error_count, align 4, !tbaa !11
  br label %94

94:                                               ; preds = %90, %86
  %95 = icmp ugt i64 %indvars.iv143, 2
  br i1 %95, label %96, label %104

96:                                               ; preds = %94
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = call i32 @qh_setequal_skip(ptr noundef %97, i32 noundef %49, ptr noundef %98, i32 noundef 0) #3
  %.not125 = icmp eq i32 %99, 0
  br i1 %.not125, label %104, label %100

100:                                              ; preds = %96
  %101 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %101, i32 noundef 6329, ptr noundef nonnull @.str.63, i32 noundef %14)
  %102 = load i32, ptr @error_count, align 4, !tbaa !11
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr @error_count, align 4, !tbaa !11
  br label %104

104:                                              ; preds = %100, %96, %94
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = call ptr @qh_setdel(ptr noundef %105, ptr noundef nonnull %52) #3
  %.not126 = icmp eq ptr %52, %106
  br i1 %.not126, label %111, label %107

107:                                              ; preds = %104
  %108 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %108, i32 noundef 6330, ptr noundef nonnull @.str.64, i32 noundef %14)
  %109 = load i32, ptr @error_count, align 4, !tbaa !11
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr @error_count, align 4, !tbaa !11
  br label %111

111:                                              ; preds = %107, %104
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = add nuw nsw i32 %49, 1
  %spec.select = select i1 %53, i32 -1, i32 %113
  %114 = trunc i64 %indvars.iv143 to i32
  %115 = add i32 %114, -1
  call void @checkSetContents(ptr noundef %0, ptr noundef nonnull @.str.65, ptr noundef %112, i32 noundef %115, i32 noundef 0, i32 noundef %115, i32 noundef %spec.select)
  %116 = icmp ugt i64 %indvars.iv143, 3
  br i1 %116, label %117, label %123

117:                                              ; preds = %111
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = call ptr @qh_setdelnth(ptr noundef %0, ptr noundef %118, i32 noundef %49) #3
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = trunc i64 %indvars.iv143 to i32
  %122 = add i32 %121, -2
  call void @checkSetContents(ptr noundef %0, ptr noundef nonnull @.str.66, ptr noundef %120, i32 noundef %122, i32 noundef 0, i32 noundef %122, i32 noundef %113)
  br label %123

123:                                              ; preds = %117, %111
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = call i32 @qh_setin(ptr noundef %124, ptr noundef %51) #3
  %.not127 = icmp eq i32 %125, 0
  br i1 %.not127, label %130, label %126

126:                                              ; preds = %123
  %127 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %127, i32 noundef 6331, ptr noundef nonnull @.str.67)
  %128 = load i32, ptr @error_count, align 4, !tbaa !11
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr @error_count, align 4, !tbaa !11
  br label %130

130:                                              ; preds = %126, %123
  %131 = icmp ugt i64 %indvars.iv143, 4
  br i1 %131, label %132, label %.critedge

132:                                              ; preds = %130
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = call i32 @qh_setin(ptr noundef %133, ptr noundef nonnull %11) #3
  %.not128 = icmp eq i32 %134, 0
  br i1 %.not128, label %135, label %139

135:                                              ; preds = %132
  %136 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %136, i32 noundef 6332, ptr noundef nonnull @.str.68)
  %137 = load i32, ptr @error_count, align 4, !tbaa !11
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr @error_count, align 4, !tbaa !11
  br label %139

139:                                              ; preds = %132, %135
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %gep = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv143
  %141 = call i32 @qh_setin(ptr noundef %140, ptr noundef nonnull %gep) #3
  %.not129 = icmp eq i32 %141, 0
  br i1 %.not129, label %142, label %.critedge

142:                                              ; preds = %139
  %143 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %143, i32 noundef 6333, ptr noundef nonnull @.str.69)
  %144 = load i32, ptr @error_count, align 4, !tbaa !11
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr @error_count, align 4, !tbaa !11
  br label %.critedge

.critedge:                                        ; preds = %130, %142, %139
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = call i32 @qh_setindex(ptr noundef %146, ptr noundef %2) #3
  %.not130 = icmp eq i32 %147, -1
  br i1 %.not130, label %152, label %148

148:                                              ; preds = %.critedge
  %149 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %149, i32 noundef 6334, ptr noundef nonnull @.str.70)
  %150 = load i32, ptr @error_count, align 4, !tbaa !11
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr @error_count, align 4, !tbaa !11
  br label %152

152:                                              ; preds = %148, %.critedge
  %153 = load ptr, ptr %7, align 8, !tbaa !5
  %154 = call i32 @qh_setindex(ptr noundef %153, ptr noundef %51) #3
  %.not131 = icmp eq i32 %154, -1
  br i1 %.not131, label %159, label %155

155:                                              ; preds = %152
  %156 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %156, i32 noundef 6335, ptr noundef nonnull @.str.71)
  %157 = load i32, ptr @error_count, align 4, !tbaa !11
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr @error_count, align 4, !tbaa !11
  br label %159

159:                                              ; preds = %155, %152
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = call i32 @qh_setindex(ptr noundef %160, ptr noundef %2) #3
  %.not132 = icmp eq i32 %161, 0
  br i1 %.not132, label %166, label %162

162:                                              ; preds = %159
  %163 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %163, i32 noundef 6336, ptr noundef nonnull @.str.72)
  %164 = load i32, ptr @error_count, align 4, !tbaa !11
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr @error_count, align 4, !tbaa !11
  br label %166

166:                                              ; preds = %162, %159
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %gep136 = getelementptr i32, ptr %invariant.gep135, i64 %indvars.iv143
  %168 = call i32 @qh_setindex(ptr noundef %167, ptr noundef nonnull %gep136) #3
  %.not133 = icmp eq i32 %115, %168
  br i1 %.not133, label %173, label %169

169:                                              ; preds = %166
  %170 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %170, i32 noundef 6337, ptr noundef nonnull @.str.73)
  br label %.sink.split

.sink.split:                                      ; preds = %169, %38
  %171 = load i32, ptr @error_count, align 4, !tbaa !11
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr @error_count, align 4, !tbaa !11
  br label %173

173:                                              ; preds = %.sink.split, %37, %166
  call void @qh_setfree(ptr noundef %0, ptr noundef nonnull %6) #3
  br label %174

174:                                              ; preds = %12, %173
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %exitcond146.not = icmp eq i64 %indvars.iv.next144, %wide.trip.count
  br i1 %exitcond146.not, label %._crit_edge141, label %12, !llvm.loop !13

._crit_edge141:                                   ; preds = %174, %4
  call void @qh_setfree(ptr noundef %0, ptr noundef nonnull %7) #3
  call void @qh_setfreelong(ptr noundef %0, ptr noundef nonnull %5) #3
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %.not = icmp eq ptr %175, null
  br i1 %.not, label %177, label %176

176:                                              ; preds = %._crit_edge141
  call void @qh_setfree(ptr noundef %0, ptr noundef nonnull %5) #3
  br label %177

177:                                              ; preds = %176, %._crit_edge141
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret void
}

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

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

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

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

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

declare ptr @qh_setcopy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

declare i32 @qh_setequal(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare i32 @qh_setequal_except(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @qh_setequal_skip(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

declare i32 @qh_setin(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @qh_setindex(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !10}


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