; LLVM IR from theck01/offbrand_lib :: src/tests (obvector_test)

; 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"

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [70 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [6 x ptr], align 16
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %9 = call ptr @obvector_new(i32 noundef 1)
  store ptr %9, ptr %7, align 8, !tbaa !5
  %10 = call ptr @obtest_new(i32 noundef 7)
  store ptr %10, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %42, %0
  %12 = load i32, ptr %2, align 4, !tbaa !9
  %13 = icmp ult i32 %12, 6
  br i1 %13, label %14, label %45

14:                                               ; preds = %11
  %15 = load i32, ptr %2, align 4, !tbaa !9
  %16 = call ptr @obtest_new(i32 noundef %15)
  %17 = load i32, ptr %2, align 4, !tbaa !9
  %18 = zext i32 %17 to i64
  %19 = getelementptr inbounds [6 x ptr], ptr %4, i64 0, i64 %18
  store ptr %16, ptr %19, align 8, !tbaa !5
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = load i32, ptr %2, align 4, !tbaa !9
  %22 = zext i32 %21 to i64
  %23 = getelementptr inbounds [6 x ptr], ptr %4, i64 0, i64 %22
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = load i32, ptr %2, align 4, !tbaa !9
  %26 = zext i32 %25 to i64
  call void @obvector_store_at_index(ptr noundef %20, ptr noundef %24, i64 noundef %26)
  %27 = load i32, ptr %2, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = getelementptr inbounds [6 x ptr], ptr %4, i64 0, i64 %28
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = call i32 @ob_reference_count(ptr noundef %30)
  %32 = icmp ne i32 %31, 2
  br i1 %32, label %33, label %36

33:                                               ; preds = %14
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str) #5
  call void @exit(i32 noundef 1) #6
  unreachable

36:                                               ; preds = %14
  %37 = load i32, ptr %2, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds [6 x ptr], ptr %4, i64 0, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = call ptr @ob_release(ptr noundef %40)
  br label %42

42:                                               ; preds = %36
  %43 = load i32, ptr %2, align 4, !tbaa !9
  %44 = add i32 %43, 1
  store i32 %44, ptr %2, align 4, !tbaa !9
  br label %11, !llvm.loop !11

45:                                               ; preds = %11
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = call i32 @obvector_length(ptr noundef %46)
  %48 = icmp ne i32 %47, 6
  br i1 %48, label %49, label %52

49:                                               ; preds = %45
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.1) #5
  call void @exit(i32 noundef 1) #6
  unreachable

52:                                               ; preds = %45
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %70, %52
  %54 = load i32, ptr %2, align 4, !tbaa !9
  %55 = icmp ult i32 %54, 6
  br i1 %55, label %56, label %73

56:                                               ; preds = %53
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = load i32, ptr %2, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = call ptr @obvector_obj_at_index(ptr noundef %57, i64 noundef %59)
  %61 = call i32 @obtest_id(ptr noundef %60)
  %62 = load i32, ptr %2, align 4, !tbaa !9
  %63 = icmp ne i32 %61, %62
  br i1 %63, label %64, label %69

64:                                               ; preds = %56
  %65 = load ptr, ptr @stderr, align 8, !tbaa !5
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.2) #5
  %67 = load i32, ptr %2, align 4, !tbaa !9
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %67)
  call void @exit(i32 noundef 1) #6
  unreachable

69:                                               ; preds = %56
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %2, align 4, !tbaa !9
  %72 = add i32 %71, 1
  store i32 %72, ptr %2, align 4, !tbaa !9
  br label %53, !llvm.loop !13

73:                                               ; preds = %53
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  call void @obvector_store_at_index(ptr noundef %74, ptr noundef %75, i64 noundef 12)
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = call i32 @obvector_length(ptr noundef %76)
  %78 = icmp ne i32 %77, 13
  br i1 %78, label %79, label %82

79:                                               ; preds = %73
  %80 = load ptr, ptr @stderr, align 8, !tbaa !5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.4) #5
  call void @exit(i32 noundef 1) #6
  unreachable

82:                                               ; preds = %73
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  call void @obvector_store_at_index(ptr noundef %83, ptr noundef null, i64 noundef 12)
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = call i32 @obvector_length(ptr noundef %84)
  %86 = icmp ne i32 %85, 6
  br i1 %86, label %87, label %90

87:                                               ; preds = %82
  %88 = load ptr, ptr @stderr, align 8, !tbaa !5
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.5) #5
  call void @exit(i32 noundef 1) #6
  unreachable

90:                                               ; preds = %82
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = call i32 @ob_reference_count(ptr noundef %91)
  %93 = icmp ne i32 %92, 1
  br i1 %93, label %94, label %97

94:                                               ; preds = %90
  %95 = load ptr, ptr @stderr, align 8, !tbaa !5
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.6) #5
  call void @exit(i32 noundef 1) #6
  unreachable

97:                                               ; preds = %90
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = call ptr @obvector_obj_at_index(ptr noundef %98, i64 noundef 3)
  store ptr %99, ptr %6, align 8, !tbaa !5
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = call ptr @ob_retain(ptr noundef %100)
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  call void @obvector_store_at_index(ptr noundef %102, ptr noundef %103, i64 noundef 3)
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = call i32 @ob_reference_count(ptr noundef %104)
  %106 = icmp ne i32 %105, 1
  br i1 %106, label %107, label %110

107:                                              ; preds = %97
  %108 = load ptr, ptr @stderr, align 8, !tbaa !5
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.7) #5
  call void @exit(i32 noundef 1) #6
  unreachable

110:                                              ; preds = %97
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = call i32 @obvector_length(ptr noundef %111)
  %113 = icmp ne i32 %112, 6
  br i1 %113, label %121, label %114

114:                                              ; preds = %110
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = call ptr @obvector_obj_at_index(ptr noundef %115, i64 noundef 3)
  %117 = call i32 @obtest_id(ptr noundef %116)
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = call i32 @obtest_id(ptr noundef %118)
  %120 = icmp ne i32 %117, %119
  br i1 %120, label %121, label %124

121:                                              ; preds = %114, %110
  %122 = load ptr, ptr @stderr, align 8, !tbaa !5
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.8) #5
  call void @exit(i32 noundef 1) #6
  unreachable

124:                                              ; preds = %114
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  call void @obvector_store_at_index(ptr noundef %125, ptr noundef %126, i64 noundef 3)
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = call ptr @ob_release(ptr noundef %127)
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = call zeroext i8 @obvector_find_obj(ptr noundef %129, ptr noundef %130)
  %132 = icmp ne i8 %131, 0
  br i1 %132, label %133, label %136

133:                                              ; preds = %124
  %134 = load ptr, ptr @stderr, align 8, !tbaa !5
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.9) #5
  call void @exit(i32 noundef 1) #6
  unreachable

136:                                              ; preds = %124
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  call void @obvector_store_at_index(ptr noundef %137, ptr noundef %138, i64 noundef 10)
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = call i32 @obvector_length(ptr noundef %139)
  %141 = icmp ne i32 %140, 11
  br i1 %141, label %142, label %145

142:                                              ; preds = %136
  %143 = load ptr, ptr @stderr, align 8, !tbaa !5
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %143, ptr noundef @.str.4) #5
  call void @exit(i32 noundef 1) #6
  unreachable

145:                                              ; preds = %136
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  call void @obvector_sort(ptr noundef %146, i8 noundef signext -1)
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = call i32 @obvector_length(ptr noundef %147)
  %149 = icmp ne i32 %148, 7
  br i1 %149, label %150, label %177

150:                                              ; preds = %145
  %151 = load ptr, ptr @stderr, align 8, !tbaa !5
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef @.str.10) #5
  %153 = load ptr, ptr @stderr, align 8, !tbaa !5
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = call i32 @obvector_length(ptr noundef %154)
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %153, ptr noundef @.str.11, i32 noundef %155) #5
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %173, %150
  %158 = load i32, ptr %2, align 4, !tbaa !9
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = call i32 @obvector_length(ptr noundef %159)
  %161 = icmp ult i32 %158, %160
  br i1 %161, label %162, label %176

162:                                              ; preds = %157
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = load i32, ptr %2, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = call ptr @obvector_obj_at_index(ptr noundef %163, i64 noundef %165)
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %170

168:                                              ; preds = %162
  %169 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  br label %172

170:                                              ; preds = %162
  %171 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  br label %172

172:                                              ; preds = %170, %168
  br label %173

173:                                              ; preds = %172
  %174 = load i32, ptr %2, align 4, !tbaa !9
  %175 = add i32 %174, 1
  store i32 %175, ptr %2, align 4, !tbaa !9
  br label %157, !llvm.loop !14

176:                                              ; preds = %157
  call void @exit(i32 noundef 1) #6
  unreachable

177:                                              ; preds = %145
  store i32 0, ptr %3, align 4, !tbaa !9
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %200, %177
  %179 = load i32, ptr %2, align 4, !tbaa !9
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = call i32 @obvector_length(ptr noundef %180)
  %182 = icmp ult i32 %179, %181
  br i1 %182, label %183, label %203

183:                                              ; preds = %178
  %184 = load i32, ptr %3, align 4, !tbaa !9
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = load i32, ptr %2, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = call ptr @obvector_obj_at_index(ptr noundef %185, i64 noundef %187)
  %189 = call i32 @obtest_id(ptr noundef %188)
  %190 = icmp ugt i32 %184, %189
  br i1 %190, label %191, label %194

191:                                              ; preds = %183
  %192 = load ptr, ptr @stderr, align 8, !tbaa !5
  %193 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %192, ptr noundef @.str.14) #5
  call void @exit(i32 noundef 1) #6
  unreachable

194:                                              ; preds = %183
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = load i32, ptr %2, align 4, !tbaa !9
  %197 = zext i32 %196 to i64
  %198 = call ptr @obvector_obj_at_index(ptr noundef %195, i64 noundef %197)
  %199 = call i32 @obtest_id(ptr noundef %198)
  store i32 %199, ptr %3, align 4, !tbaa !9
  br label %200

200:                                              ; preds = %194
  %201 = load i32, ptr %2, align 4, !tbaa !9
  %202 = add i32 %201, 1
  store i32 %202, ptr %2, align 4, !tbaa !9
  br label %178, !llvm.loop !15

203:                                              ; preds = %178
  %204 = load ptr, ptr %7, align 8, !tbaa !5
  call void @obvector_store_at_index(ptr noundef %204, ptr noundef null, i64 noundef 6)
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  call void @obvector_store_at_index(ptr noundef %205, ptr noundef %206, i64 noundef 10)
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  call void @obvector_sort(ptr noundef %207, i8 noundef signext 1)
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = call i32 @obvector_length(ptr noundef %208)
  %210 = icmp ne i32 %209, 7
  br i1 %210, label %211, label %214

211:                                              ; preds = %203
  %212 = load ptr, ptr @stderr, align 8, !tbaa !5
  %213 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %212, ptr noundef @.str.15) #5
  call void @exit(i32 noundef 1) #6
  unreachable

214:                                              ; preds = %203
  store i32 10, ptr %3, align 4, !tbaa !9
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %215

215:                                              ; preds = %237, %214
  %216 = load i32, ptr %2, align 4, !tbaa !9
  %217 = load ptr, ptr %7, align 8, !tbaa !5
  %218 = call i32 @obvector_length(ptr noundef %217)
  %219 = icmp ult i32 %216, %218
  br i1 %219, label %220, label %240

220:                                              ; preds = %215
  %221 = load i32, ptr %3, align 4, !tbaa !9
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = load i32, ptr %2, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = call ptr @obvector_obj_at_index(ptr noundef %222, i64 noundef %224)
  %226 = call i32 @obtest_id(ptr noundef %225)
  %227 = icmp ult i32 %221, %226
  br i1 %227, label %228, label %231

228:                                              ; preds = %220
  %229 = load ptr, ptr @stderr, align 8, !tbaa !5
  %230 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %229, ptr noundef @.str.16) #5
  call void @exit(i32 noundef 1) #6
  unreachable

231:                                              ; preds = %220
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = load i32, ptr %2, align 4, !tbaa !9
  %234 = zext i32 %233 to i64
  %235 = call ptr @obvector_obj_at_index(ptr noundef %232, i64 noundef %234)
  %236 = call i32 @obtest_id(ptr noundef %235)
  store i32 %236, ptr %3, align 4, !tbaa !9
  br label %237

237:                                              ; preds = %231
  %238 = load i32, ptr %2, align 4, !tbaa !9
  %239 = add i32 %238, 1
  store i32 %239, ptr %2, align 4, !tbaa !9
  br label %215, !llvm.loop !16

240:                                              ; preds = %215
  %241 = load ptr, ptr %7, align 8, !tbaa !5
  %242 = call ptr @obvector_copy(ptr noundef %241)
  store ptr %242, ptr %8, align 8, !tbaa !5
  %243 = load ptr, ptr %8, align 8, !tbaa !5
  %244 = load ptr, ptr %7, align 8, !tbaa !5
  %245 = call signext i8 @ob_compare(ptr noundef %243, ptr noundef %244)
  %246 = sext i8 %245 to i32
  %247 = icmp eq i32 %246, 0
  br i1 %247, label %248, label %249

248:                                              ; preds = %240
  br label %250

249:                                              ; preds = %240
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.18, i32 noundef 152, ptr noundef @__PRETTY_FUNCTION__.main) #6
  unreachable

250:                                              ; preds = %248
  %251 = load ptr, ptr %8, align 8, !tbaa !5
  %252 = call i64 @ob_hash(ptr noundef %251)
  %253 = load ptr, ptr %7, align 8, !tbaa !5
  %254 = call i64 @ob_hash(ptr noundef %253)
  %255 = icmp eq i64 %252, %254
  br i1 %255, label %256, label %257

256:                                              ; preds = %250
  br label %258

257:                                              ; preds = %250
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.18, i32 noundef 153, ptr noundef @__PRETTY_FUNCTION__.main) #6
  unreachable

258:                                              ; preds = %256
  %259 = load ptr, ptr %5, align 8, !tbaa !5
  %260 = call ptr @ob_release(ptr noundef %259)
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %261

261:                                              ; preds = %277, %258
  %262 = load i32, ptr %2, align 4, !tbaa !9
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = call i32 @obvector_length(ptr noundef %263)
  %265 = icmp ult i32 %262, %264
  br i1 %265, label %266, label %280

266:                                              ; preds = %261
  %267 = load ptr, ptr %7, align 8, !tbaa !5
  %268 = load i32, ptr %2, align 4, !tbaa !9
  %269 = zext i32 %268 to i64
  %270 = call ptr @obvector_obj_at_index(ptr noundef %267, i64 noundef %269)
  %271 = call i32 @ob_reference_count(ptr noundef %270)
  %272 = icmp ne i32 %271, 2
  br i1 %272, label %273, label %276

273:                                              ; preds = %266
  %274 = load ptr, ptr @stderr, align 8, !tbaa !5
  %275 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %274, ptr noundef @.str.20) #5
  call void @exit(i32 noundef 1) #6
  unreachable

276:                                              ; preds = %266
  br label %277

277:                                              ; preds = %276
  %278 = load i32, ptr %2, align 4, !tbaa !9
  %279 = add i32 %278, 1
  store i32 %279, ptr %2, align 4, !tbaa !9
  br label %261, !llvm.loop !17

280:                                              ; preds = %261
  %281 = load ptr, ptr %7, align 8, !tbaa !5
  %282 = call ptr @obvector_obj_at_index(ptr noundef %281, i64 noundef 3)
  store ptr %282, ptr %6, align 8, !tbaa !5
  %283 = load ptr, ptr %6, align 8, !tbaa !5
  %284 = call ptr @ob_retain(ptr noundef %283)
  %285 = load ptr, ptr %7, align 8, !tbaa !5
  call void @obvector_store_at_index(ptr noundef %285, ptr noundef null, i64 noundef 3)
  %286 = load ptr, ptr %8, align 8, !tbaa !5
  %287 = load ptr, ptr %7, align 8, !tbaa !5
  %288 = call signext i8 @ob_compare(ptr noundef %286, ptr noundef %287)
  %289 = sext i8 %288 to i32
  %290 = icmp eq i32 %289, 2
  br i1 %290, label %291, label %292

291:                                              ; preds = %280
  br label %293

292:                                              ; preds = %280
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.18, i32 noundef 172, ptr noundef @__PRETTY_FUNCTION__.main) #6
  unreachable

293:                                              ; preds = %291
  %294 = load ptr, ptr %8, align 8, !tbaa !5
  %295 = call i64 @ob_hash(ptr noundef %294)
  %296 = load ptr, ptr %7, align 8, !tbaa !5
  %297 = call i64 @ob_hash(ptr noundef %296)
  %298 = icmp ne i64 %295, %297
  br i1 %298, label %299, label %300

299:                                              ; preds = %293
  br label %301

300:                                              ; preds = %293
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.18, i32 noundef 173, ptr noundef @__PRETTY_FUNCTION__.main) #6
  unreachable

301:                                              ; preds = %299
  %302 = load ptr, ptr %7, align 8, !tbaa !5
  %303 = load ptr, ptr %6, align 8, !tbaa !5
  %304 = call zeroext i8 @obvector_find_obj(ptr noundef %302, ptr noundef %303)
  %305 = icmp ne i8 %304, 0
  br i1 %305, label %306, label %309

306:                                              ; preds = %301
  %307 = load ptr, ptr @stderr, align 8, !tbaa !5
  %308 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %307, ptr noundef @.str.23) #5
  call void @exit(i32 noundef 1) #6
  unreachable

309:                                              ; preds = %301
  %310 = load ptr, ptr %7, align 8, !tbaa !5
  %311 = load ptr, ptr %6, align 8, !tbaa !5
  call void @obvector_store_at_index(ptr noundef %310, ptr noundef %311, i64 noundef 3)
  %312 = load ptr, ptr %7, align 8, !tbaa !5
  %313 = call i32 @obvector_length(ptr noundef %312)
  %314 = icmp eq i32 %313, 7
  br i1 %314, label %315, label %316

315:                                              ; preds = %309
  br label %317

316:                                              ; preds = %309
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.18, i32 noundef 182, ptr noundef @__PRETTY_FUNCTION__.main) #6
  unreachable

317:                                              ; preds = %315
  %318 = load ptr, ptr %7, align 8, !tbaa !5
  %319 = load ptr, ptr %8, align 8, !tbaa !5
  call void @obvector_concat(ptr noundef %318, ptr noundef %319)
  %320 = load ptr, ptr %7, align 8, !tbaa !5
  %321 = call i32 @obvector_length(ptr noundef %320)
  %322 = icmp eq i32 %321, 14
  br i1 %322, label %323, label %324

323:                                              ; preds = %317
  br label %325

324:                                              ; preds = %317
  call void @__assert_fail(ptr noundef @.str.25, ptr noundef @.str.18, i32 noundef 184, ptr noundef @__PRETTY_FUNCTION__.main) #6
  unreachable

325:                                              ; preds = %323
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %326

326:                                              ; preds = %349, %325
  %327 = load i32, ptr %2, align 4, !tbaa !9
  %328 = load ptr, ptr %7, align 8, !tbaa !5
  %329 = call i32 @obvector_length(ptr noundef %328)
  %330 = udiv i32 %329, 2
  %331 = icmp ult i32 %327, %330
  br i1 %331, label %332, label %352

332:                                              ; preds = %326
  %333 = load ptr, ptr %7, align 8, !tbaa !5
  %334 = load i32, ptr %2, align 4, !tbaa !9
  %335 = zext i32 %334 to i64
  %336 = call ptr @obvector_obj_at_index(ptr noundef %333, i64 noundef %335)
  %337 = call i32 @obtest_id(ptr noundef %336)
  %338 = load ptr, ptr %7, align 8, !tbaa !5
  %339 = load i32, ptr %2, align 4, !tbaa !9
  %340 = add i32 %339, 7
  %341 = zext i32 %340 to i64
  %342 = call ptr @obvector_obj_at_index(ptr noundef %338, i64 noundef %341)
  %343 = call i32 @obtest_id(ptr noundef %342)
  %344 = icmp ne i32 %337, %343
  br i1 %344, label %345, label %348

345:                                              ; preds = %332
  %346 = load ptr, ptr @stderr, align 8, !tbaa !5
  %347 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %346, ptr noundef @.str.26) #5
  call void @exit(i32 noundef 1) #6
  unreachable

348:                                              ; preds = %332
  br label %349

349:                                              ; preds = %348
  %350 = load i32, ptr %2, align 4, !tbaa !9
  %351 = add i32 %350, 1
  store i32 %351, ptr %2, align 4, !tbaa !9
  br label %326, !llvm.loop !18

352:                                              ; preds = %326
  %353 = load ptr, ptr %7, align 8, !tbaa !5
  %354 = call ptr @ob_release(ptr noundef %353)
  %355 = load ptr, ptr %8, align 8, !tbaa !5
  %356 = call ptr @ob_release(ptr noundef %355)
  %357 = load ptr, ptr %6, align 8, !tbaa !5
  %358 = call i32 @ob_reference_count(ptr noundef %357)
  %359 = icmp ne i32 %358, 1
  br i1 %359, label %360, label %363

360:                                              ; preds = %352
  %361 = load ptr, ptr @stderr, align 8, !tbaa !5
  %362 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %361, ptr noundef @.str.27) #5
  call void @exit(i32 noundef 1) #6
  unreachable

363:                                              ; preds = %352
  %364 = load ptr, ptr %6, align 8, !tbaa !5
  %365 = call ptr @ob_release(ptr noundef %364)
  %366 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  ret i32 0
}

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

declare ptr @obvector_new(i32 noundef) #2

declare ptr @obtest_new(i32 noundef) #2

declare void @obvector_store_at_index(ptr noundef, ptr noundef, i64 noundef) #2

declare i32 @ob_reference_count(ptr noundef) #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

declare ptr @ob_release(ptr noundef) #2

declare i32 @obvector_length(ptr noundef) #2

declare i32 @obtest_id(ptr noundef) #2

declare ptr @obvector_obj_at_index(ptr noundef, i64 noundef) #2

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

declare ptr @ob_retain(ptr noundef) #2

declare zeroext i8 @obvector_find_obj(ptr noundef, ptr noundef) #2

declare void @obvector_sort(ptr noundef, i8 noundef signext) #2

declare ptr @obvector_copy(ptr noundef) #2

declare signext i8 @ob_compare(ptr noundef, ptr noundef) #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

declare i64 @ob_hash(ptr noundef) #2

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [70 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call ptr @obvector_new(i32 noundef 1) #4
  %2 = tail call ptr @obtest_new(i32 noundef 7) #4
  %3 = tail call ptr @obtest_new(i32 noundef 0) #4
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef %3, i64 noundef 0) #4
  %4 = tail call i32 @ob_reference_count(ptr noundef %3) #4
  %.not122 = icmp eq i32 %4, 2
  br i1 %.not122, label %8, label %5

5:                                                ; preds = %24, %20, %16, %12, %8, %0
  %6 = load ptr, ptr @stderr, align 8, !tbaa !5
  %7 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef nonnull @.str) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

8:                                                ; preds = %0
  %9 = tail call ptr @ob_release(ptr noundef %3) #4
  %10 = tail call ptr @obtest_new(i32 noundef 1) #4
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef %10, i64 noundef 1) #4
  %11 = tail call i32 @ob_reference_count(ptr noundef %10) #4
  %.not122.1 = icmp eq i32 %11, 2
  br i1 %.not122.1, label %12, label %5

12:                                               ; preds = %8
  %13 = tail call ptr @ob_release(ptr noundef %10) #4
  %14 = tail call ptr @obtest_new(i32 noundef 2) #4
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef %14, i64 noundef 2) #4
  %15 = tail call i32 @ob_reference_count(ptr noundef %14) #4
  %.not122.2 = icmp eq i32 %15, 2
  br i1 %.not122.2, label %16, label %5

16:                                               ; preds = %12
  %17 = tail call ptr @ob_release(ptr noundef %14) #4
  %18 = tail call ptr @obtest_new(i32 noundef 3) #4
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef %18, i64 noundef 3) #4
  %19 = tail call i32 @ob_reference_count(ptr noundef %18) #4
  %.not122.3 = icmp eq i32 %19, 2
  br i1 %.not122.3, label %20, label %5

20:                                               ; preds = %16
  %21 = tail call ptr @ob_release(ptr noundef %18) #4
  %22 = tail call ptr @obtest_new(i32 noundef 4) #4
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef %22, i64 noundef 4) #4
  %23 = tail call i32 @ob_reference_count(ptr noundef %22) #4
  %.not122.4 = icmp eq i32 %23, 2
  br i1 %.not122.4, label %24, label %5

24:                                               ; preds = %20
  %25 = tail call ptr @ob_release(ptr noundef %22) #4
  %26 = tail call ptr @obtest_new(i32 noundef 5) #4
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef %26, i64 noundef 5) #4
  %27 = tail call i32 @ob_reference_count(ptr noundef %26) #4
  %.not122.5 = icmp eq i32 %27, 2
  br i1 %.not122.5, label %28, label %5

28:                                               ; preds = %24
  %29 = tail call ptr @ob_release(ptr noundef %26) #4
  %30 = tail call i32 @obvector_length(ptr noundef %1) #4
  %.not = icmp eq i32 %30, 6
  br i1 %.not, label %.preheader125.preheader, label %33

.preheader125.preheader:                          ; preds = %28
  %31 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef 0) #4
  %32 = tail call i32 @obtest_id(ptr noundef %31) #4
  %.not121 = icmp eq i32 %32, 0
  br i1 %.not121, label %.preheader125.1, label %36

33:                                               ; preds = %28
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.1) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

36:                                               ; preds = %.preheader125.5, %.preheader125.4, %.preheader125.3, %.preheader125.2, %.preheader125.1, %.preheader125.preheader
  %.1128.lcssa.wide = phi i32 [ 0, %.preheader125.preheader ], [ 1, %.preheader125.1 ], [ 2, %.preheader125.2 ], [ 3, %.preheader125.3 ], [ 4, %.preheader125.4 ], [ 5, %.preheader125.5 ]
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.2) #5
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %.1128.lcssa.wide)
  tail call void @exit(i32 noundef 1) #6
  unreachable

.preheader125.1:                                  ; preds = %.preheader125.preheader
  %40 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef 1) #4
  %41 = tail call i32 @obtest_id(ptr noundef %40) #4
  %.not121.1 = icmp eq i32 %41, 1
  br i1 %.not121.1, label %.preheader125.2, label %36

.preheader125.2:                                  ; preds = %.preheader125.1
  %42 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef 2) #4
  %43 = tail call i32 @obtest_id(ptr noundef %42) #4
  %.not121.2 = icmp eq i32 %43, 2
  br i1 %.not121.2, label %.preheader125.3, label %36

.preheader125.3:                                  ; preds = %.preheader125.2
  %44 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef 3) #4
  %45 = tail call i32 @obtest_id(ptr noundef %44) #4
  %.not121.3 = icmp eq i32 %45, 3
  br i1 %.not121.3, label %.preheader125.4, label %36

.preheader125.4:                                  ; preds = %.preheader125.3
  %46 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef 4) #4
  %47 = tail call i32 @obtest_id(ptr noundef %46) #4
  %.not121.4 = icmp eq i32 %47, 4
  br i1 %.not121.4, label %.preheader125.5, label %36

.preheader125.5:                                  ; preds = %.preheader125.4
  %48 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef 5) #4
  %49 = tail call i32 @obtest_id(ptr noundef %48) #4
  %.not121.5 = icmp eq i32 %49, 5
  br i1 %.not121.5, label %50, label %36

50:                                               ; preds = %.preheader125.5
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef %2, i64 noundef 12) #4
  %51 = tail call i32 @obvector_length(ptr noundef %1) #4
  %.not105 = icmp eq i32 %51, 13
  br i1 %.not105, label %55, label %52

52:                                               ; preds = %50
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.4) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

55:                                               ; preds = %50
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef null, i64 noundef 12) #4
  %56 = tail call i32 @obvector_length(ptr noundef %1) #4
  %.not106 = icmp eq i32 %56, 6
  br i1 %.not106, label %60, label %57

57:                                               ; preds = %55
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.5) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

60:                                               ; preds = %55
  %61 = tail call i32 @ob_reference_count(ptr noundef %2) #4
  %.not107 = icmp eq i32 %61, 1
  br i1 %.not107, label %65, label %62

62:                                               ; preds = %60
  %63 = load ptr, ptr @stderr, align 8, !tbaa !5
  %64 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.6) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

65:                                               ; preds = %60
  %66 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef 3) #4
  %67 = tail call ptr @ob_retain(ptr noundef %66) #4
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef %2, i64 noundef 3) #4
  %68 = tail call i32 @ob_reference_count(ptr noundef %66) #4
  %.not108 = icmp eq i32 %68, 1
  br i1 %.not108, label %72, label %69

69:                                               ; preds = %65
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.7) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

72:                                               ; preds = %65
  %73 = tail call i32 @obvector_length(ptr noundef %1) #4
  %.not109 = icmp eq i32 %73, 6
  br i1 %.not109, label %74, label %78

74:                                               ; preds = %72
  %75 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef 3) #4
  %76 = tail call i32 @obtest_id(ptr noundef %75) #4
  %77 = tail call i32 @obtest_id(ptr noundef %2) #4
  %.not110 = icmp eq i32 %76, %77
  br i1 %.not110, label %81, label %78

78:                                               ; preds = %74, %72
  %79 = load ptr, ptr @stderr, align 8, !tbaa !5
  %80 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef nonnull @.str.8) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

81:                                               ; preds = %74
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef %66, i64 noundef 3) #4
  %82 = tail call ptr @ob_release(ptr noundef %66) #4
  %83 = tail call zeroext i8 @obvector_find_obj(ptr noundef %1, ptr noundef %2) #4
  %.not111 = icmp eq i8 %83, 0
  br i1 %.not111, label %87, label %84

84:                                               ; preds = %81
  %85 = load ptr, ptr @stderr, align 8, !tbaa !5
  %86 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef nonnull @.str.9) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

87:                                               ; preds = %81
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef %2, i64 noundef 10) #4
  %88 = tail call i32 @obvector_length(ptr noundef %1) #4
  %.not112 = icmp eq i32 %88, 11
  br i1 %.not112, label %92, label %89

89:                                               ; preds = %87
  %90 = load ptr, ptr @stderr, align 8, !tbaa !5
  %91 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef nonnull @.str.4) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

92:                                               ; preds = %87
  tail call void @obvector_sort(ptr noundef %1, i8 noundef signext -1) #4
  %93 = tail call i32 @obvector_length(ptr noundef %1) #4
  %.not113 = icmp eq i32 %93, 7
  br i1 %.not113, label %.preheader124, label %95

.preheader124:                                    ; preds = %92
  %94 = tail call i32 @obvector_length(ptr noundef %1) #4
  %.not146 = icmp eq i32 %94, 0
  br i1 %.not146, label %._crit_edge133, label %.lr.ph132

95:                                               ; preds = %92
  %96 = load ptr, ptr @stderr, align 8, !tbaa !5
  %97 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef nonnull @.str.10) #5
  %98 = load ptr, ptr @stderr, align 8, !tbaa !5
  %99 = tail call i32 @obvector_length(ptr noundef %1) #4
  %100 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef nonnull @.str.11, i32 noundef %99) #5
  %101 = tail call i32 @obvector_length(ptr noundef %1) #4
  %.not145 = icmp eq i32 %101, 0
  br i1 %.not145, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %95, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %95 ]
  %102 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef %indvars.iv) #4
  %.not120 = icmp eq ptr %102, null
  %.str.13..str.12 = select i1 %.not120, ptr @.str.13, ptr @.str.12
  %103 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.13..str.12)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %104 = tail call i32 @obvector_length(ptr noundef %1) #4
  %105 = zext i32 %104 to i64
  %106 = icmp ult i64 %indvars.iv.next, %105
  br i1 %106, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %95
  tail call void @exit(i32 noundef 1) #6
  unreachable

.lr.ph132:                                        ; preds = %.preheader124, %113
  %indvars.iv154 = phi i64 [ %indvars.iv.next155, %113 ], [ 0, %.preheader124 ]
  %.0103130 = phi i32 [ %115, %113 ], [ 0, %.preheader124 ]
  %107 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef %indvars.iv154) #4
  %108 = tail call i32 @obtest_id(ptr noundef %107) #4
  %109 = icmp ugt i32 %.0103130, %108
  br i1 %109, label %110, label %113

110:                                              ; preds = %.lr.ph132
  %111 = load ptr, ptr @stderr, align 8, !tbaa !5
  %112 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull @.str.14) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

113:                                              ; preds = %.lr.ph132
  %114 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef %indvars.iv154) #4
  %115 = tail call i32 @obtest_id(ptr noundef %114) #4
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %116 = tail call i32 @obvector_length(ptr noundef %1) #4
  %117 = zext i32 %116 to i64
  %118 = icmp ult i64 %indvars.iv.next155, %117
  br i1 %118, label %.lr.ph132, label %._crit_edge133, !llvm.loop !11

._crit_edge133:                                   ; preds = %113, %.preheader124
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef null, i64 noundef 6) #4
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef %2, i64 noundef 10) #4
  tail call void @obvector_sort(ptr noundef %1, i8 noundef signext 1) #4
  %119 = tail call i32 @obvector_length(ptr noundef %1) #4
  %.not114 = icmp eq i32 %119, 7
  br i1 %.not114, label %.preheader123, label %121

.preheader123:                                    ; preds = %._crit_edge133
  %120 = tail call i32 @obvector_length(ptr noundef %1) #4
  %.not147 = icmp eq i32 %120, 0
  br i1 %.not147, label %._crit_edge137, label %.lr.ph136

121:                                              ; preds = %._crit_edge133
  %122 = load ptr, ptr @stderr, align 8, !tbaa !5
  %123 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.15) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

.lr.ph136:                                        ; preds = %.preheader123, %130
  %indvars.iv157 = phi i64 [ %indvars.iv.next158, %130 ], [ 0, %.preheader123 ]
  %.1104134 = phi i32 [ %132, %130 ], [ 10, %.preheader123 ]
  %124 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef %indvars.iv157) #4
  %125 = tail call i32 @obtest_id(ptr noundef %124) #4
  %126 = icmp ult i32 %.1104134, %125
  br i1 %126, label %127, label %130

127:                                              ; preds = %.lr.ph136
  %128 = load ptr, ptr @stderr, align 8, !tbaa !5
  %129 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef nonnull @.str.16) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

130:                                              ; preds = %.lr.ph136
  %131 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef %indvars.iv157) #4
  %132 = tail call i32 @obtest_id(ptr noundef %131) #4
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %133 = tail call i32 @obvector_length(ptr noundef %1) #4
  %134 = zext i32 %133 to i64
  %135 = icmp ult i64 %indvars.iv.next158, %134
  br i1 %135, label %.lr.ph136, label %._crit_edge137, !llvm.loop !12

._crit_edge137:                                   ; preds = %130, %.preheader123
  %136 = tail call ptr @obvector_copy(ptr noundef %1) #4
  %137 = tail call signext i8 @ob_compare(ptr noundef %136, ptr noundef %1) #4
  %138 = icmp eq i8 %137, 0
  br i1 %138, label %140, label %139

139:                                              ; preds = %._crit_edge137
  tail call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.18, i32 noundef 152, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

140:                                              ; preds = %._crit_edge137
  %141 = tail call i64 @ob_hash(ptr noundef %136) #4
  %142 = tail call i64 @ob_hash(ptr noundef %1) #4
  %143 = icmp eq i64 %141, %142
  br i1 %143, label %145, label %144

144:                                              ; preds = %140
  tail call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.18, i32 noundef 153, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

145:                                              ; preds = %140
  %146 = tail call ptr @ob_release(ptr noundef %2) #4
  %147 = tail call i32 @obvector_length(ptr noundef %1) #4
  %.not148 = icmp eq i32 %147, 0
  br i1 %.not148, label %._crit_edge141, label %.lr.ph140

148:                                              ; preds = %.lr.ph140
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %149 = tail call i32 @obvector_length(ptr noundef %1) #4
  %150 = zext i32 %149 to i64
  %151 = icmp ult i64 %indvars.iv.next161, %150
  br i1 %151, label %.lr.ph140, label %._crit_edge141, !llvm.loop !13

.lr.ph140:                                        ; preds = %145, %148
  %indvars.iv160 = phi i64 [ %indvars.iv.next161, %148 ], [ 0, %145 ]
  %152 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef %indvars.iv160) #4
  %153 = tail call i32 @ob_reference_count(ptr noundef %152) #4
  %.not119 = icmp eq i32 %153, 2
  br i1 %.not119, label %148, label %154

154:                                              ; preds = %.lr.ph140
  %155 = load ptr, ptr @stderr, align 8, !tbaa !5
  %156 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef nonnull @.str.20) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

._crit_edge141:                                   ; preds = %148, %145
  %157 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef 3) #4
  %158 = tail call ptr @ob_retain(ptr noundef %157) #4
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef null, i64 noundef 3) #4
  %159 = tail call signext i8 @ob_compare(ptr noundef %136, ptr noundef %1) #4
  %160 = icmp eq i8 %159, 2
  br i1 %160, label %162, label %161

161:                                              ; preds = %._crit_edge141
  tail call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.18, i32 noundef 172, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

162:                                              ; preds = %._crit_edge141
  %163 = tail call i64 @ob_hash(ptr noundef %136) #4
  %164 = tail call i64 @ob_hash(ptr noundef %1) #4
  %.not115 = icmp eq i64 %163, %164
  br i1 %.not115, label %165, label %166

165:                                              ; preds = %162
  tail call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.18, i32 noundef 173, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

166:                                              ; preds = %162
  %167 = tail call zeroext i8 @obvector_find_obj(ptr noundef %1, ptr noundef %157) #4
  %.not116 = icmp eq i8 %167, 0
  br i1 %.not116, label %171, label %168

168:                                              ; preds = %166
  %169 = load ptr, ptr @stderr, align 8, !tbaa !5
  %170 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef nonnull @.str.23) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

171:                                              ; preds = %166
  tail call void @obvector_store_at_index(ptr noundef %1, ptr noundef %157, i64 noundef 3) #4
  %172 = tail call i32 @obvector_length(ptr noundef %1) #4
  %173 = icmp eq i32 %172, 7
  br i1 %173, label %175, label %174

174:                                              ; preds = %171
  tail call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.18, i32 noundef 182, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

175:                                              ; preds = %171
  tail call void @obvector_concat(ptr noundef %1, ptr noundef %136) #4
  %176 = tail call i32 @obvector_length(ptr noundef %1) #4
  %177 = icmp eq i32 %176, 14
  br i1 %177, label %.preheader, label %179

.preheader:                                       ; preds = %175
  %178 = tail call i32 @obvector_length(ptr noundef %1) #4
  %.not149 = icmp ult i32 %178, 2
  br i1 %.not149, label %._crit_edge144, label %.lr.ph143

179:                                              ; preds = %175
  tail call void @__assert_fail(ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.18, i32 noundef 184, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

180:                                              ; preds = %.lr.ph143
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %181 = tail call i32 @obvector_length(ptr noundef %1) #4
  %182 = lshr i32 %181, 1
  %183 = zext nneg i32 %182 to i64
  %184 = icmp ult i64 %indvars.iv.next164, %183
  br i1 %184, label %.lr.ph143, label %._crit_edge144, !llvm.loop !14

.lr.ph143:                                        ; preds = %.preheader, %180
  %indvars.iv163 = phi i64 [ %indvars.iv.next164, %180 ], [ 0, %.preheader ]
  %185 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef %indvars.iv163) #4
  %186 = tail call i32 @obtest_id(ptr noundef %185) #4
  %187 = add nuw nsw i64 %indvars.iv163, 7
  %188 = tail call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef %187) #4
  %189 = tail call i32 @obtest_id(ptr noundef %188) #4
  %.not118 = icmp eq i32 %186, %189
  br i1 %.not118, label %180, label %190

190:                                              ; preds = %.lr.ph143
  %191 = load ptr, ptr @stderr, align 8, !tbaa !5
  %192 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef nonnull @.str.26) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

._crit_edge144:                                   ; preds = %180, %.preheader
  %193 = tail call ptr @ob_release(ptr noundef %1) #4
  %194 = tail call ptr @ob_release(ptr noundef %136) #4
  %195 = tail call i32 @ob_reference_count(ptr noundef %157) #4
  %.not117 = icmp eq i32 %195, 1
  br i1 %.not117, label %199, label %196

196:                                              ; preds = %._crit_edge144
  %197 = load ptr, ptr @stderr, align 8, !tbaa !5
  %198 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef nonnull @.str.27) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

199:                                              ; preds = %._crit_edge144
  %200 = tail call ptr @ob_release(ptr noundef %157) #4
  %201 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28)
  ret i32 0
}

declare ptr @obvector_new(i32 noundef) local_unnamed_addr #1

declare ptr @obtest_new(i32 noundef) local_unnamed_addr #1

declare void @obvector_store_at_index(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare i32 @ob_reference_count(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

declare ptr @ob_release(ptr noundef) local_unnamed_addr #1

declare i32 @obvector_length(ptr noundef) local_unnamed_addr #1

declare i32 @obtest_id(ptr noundef) local_unnamed_addr #1

declare ptr @obvector_obj_at_index(ptr noundef, i64 noundef) local_unnamed_addr #1

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

declare ptr @ob_retain(ptr noundef) local_unnamed_addr #1

declare zeroext i8 @obvector_find_obj(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @obvector_sort(ptr noundef, i8 noundef signext) local_unnamed_addr #1

declare ptr @obvector_copy(ptr noundef) local_unnamed_addr #1

declare signext i8 @ob_compare(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i64 @ob_hash(ptr noundef) local_unnamed_addr #1

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

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 = { "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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { cold nounwind }
attributes #6 = { noreturn 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 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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