; LLVM IR from recp/ds :: test/src (test_flist)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.test_status_t = type { ptr, i32 }
%struct.FList = type { ptr, ptr, ptr, ptr, i64 }
%struct.FListItem = type { ptr, ptr }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [94 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_flist() #0 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %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 ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 200, ptr %4, align 4, !tbaa !5
  %17 = call ptr @flist_new(ptr noundef null)
  store ptr %17, ptr %2, align 8, !tbaa !9
  %18 = load ptr, ptr %2, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct.FList, ptr %18, i32 0, i32 3
  store ptr @test_flist_onfree, ptr %19, align 8, !tbaa !11
  %20 = call i64 @time(ptr noundef null) #5
  %21 = trunc i64 %20 to i32
  call void @srand(i32 noundef %21) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %317, %0
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %26, label %320

26:                                               ; preds = %22
  %27 = call noalias ptr @malloc(i64 noundef 4) #6
  store ptr %27, ptr %3, align 8, !tbaa !9
  %28 = call double @drand48() #5
  %29 = fptrunc double %28 to float
  %30 = load ptr, ptr %3, align 8, !tbaa !9
  store float %29, ptr %30, align 4, !tbaa !14
  %31 = load i32, ptr %5, align 4, !tbaa !5
  %32 = srem i32 %31, 2
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %63

34:                                               ; preds = %26
  %35 = load ptr, ptr %2, align 8, !tbaa !9
  %36 = load ptr, ptr %3, align 8, !tbaa !9
  call void @flist_insert(ptr noundef %35, ptr noundef %36)
  br label %37

37:                                               ; preds = %34
  %38 = load ptr, ptr %2, align 8, !tbaa !9
  %39 = getelementptr inbounds %struct.FList, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !16
  %41 = icmp ne ptr %40, null
  br i1 %41, label %47, label %42

42:                                               ; preds = %37
  %43 = load ptr, ptr @stderr, align 8, !tbaa !9
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 37, ptr noundef @.str.2) #5
  %45 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %45, align 8, !tbaa !17
  %46 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %46, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %324

47:                                               ; preds = %37
  br label %48

48:                                               ; preds = %47
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49
  %51 = load ptr, ptr %2, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.FList, ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !20
  %54 = icmp ne ptr %53, null
  br i1 %54, label %60, label %55

55:                                               ; preds = %50
  %56 = load ptr, ptr @stderr, align 8, !tbaa !9
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 38, ptr noundef @.str.3) #5
  %58 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %58, align 8, !tbaa !17
  %59 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %59, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %324

60:                                               ; preds = %50
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  br label %92

63:                                               ; preds = %26
  %64 = load ptr, ptr %2, align 8, !tbaa !9
  %65 = load ptr, ptr %3, align 8, !tbaa !9
  call void @flist_append(ptr noundef %64, ptr noundef %65)
  br label %66

66:                                               ; preds = %63
  %67 = load ptr, ptr %2, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.FList, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !16
  %70 = icmp ne ptr %69, null
  br i1 %70, label %76, label %71

71:                                               ; preds = %66
  %72 = load ptr, ptr @stderr, align 8, !tbaa !9
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 44, ptr noundef @.str.2) #5
  %74 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %74, align 8, !tbaa !17
  %75 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %75, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %324

76:                                               ; preds = %66
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  %80 = load ptr, ptr %2, align 8, !tbaa !9
  %81 = getelementptr inbounds %struct.FList, ptr %80, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !20
  %83 = icmp ne ptr %82, null
  br i1 %83, label %89, label %84

84:                                               ; preds = %79
  %85 = load ptr, ptr @stderr, align 8, !tbaa !9
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 45, ptr noundef @.str.3) #5
  %87 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %87, align 8, !tbaa !17
  %88 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %88, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %324

89:                                               ; preds = %79
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91, %62
  br label %93

93:                                               ; preds = %92
  %94 = load ptr, ptr %2, align 8, !tbaa !9
  %95 = load ptr, ptr %3, align 8, !tbaa !9
  %96 = call zeroext i1 @flist_contains(ptr noundef %94, ptr noundef %95)
  br i1 %96, label %102, label %97

97:                                               ; preds = %93
  %98 = load ptr, ptr @stderr, align 8, !tbaa !9
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 49, ptr noundef @.str.4) #5
  %100 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %100, align 8, !tbaa !17
  %101 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %101, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %324

102:                                              ; preds = %93
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %5, align 4, !tbaa !5
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %122

107:                                              ; preds = %104
  %108 = load ptr, ptr %2, align 8, !tbaa !9
  %109 = load ptr, ptr %3, align 8, !tbaa !9
  call void @flist_remove_by(ptr noundef %108, ptr noundef %109)
  br label %110

110:                                              ; preds = %107
  %111 = load ptr, ptr %2, align 8, !tbaa !9
  %112 = load ptr, ptr %3, align 8, !tbaa !9
  %113 = call zeroext i1 @flist_contains(ptr noundef %111, ptr noundef %112)
  br i1 %113, label %114, label %119

114:                                              ; preds = %110
  %115 = load ptr, ptr @stderr, align 8, !tbaa !9
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 54, ptr noundef @.str.5) #5
  %117 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %117, align 8, !tbaa !17
  %118 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %118, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %324

119:                                              ; preds = %110
  br label %120

120:                                              ; preds = %119
  br label %121

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121, %104
  %123 = load i32, ptr %5, align 4, !tbaa !5
  %124 = icmp eq i32 %123, 10
  br i1 %124, label %125, label %163

125:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  br label %126

126:                                              ; preds = %125
  %127 = load ptr, ptr %2, align 8, !tbaa !9
  %128 = call ptr @flist_last(ptr noundef %127)
  %129 = load ptr, ptr %2, align 8, !tbaa !9
  %130 = call ptr @flist_at(ptr noundef %129, i32 noundef 9)
  %131 = icmp eq ptr %128, %130
  br i1 %131, label %137, label %132

132:                                              ; preds = %126
  %133 = load ptr, ptr @stderr, align 8, !tbaa !9
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 62, ptr noundef @.str.6) #5
  %135 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %135, align 8, !tbaa !17
  %136 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %136, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %160

137:                                              ; preds = %126
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  %140 = load ptr, ptr %2, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.FList, ptr %140, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !16
  store ptr %142, ptr %7, align 8, !tbaa !9
  %143 = load ptr, ptr %7, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.FListItem, ptr %143, i32 0, i32 1
  %145 = load ptr, ptr %144, align 8, !tbaa !21
  store ptr %145, ptr %8, align 8, !tbaa !9
  %146 = load ptr, ptr %2, align 8, !tbaa !9
  %147 = load ptr, ptr %7, align 8, !tbaa !9
  call void @flist_remove(ptr noundef %146, ptr noundef %147)
  br label %148

148:                                              ; preds = %139
  %149 = load ptr, ptr %2, align 8, !tbaa !9
  %150 = load ptr, ptr %8, align 8, !tbaa !9
  %151 = call zeroext i1 @flist_contains(ptr noundef %149, ptr noundef %150)
  br i1 %151, label %152, label %157

152:                                              ; preds = %148
  %153 = load ptr, ptr @stderr, align 8, !tbaa !9
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %153, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 67, ptr noundef @.str.7) #5
  %155 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %155, align 8, !tbaa !17
  %156 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %156, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %160

157:                                              ; preds = %148
  br label %158

158:                                              ; preds = %157
  br label %159

159:                                              ; preds = %158
  store i32 0, ptr %6, align 4
  br label %160

160:                                              ; preds = %159, %152, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %161 = load i32, ptr %6, align 4
  switch i32 %161, label %324 [
    i32 0, label %162
  ]

162:                                              ; preds = %160
  br label %163

163:                                              ; preds = %162, %122
  %164 = load i32, ptr %5, align 4, !tbaa !5
  %165 = icmp eq i32 %164, 20
  br i1 %165, label %166, label %214

166:                                              ; preds = %163
  %167 = load ptr, ptr %2, align 8, !tbaa !9
  %168 = getelementptr inbounds %struct.FList, ptr %167, i32 0, i32 1
  %169 = load ptr, ptr %168, align 8, !tbaa !20
  %170 = icmp ne ptr %169, null
  br i1 %170, label %171, label %214

171:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %172 = load ptr, ptr %2, align 8, !tbaa !9
  %173 = getelementptr inbounds %struct.FList, ptr %172, i32 0, i32 1
  %174 = load ptr, ptr %173, align 8, !tbaa !20
  store ptr %174, ptr %9, align 8, !tbaa !9
  %175 = load ptr, ptr %9, align 8, !tbaa !9
  %176 = getelementptr inbounds %struct.FListItem, ptr %175, i32 0, i32 1
  %177 = load ptr, ptr %176, align 8, !tbaa !21
  store ptr %177, ptr %10, align 8, !tbaa !9
  %178 = load ptr, ptr %2, align 8, !tbaa !9
  %179 = load ptr, ptr %9, align 8, !tbaa !9
  call void @flist_remove(ptr noundef %178, ptr noundef %179)
  %180 = load ptr, ptr %2, align 8, !tbaa !9
  %181 = getelementptr inbounds %struct.FList, ptr %180, i32 0, i32 0
  %182 = load ptr, ptr %181, align 8, !tbaa !16
  %183 = icmp ne ptr %182, null
  br i1 %183, label %184, label %198

184:                                              ; preds = %171
  br label %185

185:                                              ; preds = %184
  %186 = load ptr, ptr %2, align 8, !tbaa !9
  %187 = getelementptr inbounds %struct.FList, ptr %186, i32 0, i32 1
  %188 = load ptr, ptr %187, align 8, !tbaa !20
  %189 = icmp ne ptr %188, null
  br i1 %189, label %195, label %190

190:                                              ; preds = %185
  %191 = load ptr, ptr @stderr, align 8, !tbaa !9
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 80, ptr noundef @.str.3) #5
  %193 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %193, align 8, !tbaa !17
  %194 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %194, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %211

195:                                              ; preds = %185
  br label %196

196:                                              ; preds = %195
  br label %197

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197, %171
  br label %199

199:                                              ; preds = %198
  %200 = load ptr, ptr %2, align 8, !tbaa !9
  %201 = load ptr, ptr %10, align 8, !tbaa !9
  %202 = call zeroext i1 @flist_contains(ptr noundef %200, ptr noundef %201)
  br i1 %202, label %203, label %208

203:                                              ; preds = %199
  %204 = load ptr, ptr @stderr, align 8, !tbaa !9
  %205 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %204, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 82, ptr noundef @.str.7) #5
  %206 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %206, align 8, !tbaa !17
  %207 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %207, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %211

208:                                              ; preds = %199
  br label %209

209:                                              ; preds = %208
  br label %210

210:                                              ; preds = %209
  store i32 0, ptr %6, align 4
  br label %211

211:                                              ; preds = %210, %203, %190
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %212 = load i32, ptr %6, align 4
  switch i32 %212, label %324 [
    i32 0, label %213
  ]

213:                                              ; preds = %211
  br label %214

214:                                              ; preds = %213, %166, %163
  %215 = load i32, ptr %5, align 4, !tbaa !5
  %216 = icmp eq i32 %215, 30
  br i1 %216, label %217, label %240

217:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %218 = load ptr, ptr %2, align 8, !tbaa !9
  %219 = getelementptr inbounds %struct.FList, ptr %218, i32 0, i32 1
  %220 = load ptr, ptr %219, align 8, !tbaa !20
  %221 = getelementptr inbounds %struct.FListItem, ptr %220, i32 0, i32 1
  %222 = load ptr, ptr %221, align 8, !tbaa !21
  store ptr %222, ptr %11, align 8, !tbaa !9
  %223 = load ptr, ptr %2, align 8, !tbaa !9
  %224 = load ptr, ptr %11, align 8, !tbaa !9
  call void @flist_remove_by(ptr noundef %223, ptr noundef %224)
  br label %225

225:                                              ; preds = %217
  %226 = load ptr, ptr %2, align 8, !tbaa !9
  %227 = load ptr, ptr %11, align 8, !tbaa !9
  %228 = call zeroext i1 @flist_contains(ptr noundef %226, ptr noundef %227)
  br i1 %228, label %229, label %234

229:                                              ; preds = %225
  %230 = load ptr, ptr @stderr, align 8, !tbaa !9
  %231 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %230, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 90, ptr noundef @.str.7) #5
  %232 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %232, align 8, !tbaa !17
  %233 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %233, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %237

234:                                              ; preds = %225
  br label %235

235:                                              ; preds = %234
  br label %236

236:                                              ; preds = %235
  store i32 0, ptr %6, align 4
  br label %237

237:                                              ; preds = %236, %229
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %238 = load i32, ptr %6, align 4
  switch i32 %238, label %324 [
    i32 0, label %239
  ]

239:                                              ; preds = %237
  br label %240

240:                                              ; preds = %239, %214
  %241 = load i32, ptr %5, align 4, !tbaa !5
  %242 = icmp eq i32 %241, 40
  br i1 %242, label %243, label %300

243:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %244 = load ptr, ptr %2, align 8, !tbaa !9
  %245 = getelementptr inbounds %struct.FList, ptr %244, i32 0, i32 0
  %246 = load ptr, ptr %245, align 8, !tbaa !16
  store ptr %246, ptr %12, align 8, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %247

247:                                              ; preds = %254, %243
  %248 = load i32, ptr %16, align 4, !tbaa !5
  %249 = icmp slt i32 %248, 5
  br i1 %249, label %250, label %257

250:                                              ; preds = %247
  %251 = load ptr, ptr %12, align 8, !tbaa !9
  %252 = getelementptr inbounds %struct.FListItem, ptr %251, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8, !tbaa !23
  store ptr %253, ptr %12, align 8, !tbaa !9
  br label %254

254:                                              ; preds = %250
  %255 = load i32, ptr %16, align 4, !tbaa !5
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %16, align 4, !tbaa !5
  br label %247, !llvm.loop !24

257:                                              ; preds = %247
  %258 = load ptr, ptr %12, align 8, !tbaa !9
  %259 = getelementptr inbounds %struct.FListItem, ptr %258, i32 0, i32 0
  %260 = load ptr, ptr %259, align 8, !tbaa !23
  %261 = getelementptr inbounds %struct.FListItem, ptr %260, i32 0, i32 0
  %262 = load ptr, ptr %261, align 8, !tbaa !23
  store ptr %262, ptr %13, align 8, !tbaa !9
  %263 = load ptr, ptr %12, align 8, !tbaa !9
  %264 = getelementptr inbounds %struct.FListItem, ptr %263, i32 0, i32 1
  %265 = load ptr, ptr %264, align 8, !tbaa !21
  store ptr %265, ptr %14, align 8, !tbaa !9
  %266 = load ptr, ptr %13, align 8, !tbaa !9
  %267 = getelementptr inbounds %struct.FListItem, ptr %266, i32 0, i32 1
  %268 = load ptr, ptr %267, align 8, !tbaa !21
  store ptr %268, ptr %15, align 8, !tbaa !9
  %269 = load ptr, ptr %2, align 8, !tbaa !9
  %270 = load ptr, ptr %12, align 8, !tbaa !9
  call void @flist_remove(ptr noundef %269, ptr noundef %270)
  %271 = load ptr, ptr %2, align 8, !tbaa !9
  %272 = load ptr, ptr %13, align 8, !tbaa !9
  call void @flist_remove(ptr noundef %271, ptr noundef %272)
  br label %273

273:                                              ; preds = %257
  %274 = load ptr, ptr %2, align 8, !tbaa !9
  %275 = load ptr, ptr %14, align 8, !tbaa !9
  %276 = call zeroext i1 @flist_contains(ptr noundef %274, ptr noundef %275)
  br i1 %276, label %277, label %282

277:                                              ; preds = %273
  %278 = load ptr, ptr @stderr, align 8, !tbaa !9
  %279 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %278, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 111, ptr noundef @.str.8) #5
  %280 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %280, align 8, !tbaa !17
  %281 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %281, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %297

282:                                              ; preds = %273
  br label %283

283:                                              ; preds = %282
  br label %284

284:                                              ; preds = %283
  br label %285

285:                                              ; preds = %284
  %286 = load ptr, ptr %2, align 8, !tbaa !9
  %287 = load ptr, ptr %15, align 8, !tbaa !9
  %288 = call zeroext i1 @flist_contains(ptr noundef %286, ptr noundef %287)
  br i1 %288, label %289, label %294

289:                                              ; preds = %285
  %290 = load ptr, ptr @stderr, align 8, !tbaa !9
  %291 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %290, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 112, ptr noundef @.str.9) #5
  %292 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %292, align 8, !tbaa !17
  %293 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %293, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %297

294:                                              ; preds = %285
  br label %295

295:                                              ; preds = %294
  br label %296

296:                                              ; preds = %295
  store i32 0, ptr %6, align 4
  br label %297

297:                                              ; preds = %296, %289, %277
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %298 = load i32, ptr %6, align 4
  switch i32 %298, label %324 [
    i32 0, label %299
  ]

299:                                              ; preds = %297
  br label %300

300:                                              ; preds = %299, %240
  %301 = load i32, ptr %5, align 4, !tbaa !5
  %302 = icmp eq i32 %301, 100
  br i1 %302, label %303, label %316

303:                                              ; preds = %300
  %304 = load ptr, ptr %2, align 8, !tbaa !9
  call void @flist_empty(ptr noundef %304)
  br label %305

305:                                              ; preds = %303
  %306 = load ptr, ptr %2, align 8, !tbaa !9
  %307 = call zeroext i1 @flist_isempty(ptr noundef %306)
  br i1 %307, label %313, label %308

308:                                              ; preds = %305
  %309 = load ptr, ptr @stderr, align 8, !tbaa !9
  %310 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %309, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 118, ptr noundef @.str.10) #5
  %311 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %311, align 8, !tbaa !17
  %312 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %312, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %324

313:                                              ; preds = %305
  br label %314

314:                                              ; preds = %313
  br label %315

315:                                              ; preds = %314
  br label %316

316:                                              ; preds = %315, %300
  br label %317

317:                                              ; preds = %316
  %318 = load i32, ptr %5, align 4, !tbaa !5
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %5, align 4, !tbaa !5
  br label %22, !llvm.loop !26

320:                                              ; preds = %22
  %321 = load ptr, ptr %2, align 8, !tbaa !9
  call void @flist_destroy(ptr noundef %321)
  %322 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %322, align 8, !tbaa !17
  %323 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %323, align 8, !tbaa !19
  store i32 1, ptr %6, align 4
  br label %324

324:                                              ; preds = %320, %308, %297, %237, %211, %160, %114, %97, %84, %71, %55, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %325 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %325
}

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

declare ptr @flist_new(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @test_flist_onfree(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind
declare void @srand(i32 noundef) #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

; Function Attrs: nounwind
declare double @drand48() #3

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

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

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

declare zeroext i1 @flist_contains(ptr noundef, ptr noundef) #2

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

declare ptr @flist_last(ptr noundef) #2

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

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

declare void @flist_empty(ptr noundef) #2

declare zeroext i1 @flist_isempty(ptr noundef) #2

declare void @flist_destroy(ptr noundef) #2

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 24}
!12 = !{!"FList", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!12, !10, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"test_status_t", !10, i64 0, !6, i64 8}
!19 = !{!18, !6, i64 8}
!20 = !{!12, !10, i64 8}
!21 = !{!22, !10, i64 8}
!22 = !{!"FListItem", !10, i64 0, !10, i64 8}
!23 = !{!22, !10, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


; 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 [94 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_flist() local_unnamed_addr #0 {
  %1 = tail call ptr @flist_new(ptr noundef null) #5
  %2 = getelementptr inbounds i8, ptr %1, i64 24
  store ptr @test_flist_onfree, ptr %2, align 8, !tbaa !5
  %3 = tail call i64 @time(ptr noundef null) #5
  %4 = trunc i64 %3 to i32
  tail call void @srand(i32 noundef %4) #5
  %5 = getelementptr inbounds i8, ptr %1, i64 8
  br label %6

6:                                                ; preds = %0, %.critedge85
  %.07288 = phi i32 [ 0, %0 ], [ %104, %.critedge85 ]
  %7 = tail call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #6
  %8 = tail call double @drand48() #5
  %9 = fptrunc double %8 to float
  store float %9, ptr %7, align 4, !tbaa !11
  %10 = and i32 %.07288, 1
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %12, label %22

12:                                               ; preds = %6
  tail call void @flist_insert(ptr noundef nonnull %1, ptr noundef nonnull %7) #5
  %13 = load ptr, ptr %1, align 8, !tbaa !13
  %.not77 = icmp eq ptr %13, null
  br i1 %.not77, label %14, label %17

14:                                               ; preds = %12
  %15 = load ptr, ptr @stderr, align 8, !tbaa !14
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 37, ptr noundef nonnull @.str.2) #7
  br label %.critedge

17:                                               ; preds = %12
  %18 = load ptr, ptr %5, align 8, !tbaa !15
  %.not78 = icmp eq ptr %18, null
  br i1 %.not78, label %19, label %32

19:                                               ; preds = %17
  %20 = load ptr, ptr @stderr, align 8, !tbaa !14
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 38, ptr noundef nonnull @.str.3) #7
  br label %.critedge

22:                                               ; preds = %6
  tail call void @flist_append(ptr noundef nonnull %1, ptr noundef nonnull %7) #5
  %23 = load ptr, ptr %1, align 8, !tbaa !13
  %.not = icmp eq ptr %23, null
  br i1 %.not, label %24, label %27

24:                                               ; preds = %22
  %25 = load ptr, ptr @stderr, align 8, !tbaa !14
  %26 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 44, ptr noundef nonnull @.str.2) #7
  br label %.critedge

27:                                               ; preds = %22
  %28 = load ptr, ptr %5, align 8, !tbaa !15
  %.not76 = icmp eq ptr %28, null
  br i1 %.not76, label %29, label %32

29:                                               ; preds = %27
  %30 = load ptr, ptr @stderr, align 8, !tbaa !14
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 45, ptr noundef nonnull @.str.3) #7
  br label %.critedge

32:                                               ; preds = %17, %27
  %33 = tail call zeroext i1 @flist_contains(ptr noundef nonnull %1, ptr noundef nonnull %7) #5
  br i1 %33, label %37, label %34

34:                                               ; preds = %32
  %35 = load ptr, ptr @stderr, align 8, !tbaa !14
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 49, ptr noundef nonnull @.str.4) #7
  br label %.critedge

37:                                               ; preds = %32
  %trunc = trunc nuw i32 %.07288 to i8
  switch i8 %trunc, label %.critedge85 [
    i8 0, label %45
    i8 10, label %50
    i8 20, label %65
    i8 30, label %81
    i8 40, label %.preheader.preheader
    i8 100, label %99
  ]

.preheader.preheader:                             ; preds = %37
  %.073 = load ptr, ptr %1, align 8, !tbaa !14
  %.073.1 = load ptr, ptr %.073, align 8, !tbaa !14
  %.073.2 = load ptr, ptr %.073.1, align 8, !tbaa !14
  %.073.3 = load ptr, ptr %.073.2, align 8, !tbaa !14
  %.073.4 = load ptr, ptr %.073.3, align 8, !tbaa !14
  %.073.5 = load ptr, ptr %.073.4, align 8, !tbaa !14
  %38 = load ptr, ptr %.073.5, align 8, !tbaa !16
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  %40 = getelementptr inbounds i8, ptr %.073.5, i64 8
  %41 = load ptr, ptr %40, align 8, !tbaa !18
  %42 = getelementptr inbounds i8, ptr %39, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !18
  tail call void @flist_remove(ptr noundef nonnull %1, ptr noundef nonnull %.073.5) #5
  tail call void @flist_remove(ptr noundef nonnull %1, ptr noundef %39) #5
  %44 = tail call zeroext i1 @flist_contains(ptr noundef nonnull %1, ptr noundef %41) #5
  br i1 %44, label %89, label %92

45:                                               ; preds = %37
  tail call void @flist_remove_by(ptr noundef nonnull %1, ptr noundef nonnull %7) #5
  %46 = tail call zeroext i1 @flist_contains(ptr noundef nonnull %1, ptr noundef nonnull %7) #5
  br i1 %46, label %47, label %.critedge85

47:                                               ; preds = %45
  %48 = load ptr, ptr @stderr, align 8, !tbaa !14
  %49 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 54, ptr noundef nonnull @.str.5) #7
  br label %.critedge

50:                                               ; preds = %37
  %51 = tail call ptr @flist_last(ptr noundef nonnull %1) #5
  %52 = tail call ptr @flist_at(ptr noundef nonnull %1, i32 noundef 9) #5
  %53 = icmp eq ptr %51, %52
  br i1 %53, label %57, label %54

54:                                               ; preds = %50
  %55 = load ptr, ptr @stderr, align 8, !tbaa !14
  %56 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 62, ptr noundef nonnull @.str.6) #7
  br label %.critedge

57:                                               ; preds = %50
  %58 = load ptr, ptr %1, align 8, !tbaa !13
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  %60 = load ptr, ptr %59, align 8, !tbaa !18
  tail call void @flist_remove(ptr noundef nonnull %1, ptr noundef %58) #5
  %61 = tail call zeroext i1 @flist_contains(ptr noundef nonnull %1, ptr noundef %60) #5
  br i1 %61, label %62, label %.critedge85

62:                                               ; preds = %57
  %63 = load ptr, ptr @stderr, align 8, !tbaa !14
  %64 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 67, ptr noundef nonnull @.str.7) #7
  br label %.critedge

65:                                               ; preds = %37
  %66 = load ptr, ptr %5, align 8, !tbaa !15
  %.not79 = icmp eq ptr %66, null
  br i1 %.not79, label %.critedge85, label %67

67:                                               ; preds = %65
  %68 = getelementptr inbounds i8, ptr %66, i64 8
  %69 = load ptr, ptr %68, align 8, !tbaa !18
  tail call void @flist_remove(ptr noundef nonnull %1, ptr noundef nonnull %66) #5
  %70 = load ptr, ptr %1, align 8, !tbaa !13
  %.not80 = icmp eq ptr %70, null
  br i1 %.not80, label %76, label %71

71:                                               ; preds = %67
  %72 = load ptr, ptr %5, align 8, !tbaa !15
  %.not81 = icmp eq ptr %72, null
  br i1 %.not81, label %73, label %76

73:                                               ; preds = %71
  %74 = load ptr, ptr @stderr, align 8, !tbaa !14
  %75 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 80, ptr noundef nonnull @.str.3) #7
  br label %.critedge

76:                                               ; preds = %67, %71
  %77 = tail call zeroext i1 @flist_contains(ptr noundef nonnull %1, ptr noundef %69) #5
  br i1 %77, label %78, label %.critedge85

78:                                               ; preds = %76
  %79 = load ptr, ptr @stderr, align 8, !tbaa !14
  %80 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 82, ptr noundef nonnull @.str.7) #7
  br label %.critedge

81:                                               ; preds = %37
  %82 = load ptr, ptr %5, align 8, !tbaa !15
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  %84 = load ptr, ptr %83, align 8, !tbaa !18
  tail call void @flist_remove_by(ptr noundef nonnull %1, ptr noundef %84) #5
  %85 = tail call zeroext i1 @flist_contains(ptr noundef nonnull %1, ptr noundef %84) #5
  br i1 %85, label %86, label %.critedge85

86:                                               ; preds = %81
  %87 = load ptr, ptr @stderr, align 8, !tbaa !14
  %88 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 90, ptr noundef nonnull @.str.7) #7
  br label %.critedge

89:                                               ; preds = %.preheader.preheader
  %90 = load ptr, ptr @stderr, align 8, !tbaa !14
  %91 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 111, ptr noundef nonnull @.str.8) #7
  br label %.critedge

92:                                               ; preds = %.preheader.preheader
  %93 = tail call zeroext i1 @flist_contains(ptr noundef nonnull %1, ptr noundef %43) #5
  br i1 %93, label %94, label %97

94:                                               ; preds = %92
  %95 = load ptr, ptr @stderr, align 8, !tbaa !14
  %96 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 112, ptr noundef nonnull @.str.9) #7
  br label %.critedge

97:                                               ; preds = %92
  %98 = icmp eq i32 %.07288, 100
  br i1 %98, label %99, label %.critedge85

99:                                               ; preds = %37, %97
  tail call void @flist_empty(ptr noundef nonnull %1) #5
  %100 = tail call zeroext i1 @flist_isempty(ptr noundef nonnull %1) #5
  br i1 %100, label %.critedge85, label %101

101:                                              ; preds = %99
  %102 = load ptr, ptr @stderr, align 8, !tbaa !14
  %103 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 118, ptr noundef nonnull @.str.10) #7
  br label %.critedge

.critedge85:                                      ; preds = %81, %65, %76, %57, %45, %37, %97, %99
  %104 = add nuw nsw i32 %.07288, 1
  %exitcond.not = icmp eq i32 %104, 200
  br i1 %exitcond.not, label %105, label %6, !llvm.loop !19

105:                                              ; preds = %.critedge85
  tail call void @flist_destroy(ptr noundef nonnull %1) #5
  br label %.critedge

.critedge:                                        ; preds = %86, %89, %94, %78, %73, %62, %54, %105, %101, %47, %34, %29, %24, %19, %14
  %.sroa.16.9 = phi i32 [ 0, %47 ], [ 0, %101 ], [ 0, %86 ], [ 0, %34 ], [ 0, %19 ], [ 0, %14 ], [ 0, %29 ], [ 0, %24 ], [ 1, %105 ], [ 0, %54 ], [ 0, %62 ], [ 0, %73 ], [ 0, %78 ], [ 0, %94 ], [ 0, %89 ]
  %.fca.1.insert = insertvalue { ptr, i32 } { ptr null, i32 undef }, i32 %.sroa.16.9, 1
  ret { ptr, i32 } %.fca.1.insert
}

declare ptr @flist_new(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @test_flist_onfree(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare double @drand48() local_unnamed_addr #2

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

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

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

declare zeroext i1 @flist_contains(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare ptr @flist_last(ptr noundef) local_unnamed_addr #1

declare ptr @flist_at(ptr noundef, i32 noundef) local_unnamed_addr #1

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

declare void @flist_empty(ptr noundef) local_unnamed_addr #1

declare zeroext i1 @flist_isempty(ptr noundef) local_unnamed_addr #1

declare void @flist_destroy(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 = { 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { cold nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 24}
!6 = !{!"FList", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = !{!6, !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!6, !7, i64 8}
!16 = !{!17, !7, i64 0}
!17 = !{!"FListItem", !7, i64 0, !7, i64 8}
!18 = !{!17, !7, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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