; LLVM IR from yourtion/LearningMasteringAlgorithms-C :: Example/set (main)

; 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.List_ = type { i32, ptr, ptr, ptr, ptr }

@stdout = external global ptr, align 8
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.List_, align 8
  %7 = alloca %struct.List_, align 8
  %8 = alloca %struct.List_, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @set_init(ptr noundef %6, ptr noundef @match_int, ptr noundef @free)
  %13 = load ptr, ptr @stdout, align 8, !tbaa !9
  %14 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef @.str) #5
  store i32 9, ptr %11, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %36, %2
  %16 = load i32, ptr %11, align 4, !tbaa !5
  %17 = icmp sge i32 %16, 0
  br i1 %17, label %18, label %39

18:                                               ; preds = %15
  %19 = call noalias ptr @malloc(i64 noundef 4) #6
  store ptr %19, ptr %9, align 8, !tbaa !9
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %22

21:                                               ; preds = %18
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

22:                                               ; preds = %18
  %23 = load i32, ptr %11, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  %25 = load ptr, ptr %9, align 8, !tbaa !9
  store i32 %24, ptr %25, align 4, !tbaa !5
  %26 = load ptr, ptr %9, align 8, !tbaa !9
  %27 = call i32 @set_insert(ptr noundef %6, ptr noundef %26)
  store i32 %27, ptr %10, align 4, !tbaa !5
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %22
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

30:                                               ; preds = %22
  %31 = load i32, ptr %10, align 4, !tbaa !5
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %35

33:                                               ; preds = %30
  %34 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %34) #5
  br label %35

35:                                               ; preds = %33, %30
  br label %36

36:                                               ; preds = %35
  %37 = load i32, ptr %11, align 4, !tbaa !5
  %38 = add nsw i32 %37, -1
  store i32 %38, ptr %11, align 4, !tbaa !5
  br label %15, !llvm.loop !11

39:                                               ; preds = %15
  call void @print_set(ptr noundef %6)
  %40 = load ptr, ptr @stdout, align 8, !tbaa !9
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.1) #5
  store i32 9, ptr %11, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %63, %39
  %43 = load i32, ptr %11, align 4, !tbaa !5
  %44 = icmp sge i32 %43, 0
  br i1 %44, label %45, label %66

45:                                               ; preds = %42
  %46 = call noalias ptr @malloc(i64 noundef 4) #6
  store ptr %46, ptr %9, align 8, !tbaa !9
  %47 = icmp eq ptr %46, null
  br i1 %47, label %48, label %49

48:                                               ; preds = %45
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

49:                                               ; preds = %45
  %50 = load i32, ptr %11, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  %52 = load ptr, ptr %9, align 8, !tbaa !9
  store i32 %51, ptr %52, align 4, !tbaa !5
  %53 = load ptr, ptr %9, align 8, !tbaa !9
  %54 = call i32 @set_insert(ptr noundef %6, ptr noundef %53)
  store i32 %54, ptr %10, align 4, !tbaa !5
  %55 = icmp slt i32 %54, 0
  br i1 %55, label %56, label %57

56:                                               ; preds = %49
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

57:                                               ; preds = %49
  %58 = load i32, ptr %10, align 4, !tbaa !5
  %59 = icmp eq i32 %58, 1
  br i1 %59, label %60, label %62

60:                                               ; preds = %57
  %61 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %61) #5
  br label %62

62:                                               ; preds = %60, %57
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %11, align 4, !tbaa !5
  %65 = add nsw i32 %64, -1
  store i32 %65, ptr %11, align 4, !tbaa !5
  br label %42, !llvm.loop !13

66:                                               ; preds = %42
  call void @print_set(ptr noundef %6)
  %67 = load ptr, ptr @stdout, align 8, !tbaa !9
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.2) #5
  %69 = call noalias ptr @malloc(i64 noundef 4) #6
  store ptr %69, ptr %9, align 8, !tbaa !9
  %70 = icmp eq ptr %69, null
  br i1 %70, label %71, label %72

71:                                               ; preds = %66
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

72:                                               ; preds = %66
  %73 = load ptr, ptr %9, align 8, !tbaa !9
  store i32 200, ptr %73, align 4, !tbaa !5
  %74 = load ptr, ptr %9, align 8, !tbaa !9
  %75 = call i32 @set_insert(ptr noundef %6, ptr noundef %74)
  store i32 %75, ptr %10, align 4, !tbaa !5
  %76 = icmp slt i32 %75, 0
  br i1 %76, label %77, label %78

77:                                               ; preds = %72
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

78:                                               ; preds = %72
  %79 = load i32, ptr %10, align 4, !tbaa !5
  %80 = icmp eq i32 %79, 1
  br i1 %80, label %81, label %83

81:                                               ; preds = %78
  %82 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %82) #5
  br label %83

83:                                               ; preds = %81, %78
  %84 = call noalias ptr @malloc(i64 noundef 4) #6
  store ptr %84, ptr %9, align 8, !tbaa !9
  %85 = icmp eq ptr %84, null
  br i1 %85, label %86, label %87

86:                                               ; preds = %83
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

87:                                               ; preds = %83
  %88 = load ptr, ptr %9, align 8, !tbaa !9
  store i32 100, ptr %88, align 4, !tbaa !5
  %89 = load ptr, ptr %9, align 8, !tbaa !9
  %90 = call i32 @set_insert(ptr noundef %6, ptr noundef %89)
  store i32 %90, ptr %10, align 4, !tbaa !5
  %91 = icmp slt i32 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %87
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

93:                                               ; preds = %87
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %98

96:                                               ; preds = %93
  %97 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %97) #5
  br label %98

98:                                               ; preds = %96, %93
  call void @print_set(ptr noundef %6)
  %99 = load ptr, ptr @stdout, align 8, !tbaa !9
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef @.str.3) #5
  store i32 100, ptr %11, align 4, !tbaa !5
  store ptr %11, ptr %9, align 8, !tbaa !9
  %101 = call i32 @set_remove(ptr noundef %6, ptr noundef %9)
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %103, label %105

103:                                              ; preds = %98
  %104 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %104) #5
  br label %105

105:                                              ; preds = %103, %98
  store i32 5, ptr %11, align 4, !tbaa !5
  store ptr %11, ptr %9, align 8, !tbaa !9
  %106 = call i32 @set_remove(ptr noundef %6, ptr noundef %9)
  %107 = icmp eq i32 %106, 0
  br i1 %107, label %108, label %110

108:                                              ; preds = %105
  %109 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %109) #5
  br label %110

110:                                              ; preds = %108, %105
  store i32 10, ptr %11, align 4, !tbaa !5
  store ptr %11, ptr %9, align 8, !tbaa !9
  %111 = call i32 @set_remove(ptr noundef %6, ptr noundef %9)
  %112 = icmp eq i32 %111, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %110
  %114 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %114) #5
  br label %115

115:                                              ; preds = %113, %110
  call void @print_set(ptr noundef %6)
  %116 = load ptr, ptr @stdout, align 8, !tbaa !9
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.4) #5
  %118 = call i32 @list_rem_next(ptr noundef %6, ptr noundef null, ptr noundef %9)
  %119 = icmp eq i32 %118, 0
  br i1 %119, label %120, label %122

120:                                              ; preds = %115
  %121 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %121) #5
  br label %122

122:                                              ; preds = %120, %115
  %123 = call i32 @list_rem_next(ptr noundef %6, ptr noundef null, ptr noundef %9)
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %125, label %127

125:                                              ; preds = %122
  %126 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %126) #5
  br label %127

127:                                              ; preds = %125, %122
  %128 = call i32 @list_rem_next(ptr noundef %6, ptr noundef null, ptr noundef %9)
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %130, label %132

130:                                              ; preds = %127
  %131 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %131) #5
  br label %132

132:                                              ; preds = %130, %127
  call void @print_set(ptr noundef %6)
  %133 = load ptr, ptr @stdout, align 8, !tbaa !9
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.5) #5
  br label %135

135:                                              ; preds = %144, %132
  %136 = getelementptr inbounds %struct.List_, ptr %6, i32 0, i32 0
  %137 = load i32, ptr %136, align 8, !tbaa !14
  %138 = icmp sgt i32 %137, 0
  br i1 %138, label %139, label %145

139:                                              ; preds = %135
  %140 = call i32 @list_rem_next(ptr noundef %6, ptr noundef null, ptr noundef %9)
  %141 = icmp eq i32 %140, 0
  br i1 %141, label %142, label %144

142:                                              ; preds = %139
  %143 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %143) #5
  br label %144

144:                                              ; preds = %142, %139
  br label %135, !llvm.loop !16

145:                                              ; preds = %135
  call void @print_set(ptr noundef %6)
  call void @set_init(ptr noundef %7, ptr noundef @match_int, ptr noundef @free)
  call void @set_init(ptr noundef %8, ptr noundef @match_int, ptr noundef @free)
  store i32 9, ptr %11, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %218, %145
  %147 = load i32, ptr %11, align 4, !tbaa !5
  %148 = icmp sge i32 %147, 0
  br i1 %148, label %149, label %221

149:                                              ; preds = %146
  %150 = call noalias ptr @malloc(i64 noundef 4) #6
  store ptr %150, ptr %9, align 8, !tbaa !9
  %151 = icmp eq ptr %150, null
  br i1 %151, label %152, label %153

152:                                              ; preds = %149
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

153:                                              ; preds = %149
  %154 = load i32, ptr %11, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  %156 = load ptr, ptr %9, align 8, !tbaa !9
  store i32 %155, ptr %156, align 4, !tbaa !5
  %157 = load ptr, ptr %9, align 8, !tbaa !9
  %158 = call i32 @set_insert(ptr noundef %7, ptr noundef %157)
  store i32 %158, ptr %10, align 4, !tbaa !5
  %159 = icmp slt i32 %158, 0
  br i1 %159, label %160, label %161

160:                                              ; preds = %153
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

161:                                              ; preds = %153
  %162 = load i32, ptr %10, align 4, !tbaa !5
  %163 = icmp eq i32 %162, 1
  br i1 %163, label %164, label %166

164:                                              ; preds = %161
  %165 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %165) #5
  br label %166

166:                                              ; preds = %164, %161
  %167 = load i32, ptr %11, align 4, !tbaa !5
  %168 = icmp eq i32 %167, 5
  br i1 %168, label %175, label %169

169:                                              ; preds = %166
  %170 = load i32, ptr %11, align 4, !tbaa !5
  %171 = icmp eq i32 %170, 6
  br i1 %171, label %175, label %172

172:                                              ; preds = %169
  %173 = load i32, ptr %11, align 4, !tbaa !5
  %174 = icmp eq i32 %173, 7
  br i1 %174, label %175, label %193

175:                                              ; preds = %172, %169, %166
  %176 = call noalias ptr @malloc(i64 noundef 4) #6
  store ptr %176, ptr %9, align 8, !tbaa !9
  %177 = icmp eq ptr %176, null
  br i1 %177, label %178, label %179

178:                                              ; preds = %175
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

179:                                              ; preds = %175
  %180 = load i32, ptr %11, align 4, !tbaa !5
  %181 = mul nsw i32 %180, 10
  %182 = load ptr, ptr %9, align 8, !tbaa !9
  store i32 %181, ptr %182, align 4, !tbaa !5
  %183 = load ptr, ptr %9, align 8, !tbaa !9
  %184 = call i32 @set_insert(ptr noundef %8, ptr noundef %183)
  store i32 %184, ptr %10, align 4, !tbaa !5
  %185 = icmp slt i32 %184, 0
  br i1 %185, label %186, label %187

186:                                              ; preds = %179
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

187:                                              ; preds = %179
  %188 = load i32, ptr %10, align 4, !tbaa !5
  %189 = icmp eq i32 %188, 1
  br i1 %189, label %190, label %192

190:                                              ; preds = %187
  %191 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %191) #5
  br label %192

192:                                              ; preds = %190, %187
  br label %217

193:                                              ; preds = %172
  %194 = load i32, ptr %11, align 4, !tbaa !5
  %195 = icmp eq i32 %194, 3
  br i1 %195, label %199, label %196

196:                                              ; preds = %193
  %197 = load i32, ptr %11, align 4, !tbaa !5
  %198 = icmp eq i32 %197, 1
  br i1 %198, label %199, label %216

199:                                              ; preds = %196, %193
  %200 = call noalias ptr @malloc(i64 noundef 4) #6
  store ptr %200, ptr %9, align 8, !tbaa !9
  %201 = icmp eq ptr %200, null
  br i1 %201, label %202, label %203

202:                                              ; preds = %199
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

203:                                              ; preds = %199
  %204 = load i32, ptr %11, align 4, !tbaa !5
  %205 = load ptr, ptr %9, align 8, !tbaa !9
  store i32 %204, ptr %205, align 4, !tbaa !5
  %206 = load ptr, ptr %9, align 8, !tbaa !9
  %207 = call i32 @set_insert(ptr noundef %8, ptr noundef %206)
  store i32 %207, ptr %10, align 4, !tbaa !5
  %208 = icmp slt i32 %207, 0
  br i1 %208, label %209, label %210

209:                                              ; preds = %203
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

210:                                              ; preds = %203
  %211 = load i32, ptr %10, align 4, !tbaa !5
  %212 = icmp eq i32 %211, 1
  br i1 %212, label %213, label %215

213:                                              ; preds = %210
  %214 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %214) #5
  br label %215

215:                                              ; preds = %213, %210
  br label %216

216:                                              ; preds = %215, %196
  br label %217

217:                                              ; preds = %216, %192
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %11, align 4, !tbaa !5
  %220 = add nsw i32 %219, -1
  store i32 %220, ptr %11, align 4, !tbaa !5
  br label %146, !llvm.loop !17

221:                                              ; preds = %146
  %222 = load ptr, ptr @stdout, align 8, !tbaa !9
  %223 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %222, ptr noundef @.str.6) #5
  call void @print_set(ptr noundef %7)
  %224 = load ptr, ptr @stdout, align 8, !tbaa !9
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %224, ptr noundef @.str.7) #5
  call void @print_set(ptr noundef %8)
  %226 = load ptr, ptr @stdout, align 8, !tbaa !9
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %226, ptr noundef @.str.8) #5
  %228 = call i32 @set_union(ptr noundef %6, ptr noundef %7, ptr noundef %8)
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %231

230:                                              ; preds = %221
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

231:                                              ; preds = %221
  call void @print_set(ptr noundef %6)
  %232 = load ptr, ptr @stdout, align 8, !tbaa !9
  %233 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %232, ptr noundef @.str.9) #5
  call void @list_destroy(ptr noundef %6)
  %234 = load ptr, ptr @stdout, align 8, !tbaa !9
  %235 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef @.str.10) #5
  %236 = call i32 @set_intersection(ptr noundef %6, ptr noundef %7, ptr noundef %8)
  %237 = icmp ne i32 %236, 0
  br i1 %237, label %238, label %239

238:                                              ; preds = %231
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

239:                                              ; preds = %231
  call void @print_set(ptr noundef %6)
  %240 = load ptr, ptr @stdout, align 8, !tbaa !9
  %241 = call i32 @set_is_equal(ptr noundef %6, ptr noundef %7)
  %242 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %240, ptr noundef @.str.11, i32 noundef %241) #5
  %243 = load ptr, ptr @stdout, align 8, !tbaa !9
  %244 = call i32 @set_is_equal(ptr noundef %7, ptr noundef %7)
  %245 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef @.str.12, i32 noundef %244) #5
  %246 = load ptr, ptr @stdout, align 8, !tbaa !9
  %247 = call i32 @set_is_subset(ptr noundef %6, ptr noundef %7)
  %248 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %246, ptr noundef @.str.13, i32 noundef %247) #5
  %249 = load ptr, ptr @stdout, align 8, !tbaa !9
  %250 = call i32 @set_is_subset(ptr noundef %8, ptr noundef %7)
  %251 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %249, ptr noundef @.str.14, i32 noundef %250) #5
  %252 = load ptr, ptr @stdout, align 8, !tbaa !9
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %252, ptr noundef @.str.15) #5
  call void @list_destroy(ptr noundef %6)
  %254 = load ptr, ptr @stdout, align 8, !tbaa !9
  %255 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %254, ptr noundef @.str.16) #5
  %256 = call i32 @set_difference(ptr noundef %6, ptr noundef %7, ptr noundef %8)
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %259

258:                                              ; preds = %239
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

259:                                              ; preds = %239
  call void @print_set(ptr noundef %6)
  store i32 3, ptr %11, align 4, !tbaa !5
  %260 = load ptr, ptr @stdout, align 8, !tbaa !9
  %261 = load i32, ptr %11, align 4, !tbaa !5
  %262 = call i32 @set_is_member(ptr noundef %6, ptr noundef %11)
  %263 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %260, ptr noundef @.str.17, i32 noundef %261, i32 noundef %262) #5
  store i32 5, ptr %11, align 4, !tbaa !5
  %264 = load ptr, ptr @stdout, align 8, !tbaa !9
  %265 = load i32, ptr %11, align 4, !tbaa !5
  %266 = call i32 @set_is_member(ptr noundef %6, ptr noundef %11)
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %264, ptr noundef @.str.18, i32 noundef %265, i32 noundef %266) #5
  %268 = load ptr, ptr @stdout, align 8, !tbaa !9
  %269 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %268, ptr noundef @.str.19) #5
  call void @list_destroy(ptr noundef %6)
  call void @list_destroy(ptr noundef %7)
  call void @list_destroy(ptr noundef %8)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %270

270:                                              ; preds = %259, %258, %238, %230, %209, %202, %186, %178, %160, %152, %92, %86, %77, %71, %56, %48, %29, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #5
  %271 = load i32, ptr %3, align 4
  ret i32 %271
}

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

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

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

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

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

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

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

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

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

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

declare void @list_destroy(ptr noundef) #2

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

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

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

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

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

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

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


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

%struct.List_ = type { i32, ptr, ptr, ptr, ptr }

@stdout = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca %struct.List_, align 8
  %4 = alloca %struct.List_, align 8
  %5 = alloca %struct.List_, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @set_init(ptr noundef nonnull %3, ptr noundef nonnull @match_int, ptr noundef nonnull @free) #6
  %8 = load ptr, ptr @stdout, align 8, !tbaa !5
  %9 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str) #6
  store i32 9, ptr %7, align 4, !tbaa !9
  br label %10

10:                                               ; preds = %2, %20
  %storemerge34 = phi i32 [ 10, %2 ], [ %21, %20 ]
  %11 = call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #7
  store ptr %11, ptr %6, align 8, !tbaa !5
  %12 = icmp eq ptr %11, null
  br i1 %12, label %.loopexit, label %13

13:                                               ; preds = %10
  store i32 %storemerge34, ptr %11, align 4, !tbaa !9
  %14 = call i32 @set_insert(ptr noundef nonnull %3, ptr noundef nonnull %11) #6
  %15 = icmp slt i32 %14, 0
  br i1 %15, label %.loopexit, label %16

16:                                               ; preds = %13
  %17 = icmp eq i32 %14, 1
  br i1 %17, label %18, label %20

18:                                               ; preds = %16
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %19) #6
  br label %20

20:                                               ; preds = %16, %18
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = add nsw i32 %21, -1
  store i32 %22, ptr %7, align 4, !tbaa !9
  %23 = icmp sgt i32 %21, 0
  br i1 %23, label %10, label %24, !llvm.loop !11

24:                                               ; preds = %20
  call void @print_set(ptr noundef nonnull %3)
  %25 = load ptr, ptr @stdout, align 8, !tbaa !5
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.1) #6
  store i32 9, ptr %7, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %24, %37
  %storemerge2835 = phi i32 [ 10, %24 ], [ %38, %37 ]
  %28 = call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #7
  store ptr %28, ptr %6, align 8, !tbaa !5
  %29 = icmp eq ptr %28, null
  br i1 %29, label %.loopexit, label %30

30:                                               ; preds = %27
  store i32 %storemerge2835, ptr %28, align 4, !tbaa !9
  %31 = call i32 @set_insert(ptr noundef nonnull %3, ptr noundef nonnull %28) #6
  %32 = icmp slt i32 %31, 0
  br i1 %32, label %.loopexit, label %33

33:                                               ; preds = %30
  %34 = icmp eq i32 %31, 1
  br i1 %34, label %35, label %37

35:                                               ; preds = %33
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %36) #6
  br label %37

37:                                               ; preds = %33, %35
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = add nsw i32 %38, -1
  store i32 %39, ptr %7, align 4, !tbaa !9
  %40 = icmp sgt i32 %38, 0
  br i1 %40, label %27, label %41, !llvm.loop !13

41:                                               ; preds = %37
  call void @print_set(ptr noundef nonnull %3)
  %42 = load ptr, ptr @stdout, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.2) #6
  %44 = call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #7
  store ptr %44, ptr %6, align 8, !tbaa !5
  %45 = icmp eq ptr %44, null
  br i1 %45, label %.loopexit, label %46

46:                                               ; preds = %41
  store i32 200, ptr %44, align 4, !tbaa !9
  %47 = call i32 @set_insert(ptr noundef nonnull %3, ptr noundef nonnull %44) #6
  %48 = icmp slt i32 %47, 0
  br i1 %48, label %.loopexit, label %49

49:                                               ; preds = %46
  %50 = icmp eq i32 %47, 1
  br i1 %50, label %51, label %53

51:                                               ; preds = %49
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %52) #6
  br label %53

53:                                               ; preds = %51, %49
  %54 = call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #7
  store ptr %54, ptr %6, align 8, !tbaa !5
  %55 = icmp eq ptr %54, null
  br i1 %55, label %.loopexit, label %56

56:                                               ; preds = %53
  store i32 100, ptr %54, align 4, !tbaa !9
  %57 = call i32 @set_insert(ptr noundef nonnull %3, ptr noundef nonnull %54) #6
  %58 = icmp slt i32 %57, 0
  br i1 %58, label %.loopexit, label %59

59:                                               ; preds = %56
  %60 = icmp eq i32 %57, 1
  br i1 %60, label %61, label %63

61:                                               ; preds = %59
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %62) #6
  br label %63

63:                                               ; preds = %61, %59
  call void @print_set(ptr noundef nonnull %3)
  %64 = load ptr, ptr @stdout, align 8, !tbaa !5
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.3) #6
  store i32 100, ptr %7, align 4, !tbaa !9
  store ptr %7, ptr %6, align 8, !tbaa !5
  %66 = call i32 @set_remove(ptr noundef nonnull %3, ptr noundef nonnull %6) #6
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %70

68:                                               ; preds = %63
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %69) #6
  br label %70

70:                                               ; preds = %68, %63
  store i32 5, ptr %7, align 4, !tbaa !9
  store ptr %7, ptr %6, align 8, !tbaa !5
  %71 = call i32 @set_remove(ptr noundef nonnull %3, ptr noundef nonnull %6) #6
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %75

73:                                               ; preds = %70
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %74) #6
  br label %75

75:                                               ; preds = %73, %70
  store i32 10, ptr %7, align 4, !tbaa !9
  store ptr %7, ptr %6, align 8, !tbaa !5
  %76 = call i32 @set_remove(ptr noundef nonnull %3, ptr noundef nonnull %6) #6
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %80

78:                                               ; preds = %75
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %79) #6
  br label %80

80:                                               ; preds = %78, %75
  call void @print_set(ptr noundef nonnull %3)
  %81 = load ptr, ptr @stdout, align 8, !tbaa !5
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef nonnull @.str.4) #6
  %83 = call i32 @list_rem_next(ptr noundef nonnull %3, ptr noundef null, ptr noundef nonnull %6) #6
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %87

85:                                               ; preds = %80
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %86) #6
  br label %87

87:                                               ; preds = %85, %80
  %88 = call i32 @list_rem_next(ptr noundef nonnull %3, ptr noundef null, ptr noundef nonnull %6) #6
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %92

90:                                               ; preds = %87
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %91) #6
  br label %92

92:                                               ; preds = %90, %87
  %93 = call i32 @list_rem_next(ptr noundef nonnull %3, ptr noundef null, ptr noundef nonnull %6) #6
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %97

95:                                               ; preds = %92
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %96) #6
  br label %97

97:                                               ; preds = %95, %92
  call void @print_set(ptr noundef nonnull %3)
  %98 = load ptr, ptr @stdout, align 8, !tbaa !5
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef nonnull @.str.5) #6
  %100 = load i32, ptr %3, align 8, !tbaa !14
  %101 = icmp sgt i32 %100, 0
  br i1 %101, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %97, %106
  %102 = call i32 @list_rem_next(ptr noundef nonnull %3, ptr noundef null, ptr noundef nonnull %6) #6
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %106

104:                                              ; preds = %.lr.ph
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %105) #6
  br label %106

106:                                              ; preds = %104, %.lr.ph
  %107 = load i32, ptr %3, align 8, !tbaa !14
  %108 = icmp sgt i32 %107, 0
  br i1 %108, label %.lr.ph, label %._crit_edge, !llvm.loop !16

._crit_edge:                                      ; preds = %106, %97
  call void @print_set(ptr noundef nonnull %3)
  call void @set_init(ptr noundef nonnull %4, ptr noundef nonnull @match_int, ptr noundef nonnull @free) #6
  call void @set_init(ptr noundef nonnull %5, ptr noundef nonnull @match_int, ptr noundef nonnull @free) #6
  store i32 9, ptr %7, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %._crit_edge, %141
  %storemerge2936 = phi i32 [ 10, %._crit_edge ], [ %142, %141 ]
  %110 = call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #7
  store ptr %110, ptr %6, align 8, !tbaa !5
  %111 = icmp eq ptr %110, null
  br i1 %111, label %.loopexit, label %112

112:                                              ; preds = %109
  store i32 %storemerge2936, ptr %110, align 4, !tbaa !9
  %113 = call i32 @set_insert(ptr noundef nonnull %4, ptr noundef nonnull %110) #6
  %114 = icmp slt i32 %113, 0
  br i1 %114, label %.loopexit, label %115

115:                                              ; preds = %112
  %116 = icmp eq i32 %113, 1
  br i1 %116, label %117, label %119

117:                                              ; preds = %115
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %118) #6
  br label %119

119:                                              ; preds = %117, %115
  %120 = load i32, ptr %7, align 4
  %121 = add i32 %120, -5
  %or.cond3 = icmp ult i32 %121, 3
  br i1 %or.cond3, label %122, label %131

122:                                              ; preds = %119
  %123 = call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #7
  store ptr %123, ptr %6, align 8, !tbaa !5
  %124 = icmp eq ptr %123, null
  br i1 %124, label %.loopexit, label %125

125:                                              ; preds = %122
  %126 = mul nuw nsw i32 %120, 10
  store i32 %126, ptr %123, align 4, !tbaa !9
  %127 = call i32 @set_insert(ptr noundef nonnull %5, ptr noundef nonnull %123) #6
  %128 = icmp slt i32 %127, 0
  br i1 %128, label %.loopexit, label %129

129:                                              ; preds = %125
  %130 = icmp eq i32 %127, 1
  br i1 %130, label %.sink.split, label %141

131:                                              ; preds = %119
  %132 = and i32 %120, -3
  %or.cond5 = icmp eq i32 %132, 1
  br i1 %or.cond5, label %133, label %141

133:                                              ; preds = %131
  %134 = call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #7
  store ptr %134, ptr %6, align 8, !tbaa !5
  %135 = icmp eq ptr %134, null
  br i1 %135, label %.loopexit, label %136

136:                                              ; preds = %133
  store i32 %120, ptr %134, align 4, !tbaa !9
  %137 = call i32 @set_insert(ptr noundef nonnull %5, ptr noundef nonnull %134) #6
  %138 = icmp slt i32 %137, 0
  br i1 %138, label %.loopexit, label %139

139:                                              ; preds = %136
  %140 = icmp eq i32 %137, 1
  br i1 %140, label %.sink.split, label %141

.sink.split:                                      ; preds = %139, %129
  %.sink = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %.sink) #6
  br label %141

141:                                              ; preds = %.sink.split, %129, %139, %131
  %142 = load i32, ptr %7, align 4, !tbaa !9
  %143 = add nsw i32 %142, -1
  store i32 %143, ptr %7, align 4, !tbaa !9
  %144 = icmp sgt i32 %142, 0
  br i1 %144, label %109, label %145, !llvm.loop !17

145:                                              ; preds = %141
  %146 = load ptr, ptr @stdout, align 8, !tbaa !5
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %146, ptr noundef nonnull @.str.6) #6
  call void @print_set(ptr noundef nonnull %4)
  %148 = load ptr, ptr @stdout, align 8, !tbaa !5
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef nonnull @.str.7) #6
  call void @print_set(ptr noundef nonnull %5)
  %150 = load ptr, ptr @stdout, align 8, !tbaa !5
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef nonnull @.str.8) #6
  %152 = call i32 @set_union(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5) #6
  %.not = icmp eq i32 %152, 0
  br i1 %.not, label %153, label %.loopexit

153:                                              ; preds = %145
  call void @print_set(ptr noundef nonnull %3)
  %154 = load ptr, ptr @stdout, align 8, !tbaa !5
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %154, ptr noundef nonnull @.str.9) #6
  call void @list_destroy(ptr noundef nonnull %3) #6
  %156 = load ptr, ptr @stdout, align 8, !tbaa !5
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef nonnull @.str.10) #6
  %158 = call i32 @set_intersection(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5) #6
  %.not30 = icmp eq i32 %158, 0
  br i1 %.not30, label %159, label %.loopexit

159:                                              ; preds = %153
  call void @print_set(ptr noundef nonnull %3)
  %160 = load ptr, ptr @stdout, align 8, !tbaa !5
  %161 = call i32 @set_is_equal(ptr noundef nonnull %3, ptr noundef nonnull %4) #6
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef nonnull @.str.11, i32 noundef %161) #6
  %163 = load ptr, ptr @stdout, align 8, !tbaa !5
  %164 = call i32 @set_is_equal(ptr noundef nonnull %4, ptr noundef nonnull %4) #6
  %165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef nonnull @.str.12, i32 noundef %164) #6
  %166 = load ptr, ptr @stdout, align 8, !tbaa !5
  %167 = call i32 @set_is_subset(ptr noundef nonnull %3, ptr noundef nonnull %4) #6
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef nonnull @.str.13, i32 noundef %167) #6
  %169 = load ptr, ptr @stdout, align 8, !tbaa !5
  %170 = call i32 @set_is_subset(ptr noundef nonnull %5, ptr noundef nonnull %4) #6
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef nonnull @.str.14, i32 noundef %170) #6
  %172 = load ptr, ptr @stdout, align 8, !tbaa !5
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef nonnull @.str.15) #6
  call void @list_destroy(ptr noundef nonnull %3) #6
  %174 = load ptr, ptr @stdout, align 8, !tbaa !5
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %174, ptr noundef nonnull @.str.16) #6
  %176 = call i32 @set_difference(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5) #6
  %.not31 = icmp eq i32 %176, 0
  br i1 %.not31, label %177, label %.loopexit

177:                                              ; preds = %159
  call void @print_set(ptr noundef nonnull %3)
  store i32 3, ptr %7, align 4, !tbaa !9
  %178 = load ptr, ptr @stdout, align 8, !tbaa !5
  %179 = call i32 @set_is_member(ptr noundef nonnull %3, ptr noundef nonnull %7) #6
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef nonnull @.str.17, i32 noundef 3, i32 noundef %179) #6
  store i32 5, ptr %7, align 4, !tbaa !9
  %181 = load ptr, ptr @stdout, align 8, !tbaa !5
  %182 = call i32 @set_is_member(ptr noundef nonnull %3, ptr noundef nonnull %7) #6
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef nonnull @.str.18, i32 noundef 5, i32 noundef %182) #6
  %184 = load ptr, ptr @stdout, align 8, !tbaa !5
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %184, ptr noundef nonnull @.str.19) #6
  call void @list_destroy(ptr noundef nonnull %3) #6
  call void @list_destroy(ptr noundef nonnull %4) #6
  call void @list_destroy(ptr noundef nonnull %5) #6
  br label %.loopexit

.loopexit:                                        ; preds = %13, %10, %30, %27, %136, %133, %125, %122, %112, %109, %159, %153, %145, %56, %53, %46, %41, %177
  %.0 = phi i32 [ 0, %177 ], [ 1, %41 ], [ 1, %46 ], [ 1, %53 ], [ 1, %56 ], [ 1, %145 ], [ 1, %153 ], [ 1, %159 ], [ 1, %109 ], [ 1, %112 ], [ 1, %122 ], [ 1, %125 ], [ 1, %133 ], [ 1, %136 ], [ 1, %27 ], [ 1, %30 ], [ 1, %10 ], [ 1, %13 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #6
  ret i32 %.0
}

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

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

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) #3

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

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

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

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

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

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

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

declare void @list_destroy(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 = { 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !10, i64 0}
!15 = !{!"List_", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass