; LLVM IR from theck01/offbrand_lib :: src/tests (obdeque_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"

@.str = external hidden unnamed_addr constant [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [79 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %14 = call ptr @obdeque_new()
  store ptr %14, ptr %2, align 8, !tbaa !5
  %15 = call ptr @obtest_new(i32 noundef 1)
  store ptr %15, ptr %8, align 8, !tbaa !5
  %16 = call ptr @obtest_new(i32 noundef 2)
  store ptr %16, ptr %9, align 8, !tbaa !5
  %17 = call ptr @obtest_new(i32 noundef 3)
  store ptr %17, ptr %10, align 8, !tbaa !5
  %18 = call ptr @obtest_new(i32 noundef 4)
  store ptr %18, ptr %11, align 8, !tbaa !5
  %19 = call ptr @obtest_new(i32 noundef 5)
  store ptr %19, ptr %12, align 8, !tbaa !5
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = call zeroext i8 @obdeque_is_empty(ptr noundef %20)
  %22 = zext i8 %21 to i32
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %0
  br label %26

25:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 29, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

26:                                               ; preds = %24
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = call i64 @obdeque_length(ptr noundef %27)
  %29 = icmp eq i64 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %26
  br label %32

31:                                               ; preds = %26
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 30, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

32:                                               ; preds = %30
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = call ptr @obdeque_head_iterator(ptr noundef %33)
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %37

36:                                               ; preds = %32
  br label %38

37:                                               ; preds = %32
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 31, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

38:                                               ; preds = %36
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = call ptr @obdeque_tail_iterator(ptr noundef %39)
  %41 = icmp eq ptr %40, null
  br i1 %41, label %42, label %43

42:                                               ; preds = %38
  br label %44

43:                                               ; preds = %38
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 32, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

44:                                               ; preds = %42
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  call void @obdeque_add_at_head(ptr noundef %45, ptr noundef %46)
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = call zeroext i8 @obdeque_is_empty(ptr noundef %47)
  %49 = zext i8 %48 to i32
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %44
  br label %53

52:                                               ; preds = %44
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 37, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

53:                                               ; preds = %51
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = call i64 @obdeque_length(ptr noundef %54)
  %56 = icmp eq i64 %55, 1
  br i1 %56, label %57, label %58

57:                                               ; preds = %53
  br label %59

58:                                               ; preds = %53
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 38, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

59:                                               ; preds = %57
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = call i32 @ob_reference_count(ptr noundef %60)
  %62 = icmp eq i32 %61, 2
  br i1 %62, label %63, label %64

63:                                               ; preds = %59
  br label %65

64:                                               ; preds = %59
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 39, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

65:                                               ; preds = %63
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = call ptr @obdeque_obj_at_head(ptr noundef %66)
  %68 = call i32 @obtest_id(ptr noundef %67)
  %69 = icmp eq i32 %68, 1
  br i1 %69, label %70, label %71

70:                                               ; preds = %65
  br label %72

71:                                               ; preds = %65
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 40, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

72:                                               ; preds = %70
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = call ptr @obdeque_obj_at_tail(ptr noundef %73)
  %75 = call i32 @obtest_id(ptr noundef %74)
  %76 = icmp eq i32 %75, 1
  br i1 %76, label %77, label %78

77:                                               ; preds = %72
  br label %79

78:                                               ; preds = %72
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 41, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

79:                                               ; preds = %77
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = call ptr @obdeque_head_iterator(ptr noundef %80)
  store ptr %81, ptr %5, align 8, !tbaa !5
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = call ptr @obdeque_tail_iterator(ptr noundef %82)
  store ptr %83, ptr %6, align 8, !tbaa !5
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %87

86:                                               ; preds = %79
  br label %88

87:                                               ; preds = %79
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 46, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

88:                                               ; preds = %86
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %92

91:                                               ; preds = %88
  br label %93

92:                                               ; preds = %88
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 47, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

93:                                               ; preds = %91
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = call ptr @obdeque_obj_at_iterator(ptr noundef %94, ptr noundef %95)
  %97 = call i32 @obtest_id(ptr noundef %96)
  %98 = icmp eq i32 %97, 1
  br i1 %98, label %99, label %100

99:                                               ; preds = %93
  br label %101

100:                                              ; preds = %93
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 48, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

101:                                              ; preds = %99
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = call ptr @obdeque_obj_at_iterator(ptr noundef %102, ptr noundef %103)
  %105 = call i32 @obtest_id(ptr noundef %104)
  %106 = icmp eq i32 %105, 1
  br i1 %106, label %107, label %108

107:                                              ; preds = %101
  br label %109

108:                                              ; preds = %101
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 49, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

109:                                              ; preds = %107
  %110 = load ptr, ptr %2, align 8, !tbaa !5
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = call zeroext i8 @obdeque_find_obj(ptr noundef %110, ptr noundef %111)
  %113 = icmp ne i8 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %109
  br label %116

115:                                              ; preds = %109
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 51, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

116:                                              ; preds = %114
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  call void @obdeque_remove_tail(ptr noundef %117)
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = call i32 @ob_reference_count(ptr noundef %118)
  %120 = icmp eq i32 %119, 2
  br i1 %120, label %121, label %122

121:                                              ; preds = %116
  br label %123

122:                                              ; preds = %116
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 57, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

123:                                              ; preds = %121
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = call ptr @ob_release(ptr noundef %124)
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = call ptr @ob_release(ptr noundef %126)
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = call i32 @ob_reference_count(ptr noundef %128)
  %130 = icmp eq i32 %129, 1
  br i1 %130, label %131, label %132

131:                                              ; preds = %123
  br label %133

132:                                              ; preds = %123
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 60, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

133:                                              ; preds = %131
  %134 = load ptr, ptr %2, align 8, !tbaa !5
  %135 = call zeroext i8 @obdeque_is_empty(ptr noundef %134)
  %136 = zext i8 %135 to i32
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %139

138:                                              ; preds = %133
  br label %140

139:                                              ; preds = %133
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 63, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

140:                                              ; preds = %138
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  %142 = call i64 @obdeque_length(ptr noundef %141)
  %143 = icmp eq i64 %142, 0
  br i1 %143, label %144, label %145

144:                                              ; preds = %140
  br label %146

145:                                              ; preds = %140
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 64, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

146:                                              ; preds = %144
  %147 = load ptr, ptr %2, align 8, !tbaa !5
  %148 = call ptr @obdeque_head_iterator(ptr noundef %147)
  %149 = icmp eq ptr %148, null
  br i1 %149, label %150, label %151

150:                                              ; preds = %146
  br label %152

151:                                              ; preds = %146
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 65, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

152:                                              ; preds = %150
  %153 = load ptr, ptr %2, align 8, !tbaa !5
  %154 = call ptr @obdeque_tail_iterator(ptr noundef %153)
  %155 = icmp eq ptr %154, null
  br i1 %155, label %156, label %157

156:                                              ; preds = %152
  br label %158

157:                                              ; preds = %152
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 66, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

158:                                              ; preds = %156
  %159 = load ptr, ptr %2, align 8, !tbaa !5
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  call void @obdeque_add_at_tail(ptr noundef %159, ptr noundef %160)
  %161 = load ptr, ptr %2, align 8, !tbaa !5
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  call void @obdeque_add_at_head(ptr noundef %161, ptr noundef %162)
  %163 = load ptr, ptr %2, align 8, !tbaa !5
  %164 = load ptr, ptr %10, align 8, !tbaa !5
  call void @obdeque_add_at_tail(ptr noundef %163, ptr noundef %164)
  %165 = load ptr, ptr %2, align 8, !tbaa !5
  %166 = load ptr, ptr %11, align 8, !tbaa !5
  call void @obdeque_add_at_head(ptr noundef %165, ptr noundef %166)
  %167 = load ptr, ptr %2, align 8, !tbaa !5
  %168 = load ptr, ptr %12, align 8, !tbaa !5
  call void @obdeque_add_at_tail(ptr noundef %167, ptr noundef %168)
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  %170 = call zeroext i8 @obdeque_is_empty(ptr noundef %169)
  %171 = zext i8 %170 to i32
  %172 = icmp eq i32 %171, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %158
  br label %175

174:                                              ; preds = %158
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 75, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

175:                                              ; preds = %173
  %176 = load ptr, ptr %2, align 8, !tbaa !5
  %177 = call i64 @obdeque_length(ptr noundef %176)
  %178 = icmp eq i64 %177, 5
  br i1 %178, label %179, label %180

179:                                              ; preds = %175
  br label %181

180:                                              ; preds = %175
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.1, i32 noundef 76, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

181:                                              ; preds = %179
  %182 = load ptr, ptr %2, align 8, !tbaa !5
  %183 = call ptr @obdeque_head_iterator(ptr noundef %182)
  store ptr %183, ptr %5, align 8, !tbaa !5
  %184 = load ptr, ptr %2, align 8, !tbaa !5
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  call void @obdeque_remove_at_iterator(ptr noundef %184, ptr noundef %185)
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = call ptr @ob_release(ptr noundef %186)
  %188 = load ptr, ptr %2, align 8, !tbaa !5
  %189 = call ptr @obdeque_head_iterator(ptr noundef %188)
  store ptr %189, ptr %5, align 8, !tbaa !5
  br label %190

190:                                              ; preds = %199, %181
  %191 = load ptr, ptr %2, align 8, !tbaa !5
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = call ptr @obdeque_obj_at_iterator(ptr noundef %191, ptr noundef %192)
  %194 = call i32 @obtest_id(ptr noundef %193)
  %195 = icmp ne i32 %194, 4
  br i1 %195, label %196, label %197

196:                                              ; preds = %190
  br label %198

197:                                              ; preds = %190
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.1, i32 noundef 85, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

198:                                              ; preds = %196
  br label %199

199:                                              ; preds = %198
  %200 = load ptr, ptr %2, align 8, !tbaa !5
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = call zeroext i8 @obdeque_iterate_next(ptr noundef %200, ptr noundef %201)
  %203 = icmp ne i8 %202, 0
  br i1 %203, label %190, label %204, !llvm.loop !9

204:                                              ; preds = %199
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = call ptr @ob_release(ptr noundef %205)
  %207 = load ptr, ptr %2, align 8, !tbaa !5
  %208 = load ptr, ptr %11, align 8, !tbaa !5
  call void @obdeque_add_at_head(ptr noundef %207, ptr noundef %208)
  %209 = load ptr, ptr %2, align 8, !tbaa !5
  %210 = call ptr @obdeque_copy(ptr noundef %209)
  store ptr %210, ptr %3, align 8, !tbaa !5
  %211 = load ptr, ptr %8, align 8, !tbaa !5
  %212 = call i32 @ob_reference_count(ptr noundef %211)
  %213 = icmp eq i32 %212, 3
  br i1 %213, label %214, label %215

214:                                              ; preds = %204
  br label %216

215:                                              ; preds = %204
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.1, i32 noundef 93, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

216:                                              ; preds = %214
  %217 = load ptr, ptr %2, align 8, !tbaa !5
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = call signext i8 @ob_compare(ptr noundef %217, ptr noundef %218)
  %220 = sext i8 %219 to i32
  %221 = icmp eq i32 %220, 0
  br i1 %221, label %222, label %223

222:                                              ; preds = %216
  br label %224

223:                                              ; preds = %216
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.1, i32 noundef 94, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

224:                                              ; preds = %222
  %225 = load ptr, ptr %2, align 8, !tbaa !5
  %226 = call i64 @ob_hash(ptr noundef %225)
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = call i64 @ob_hash(ptr noundef %227)
  %229 = icmp eq i64 %226, %228
  br i1 %229, label %230, label %231

230:                                              ; preds = %224
  br label %232

231:                                              ; preds = %224
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.1, i32 noundef 95, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

232:                                              ; preds = %230
  %233 = load ptr, ptr %2, align 8, !tbaa !5
  call void @obdeque_sort(ptr noundef %233, i8 noundef signext -1)
  %234 = load ptr, ptr %2, align 8, !tbaa !5
  %235 = call i64 @obdeque_length(ptr noundef %234)
  %236 = icmp eq i64 %235, 5
  br i1 %236, label %237, label %238

237:                                              ; preds = %232
  br label %239

238:                                              ; preds = %232
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.1, i32 noundef 99, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

239:                                              ; preds = %237
  %240 = load ptr, ptr %2, align 8, !tbaa !5
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = call signext i8 @ob_compare(ptr noundef %240, ptr noundef %241)
  %243 = sext i8 %242 to i32
  %244 = icmp eq i32 %243, 2
  br i1 %244, label %245, label %246

245:                                              ; preds = %239
  br label %247

246:                                              ; preds = %239
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.1, i32 noundef 100, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

247:                                              ; preds = %245
  %248 = load ptr, ptr %2, align 8, !tbaa !5
  %249 = call i64 @ob_hash(ptr noundef %248)
  %250 = load ptr, ptr %3, align 8, !tbaa !5
  %251 = call i64 @ob_hash(ptr noundef %250)
  %252 = icmp ne i64 %249, %251
  br i1 %252, label %253, label %254

253:                                              ; preds = %247
  br label %255

254:                                              ; preds = %247
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.1, i32 noundef 101, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

255:                                              ; preds = %253
  store i32 1, ptr %13, align 4, !tbaa !11
  %256 = load ptr, ptr %2, align 8, !tbaa !5
  %257 = call ptr @obdeque_head_iterator(ptr noundef %256)
  store ptr %257, ptr %5, align 8, !tbaa !5
  br label %258

258:                                              ; preds = %270, %255
  %259 = load ptr, ptr %2, align 8, !tbaa !5
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = call ptr @obdeque_obj_at_iterator(ptr noundef %259, ptr noundef %260)
  %262 = call i32 @obtest_id(ptr noundef %261)
  %263 = load i32, ptr %13, align 4, !tbaa !11
  %264 = icmp eq i32 %262, %263
  br i1 %264, label %265, label %266

265:                                              ; preds = %258
  br label %267

266:                                              ; preds = %258
  call void @__assert_fail(ptr noundef @.str.23, ptr noundef @.str.1, i32 noundef 106, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

267:                                              ; preds = %265
  %268 = load i32, ptr %13, align 4, !tbaa !11
  %269 = add i32 %268, 1
  store i32 %269, ptr %13, align 4, !tbaa !11
  br label %270

270:                                              ; preds = %267
  %271 = load ptr, ptr %2, align 8, !tbaa !5
  %272 = load ptr, ptr %5, align 8, !tbaa !5
  %273 = call zeroext i8 @obdeque_iterate_next(ptr noundef %271, ptr noundef %272)
  %274 = icmp ne i8 %273, 0
  br i1 %274, label %258, label %275, !llvm.loop !13

275:                                              ; preds = %270
  %276 = load ptr, ptr %5, align 8, !tbaa !5
  %277 = call ptr @ob_release(ptr noundef %276)
  %278 = load ptr, ptr %2, align 8, !tbaa !5
  %279 = call ptr @ob_release(ptr noundef %278)
  %280 = load ptr, ptr %8, align 8, !tbaa !5
  %281 = call i32 @ob_reference_count(ptr noundef %280)
  %282 = icmp eq i32 %281, 2
  br i1 %282, label %283, label %284

283:                                              ; preds = %275
  br label %285

284:                                              ; preds = %275
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 112, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

285:                                              ; preds = %283
  %286 = load ptr, ptr %3, align 8, !tbaa !5
  %287 = call ptr @obdeque_copy(ptr noundef %286)
  store ptr %287, ptr %2, align 8, !tbaa !5
  %288 = load ptr, ptr %2, align 8, !tbaa !5
  %289 = load ptr, ptr %3, align 8, !tbaa !5
  %290 = call ptr @obdeque_join(ptr noundef %288, ptr noundef %289)
  store ptr %290, ptr %4, align 8, !tbaa !5
  %291 = load ptr, ptr %4, align 8, !tbaa !5
  call void @obdeque_sort(ptr noundef %291, i8 noundef signext 1)
  %292 = load ptr, ptr %4, align 8, !tbaa !5
  %293 = call i64 @obdeque_length(ptr noundef %292)
  %294 = icmp eq i64 %293, 10
  br i1 %294, label %295, label %296

295:                                              ; preds = %285
  br label %297

296:                                              ; preds = %285
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.1, i32 noundef 118, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

297:                                              ; preds = %295
  %298 = load ptr, ptr %8, align 8, !tbaa !5
  %299 = call i32 @ob_reference_count(ptr noundef %298)
  %300 = icmp eq i32 %299, 5
  br i1 %300, label %301, label %302

301:                                              ; preds = %297
  br label %303

302:                                              ; preds = %297
  call void @__assert_fail(ptr noundef @.str.25, ptr noundef @.str.1, i32 noundef 119, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

303:                                              ; preds = %301
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = call ptr @obdeque_tail_iterator(ptr noundef %304)
  store ptr %305, ptr %6, align 8, !tbaa !5
  %306 = load ptr, ptr %4, align 8, !tbaa !5
  call void @obdeque_remove_tail(ptr noundef %306)
  %307 = load ptr, ptr %4, align 8, !tbaa !5
  %308 = load ptr, ptr %6, align 8, !tbaa !5
  %309 = call zeroext i8 @obdeque_iterate_prev(ptr noundef %307, ptr noundef %308)
  %310 = zext i8 %309 to i32
  %311 = icmp eq i32 %310, 0
  br i1 %311, label %312, label %313

312:                                              ; preds = %303
  br label %314

313:                                              ; preds = %303
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str.1, i32 noundef 124, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

314:                                              ; preds = %312
  %315 = load ptr, ptr %4, align 8, !tbaa !5
  %316 = load ptr, ptr %6, align 8, !tbaa !5
  %317 = call zeroext i8 @obdeque_iterate_next(ptr noundef %315, ptr noundef %316)
  %318 = zext i8 %317 to i32
  %319 = icmp eq i32 %318, 0
  br i1 %319, label %320, label %321

320:                                              ; preds = %314
  br label %322

321:                                              ; preds = %314
  call void @__assert_fail(ptr noundef @.str.27, ptr noundef @.str.1, i32 noundef 125, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

322:                                              ; preds = %320
  %323 = load ptr, ptr %6, align 8, !tbaa !5
  %324 = call ptr @ob_release(ptr noundef %323)
  %325 = load ptr, ptr %4, align 8, !tbaa !5
  %326 = call ptr @obdeque_tail_iterator(ptr noundef %325)
  store ptr %326, ptr %6, align 8, !tbaa !5
  %327 = load ptr, ptr %4, align 8, !tbaa !5
  %328 = load ptr, ptr %6, align 8, !tbaa !5
  %329 = load ptr, ptr %8, align 8, !tbaa !5
  call void @obdeque_add_at_iterator(ptr noundef %327, ptr noundef %328, ptr noundef %329)
  %330 = load ptr, ptr %6, align 8, !tbaa !5
  %331 = call ptr @ob_release(ptr noundef %330)
  %332 = load ptr, ptr %4, align 8, !tbaa !5
  %333 = call ptr @obdeque_tail_iterator(ptr noundef %332)
  store ptr %333, ptr %6, align 8, !tbaa !5
  %334 = load ptr, ptr %6, align 8, !tbaa !5
  %335 = call ptr @obdeque_copy_iterator(ptr noundef %334)
  store ptr %335, ptr %7, align 8, !tbaa !5
  %336 = load ptr, ptr %6, align 8, !tbaa !5
  %337 = call ptr @ob_release(ptr noundef %336)
  %338 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %338, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %339

339:                                              ; preds = %365, %322
  %340 = load i32, ptr %13, align 4, !tbaa !11
  %341 = icmp ult i32 %340, 10
  br i1 %341, label %342, label %368

342:                                              ; preds = %339
  %343 = load ptr, ptr %4, align 8, !tbaa !5
  %344 = load ptr, ptr %6, align 8, !tbaa !5
  %345 = call ptr @obdeque_obj_at_iterator(ptr noundef %343, ptr noundef %344)
  %346 = call i32 @obtest_id(ptr noundef %345)
  %347 = load i32, ptr %13, align 4, !tbaa !11
  %348 = udiv i32 %347, 2
  %349 = add i32 %348, 1
  %350 = icmp eq i32 %346, %349
  br i1 %350, label %351, label %352

351:                                              ; preds = %342
  br label %353

352:                                              ; preds = %342
  call void @__assert_fail(ptr noundef @.str.28, ptr noundef @.str.1, i32 noundef 139, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

353:                                              ; preds = %351
  %354 = load i32, ptr %13, align 4, !tbaa !11
  %355 = icmp ne i32 %354, 9
  br i1 %355, label %356, label %364

356:                                              ; preds = %353
  %357 = load ptr, ptr %4, align 8, !tbaa !5
  %358 = load ptr, ptr %6, align 8, !tbaa !5
  %359 = call zeroext i8 @obdeque_iterate_prev(ptr noundef %357, ptr noundef %358)
  %360 = icmp ne i8 %359, 0
  br i1 %360, label %361, label %362

361:                                              ; preds = %356
  br label %363

362:                                              ; preds = %356
  call void @__assert_fail(ptr noundef @.str.29, ptr noundef @.str.1, i32 noundef 140, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

363:                                              ; preds = %361
  br label %364

364:                                              ; preds = %363, %353
  br label %365

365:                                              ; preds = %364
  %366 = load i32, ptr %13, align 4, !tbaa !11
  %367 = add i32 %366, 1
  store i32 %367, ptr %13, align 4, !tbaa !11
  br label %339, !llvm.loop !14

368:                                              ; preds = %339
  %369 = load ptr, ptr %4, align 8, !tbaa !5
  %370 = load ptr, ptr %6, align 8, !tbaa !5
  %371 = call zeroext i8 @obdeque_iterate_prev(ptr noundef %369, ptr noundef %370)
  %372 = zext i8 %371 to i32
  %373 = icmp eq i32 %372, 0
  br i1 %373, label %374, label %375

374:                                              ; preds = %368
  br label %376

375:                                              ; preds = %368
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str.1, i32 noundef 143, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

376:                                              ; preds = %374
  %377 = load ptr, ptr %6, align 8, !tbaa !5
  %378 = call ptr @ob_release(ptr noundef %377)
  %379 = load ptr, ptr %2, align 8, !tbaa !5
  call void @obdeque_clear(ptr noundef %379)
  %380 = load ptr, ptr %3, align 8, !tbaa !5
  call void @obdeque_clear(ptr noundef %380)
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %381

381:                                              ; preds = %386, %376
  %382 = load i32, ptr %13, align 4, !tbaa !11
  %383 = icmp ult i32 %382, 10
  br i1 %383, label %384, label %389

384:                                              ; preds = %381
  %385 = load ptr, ptr %4, align 8, !tbaa !5
  call void @obdeque_remove_head(ptr noundef %385)
  br label %386

386:                                              ; preds = %384
  %387 = load i32, ptr %13, align 4, !tbaa !11
  %388 = add i32 %387, 1
  store i32 %388, ptr %13, align 4, !tbaa !11
  br label %381, !llvm.loop !15

389:                                              ; preds = %381
  %390 = load ptr, ptr %4, align 8, !tbaa !5
  %391 = call zeroext i8 @obdeque_is_empty(ptr noundef %390)
  %392 = zext i8 %391 to i32
  %393 = icmp ne i32 %392, 0
  br i1 %393, label %394, label %395

394:                                              ; preds = %389
  br label %396

395:                                              ; preds = %389
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str.1, i32 noundef 154, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

396:                                              ; preds = %394
  %397 = load ptr, ptr %4, align 8, !tbaa !5
  %398 = call i64 @obdeque_length(ptr noundef %397)
  %399 = icmp eq i64 %398, 0
  br i1 %399, label %400, label %401

400:                                              ; preds = %396
  br label %402

401:                                              ; preds = %396
  call void @__assert_fail(ptr noundef @.str.31, ptr noundef @.str.1, i32 noundef 155, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

402:                                              ; preds = %400
  %403 = load ptr, ptr %8, align 8, !tbaa !5
  %404 = call i32 @ob_reference_count(ptr noundef %403)
  %405 = icmp eq i32 %404, 1
  br i1 %405, label %406, label %407

406:                                              ; preds = %402
  br label %408

407:                                              ; preds = %402
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 156, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

408:                                              ; preds = %406
  %409 = load ptr, ptr %2, align 8, !tbaa !5
  %410 = call ptr @ob_release(ptr noundef %409)
  %411 = load ptr, ptr %3, align 8, !tbaa !5
  %412 = call ptr @ob_release(ptr noundef %411)
  %413 = load ptr, ptr %4, align 8, !tbaa !5
  %414 = call ptr @ob_release(ptr noundef %413)
  %415 = load ptr, ptr %12, align 8, !tbaa !5
  %416 = call ptr @ob_release(ptr noundef %415)
  %417 = load ptr, ptr %11, align 8, !tbaa !5
  %418 = call ptr @ob_release(ptr noundef %417)
  %419 = load ptr, ptr %10, align 8, !tbaa !5
  %420 = call ptr @ob_release(ptr noundef %419)
  %421 = load ptr, ptr %9, align 8, !tbaa !5
  %422 = call ptr @ob_release(ptr noundef %421)
  %423 = load ptr, ptr %8, align 8, !tbaa !5
  %424 = call ptr @ob_release(ptr noundef %423)
  %425 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  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 @obdeque_new() #2

declare ptr @obtest_new(i32 noundef) #2

declare zeroext i8 @obdeque_is_empty(ptr noundef) #2

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

declare i64 @obdeque_length(ptr noundef) #2

declare ptr @obdeque_head_iterator(ptr noundef) #2

declare ptr @obdeque_tail_iterator(ptr noundef) #2

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

declare i32 @ob_reference_count(ptr noundef) #2

declare i32 @obtest_id(ptr noundef) #2

declare ptr @obdeque_obj_at_head(ptr noundef) #2

declare ptr @obdeque_obj_at_tail(ptr noundef) #2

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

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

declare void @obdeque_remove_tail(ptr noundef) #2

declare ptr @ob_release(ptr noundef) #2

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

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

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

declare ptr @obdeque_copy(ptr noundef) #2

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

declare i64 @ob_hash(ptr noundef) #2

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

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

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

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

declare ptr @obdeque_copy_iterator(ptr noundef) #2

declare void @obdeque_clear(ptr noundef) #2

declare void @obdeque_remove_head(ptr noundef) #2

declare i32 @printf(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 = { 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 = { 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 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


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

@.str = external hidden unnamed_addr constant [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [79 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call ptr @obdeque_new() #4
  %2 = tail call ptr @obtest_new(i32 noundef 1) #4
  %3 = tail call ptr @obtest_new(i32 noundef 2) #4
  %4 = tail call ptr @obtest_new(i32 noundef 3) #4
  %5 = tail call ptr @obtest_new(i32 noundef 4) #4
  %6 = tail call ptr @obtest_new(i32 noundef 5) #4
  %7 = tail call zeroext i8 @obdeque_is_empty(ptr noundef %1) #4
  %.not = icmp eq i8 %7, 0
  br i1 %.not, label %8, label %9

8:                                                ; preds = %0
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 29, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

9:                                                ; preds = %0
  %10 = tail call i64 @obdeque_length(ptr noundef %1) #4
  %11 = icmp eq i64 %10, 0
  br i1 %11, label %13, label %12

12:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 30, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

13:                                               ; preds = %9
  %14 = tail call ptr @obdeque_head_iterator(ptr noundef %1) #4
  %15 = icmp eq ptr %14, null
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 31, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

17:                                               ; preds = %13
  %18 = tail call ptr @obdeque_tail_iterator(ptr noundef %1) #4
  %19 = icmp eq ptr %18, null
  br i1 %19, label %21, label %20

20:                                               ; preds = %17
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 32, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

21:                                               ; preds = %17
  tail call void @obdeque_add_at_head(ptr noundef %1, ptr noundef %2) #4
  %22 = tail call zeroext i8 @obdeque_is_empty(ptr noundef %1) #4
  %23 = icmp eq i8 %22, 0
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 37, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

25:                                               ; preds = %21
  %26 = tail call i64 @obdeque_length(ptr noundef %1) #4
  %27 = icmp eq i64 %26, 1
  br i1 %27, label %29, label %28

28:                                               ; preds = %25
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 38, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

29:                                               ; preds = %25
  %30 = tail call i32 @ob_reference_count(ptr noundef %2) #4
  %31 = icmp eq i32 %30, 2
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 39, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

33:                                               ; preds = %29
  %34 = tail call ptr @obdeque_obj_at_head(ptr noundef %1) #4
  %35 = tail call i32 @obtest_id(ptr noundef %34) #4
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 40, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

38:                                               ; preds = %33
  %39 = tail call ptr @obdeque_obj_at_tail(ptr noundef %1) #4
  %40 = tail call i32 @obtest_id(ptr noundef %39) #4
  %41 = icmp eq i32 %40, 1
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 41, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

43:                                               ; preds = %38
  %44 = tail call ptr @obdeque_head_iterator(ptr noundef %1) #4
  %45 = tail call ptr @obdeque_tail_iterator(ptr noundef %1) #4
  %.not126 = icmp eq ptr %44, null
  br i1 %.not126, label %46, label %47

46:                                               ; preds = %43
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 46, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

47:                                               ; preds = %43
  %.not127 = icmp eq ptr %45, null
  br i1 %.not127, label %48, label %49

48:                                               ; preds = %47
  tail call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 47, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

49:                                               ; preds = %47
  %50 = tail call ptr @obdeque_obj_at_iterator(ptr noundef %1, ptr noundef nonnull %44) #4
  %51 = tail call i32 @obtest_id(ptr noundef %50) #4
  %52 = icmp eq i32 %51, 1
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, i32 noundef 48, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

54:                                               ; preds = %49
  %55 = tail call ptr @obdeque_obj_at_iterator(ptr noundef %1, ptr noundef nonnull %45) #4
  %56 = tail call i32 @obtest_id(ptr noundef %55) #4
  %57 = icmp eq i32 %56, 1
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 49, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

59:                                               ; preds = %54
  %60 = tail call zeroext i8 @obdeque_find_obj(ptr noundef %1, ptr noundef %2) #4
  %.not128 = icmp eq i8 %60, 0
  br i1 %.not128, label %61, label %62

61:                                               ; preds = %59
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 51, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

62:                                               ; preds = %59
  tail call void @obdeque_remove_tail(ptr noundef %1) #4
  %63 = tail call i32 @ob_reference_count(ptr noundef %2) #4
  %64 = icmp eq i32 %63, 2
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 57, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

66:                                               ; preds = %62
  %67 = tail call ptr @ob_release(ptr noundef nonnull %44) #4
  %68 = tail call ptr @ob_release(ptr noundef nonnull %45) #4
  %69 = tail call i32 @ob_reference_count(ptr noundef %2) #4
  %70 = icmp eq i32 %69, 1
  br i1 %70, label %72, label %71

71:                                               ; preds = %66
  tail call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.1, i32 noundef 60, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

72:                                               ; preds = %66
  %73 = tail call zeroext i8 @obdeque_is_empty(ptr noundef %1) #4
  %.not129 = icmp eq i8 %73, 0
  br i1 %.not129, label %74, label %75

74:                                               ; preds = %72
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 63, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

75:                                               ; preds = %72
  %76 = tail call i64 @obdeque_length(ptr noundef %1) #4
  %77 = icmp eq i64 %76, 0
  br i1 %77, label %79, label %78

78:                                               ; preds = %75
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 64, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

79:                                               ; preds = %75
  %80 = tail call ptr @obdeque_head_iterator(ptr noundef %1) #4
  %81 = icmp eq ptr %80, null
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 65, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

83:                                               ; preds = %79
  %84 = tail call ptr @obdeque_tail_iterator(ptr noundef %1) #4
  %85 = icmp eq ptr %84, null
  br i1 %85, label %87, label %86

86:                                               ; preds = %83
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 66, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

87:                                               ; preds = %83
  tail call void @obdeque_add_at_tail(ptr noundef %1, ptr noundef %2) #4
  tail call void @obdeque_add_at_head(ptr noundef %1, ptr noundef %3) #4
  tail call void @obdeque_add_at_tail(ptr noundef %1, ptr noundef %4) #4
  tail call void @obdeque_add_at_head(ptr noundef %1, ptr noundef %5) #4
  tail call void @obdeque_add_at_tail(ptr noundef %1, ptr noundef %6) #4
  %88 = tail call zeroext i8 @obdeque_is_empty(ptr noundef %1) #4
  %89 = icmp eq i8 %88, 0
  br i1 %89, label %91, label %90

90:                                               ; preds = %87
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 75, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

91:                                               ; preds = %87
  %92 = tail call i64 @obdeque_length(ptr noundef %1) #4
  %93 = icmp eq i64 %92, 5
  br i1 %93, label %95, label %94

94:                                               ; preds = %91
  tail call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, i32 noundef 76, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

95:                                               ; preds = %91
  %96 = tail call ptr @obdeque_head_iterator(ptr noundef %1) #4
  tail call void @obdeque_remove_at_iterator(ptr noundef %1, ptr noundef %96) #4
  %97 = tail call ptr @ob_release(ptr noundef %96) #4
  %98 = tail call ptr @obdeque_head_iterator(ptr noundef %1) #4
  br label %99

99:                                               ; preds = %103, %95
  %100 = tail call ptr @obdeque_obj_at_iterator(ptr noundef %1, ptr noundef %98) #4
  %101 = tail call i32 @obtest_id(ptr noundef %100) #4
  %.not130 = icmp eq i32 %101, 4
  br i1 %.not130, label %102, label %103

102:                                              ; preds = %99
  tail call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.1, i32 noundef 85, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

103:                                              ; preds = %99
  %104 = tail call zeroext i8 @obdeque_iterate_next(ptr noundef %1, ptr noundef %98) #4
  %.not131 = icmp eq i8 %104, 0
  br i1 %.not131, label %105, label %99, !llvm.loop !5

105:                                              ; preds = %103
  %106 = tail call ptr @ob_release(ptr noundef %98) #4
  tail call void @obdeque_add_at_head(ptr noundef %1, ptr noundef %5) #4
  %107 = tail call ptr @obdeque_copy(ptr noundef %1) #4
  %108 = tail call i32 @ob_reference_count(ptr noundef %2) #4
  %109 = icmp eq i32 %108, 3
  br i1 %109, label %111, label %110

110:                                              ; preds = %105
  tail call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.1, i32 noundef 93, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

111:                                              ; preds = %105
  %112 = tail call signext i8 @ob_compare(ptr noundef %1, ptr noundef %107) #4
  %113 = icmp eq i8 %112, 0
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  tail call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.1, i32 noundef 94, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

115:                                              ; preds = %111
  %116 = tail call i64 @ob_hash(ptr noundef %1) #4
  %117 = tail call i64 @ob_hash(ptr noundef %107) #4
  %118 = icmp eq i64 %116, %117
  br i1 %118, label %120, label %119

119:                                              ; preds = %115
  tail call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.1, i32 noundef 95, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

120:                                              ; preds = %115
  tail call void @obdeque_sort(ptr noundef %1, i8 noundef signext -1) #4
  %121 = tail call i64 @obdeque_length(ptr noundef %1) #4
  %122 = icmp eq i64 %121, 5
  br i1 %122, label %124, label %123

123:                                              ; preds = %120
  tail call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, i32 noundef 99, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

124:                                              ; preds = %120
  %125 = tail call signext i8 @ob_compare(ptr noundef %1, ptr noundef %107) #4
  %126 = icmp eq i8 %125, 2
  br i1 %126, label %128, label %127

127:                                              ; preds = %124
  tail call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.1, i32 noundef 100, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

128:                                              ; preds = %124
  %129 = tail call i64 @ob_hash(ptr noundef %1) #4
  %130 = tail call i64 @ob_hash(ptr noundef %107) #4
  %.not132 = icmp eq i64 %129, %130
  br i1 %.not132, label %131, label %132

131:                                              ; preds = %128
  tail call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.1, i32 noundef 101, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

132:                                              ; preds = %128
  %133 = tail call ptr @obdeque_head_iterator(ptr noundef %1) #4
  br label %134

134:                                              ; preds = %139, %132
  %.0 = phi i32 [ 1, %132 ], [ %140, %139 ]
  %135 = tail call ptr @obdeque_obj_at_iterator(ptr noundef %1, ptr noundef %133) #4
  %136 = tail call i32 @obtest_id(ptr noundef %135) #4
  %137 = icmp eq i32 %136, %.0
  br i1 %137, label %139, label %138

138:                                              ; preds = %134
  tail call void @__assert_fail(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.1, i32 noundef 106, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

139:                                              ; preds = %134
  %140 = add i32 %.0, 1
  %141 = tail call zeroext i8 @obdeque_iterate_next(ptr noundef %1, ptr noundef %133) #4
  %.not133 = icmp eq i8 %141, 0
  br i1 %.not133, label %142, label %134, !llvm.loop !7

142:                                              ; preds = %139
  %143 = tail call ptr @ob_release(ptr noundef %133) #4
  %144 = tail call ptr @ob_release(ptr noundef %1) #4
  %145 = tail call i32 @ob_reference_count(ptr noundef %2) #4
  %146 = icmp eq i32 %145, 2
  br i1 %146, label %148, label %147

147:                                              ; preds = %142
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 112, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

148:                                              ; preds = %142
  %149 = tail call ptr @obdeque_copy(ptr noundef %107) #4
  %150 = tail call ptr @obdeque_join(ptr noundef %149, ptr noundef %107) #4
  tail call void @obdeque_sort(ptr noundef %150, i8 noundef signext 1) #4
  %151 = tail call i64 @obdeque_length(ptr noundef %150) #4
  %152 = icmp eq i64 %151, 10
  br i1 %152, label %154, label %153

153:                                              ; preds = %148
  tail call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.1, i32 noundef 118, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

154:                                              ; preds = %148
  %155 = tail call i32 @ob_reference_count(ptr noundef %2) #4
  %156 = icmp eq i32 %155, 5
  br i1 %156, label %158, label %157

157:                                              ; preds = %154
  tail call void @__assert_fail(ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.1, i32 noundef 119, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

158:                                              ; preds = %154
  %159 = tail call ptr @obdeque_tail_iterator(ptr noundef %150) #4
  tail call void @obdeque_remove_tail(ptr noundef %150) #4
  %160 = tail call zeroext i8 @obdeque_iterate_prev(ptr noundef %150, ptr noundef %159) #4
  %161 = icmp eq i8 %160, 0
  br i1 %161, label %163, label %162

162:                                              ; preds = %158
  tail call void @__assert_fail(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.1, i32 noundef 124, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

163:                                              ; preds = %158
  %164 = tail call zeroext i8 @obdeque_iterate_next(ptr noundef %150, ptr noundef %159) #4
  %165 = icmp eq i8 %164, 0
  br i1 %165, label %167, label %166

166:                                              ; preds = %163
  tail call void @__assert_fail(ptr noundef nonnull @.str.27, ptr noundef nonnull @.str.1, i32 noundef 125, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

167:                                              ; preds = %163
  %168 = tail call ptr @ob_release(ptr noundef %159) #4
  %169 = tail call ptr @obdeque_tail_iterator(ptr noundef %150) #4
  tail call void @obdeque_add_at_iterator(ptr noundef %150, ptr noundef %169, ptr noundef %2) #4
  %170 = tail call ptr @ob_release(ptr noundef %169) #4
  %171 = tail call ptr @obdeque_tail_iterator(ptr noundef %150) #4
  %172 = tail call ptr @obdeque_copy_iterator(ptr noundef %171) #4
  %173 = tail call ptr @ob_release(ptr noundef %171) #4
  %174 = tail call ptr @obdeque_obj_at_iterator(ptr noundef %150, ptr noundef %172) #4
  %175 = tail call i32 @obtest_id(ptr noundef %174) #4
  %176 = icmp eq i32 %175, 1
  br i1 %176, label %178, label %177

177:                                              ; preds = %229, %223, %217, %211, %205, %199, %193, %187, %181, %167
  tail call void @__assert_fail(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str.1, i32 noundef 139, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

178:                                              ; preds = %167
  %179 = tail call zeroext i8 @obdeque_iterate_prev(ptr noundef %150, ptr noundef %172) #4
  %.not136 = icmp eq i8 %179, 0
  br i1 %.not136, label %180, label %181

180:                                              ; preds = %227, %221, %215, %209, %203, %197, %191, %185, %178
  tail call void @__assert_fail(ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.1, i32 noundef 140, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

181:                                              ; preds = %178
  %182 = tail call ptr @obdeque_obj_at_iterator(ptr noundef %150, ptr noundef %172) #4
  %183 = tail call i32 @obtest_id(ptr noundef %182) #4
  %184 = icmp eq i32 %183, 1
  br i1 %184, label %185, label %177

185:                                              ; preds = %181
  %186 = tail call zeroext i8 @obdeque_iterate_prev(ptr noundef %150, ptr noundef %172) #4
  %.not136.1 = icmp eq i8 %186, 0
  br i1 %.not136.1, label %180, label %187

187:                                              ; preds = %185
  %188 = tail call ptr @obdeque_obj_at_iterator(ptr noundef %150, ptr noundef %172) #4
  %189 = tail call i32 @obtest_id(ptr noundef %188) #4
  %190 = icmp eq i32 %189, 2
  br i1 %190, label %191, label %177

191:                                              ; preds = %187
  %192 = tail call zeroext i8 @obdeque_iterate_prev(ptr noundef %150, ptr noundef %172) #4
  %.not136.2 = icmp eq i8 %192, 0
  br i1 %.not136.2, label %180, label %193

193:                                              ; preds = %191
  %194 = tail call ptr @obdeque_obj_at_iterator(ptr noundef %150, ptr noundef %172) #4
  %195 = tail call i32 @obtest_id(ptr noundef %194) #4
  %196 = icmp eq i32 %195, 2
  br i1 %196, label %197, label %177

197:                                              ; preds = %193
  %198 = tail call zeroext i8 @obdeque_iterate_prev(ptr noundef %150, ptr noundef %172) #4
  %.not136.3 = icmp eq i8 %198, 0
  br i1 %.not136.3, label %180, label %199

199:                                              ; preds = %197
  %200 = tail call ptr @obdeque_obj_at_iterator(ptr noundef %150, ptr noundef %172) #4
  %201 = tail call i32 @obtest_id(ptr noundef %200) #4
  %202 = icmp eq i32 %201, 3
  br i1 %202, label %203, label %177

203:                                              ; preds = %199
  %204 = tail call zeroext i8 @obdeque_iterate_prev(ptr noundef %150, ptr noundef %172) #4
  %.not136.4 = icmp eq i8 %204, 0
  br i1 %.not136.4, label %180, label %205

205:                                              ; preds = %203
  %206 = tail call ptr @obdeque_obj_at_iterator(ptr noundef %150, ptr noundef %172) #4
  %207 = tail call i32 @obtest_id(ptr noundef %206) #4
  %208 = icmp eq i32 %207, 3
  br i1 %208, label %209, label %177

209:                                              ; preds = %205
  %210 = tail call zeroext i8 @obdeque_iterate_prev(ptr noundef %150, ptr noundef %172) #4
  %.not136.5 = icmp eq i8 %210, 0
  br i1 %.not136.5, label %180, label %211

211:                                              ; preds = %209
  %212 = tail call ptr @obdeque_obj_at_iterator(ptr noundef %150, ptr noundef %172) #4
  %213 = tail call i32 @obtest_id(ptr noundef %212) #4
  %214 = icmp eq i32 %213, 4
  br i1 %214, label %215, label %177

215:                                              ; preds = %211
  %216 = tail call zeroext i8 @obdeque_iterate_prev(ptr noundef %150, ptr noundef %172) #4
  %.not136.6 = icmp eq i8 %216, 0
  br i1 %.not136.6, label %180, label %217

217:                                              ; preds = %215
  %218 = tail call ptr @obdeque_obj_at_iterator(ptr noundef %150, ptr noundef %172) #4
  %219 = tail call i32 @obtest_id(ptr noundef %218) #4
  %220 = icmp eq i32 %219, 4
  br i1 %220, label %221, label %177

221:                                              ; preds = %217
  %222 = tail call zeroext i8 @obdeque_iterate_prev(ptr noundef %150, ptr noundef %172) #4
  %.not136.7 = icmp eq i8 %222, 0
  br i1 %.not136.7, label %180, label %223

223:                                              ; preds = %221
  %224 = tail call ptr @obdeque_obj_at_iterator(ptr noundef %150, ptr noundef %172) #4
  %225 = tail call i32 @obtest_id(ptr noundef %224) #4
  %226 = icmp eq i32 %225, 5
  br i1 %226, label %227, label %177

227:                                              ; preds = %223
  %228 = tail call zeroext i8 @obdeque_iterate_prev(ptr noundef %150, ptr noundef %172) #4
  %.not136.8 = icmp eq i8 %228, 0
  br i1 %.not136.8, label %180, label %229

229:                                              ; preds = %227
  %230 = tail call ptr @obdeque_obj_at_iterator(ptr noundef %150, ptr noundef %172) #4
  %231 = tail call i32 @obtest_id(ptr noundef %230) #4
  %232 = icmp eq i32 %231, 5
  br i1 %232, label %233, label %177

233:                                              ; preds = %229
  %234 = tail call zeroext i8 @obdeque_iterate_prev(ptr noundef %150, ptr noundef %172) #4
  %235 = icmp eq i8 %234, 0
  br i1 %235, label %237, label %236

236:                                              ; preds = %233
  tail call void @__assert_fail(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.1, i32 noundef 143, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

237:                                              ; preds = %233
  %238 = tail call ptr @ob_release(ptr noundef %172) #4
  tail call void @obdeque_clear(ptr noundef %149) #4
  tail call void @obdeque_clear(ptr noundef %107) #4
  tail call void @obdeque_remove_head(ptr noundef %150) #4
  tail call void @obdeque_remove_head(ptr noundef %150) #4
  tail call void @obdeque_remove_head(ptr noundef %150) #4
  tail call void @obdeque_remove_head(ptr noundef %150) #4
  tail call void @obdeque_remove_head(ptr noundef %150) #4
  tail call void @obdeque_remove_head(ptr noundef %150) #4
  tail call void @obdeque_remove_head(ptr noundef %150) #4
  tail call void @obdeque_remove_head(ptr noundef %150) #4
  tail call void @obdeque_remove_head(ptr noundef %150) #4
  tail call void @obdeque_remove_head(ptr noundef %150) #4
  %239 = tail call zeroext i8 @obdeque_is_empty(ptr noundef %150) #4
  %.not134 = icmp eq i8 %239, 0
  br i1 %.not134, label %240, label %241

240:                                              ; preds = %237
  tail call void @__assert_fail(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str.1, i32 noundef 154, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

241:                                              ; preds = %237
  %242 = tail call i64 @obdeque_length(ptr noundef %150) #4
  %243 = icmp eq i64 %242, 0
  br i1 %243, label %245, label %244

244:                                              ; preds = %241
  tail call void @__assert_fail(ptr noundef nonnull @.str.31, ptr noundef nonnull @.str.1, i32 noundef 155, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

245:                                              ; preds = %241
  %246 = tail call i32 @ob_reference_count(ptr noundef %2) #4
  %247 = icmp eq i32 %246, 1
  br i1 %247, label %249, label %248

248:                                              ; preds = %245
  tail call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.1, i32 noundef 156, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable

249:                                              ; preds = %245
  %250 = tail call ptr @ob_release(ptr noundef %149) #4
  %251 = tail call ptr @ob_release(ptr noundef %107) #4
  %252 = tail call ptr @ob_release(ptr noundef %150) #4
  %253 = tail call ptr @ob_release(ptr noundef %6) #4
  %254 = tail call ptr @ob_release(ptr noundef %5) #4
  %255 = tail call ptr @ob_release(ptr noundef %4) #4
  %256 = tail call ptr @ob_release(ptr noundef %3) #4
  %257 = tail call ptr @ob_release(ptr noundef %2) #4
  %258 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32)
  ret i32 0
}

declare ptr @obdeque_new() local_unnamed_addr #1

declare ptr @obtest_new(i32 noundef) local_unnamed_addr #1

declare zeroext i8 @obdeque_is_empty(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 #2

declare i64 @obdeque_length(ptr noundef) local_unnamed_addr #1

declare ptr @obdeque_head_iterator(ptr noundef) local_unnamed_addr #1

declare ptr @obdeque_tail_iterator(ptr noundef) local_unnamed_addr #1

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

declare i32 @ob_reference_count(ptr noundef) local_unnamed_addr #1

declare i32 @obtest_id(ptr noundef) local_unnamed_addr #1

declare ptr @obdeque_obj_at_head(ptr noundef) local_unnamed_addr #1

declare ptr @obdeque_obj_at_tail(ptr noundef) local_unnamed_addr #1

declare ptr @obdeque_obj_at_iterator(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @obdeque_remove_tail(ptr noundef) local_unnamed_addr #1

declare ptr @ob_release(ptr noundef) local_unnamed_addr #1

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

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

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

declare ptr @obdeque_copy(ptr noundef) local_unnamed_addr #1

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

declare i64 @ob_hash(ptr noundef) local_unnamed_addr #1

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

declare ptr @obdeque_join(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

declare ptr @obdeque_copy_iterator(ptr noundef) local_unnamed_addr #1

declare void @obdeque_clear(ptr noundef) local_unnamed_addr #1

declare void @obdeque_remove_head(ptr noundef) local_unnamed_addr #1

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

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 = { 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 #3 = { 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 #4 = { nounwind }
attributes #5 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


; Effective O3 passes: GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass