; LLVM IR from tezc/sc :: socket (sock_test)

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

%struct.sc_sock_poll = type { i32, ptr }
%struct.sc_sock_pipe = type { %struct.sc_sock_fd, [2 x i32], [128 x i8] }
%struct.sc_sock_fd = type { i32, i32, i32 }

@.str.3 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [30 x i8], align 1
@__PRETTY_FUNCTION__.test_poll_mass = external hidden unnamed_addr constant [26 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [64 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @test_poll_mass() #2 {
  %1 = alloca %struct.sc_sock_poll, align 8
  %2 = alloca [100 x %struct.sc_sock_pipe], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 14800, ptr %2) #4
  %11 = call i32 @sc_sock_poll_init(ptr noundef %1)
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %14

13:                                               ; preds = %0
  br label %15

14:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str.71, ptr noundef @.str.3, i32 noundef 426, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

15:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %38, %15
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = icmp slt i32 %17, 100
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %41

20:                                               ; preds = %16
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %22
  %24 = call i32 @sc_sock_pipe_init(ptr noundef %23, i32 noundef 0)
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %27

26:                                               ; preds = %20
  br label %28

27:                                               ; preds = %20
  call void @__assert_fail(ptr noundef @.str.72, ptr noundef @.str.3, i32 noundef 428, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

28:                                               ; preds = %26
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %30
  %32 = getelementptr inbounds %struct.sc_sock_pipe, ptr %31, i32 0, i32 0
  %33 = call i32 @sc_sock_poll_add(ptr noundef %1, ptr noundef %32, i32 noundef 1, ptr noundef null)
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %28
  br label %37

36:                                               ; preds = %28
  call void @__assert_fail(ptr noundef @.str.73, ptr noundef @.str.3, i32 noundef 430, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

37:                                               ; preds = %35
  br label %38

38:                                               ; preds = %37
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %3, align 4, !tbaa !5
  br label %16, !llvm.loop !9

41:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %72, %41
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = icmp slt i32 %43, 100
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %75

46:                                               ; preds = %42
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %48
  %50 = getelementptr inbounds %struct.sc_sock_pipe, ptr %49, i32 0, i32 0
  %51 = call i32 @sc_sock_poll_del(ptr noundef %1, ptr noundef %50, i32 noundef 1, ptr noundef null)
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %46
  br label %55

54:                                               ; preds = %46
  call void @__assert_fail(ptr noundef @.str.74, ptr noundef @.str.3, i32 noundef 434, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

55:                                               ; preds = %53
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %57
  %59 = call i32 @sc_sock_pipe_term(ptr noundef %58)
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %55
  br label %63

62:                                               ; preds = %55
  call void @__assert_fail(ptr noundef @.str.75, ptr noundef @.str.3, i32 noundef 435, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

63:                                               ; preds = %61
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %65
  %67 = call i32 @sc_sock_pipe_term(ptr noundef %66)
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %70

69:                                               ; preds = %63
  br label %71

70:                                               ; preds = %63
  call void @__assert_fail(ptr noundef @.str.75, ptr noundef @.str.3, i32 noundef 436, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

71:                                               ; preds = %69
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %4, align 4, !tbaa !5
  br label %42, !llvm.loop !11

75:                                               ; preds = %45
  %76 = call i32 @sc_sock_poll_term(ptr noundef %1)
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %75
  br label %80

79:                                               ; preds = %75
  call void @__assert_fail(ptr noundef @.str.76, ptr noundef @.str.3, i32 noundef 438, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

80:                                               ; preds = %78
  %81 = call i32 @sc_sock_poll_term(ptr noundef %1)
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %80
  br label %85

84:                                               ; preds = %80
  call void @__assert_fail(ptr noundef @.str.76, ptr noundef @.str.3, i32 noundef 439, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

85:                                               ; preds = %83
  %86 = call i32 @sc_sock_poll_init(ptr noundef %1)
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %85
  br label %90

89:                                               ; preds = %85
  call void @__assert_fail(ptr noundef @.str.71, ptr noundef @.str.3, i32 noundef 441, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

90:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %113, %90
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = icmp slt i32 %92, 100
  br i1 %93, label %95, label %94

94:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %116

95:                                               ; preds = %91
  %96 = load i32, ptr %5, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %97
  %99 = call i32 @sc_sock_pipe_init(ptr noundef %98, i32 noundef 0)
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %101, label %102

101:                                              ; preds = %95
  br label %103

102:                                              ; preds = %95
  call void @__assert_fail(ptr noundef @.str.72, ptr noundef @.str.3, i32 noundef 443, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

103:                                              ; preds = %101
  %104 = load i32, ptr %5, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %105
  %107 = getelementptr inbounds %struct.sc_sock_pipe, ptr %106, i32 0, i32 0
  %108 = call i32 @sc_sock_poll_add(ptr noundef %1, ptr noundef %107, i32 noundef 3, ptr noundef null)
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %111

110:                                              ; preds = %103
  br label %112

111:                                              ; preds = %103
  call void @__assert_fail(ptr noundef @.str.77, ptr noundef @.str.3, i32 noundef 446, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

112:                                              ; preds = %110
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %5, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %5, align 4, !tbaa !5
  br label %91, !llvm.loop !12

116:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %156, %116
  %118 = load i32, ptr %6, align 4, !tbaa !5
  %119 = icmp slt i32 %118, 100
  br i1 %119, label %121, label %120

120:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %159

121:                                              ; preds = %117
  %122 = load i32, ptr %6, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %123
  %125 = getelementptr inbounds %struct.sc_sock_pipe, ptr %124, i32 0, i32 0
  %126 = call i32 @sc_sock_poll_del(ptr noundef %1, ptr noundef %125, i32 noundef 1, ptr noundef null)
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %128, label %129

128:                                              ; preds = %121
  br label %130

129:                                              ; preds = %121
  call void @__assert_fail(ptr noundef @.str.74, ptr noundef @.str.3, i32 noundef 450, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

130:                                              ; preds = %128
  %131 = load i32, ptr %6, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %132
  %134 = getelementptr inbounds %struct.sc_sock_pipe, ptr %133, i32 0, i32 0
  %135 = call i32 @sc_sock_poll_del(ptr noundef %1, ptr noundef %134, i32 noundef 2, ptr noundef null)
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %137, label %138

137:                                              ; preds = %130
  br label %139

138:                                              ; preds = %130
  call void @__assert_fail(ptr noundef @.str.78, ptr noundef @.str.3, i32 noundef 452, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

139:                                              ; preds = %137
  %140 = load i32, ptr %6, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %141
  %143 = call i32 @sc_sock_pipe_term(ptr noundef %142)
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %146

145:                                              ; preds = %139
  br label %147

146:                                              ; preds = %139
  call void @__assert_fail(ptr noundef @.str.75, ptr noundef @.str.3, i32 noundef 453, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

147:                                              ; preds = %145
  %148 = load i32, ptr %6, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %149
  %151 = call i32 @sc_sock_pipe_term(ptr noundef %150)
  %152 = icmp eq i32 %151, 0
  br i1 %152, label %153, label %154

153:                                              ; preds = %147
  br label %155

154:                                              ; preds = %147
  call void @__assert_fail(ptr noundef @.str.75, ptr noundef @.str.3, i32 noundef 454, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

155:                                              ; preds = %153
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %6, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %6, align 4, !tbaa !5
  br label %117, !llvm.loop !13

159:                                              ; preds = %120
  %160 = call i32 @sc_sock_poll_term(ptr noundef %1)
  %161 = icmp eq i32 %160, 0
  br i1 %161, label %162, label %163

162:                                              ; preds = %159
  br label %164

163:                                              ; preds = %159
  call void @__assert_fail(ptr noundef @.str.76, ptr noundef @.str.3, i32 noundef 456, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

164:                                              ; preds = %162
  %165 = call i32 @sc_sock_poll_init(ptr noundef %1)
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %167, label %168

167:                                              ; preds = %164
  br label %169

168:                                              ; preds = %164
  call void @__assert_fail(ptr noundef @.str.71, ptr noundef @.str.3, i32 noundef 458, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

169:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %170

170:                                              ; preds = %192, %169
  %171 = load i32, ptr %7, align 4, !tbaa !5
  %172 = icmp slt i32 %171, 100
  br i1 %172, label %174, label %173

173:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %195

174:                                              ; preds = %170
  %175 = load i32, ptr %7, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %176
  %178 = call i32 @sc_sock_pipe_init(ptr noundef %177, i32 noundef 0)
  %179 = icmp eq i32 %178, 0
  br i1 %179, label %180, label %181

180:                                              ; preds = %174
  br label %182

181:                                              ; preds = %174
  call void @__assert_fail(ptr noundef @.str.72, ptr noundef @.str.3, i32 noundef 460, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

182:                                              ; preds = %180
  %183 = load i32, ptr %7, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %184
  %186 = getelementptr inbounds %struct.sc_sock_pipe, ptr %185, i32 0, i32 0
  %187 = call i32 @sc_sock_poll_add(ptr noundef %1, ptr noundef %186, i32 noundef 3, ptr noundef null)
  %188 = icmp eq i32 %187, 0
  br i1 %188, label %189, label %190

189:                                              ; preds = %182
  br label %191

190:                                              ; preds = %182
  call void @__assert_fail(ptr noundef @.str.77, ptr noundef @.str.3, i32 noundef 463, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

191:                                              ; preds = %189
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %7, align 4, !tbaa !5
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %7, align 4, !tbaa !5
  br label %170, !llvm.loop !14

195:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %196

196:                                              ; preds = %235, %195
  %197 = load i32, ptr %8, align 4, !tbaa !5
  %198 = icmp slt i32 %197, 100
  br i1 %198, label %200, label %199

199:                                              ; preds = %196
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %238

200:                                              ; preds = %196
  %201 = load i32, ptr %8, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %202
  %204 = getelementptr inbounds %struct.sc_sock_pipe, ptr %203, i32 0, i32 0
  %205 = call i32 @sc_sock_poll_del(ptr noundef %1, ptr noundef %204, i32 noundef 2, ptr noundef null)
  %206 = icmp eq i32 %205, 0
  br i1 %206, label %207, label %208

207:                                              ; preds = %200
  br label %209

208:                                              ; preds = %200
  call void @__assert_fail(ptr noundef @.str.78, ptr noundef @.str.3, i32 noundef 467, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

209:                                              ; preds = %207
  %210 = load i32, ptr %8, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %211
  %213 = getelementptr inbounds %struct.sc_sock_pipe, ptr %212, i32 0, i32 0
  %214 = call i32 @sc_sock_poll_del(ptr noundef %1, ptr noundef %213, i32 noundef 1, ptr noundef null)
  %215 = icmp eq i32 %214, 0
  br i1 %215, label %216, label %217

216:                                              ; preds = %209
  br label %218

217:                                              ; preds = %209
  call void @__assert_fail(ptr noundef @.str.74, ptr noundef @.str.3, i32 noundef 469, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

218:                                              ; preds = %216
  %219 = load i32, ptr %8, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %220
  %222 = call i32 @sc_sock_pipe_term(ptr noundef %221)
  %223 = icmp eq i32 %222, 0
  br i1 %223, label %224, label %225

224:                                              ; preds = %218
  br label %226

225:                                              ; preds = %218
  call void @__assert_fail(ptr noundef @.str.75, ptr noundef @.str.3, i32 noundef 470, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

226:                                              ; preds = %224
  %227 = load i32, ptr %8, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %228
  %230 = call i32 @sc_sock_pipe_term(ptr noundef %229)
  %231 = icmp eq i32 %230, 0
  br i1 %231, label %232, label %233

232:                                              ; preds = %226
  br label %234

233:                                              ; preds = %226
  call void @__assert_fail(ptr noundef @.str.75, ptr noundef @.str.3, i32 noundef 471, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

234:                                              ; preds = %232
  br label %235

235:                                              ; preds = %234
  %236 = load i32, ptr %8, align 4, !tbaa !5
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %8, align 4, !tbaa !5
  br label %196, !llvm.loop !15

238:                                              ; preds = %199
  %239 = call i32 @sc_sock_poll_term(ptr noundef %1)
  %240 = icmp eq i32 %239, 0
  br i1 %240, label %241, label %242

241:                                              ; preds = %238
  br label %243

242:                                              ; preds = %238
  call void @__assert_fail(ptr noundef @.str.76, ptr noundef @.str.3, i32 noundef 473, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

243:                                              ; preds = %241
  %244 = call i32 @sc_sock_poll_term(ptr noundef %1)
  %245 = icmp eq i32 %244, 0
  br i1 %245, label %246, label %247

246:                                              ; preds = %243
  br label %248

247:                                              ; preds = %243
  call void @__assert_fail(ptr noundef @.str.76, ptr noundef @.str.3, i32 noundef 474, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

248:                                              ; preds = %246
  %249 = call i32 @sc_sock_poll_init(ptr noundef %1)
  %250 = icmp eq i32 %249, 0
  br i1 %250, label %251, label %252

251:                                              ; preds = %248
  br label %253

252:                                              ; preds = %248
  call void @__assert_fail(ptr noundef @.str.71, ptr noundef @.str.3, i32 noundef 476, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

253:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %254

254:                                              ; preds = %276, %253
  %255 = load i32, ptr %9, align 4, !tbaa !5
  %256 = icmp slt i32 %255, 100
  br i1 %256, label %258, label %257

257:                                              ; preds = %254
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %279

258:                                              ; preds = %254
  %259 = load i32, ptr %9, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %260
  %262 = call i32 @sc_sock_pipe_init(ptr noundef %261, i32 noundef 0)
  %263 = icmp eq i32 %262, 0
  br i1 %263, label %264, label %265

264:                                              ; preds = %258
  br label %266

265:                                              ; preds = %258
  call void @__assert_fail(ptr noundef @.str.72, ptr noundef @.str.3, i32 noundef 478, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

266:                                              ; preds = %264
  %267 = load i32, ptr %9, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %268
  %270 = getelementptr inbounds %struct.sc_sock_pipe, ptr %269, i32 0, i32 0
  %271 = call i32 @sc_sock_poll_add(ptr noundef %1, ptr noundef %270, i32 noundef 2, ptr noundef null)
  %272 = icmp eq i32 %271, 0
  br i1 %272, label %273, label %274

273:                                              ; preds = %266
  br label %275

274:                                              ; preds = %266
  call void @__assert_fail(ptr noundef @.str.79, ptr noundef @.str.3, i32 noundef 480, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

275:                                              ; preds = %273
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %9, align 4, !tbaa !5
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %9, align 4, !tbaa !5
  br label %254, !llvm.loop !16

279:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %280

280:                                              ; preds = %311, %279
  %281 = load i32, ptr %10, align 4, !tbaa !5
  %282 = icmp slt i32 %281, 100
  br i1 %282, label %284, label %283

283:                                              ; preds = %280
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %314

284:                                              ; preds = %280
  %285 = load i32, ptr %10, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %286
  %288 = getelementptr inbounds %struct.sc_sock_pipe, ptr %287, i32 0, i32 0
  %289 = call i32 @sc_sock_poll_del(ptr noundef %1, ptr noundef %288, i32 noundef 2, ptr noundef null)
  %290 = icmp eq i32 %289, 0
  br i1 %290, label %291, label %292

291:                                              ; preds = %284
  br label %293

292:                                              ; preds = %284
  call void @__assert_fail(ptr noundef @.str.78, ptr noundef @.str.3, i32 noundef 484, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

293:                                              ; preds = %291
  %294 = load i32, ptr %10, align 4, !tbaa !5
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %295
  %297 = getelementptr inbounds %struct.sc_sock_pipe, ptr %296, i32 0, i32 0
  %298 = call i32 @sc_sock_poll_del(ptr noundef %1, ptr noundef %297, i32 noundef 1, ptr noundef null)
  %299 = icmp eq i32 %298, 0
  br i1 %299, label %300, label %301

300:                                              ; preds = %293
  br label %302

301:                                              ; preds = %293
  call void @__assert_fail(ptr noundef @.str.74, ptr noundef @.str.3, i32 noundef 486, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

302:                                              ; preds = %300
  %303 = load i32, ptr %10, align 4, !tbaa !5
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %304
  %306 = call i32 @sc_sock_pipe_term(ptr noundef %305)
  %307 = icmp eq i32 %306, 0
  br i1 %307, label %308, label %309

308:                                              ; preds = %302
  br label %310

309:                                              ; preds = %302
  call void @__assert_fail(ptr noundef @.str.75, ptr noundef @.str.3, i32 noundef 487, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

310:                                              ; preds = %308
  br label %311

311:                                              ; preds = %310
  %312 = load i32, ptr %10, align 4, !tbaa !5
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %10, align 4, !tbaa !5
  br label %280, !llvm.loop !17

314:                                              ; preds = %283
  %315 = call i32 @sc_sock_poll_term(ptr noundef %1)
  %316 = icmp eq i32 %315, 0
  br i1 %316, label %317, label %318

317:                                              ; preds = %314
  br label %319

318:                                              ; preds = %314
  call void @__assert_fail(ptr noundef @.str.76, ptr noundef @.str.3, i32 noundef 489, ptr noundef @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

319:                                              ; preds = %317
  call void @llvm.lifetime.end.p0(i64 14800, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %1) #4
  ret void
}

declare i32 @sc_sock_poll_init(ptr noundef) #3

declare i32 @sc_sock_pipe_init(ptr noundef, i32 noundef) #3

declare i32 @sc_sock_poll_add(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare i32 @sc_sock_poll_del(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare i32 @sc_sock_pipe_term(ptr noundef) #3

declare i32 @sc_sock_poll_term(ptr noundef) #3

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

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

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


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

%struct.sc_sock_poll = type { i32, ptr }
%struct.sc_sock_pipe = type { %struct.sc_sock_fd, [2 x i32], [128 x i8] }
%struct.sc_sock_fd = type { i32, i32, i32 }

@.str.3 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [30 x i8], align 1
@__PRETTY_FUNCTION__.test_poll_mass = external hidden unnamed_addr constant [26 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [64 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @test_poll_mass() local_unnamed_addr #2 {
  %1 = alloca %struct.sc_sock_poll, align 8
  %2 = alloca [100 x %struct.sc_sock_pipe], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 14800, ptr nonnull %2) #4
  %3 = call i32 @sc_sock_poll_init(ptr noundef nonnull %1) #4
  %4 = icmp eq i32 %3, 0
  br i1 %4, label %.preheader51, label %5

5:                                                ; preds = %0
  call void @__assert_fail(ptr noundef nonnull @.str.71, ptr noundef nonnull @.str.3, i32 noundef 426, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

6:                                                ; preds = %11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 100
  br i1 %exitcond.not, label %.preheader50, label %.preheader51, !llvm.loop !5

.preheader51:                                     ; preds = %0, %6
  %indvars.iv = phi i64 [ %indvars.iv.next, %6 ], [ 0, %0 ]
  %7 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %indvars.iv
  %8 = call i32 @sc_sock_pipe_init(ptr noundef nonnull %7, i32 noundef 0) #4
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %11, label %10

10:                                               ; preds = %.preheader51
  call void @__assert_fail(ptr noundef nonnull @.str.72, ptr noundef nonnull @.str.3, i32 noundef 428, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

11:                                               ; preds = %.preheader51
  %12 = call i32 @sc_sock_poll_add(ptr noundef nonnull %1, ptr noundef nonnull %7, i32 noundef 1, ptr noundef null) #4
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %6, label %14

14:                                               ; preds = %11
  call void @__assert_fail(ptr noundef nonnull @.str.73, ptr noundef nonnull @.str.3, i32 noundef 430, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

15:                                               ; preds = %27
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %exitcond64.not = icmp eq i64 %indvars.iv.next62, 100
  br i1 %exitcond64.not, label %16, label %.preheader50, !llvm.loop !7

16:                                               ; preds = %15
  %17 = call i32 @sc_sock_poll_term(ptr noundef nonnull %1) #4
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %32, label %31

.preheader50:                                     ; preds = %6, %15
  %indvars.iv61 = phi i64 [ %indvars.iv.next62, %15 ], [ 0, %6 ]
  %19 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %indvars.iv61
  %20 = call i32 @sc_sock_poll_del(ptr noundef nonnull %1, ptr noundef nonnull %19, i32 noundef 1, ptr noundef null) #4
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %23, label %22

22:                                               ; preds = %.preheader50
  call void @__assert_fail(ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.3, i32 noundef 434, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

23:                                               ; preds = %.preheader50
  %24 = call i32 @sc_sock_pipe_term(ptr noundef nonnull %19) #4
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  call void @__assert_fail(ptr noundef nonnull @.str.75, ptr noundef nonnull @.str.3, i32 noundef 435, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

27:                                               ; preds = %23
  %28 = call i32 @sc_sock_pipe_term(ptr noundef nonnull %19) #4
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %15, label %30

30:                                               ; preds = %27
  call void @__assert_fail(ptr noundef nonnull @.str.75, ptr noundef nonnull @.str.3, i32 noundef 436, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

31:                                               ; preds = %16
  call void @__assert_fail(ptr noundef nonnull @.str.76, ptr noundef nonnull @.str.3, i32 noundef 438, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

32:                                               ; preds = %16
  %33 = call i32 @sc_sock_poll_term(ptr noundef nonnull %1) #4
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %36, label %35

35:                                               ; preds = %32
  call void @__assert_fail(ptr noundef nonnull @.str.76, ptr noundef nonnull @.str.3, i32 noundef 439, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

36:                                               ; preds = %32
  %37 = call i32 @sc_sock_poll_init(ptr noundef nonnull %1) #4
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %.preheader49, label %39

39:                                               ; preds = %36
  call void @__assert_fail(ptr noundef nonnull @.str.71, ptr noundef nonnull @.str.3, i32 noundef 441, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

40:                                               ; preds = %45
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %exitcond68.not = icmp eq i64 %indvars.iv.next66, 100
  br i1 %exitcond68.not, label %.preheader48, label %.preheader49, !llvm.loop !8

.preheader49:                                     ; preds = %36, %40
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %40 ], [ 0, %36 ]
  %41 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %indvars.iv65
  %42 = call i32 @sc_sock_pipe_init(ptr noundef nonnull %41, i32 noundef 0) #4
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %45, label %44

44:                                               ; preds = %.preheader49
  call void @__assert_fail(ptr noundef nonnull @.str.72, ptr noundef nonnull @.str.3, i32 noundef 443, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

45:                                               ; preds = %.preheader49
  %46 = call i32 @sc_sock_poll_add(ptr noundef nonnull %1, ptr noundef nonnull %41, i32 noundef 3, ptr noundef null) #4
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %40, label %48

48:                                               ; preds = %45
  call void @__assert_fail(ptr noundef nonnull @.str.77, ptr noundef nonnull @.str.3, i32 noundef 446, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

49:                                               ; preds = %65
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %exitcond72.not = icmp eq i64 %indvars.iv.next70, 100
  br i1 %exitcond72.not, label %50, label %.preheader48, !llvm.loop !9

50:                                               ; preds = %49
  %51 = call i32 @sc_sock_poll_term(ptr noundef nonnull %1) #4
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %70, label %69

.preheader48:                                     ; preds = %40, %49
  %indvars.iv69 = phi i64 [ %indvars.iv.next70, %49 ], [ 0, %40 ]
  %53 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %indvars.iv69
  %54 = call i32 @sc_sock_poll_del(ptr noundef nonnull %1, ptr noundef nonnull %53, i32 noundef 1, ptr noundef null) #4
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %57, label %56

56:                                               ; preds = %.preheader48
  call void @__assert_fail(ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.3, i32 noundef 450, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

57:                                               ; preds = %.preheader48
  %58 = call i32 @sc_sock_poll_del(ptr noundef nonnull %1, ptr noundef nonnull %53, i32 noundef 2, ptr noundef null) #4
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %61, label %60

60:                                               ; preds = %57
  call void @__assert_fail(ptr noundef nonnull @.str.78, ptr noundef nonnull @.str.3, i32 noundef 452, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

61:                                               ; preds = %57
  %62 = call i32 @sc_sock_pipe_term(ptr noundef nonnull %53) #4
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  call void @__assert_fail(ptr noundef nonnull @.str.75, ptr noundef nonnull @.str.3, i32 noundef 453, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

65:                                               ; preds = %61
  %66 = call i32 @sc_sock_pipe_term(ptr noundef nonnull %53) #4
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %49, label %68

68:                                               ; preds = %65
  call void @__assert_fail(ptr noundef nonnull @.str.75, ptr noundef nonnull @.str.3, i32 noundef 454, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

69:                                               ; preds = %50
  call void @__assert_fail(ptr noundef nonnull @.str.76, ptr noundef nonnull @.str.3, i32 noundef 456, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

70:                                               ; preds = %50
  %71 = call i32 @sc_sock_poll_init(ptr noundef nonnull %1) #4
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %.preheader47, label %73

73:                                               ; preds = %70
  call void @__assert_fail(ptr noundef nonnull @.str.71, ptr noundef nonnull @.str.3, i32 noundef 458, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

74:                                               ; preds = %79
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %exitcond76.not = icmp eq i64 %indvars.iv.next74, 100
  br i1 %exitcond76.not, label %.preheader46, label %.preheader47, !llvm.loop !10

.preheader47:                                     ; preds = %70, %74
  %indvars.iv73 = phi i64 [ %indvars.iv.next74, %74 ], [ 0, %70 ]
  %75 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %indvars.iv73
  %76 = call i32 @sc_sock_pipe_init(ptr noundef nonnull %75, i32 noundef 0) #4
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %79, label %78

78:                                               ; preds = %.preheader47
  call void @__assert_fail(ptr noundef nonnull @.str.72, ptr noundef nonnull @.str.3, i32 noundef 460, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

79:                                               ; preds = %.preheader47
  %80 = call i32 @sc_sock_poll_add(ptr noundef nonnull %1, ptr noundef nonnull %75, i32 noundef 3, ptr noundef null) #4
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %74, label %82

82:                                               ; preds = %79
  call void @__assert_fail(ptr noundef nonnull @.str.77, ptr noundef nonnull @.str.3, i32 noundef 463, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

83:                                               ; preds = %99
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %exitcond80.not = icmp eq i64 %indvars.iv.next78, 100
  br i1 %exitcond80.not, label %84, label %.preheader46, !llvm.loop !11

84:                                               ; preds = %83
  %85 = call i32 @sc_sock_poll_term(ptr noundef nonnull %1) #4
  %86 = icmp eq i32 %85, 0
  br i1 %86, label %104, label %103

.preheader46:                                     ; preds = %74, %83
  %indvars.iv77 = phi i64 [ %indvars.iv.next78, %83 ], [ 0, %74 ]
  %87 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %indvars.iv77
  %88 = call i32 @sc_sock_poll_del(ptr noundef nonnull %1, ptr noundef nonnull %87, i32 noundef 2, ptr noundef null) #4
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %91, label %90

90:                                               ; preds = %.preheader46
  call void @__assert_fail(ptr noundef nonnull @.str.78, ptr noundef nonnull @.str.3, i32 noundef 467, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

91:                                               ; preds = %.preheader46
  %92 = call i32 @sc_sock_poll_del(ptr noundef nonnull %1, ptr noundef nonnull %87, i32 noundef 1, ptr noundef null) #4
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %95, label %94

94:                                               ; preds = %91
  call void @__assert_fail(ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.3, i32 noundef 469, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

95:                                               ; preds = %91
  %96 = call i32 @sc_sock_pipe_term(ptr noundef nonnull %87) #4
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %99, label %98

98:                                               ; preds = %95
  call void @__assert_fail(ptr noundef nonnull @.str.75, ptr noundef nonnull @.str.3, i32 noundef 470, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

99:                                               ; preds = %95
  %100 = call i32 @sc_sock_pipe_term(ptr noundef nonnull %87) #4
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %83, label %102

102:                                              ; preds = %99
  call void @__assert_fail(ptr noundef nonnull @.str.75, ptr noundef nonnull @.str.3, i32 noundef 471, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

103:                                              ; preds = %84
  call void @__assert_fail(ptr noundef nonnull @.str.76, ptr noundef nonnull @.str.3, i32 noundef 473, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

104:                                              ; preds = %84
  %105 = call i32 @sc_sock_poll_term(ptr noundef nonnull %1) #4
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %108, label %107

107:                                              ; preds = %104
  call void @__assert_fail(ptr noundef nonnull @.str.76, ptr noundef nonnull @.str.3, i32 noundef 474, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

108:                                              ; preds = %104
  %109 = call i32 @sc_sock_poll_init(ptr noundef nonnull %1) #4
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %.preheader45, label %111

111:                                              ; preds = %108
  call void @__assert_fail(ptr noundef nonnull @.str.71, ptr noundef nonnull @.str.3, i32 noundef 476, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

112:                                              ; preds = %117
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %exitcond84.not = icmp eq i64 %indvars.iv.next82, 100
  br i1 %exitcond84.not, label %.preheader, label %.preheader45, !llvm.loop !12

.preheader45:                                     ; preds = %108, %112
  %indvars.iv81 = phi i64 [ %indvars.iv.next82, %112 ], [ 0, %108 ]
  %113 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %indvars.iv81
  %114 = call i32 @sc_sock_pipe_init(ptr noundef nonnull %113, i32 noundef 0) #4
  %115 = icmp eq i32 %114, 0
  br i1 %115, label %117, label %116

116:                                              ; preds = %.preheader45
  call void @__assert_fail(ptr noundef nonnull @.str.72, ptr noundef nonnull @.str.3, i32 noundef 478, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

117:                                              ; preds = %.preheader45
  %118 = call i32 @sc_sock_poll_add(ptr noundef nonnull %1, ptr noundef nonnull %113, i32 noundef 2, ptr noundef null) #4
  %119 = icmp eq i32 %118, 0
  br i1 %119, label %112, label %120

120:                                              ; preds = %117
  call void @__assert_fail(ptr noundef nonnull @.str.79, ptr noundef nonnull @.str.3, i32 noundef 480, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

121:                                              ; preds = %133
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %exitcond88.not = icmp eq i64 %indvars.iv.next86, 100
  br i1 %exitcond88.not, label %122, label %.preheader, !llvm.loop !13

122:                                              ; preds = %121
  %123 = call i32 @sc_sock_poll_term(ptr noundef nonnull %1) #4
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %138, label %137

.preheader:                                       ; preds = %112, %121
  %indvars.iv85 = phi i64 [ %indvars.iv.next86, %121 ], [ 0, %112 ]
  %125 = getelementptr inbounds [100 x %struct.sc_sock_pipe], ptr %2, i64 0, i64 %indvars.iv85
  %126 = call i32 @sc_sock_poll_del(ptr noundef nonnull %1, ptr noundef nonnull %125, i32 noundef 2, ptr noundef null) #4
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %129, label %128

128:                                              ; preds = %.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.78, ptr noundef nonnull @.str.3, i32 noundef 484, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

129:                                              ; preds = %.preheader
  %130 = call i32 @sc_sock_poll_del(ptr noundef nonnull %1, ptr noundef nonnull %125, i32 noundef 1, ptr noundef null) #4
  %131 = icmp eq i32 %130, 0
  br i1 %131, label %133, label %132

132:                                              ; preds = %129
  call void @__assert_fail(ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.3, i32 noundef 486, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

133:                                              ; preds = %129
  %134 = call i32 @sc_sock_pipe_term(ptr noundef nonnull %125) #4
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %121, label %136

136:                                              ; preds = %133
  call void @__assert_fail(ptr noundef nonnull @.str.75, ptr noundef nonnull @.str.3, i32 noundef 487, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

137:                                              ; preds = %122
  call void @__assert_fail(ptr noundef nonnull @.str.76, ptr noundef nonnull @.str.3, i32 noundef 489, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_mass) #5
  unreachable

138:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 14800, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #4
  ret void
}

declare i32 @sc_sock_poll_init(ptr noundef) local_unnamed_addr #3

declare i32 @sc_sock_pipe_init(ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @sc_sock_poll_add(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @sc_sock_poll_del(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @sc_sock_pipe_term(ptr noundef) local_unnamed_addr #3

declare i32 @sc_sock_poll_term(ptr noundef) local_unnamed_addr #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = distinct !{!10, !6}
!11 = distinct !{!11, !6}
!12 = distinct !{!12, !6}
!13 = distinct !{!13, !6}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass