; 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 = type { %struct.sc_sock_fd, i8, i32, [128 x i8] }
%struct.sc_sock_fd = type { i32, i32, i32 }
%struct.sc_sock_poll = type { i32, ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [27 x i8], align 1
@__PRETTY_FUNCTION__.test_poll_edge = external hidden unnamed_addr constant [26 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [24 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: nounwind uwtable
declare dso_local i32 @sc_time_sleep(i64 noundef) #1

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #2

declare void @sc_sock_init(ptr noundef, i32 noundef, i1 noundef zeroext, i32 noundef) #3

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

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

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

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

declare i32 @sc_sock_term(ptr noundef) #3

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

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

declare i32 @sc_sock_finish_connect(ptr noundef) #3

declare i32 @sc_sock_poll_init(ptr 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_poll_term(ptr noundef) #3

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @check_poll_empty(ptr noundef, i32 noundef) #1

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

24:                                               ; preds = %0
  br label %26

25:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.3, i32 noundef 1488, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

26:                                               ; preds = %24
  call void @sc_sock_init(ptr noundef %6, i32 noundef 0, i1 noundef zeroext false, i32 noundef 2)
  %27 = call i32 @sc_sock_listen(ptr noundef %6, ptr noundef @.str, ptr noundef @.str.83)
  store i32 %27, ptr %2, align 4, !tbaa !5
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %26
  br label %32

31:                                               ; preds = %26
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.3, i32 noundef 1492, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

32:                                               ; preds = %30
  %33 = getelementptr inbounds %struct.sc_sock, ptr %6, i32 0, i32 0
  %34 = call i32 @sc_sock_poll_add(ptr noundef %10, ptr noundef %33, i32 noundef 1, ptr noundef %6)
  store i32 %34, ptr %2, align 4, !tbaa !5
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %32
  br label %39

38:                                               ; preds = %32
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.3, i32 noundef 1495, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

39:                                               ; preds = %37
  %40 = load i32, ptr %5, align 4, !tbaa !5
  call void @check_poll_empty(ptr noundef %10, i32 noundef %40)
  call void @sc_sock_init(ptr noundef %7, i32 noundef 0, i1 noundef zeroext false, i32 noundef 2)
  %41 = call i32 @sc_sock_connect(ptr noundef %7, ptr noundef @.str, ptr noundef @.str.83, ptr noundef null, ptr noundef null)
  store i32 %41, ptr %2, align 4, !tbaa !5
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = icmp eq i32 %42, -1
  br i1 %43, label %44, label %51

44:                                               ; preds = %39
  %45 = call ptr @__errno_location() #7
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = icmp eq i32 %46, 11
  br i1 %47, label %48, label %49

48:                                               ; preds = %44
  br label %50

49:                                               ; preds = %44
  call void @__assert_fail(ptr noundef @.str.101, ptr noundef @.str.3, i32 noundef 1502, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

50:                                               ; preds = %48
  br label %57

51:                                               ; preds = %39
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %51
  br label %56

55:                                               ; preds = %51
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.3, i32 noundef 1504, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

56:                                               ; preds = %54
  br label %57

57:                                               ; preds = %56, %50
  %58 = getelementptr inbounds %struct.sc_sock, ptr %7, i32 0, i32 0
  %59 = call i32 @sc_sock_poll_add(ptr noundef %10, ptr noundef %58, i32 noundef 7, ptr noundef %7)
  store i32 %59, ptr %2, align 4, !tbaa !5
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %57
  br label %64

63:                                               ; preds = %57
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.3, i32 noundef 1510, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

64:                                               ; preds = %62
  %65 = call i32 @sc_time_sleep(i64 noundef 250)
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = call i32 @sc_sock_poll_wait(ptr noundef %10, i32 noundef %66)
  store i32 %67, ptr %3, align 4, !tbaa !5
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = icmp sge i32 %68, 2
  br i1 %69, label %70, label %71

70:                                               ; preds = %64
  br label %72

71:                                               ; preds = %64
  call void @__assert_fail(ptr noundef @.str.102, ptr noundef @.str.3, i32 noundef 1514, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

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

73:                                               ; preds = %133, %72
  %74 = load i32, ptr %11, align 4, !tbaa !5
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %136

78:                                               ; preds = %73
  %79 = load i32, ptr %11, align 4, !tbaa !5
  %80 = call i32 @sc_sock_poll_event(ptr noundef %10, i32 noundef %79)
  store i32 %80, ptr %1, align 4, !tbaa !5
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %82 = call ptr @sc_sock_poll_data(ptr noundef %10, i32 noundef %81)
  store ptr %82, ptr %9, align 8, !tbaa !9
  %83 = load i32, ptr %1, align 4, !tbaa !5
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %78
  br label %133

86:                                               ; preds = %78
  %87 = load ptr, ptr %9, align 8, !tbaa !9
  %88 = icmp eq ptr %87, %6
  br i1 %88, label %89, label %108

89:                                               ; preds = %86
  %90 = load i32, ptr %1, align 4, !tbaa !5
  %91 = and i32 %90, 1
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %100

93:                                               ; preds = %89
  %94 = call i32 @sc_sock_accept(ptr noundef %6, ptr noundef %8)
  store i32 %94, ptr %2, align 4, !tbaa !5
  %95 = load i32, ptr %2, align 4, !tbaa !5
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %93
  br label %99

98:                                               ; preds = %93
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.3, i32 noundef 1528, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

99:                                               ; preds = %97
  br label %100

100:                                              ; preds = %99, %89
  %101 = load i32, ptr %1, align 4, !tbaa !5
  %102 = and i32 %101, 2
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %105

104:                                              ; preds = %100
  call void @__assert_fail(ptr noundef @.str.86, ptr noundef @.str.3, i32 noundef 1532, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

105:                                              ; preds = %100
  %106 = load i32, ptr %4, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %4, align 4, !tbaa !5
  br label %132

108:                                              ; preds = %86
  %109 = load ptr, ptr %9, align 8, !tbaa !9
  %110 = icmp eq ptr %109, %7
  br i1 %110, label %111, label %130

111:                                              ; preds = %108
  %112 = load i32, ptr %1, align 4, !tbaa !5
  %113 = and i32 %112, 2
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %122

115:                                              ; preds = %111
  %116 = call i32 @sc_sock_finish_connect(ptr noundef %7)
  store i32 %116, ptr %2, align 4, !tbaa !5
  %117 = load i32, ptr %2, align 4, !tbaa !5
  %118 = icmp eq i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %115
  br label %121

120:                                              ; preds = %115
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.3, i32 noundef 1538, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

121:                                              ; preds = %119
  br label %122

122:                                              ; preds = %121, %111
  %123 = load i32, ptr %1, align 4, !tbaa !5
  %124 = and i32 %123, 1
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %127

126:                                              ; preds = %122
  call void @__assert_fail(ptr noundef @.str.86, ptr noundef @.str.3, i32 noundef 1542, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

127:                                              ; preds = %122
  %128 = load i32, ptr %4, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %4, align 4, !tbaa !5
  br label %131

130:                                              ; preds = %108
  call void @__assert_fail(ptr noundef @.str.86, ptr noundef @.str.3, i32 noundef 1546, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

131:                                              ; preds = %127
  br label %132

132:                                              ; preds = %131, %105
  br label %133

133:                                              ; preds = %132, %85
  %134 = load i32, ptr %11, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %11, align 4, !tbaa !5
  br label %73, !llvm.loop !11

136:                                              ; preds = %77
  %137 = load i32, ptr %4, align 4, !tbaa !5
  %138 = icmp eq i32 %137, 2
  br i1 %138, label %139, label %140

139:                                              ; preds = %136
  br label %141

140:                                              ; preds = %136
  call void @__assert_fail(ptr noundef @.str.103, ptr noundef @.str.3, i32 noundef 1549, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

141:                                              ; preds = %139
  %142 = getelementptr inbounds %struct.sc_sock, ptr %8, i32 0, i32 0
  %143 = call i32 @sc_sock_poll_add(ptr noundef %10, ptr noundef %142, i32 noundef 7, ptr noundef %8)
  store i32 %143, ptr %2, align 4, !tbaa !5
  %144 = load i32, ptr %2, align 4, !tbaa !5
  %145 = icmp eq i32 %144, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %141
  br label %148

147:                                              ; preds = %141
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.3, i32 noundef 1554, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

148:                                              ; preds = %146
  %149 = call i32 @sc_time_sleep(i64 noundef 250)
  %150 = load i32, ptr %5, align 4, !tbaa !5
  %151 = call i32 @sc_sock_poll_wait(ptr noundef %10, i32 noundef %150)
  store i32 %151, ptr %3, align 4, !tbaa !5
  %152 = load i32, ptr %3, align 4, !tbaa !5
  %153 = icmp sge i32 %152, 1
  br i1 %153, label %154, label %155

154:                                              ; preds = %148
  br label %156

155:                                              ; preds = %148
  call void @__assert_fail(ptr noundef @.str.104, ptr noundef @.str.3, i32 noundef 1558, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

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

157:                                              ; preds = %183, %156
  %158 = load i32, ptr %12, align 4, !tbaa !5
  %159 = load i32, ptr %3, align 4, !tbaa !5
  %160 = icmp slt i32 %158, %159
  br i1 %160, label %162, label %161

161:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %186

162:                                              ; preds = %157
  %163 = load i32, ptr %12, align 4, !tbaa !5
  %164 = call i32 @sc_sock_poll_event(ptr noundef %10, i32 noundef %163)
  store i32 %164, ptr %1, align 4, !tbaa !5
  %165 = load i32, ptr %12, align 4, !tbaa !5
  %166 = call ptr @sc_sock_poll_data(ptr noundef %10, i32 noundef %165)
  store ptr %166, ptr %9, align 8, !tbaa !9
  %167 = load i32, ptr %1, align 4, !tbaa !5
  %168 = icmp eq i32 %167, 0
  br i1 %168, label %169, label %170

169:                                              ; preds = %162
  br label %183

170:                                              ; preds = %162
  %171 = load ptr, ptr %9, align 8, !tbaa !9
  %172 = icmp eq ptr %171, %8
  br i1 %172, label %173, label %174

173:                                              ; preds = %170
  br label %175

174:                                              ; preds = %170
  call void @__assert_fail(ptr noundef @.str.105, ptr noundef @.str.3, i32 noundef 1569, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

175:                                              ; preds = %173
  %176 = load i32, ptr %1, align 4, !tbaa !5
  %177 = icmp eq i32 %176, 2
  br i1 %177, label %178, label %179

178:                                              ; preds = %175
  br label %180

179:                                              ; preds = %175
  call void @__assert_fail(ptr noundef @.str.106, ptr noundef @.str.3, i32 noundef 1570, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

180:                                              ; preds = %178
  %181 = load i32, ptr %4, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %4, align 4, !tbaa !5
  br label %183

183:                                              ; preds = %180, %169
  %184 = load i32, ptr %12, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %12, align 4, !tbaa !5
  br label %157, !llvm.loop !13

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

189:                                              ; preds = %186
  br label %191

190:                                              ; preds = %186
  call void @__assert_fail(ptr noundef @.str.107, ptr noundef @.str.3, i32 noundef 1573, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

191:                                              ; preds = %189
  %192 = load i32, ptr %5, align 4, !tbaa !5
  call void @check_poll_empty(ptr noundef %10, i32 noundef %192)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %193

193:                                              ; preds = %210, %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %194 = call i32 @sc_sock_send(ptr noundef %8, ptr noundef @.str.108, i32 noundef 7, i32 noundef 0)
  store i32 %194, ptr %15, align 4, !tbaa !5
  %195 = load i32, ptr %15, align 4, !tbaa !5
  %196 = icmp slt i32 %195, 0
  br i1 %196, label %197, label %204

197:                                              ; preds = %193
  %198 = call ptr @__errno_location() #7
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %200 = icmp eq i32 %199, 11
  br i1 %200, label %201, label %202

201:                                              ; preds = %197
  br label %203

202:                                              ; preds = %197
  call void @__assert_fail(ptr noundef @.str.101, ptr noundef @.str.3, i32 noundef 1583, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

203:                                              ; preds = %201
  store i32 8, ptr %16, align 4
  br label %208

204:                                              ; preds = %193
  %205 = load i32, ptr %15, align 4, !tbaa !5
  %206 = load i32, ptr %13, align 4, !tbaa !5
  %207 = add nsw i32 %206, %205
  store i32 %207, ptr %13, align 4, !tbaa !5
  store i32 0, ptr %16, align 4
  br label %208

208:                                              ; preds = %204, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %209 = load i32, ptr %16, align 4
  switch i32 %209, label %515 [
    i32 0, label %210
    i32 8, label %211
  ]

210:                                              ; preds = %208
  br label %193

211:                                              ; preds = %208
  %212 = load i32, ptr %13, align 4, !tbaa !5
  %213 = icmp sgt i32 %212, 0
  br i1 %213, label %214, label %215

214:                                              ; preds = %211
  br label %216

215:                                              ; preds = %211
  call void @__assert_fail(ptr noundef @.str.109, ptr noundef @.str.3, i32 noundef 1589, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

216:                                              ; preds = %214
  br label %217

217:                                              ; preds = %297, %216
  %218 = call i32 @sc_time_sleep(i64 noundef 250)
  %219 = load i32, ptr %5, align 4, !tbaa !5
  %220 = call i32 @sc_sock_poll_wait(ptr noundef %10, i32 noundef %219)
  store i32 %220, ptr %3, align 4, !tbaa !5
  %221 = load i32, ptr %3, align 4, !tbaa !5
  %222 = icmp sge i32 %221, 1
  br i1 %222, label %223, label %224

223:                                              ; preds = %217
  br label %225

224:                                              ; preds = %217
  call void @__assert_fail(ptr noundef @.str.104, ptr noundef @.str.3, i32 noundef 1594, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

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

226:                                              ; preds = %266, %225
  %227 = load i32, ptr %17, align 4, !tbaa !5
  %228 = load i32, ptr %3, align 4, !tbaa !5
  %229 = icmp slt i32 %227, %228
  br i1 %229, label %231, label %230

230:                                              ; preds = %226
  store i32 12, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %269

231:                                              ; preds = %226
  %232 = load i32, ptr %17, align 4, !tbaa !5
  %233 = call i32 @sc_sock_poll_event(ptr noundef %10, i32 noundef %232)
  store i32 %233, ptr %1, align 4, !tbaa !5
  %234 = load i32, ptr %17, align 4, !tbaa !5
  %235 = call ptr @sc_sock_poll_data(ptr noundef %10, i32 noundef %234)
  store ptr %235, ptr %9, align 8, !tbaa !9
  %236 = load i32, ptr %1, align 4, !tbaa !5
  %237 = icmp eq i32 %236, 0
  br i1 %237, label %238, label %239

238:                                              ; preds = %231
  br label %266

239:                                              ; preds = %231
  %240 = load ptr, ptr %9, align 8, !tbaa !9
  %241 = icmp eq ptr %240, %7
  br i1 %241, label %242, label %251

242:                                              ; preds = %239
  %243 = load i32, ptr %1, align 4, !tbaa !5
  %244 = and i32 %243, 1
  %245 = icmp ne i32 %244, 0
  br i1 %245, label %246, label %247

246:                                              ; preds = %242
  br label %248

247:                                              ; preds = %242
  call void @__assert_fail(ptr noundef @.str.110, ptr noundef @.str.3, i32 noundef 1606, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

248:                                              ; preds = %246
  %249 = load i32, ptr %4, align 4, !tbaa !5
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %4, align 4, !tbaa !5
  br label %265

251:                                              ; preds = %239
  %252 = load ptr, ptr %9, align 8, !tbaa !9
  %253 = icmp eq ptr %252, %8
  br i1 %253, label %254, label %263

254:                                              ; preds = %251
  %255 = load i32, ptr %1, align 4, !tbaa !5
  %256 = and i32 %255, 2
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %259

258:                                              ; preds = %254
  br label %260

259:                                              ; preds = %254
  call void @__assert_fail(ptr noundef @.str.111, ptr noundef @.str.3, i32 noundef 1609, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

260:                                              ; preds = %258
  %261 = load i32, ptr %4, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %4, align 4, !tbaa !5
  br label %264

263:                                              ; preds = %251
  call void @__assert_fail(ptr noundef @.str.86, ptr noundef @.str.3, i32 noundef 1612, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

264:                                              ; preds = %260
  br label %265

265:                                              ; preds = %264, %248
  br label %266

266:                                              ; preds = %265, %238
  %267 = load i32, ptr %17, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %17, align 4, !tbaa !5
  br label %226, !llvm.loop !14

269:                                              ; preds = %230
  %270 = load i32, ptr %4, align 4, !tbaa !5
  %271 = icmp eq i32 %270, 1
  br i1 %271, label %275, label %272

272:                                              ; preds = %269
  %273 = load i32, ptr %4, align 4, !tbaa !5
  %274 = icmp eq i32 %273, 2
  br i1 %274, label %275, label %276

275:                                              ; preds = %272, %269
  br label %277

276:                                              ; preds = %272
  call void @__assert_fail(ptr noundef @.str.112, ptr noundef @.str.3, i32 noundef 1615, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

277:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  br label %278

278:                                              ; preds = %295, %277
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %279 = call i32 @sc_sock_recv(ptr noundef %7, ptr noundef %18, i32 noundef 1, i32 noundef 0)
  store i32 %279, ptr %19, align 4, !tbaa !5
  %280 = load i32, ptr %19, align 4, !tbaa !5
  %281 = icmp slt i32 %280, 0
  br i1 %281, label %282, label %289

282:                                              ; preds = %278
  %283 = call ptr @__errno_location() #7
  %284 = load i32, ptr %283, align 4, !tbaa !5
  %285 = icmp eq i32 %284, 11
  br i1 %285, label %286, label %287

286:                                              ; preds = %282
  br label %288

287:                                              ; preds = %282
  call void @__assert_fail(ptr noundef @.str.101, ptr noundef @.str.3, i32 noundef 1622, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

288:                                              ; preds = %286
  store i32 15, ptr %16, align 4
  br label %293

289:                                              ; preds = %278
  %290 = load i32, ptr %19, align 4, !tbaa !5
  %291 = load i32, ptr %14, align 4, !tbaa !5
  %292 = add nsw i32 %291, %290
  store i32 %292, ptr %14, align 4, !tbaa !5
  store i32 0, ptr %16, align 4
  br label %293

293:                                              ; preds = %289, %288
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  %294 = load i32, ptr %16, align 4
  switch i32 %294, label %515 [
    i32 0, label %295
    i32 15, label %296
  ]

295:                                              ; preds = %293
  br label %278

296:                                              ; preds = %293
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  br label %297

297:                                              ; preds = %296
  %298 = load i32, ptr %14, align 4, !tbaa !5
  %299 = load i32, ptr %13, align 4, !tbaa !5
  %300 = icmp slt i32 %298, %299
  br i1 %300, label %217, label %301, !llvm.loop !15

301:                                              ; preds = %297
  %302 = load i32, ptr %14, align 4, !tbaa !5
  %303 = load i32, ptr %13, align 4, !tbaa !5
  %304 = icmp eq i32 %302, %303
  br i1 %304, label %305, label %306

305:                                              ; preds = %301
  br label %307

306:                                              ; preds = %301
  call void @__assert_fail(ptr noundef @.str.113, ptr noundef @.str.3, i32 noundef 1629, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

307:                                              ; preds = %305
  %308 = call i32 @sc_time_sleep(i64 noundef 250)
  %309 = load i32, ptr %5, align 4, !tbaa !5
  %310 = call i32 @sc_sock_poll_wait(ptr noundef %10, i32 noundef %309)
  store i32 %310, ptr %3, align 4, !tbaa !5
  %311 = load i32, ptr %3, align 4, !tbaa !5
  %312 = icmp sge i32 %311, 1
  br i1 %312, label %313, label %314

313:                                              ; preds = %307
  br label %315

314:                                              ; preds = %307
  call void @__assert_fail(ptr noundef @.str.104, ptr noundef @.str.3, i32 noundef 1633, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

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

316:                                              ; preds = %345, %315
  %317 = load i32, ptr %20, align 4, !tbaa !5
  %318 = load i32, ptr %3, align 4, !tbaa !5
  %319 = icmp slt i32 %317, %318
  br i1 %319, label %321, label %320

320:                                              ; preds = %316
  store i32 17, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %348

321:                                              ; preds = %316
  %322 = load i32, ptr %20, align 4, !tbaa !5
  %323 = call i32 @sc_sock_poll_event(ptr noundef %10, i32 noundef %322)
  store i32 %323, ptr %1, align 4, !tbaa !5
  %324 = load i32, ptr %20, align 4, !tbaa !5
  %325 = call ptr @sc_sock_poll_data(ptr noundef %10, i32 noundef %324)
  store ptr %325, ptr %9, align 8, !tbaa !9
  %326 = load i32, ptr %1, align 4, !tbaa !5
  %327 = icmp eq i32 %326, 0
  br i1 %327, label %328, label %329

328:                                              ; preds = %321
  br label %345

329:                                              ; preds = %321
  %330 = load ptr, ptr %9, align 8, !tbaa !9
  %331 = icmp eq ptr %330, %7
  br i1 %331, label %335, label %332

332:                                              ; preds = %329
  %333 = load ptr, ptr %9, align 8, !tbaa !9
  %334 = icmp eq ptr %333, %8
  br i1 %334, label %335, label %336

335:                                              ; preds = %332, %329
  br label %337

336:                                              ; preds = %332
  call void @__assert_fail(ptr noundef @.str.114, ptr noundef @.str.3, i32 noundef 1644, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

337:                                              ; preds = %335
  %338 = load i32, ptr %1, align 4, !tbaa !5
  %339 = icmp eq i32 %338, 2
  br i1 %339, label %340, label %341

340:                                              ; preds = %337
  br label %342

341:                                              ; preds = %337
  call void @__assert_fail(ptr noundef @.str.106, ptr noundef @.str.3, i32 noundef 1645, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

342:                                              ; preds = %340
  %343 = load i32, ptr %4, align 4, !tbaa !5
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr %4, align 4, !tbaa !5
  br label %345

345:                                              ; preds = %342, %328
  %346 = load i32, ptr %20, align 4, !tbaa !5
  %347 = add nsw i32 %346, 1
  store i32 %347, ptr %20, align 4, !tbaa !5
  br label %316, !llvm.loop !16

348:                                              ; preds = %320
  %349 = load i32, ptr %4, align 4, !tbaa !5
  %350 = icmp eq i32 %349, 1
  br i1 %350, label %354, label %351

351:                                              ; preds = %348
  %352 = load i32, ptr %4, align 4, !tbaa !5
  %353 = icmp eq i32 %352, 2
  br i1 %353, label %354, label %355

354:                                              ; preds = %351, %348
  br label %356

355:                                              ; preds = %351
  call void @__assert_fail(ptr noundef @.str.112, ptr noundef @.str.3, i32 noundef 1648, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

356:                                              ; preds = %354
  %357 = load i32, ptr %5, align 4, !tbaa !5
  call void @check_poll_empty(ptr noundef %10, i32 noundef %357)
  %358 = getelementptr inbounds %struct.sc_sock, ptr %6, i32 0, i32 0
  %359 = getelementptr inbounds %struct.sc_sock_fd, ptr %358, i32 0, i32 1
  %360 = load i32, ptr %359, align 4, !tbaa !17
  %361 = icmp eq i32 %360, 1
  br i1 %361, label %362, label %363

362:                                              ; preds = %356
  br label %364

363:                                              ; preds = %356
  call void @__assert_fail(ptr noundef @.str.99, ptr noundef @.str.3, i32 noundef 1652, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

364:                                              ; preds = %362
  %365 = getelementptr inbounds %struct.sc_sock, ptr %6, i32 0, i32 0
  %366 = call i32 @sc_sock_poll_del(ptr noundef %10, ptr noundef %365, i32 noundef 1, ptr noundef null)
  %367 = icmp eq i32 %366, 0
  br i1 %367, label %368, label %369

368:                                              ; preds = %364
  br label %370

369:                                              ; preds = %364
  call void @__assert_fail(ptr noundef @.str.115, ptr noundef @.str.3, i32 noundef 1653, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

370:                                              ; preds = %368
  %371 = getelementptr inbounds %struct.sc_sock, ptr %6, i32 0, i32 0
  %372 = getelementptr inbounds %struct.sc_sock_fd, ptr %371, i32 0, i32 1
  %373 = load i32, ptr %372, align 4, !tbaa !17
  %374 = icmp eq i32 %373, 0
  br i1 %374, label %375, label %376

375:                                              ; preds = %370
  br label %377

376:                                              ; preds = %370
  call void @__assert_fail(ptr noundef @.str.100, ptr noundef @.str.3, i32 noundef 1654, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

377:                                              ; preds = %375
  %378 = getelementptr inbounds %struct.sc_sock, ptr %8, i32 0, i32 0
  %379 = getelementptr inbounds %struct.sc_sock_fd, ptr %378, i32 0, i32 1
  %380 = load i32, ptr %379, align 4, !tbaa !17
  %381 = icmp eq i32 %380, 7
  br i1 %381, label %382, label %383

382:                                              ; preds = %377
  br label %384

383:                                              ; preds = %377
  call void @__assert_fail(ptr noundef @.str.116, ptr noundef @.str.3, i32 noundef 1656, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

384:                                              ; preds = %382
  %385 = getelementptr inbounds %struct.sc_sock, ptr %8, i32 0, i32 0
  %386 = call i32 @sc_sock_poll_del(ptr noundef %10, ptr noundef %385, i32 noundef 5, ptr noundef null)
  %387 = icmp eq i32 %386, 0
  br i1 %387, label %388, label %389

388:                                              ; preds = %384
  br label %390

389:                                              ; preds = %384
  call void @__assert_fail(ptr noundef @.str.117, ptr noundef @.str.3, i32 noundef 1658, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

390:                                              ; preds = %388
  %391 = getelementptr inbounds %struct.sc_sock, ptr %8, i32 0, i32 0
  %392 = getelementptr inbounds %struct.sc_sock_fd, ptr %391, i32 0, i32 1
  %393 = load i32, ptr %392, align 4, !tbaa !17
  %394 = icmp eq i32 %393, 2
  br i1 %394, label %395, label %396

395:                                              ; preds = %390
  br label %397

396:                                              ; preds = %390
  call void @__assert_fail(ptr noundef @.str.118, ptr noundef @.str.3, i32 noundef 1659, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

397:                                              ; preds = %395
  %398 = getelementptr inbounds %struct.sc_sock, ptr %8, i32 0, i32 0
  %399 = call i32 @sc_sock_poll_add(ptr noundef %10, ptr noundef %398, i32 noundef 4, ptr noundef null)
  %400 = icmp eq i32 %399, 0
  br i1 %400, label %401, label %402

401:                                              ; preds = %397
  br label %403

402:                                              ; preds = %397
  call void @__assert_fail(ptr noundef @.str.119, ptr noundef @.str.3, i32 noundef 1660, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

403:                                              ; preds = %401
  %404 = getelementptr inbounds %struct.sc_sock, ptr %8, i32 0, i32 0
  %405 = getelementptr inbounds %struct.sc_sock_fd, ptr %404, i32 0, i32 1
  %406 = load i32, ptr %405, align 4, !tbaa !17
  %407 = icmp eq i32 %406, 6
  br i1 %407, label %408, label %409

408:                                              ; preds = %403
  br label %410

409:                                              ; preds = %403
  call void @__assert_fail(ptr noundef @.str.120, ptr noundef @.str.3, i32 noundef 1661, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

410:                                              ; preds = %408
  %411 = getelementptr inbounds %struct.sc_sock, ptr %8, i32 0, i32 0
  %412 = call i32 @sc_sock_poll_del(ptr noundef %10, ptr noundef %411, i32 noundef 2, ptr noundef null)
  %413 = icmp eq i32 %412, 0
  br i1 %413, label %414, label %415

414:                                              ; preds = %410
  br label %416

415:                                              ; preds = %410
  call void @__assert_fail(ptr noundef @.str.121, ptr noundef @.str.3, i32 noundef 1662, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

416:                                              ; preds = %414
  %417 = getelementptr inbounds %struct.sc_sock, ptr %8, i32 0, i32 0
  %418 = getelementptr inbounds %struct.sc_sock_fd, ptr %417, i32 0, i32 1
  %419 = load i32, ptr %418, align 4, !tbaa !17
  %420 = icmp eq i32 %419, 0
  br i1 %420, label %421, label %422

421:                                              ; preds = %416
  br label %423

422:                                              ; preds = %416
  call void @__assert_fail(ptr noundef @.str.122, ptr noundef @.str.3, i32 noundef 1663, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

423:                                              ; preds = %421
  %424 = getelementptr inbounds %struct.sc_sock, ptr %7, i32 0, i32 0
  %425 = getelementptr inbounds %struct.sc_sock_fd, ptr %424, i32 0, i32 1
  %426 = load i32, ptr %425, align 4, !tbaa !17
  %427 = icmp eq i32 %426, 7
  br i1 %427, label %428, label %429

428:                                              ; preds = %423
  br label %430

429:                                              ; preds = %423
  call void @__assert_fail(ptr noundef @.str.123, ptr noundef @.str.3, i32 noundef 1665, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

430:                                              ; preds = %428
  %431 = getelementptr inbounds %struct.sc_sock, ptr %7, i32 0, i32 0
  %432 = call i32 @sc_sock_poll_del(ptr noundef %10, ptr noundef %431, i32 noundef 4, ptr noundef null)
  %433 = icmp eq i32 %432, 0
  br i1 %433, label %434, label %435

434:                                              ; preds = %430
  br label %436

435:                                              ; preds = %430
  call void @__assert_fail(ptr noundef @.str.124, ptr noundef @.str.3, i32 noundef 1666, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

436:                                              ; preds = %434
  %437 = getelementptr inbounds %struct.sc_sock, ptr %7, i32 0, i32 0
  %438 = getelementptr inbounds %struct.sc_sock_fd, ptr %437, i32 0, i32 1
  %439 = load i32, ptr %438, align 4, !tbaa !17
  %440 = icmp eq i32 %439, 3
  br i1 %440, label %441, label %442

441:                                              ; preds = %436
  br label %443

442:                                              ; preds = %436
  call void @__assert_fail(ptr noundef @.str.125, ptr noundef @.str.3, i32 noundef 1667, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

443:                                              ; preds = %441
  %444 = getelementptr inbounds %struct.sc_sock, ptr %7, i32 0, i32 0
  %445 = call i32 @sc_sock_poll_del(ptr noundef %10, ptr noundef %444, i32 noundef 3, ptr noundef null)
  %446 = icmp eq i32 %445, 0
  br i1 %446, label %447, label %448

447:                                              ; preds = %443
  br label %449

448:                                              ; preds = %443
  call void @__assert_fail(ptr noundef @.str.126, ptr noundef @.str.3, i32 noundef 1669, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

449:                                              ; preds = %447
  %450 = getelementptr inbounds %struct.sc_sock, ptr %7, i32 0, i32 0
  %451 = getelementptr inbounds %struct.sc_sock_fd, ptr %450, i32 0, i32 1
  %452 = load i32, ptr %451, align 4, !tbaa !17
  %453 = icmp eq i32 %452, 0
  br i1 %453, label %454, label %455

454:                                              ; preds = %449
  br label %456

455:                                              ; preds = %449
  call void @__assert_fail(ptr noundef @.str.127, ptr noundef @.str.3, i32 noundef 1670, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

456:                                              ; preds = %454
  %457 = getelementptr inbounds %struct.sc_sock, ptr %8, i32 0, i32 0
  %458 = call i32 @sc_sock_poll_add(ptr noundef %10, ptr noundef %457, i32 noundef 1, ptr noundef null)
  %459 = icmp eq i32 %458, 0
  br i1 %459, label %460, label %461

460:                                              ; preds = %456
  br label %462

461:                                              ; preds = %456
  call void @__assert_fail(ptr noundef @.str.128, ptr noundef @.str.3, i32 noundef 1672, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

462:                                              ; preds = %460
  %463 = getelementptr inbounds %struct.sc_sock, ptr %8, i32 0, i32 0
  %464 = call i32 @sc_sock_poll_add(ptr noundef %10, ptr noundef %463, i32 noundef 2, ptr noundef null)
  %465 = icmp eq i32 %464, 0
  br i1 %465, label %466, label %467

466:                                              ; preds = %462
  br label %468

467:                                              ; preds = %462
  call void @__assert_fail(ptr noundef @.str.129, ptr noundef @.str.3, i32 noundef 1673, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

468:                                              ; preds = %466
  %469 = getelementptr inbounds %struct.sc_sock, ptr %8, i32 0, i32 0
  %470 = call i32 @sc_sock_poll_add(ptr noundef %10, ptr noundef %469, i32 noundef 4, ptr noundef null)
  %471 = icmp eq i32 %470, 0
  br i1 %471, label %472, label %473

472:                                              ; preds = %468
  br label %474

473:                                              ; preds = %468
  call void @__assert_fail(ptr noundef @.str.119, ptr noundef @.str.3, i32 noundef 1674, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

474:                                              ; preds = %472
  %475 = getelementptr inbounds %struct.sc_sock, ptr %8, i32 0, i32 0
  %476 = getelementptr inbounds %struct.sc_sock_fd, ptr %475, i32 0, i32 1
  %477 = load i32, ptr %476, align 4, !tbaa !17
  %478 = icmp eq i32 %477, 7
  br i1 %478, label %479, label %480

479:                                              ; preds = %474
  br label %481

480:                                              ; preds = %474
  call void @__assert_fail(ptr noundef @.str.130, ptr noundef @.str.3, i32 noundef 1675, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

481:                                              ; preds = %479
  %482 = getelementptr inbounds %struct.sc_sock, ptr %8, i32 0, i32 0
  %483 = call i32 @sc_sock_poll_del(ptr noundef %10, ptr noundef %482, i32 noundef 1, ptr noundef null)
  %484 = icmp eq i32 %483, 0
  br i1 %484, label %485, label %486

485:                                              ; preds = %481
  br label %487

486:                                              ; preds = %481
  call void @__assert_fail(ptr noundef @.str.131, ptr noundef @.str.3, i32 noundef 1676, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

487:                                              ; preds = %485
  %488 = getelementptr inbounds %struct.sc_sock, ptr %8, i32 0, i32 0
  %489 = getelementptr inbounds %struct.sc_sock_fd, ptr %488, i32 0, i32 1
  %490 = load i32, ptr %489, align 4, !tbaa !17
  %491 = icmp eq i32 %490, 6
  br i1 %491, label %492, label %493

492:                                              ; preds = %487
  br label %494

493:                                              ; preds = %487
  call void @__assert_fail(ptr noundef @.str.120, ptr noundef @.str.3, i32 noundef 1677, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

494:                                              ; preds = %492
  %495 = call i32 @sc_sock_term(ptr noundef %6)
  %496 = icmp eq i32 %495, 0
  br i1 %496, label %497, label %498

497:                                              ; preds = %494
  br label %499

498:                                              ; preds = %494
  call void @__assert_fail(ptr noundef @.str.89, ptr noundef @.str.3, i32 noundef 1679, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

499:                                              ; preds = %497
  %500 = call i32 @sc_sock_term(ptr noundef %8)
  %501 = icmp eq i32 %500, 0
  br i1 %501, label %502, label %503

502:                                              ; preds = %499
  br label %504

503:                                              ; preds = %499
  call void @__assert_fail(ptr noundef @.str.132, ptr noundef @.str.3, i32 noundef 1680, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

504:                                              ; preds = %502
  %505 = call i32 @sc_sock_term(ptr noundef %7)
  %506 = icmp eq i32 %505, 0
  br i1 %506, label %507, label %508

507:                                              ; preds = %504
  br label %509

508:                                              ; preds = %504
  call void @__assert_fail(ptr noundef @.str.133, ptr noundef @.str.3, i32 noundef 1681, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

509:                                              ; preds = %507
  %510 = call i32 @sc_sock_poll_term(ptr noundef %10)
  %511 = icmp eq i32 %510, 0
  br i1 %511, label %512, label %513

512:                                              ; preds = %509
  br label %514

513:                                              ; preds = %509
  call void @__assert_fail(ptr noundef @.str.82, ptr noundef @.str.3, i32 noundef 1682, ptr noundef @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

514:                                              ; preds = %512
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 148, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 148, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 148, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void

515:                                              ; preds = %293, %208
  unreachable
}

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

!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 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = !{!18, !6, i64 4}
!18 = !{!"sc_sock", !19, i64 0, !20, i64 12, !6, i64 16, !7, i64 20}
!19 = !{!"sc_sock_fd", !6, i64 0, !6, i64 4, !6, i64 8}
!20 = !{!"_Bool", !7, i64 0}


; 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 = type { %struct.sc_sock_fd, i8, i32, [128 x i8] }
%struct.sc_sock_fd = type { i32, i32, i32 }
%struct.sc_sock_poll = type { i32, ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [27 x i8], align 1
@__PRETTY_FUNCTION__.test_poll_edge = external hidden unnamed_addr constant [26 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [24 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: nounwind uwtable
declare dso_local i32 @sc_time_sleep(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #2

declare void @sc_sock_init(ptr noundef, i32 noundef, i1 noundef zeroext, i32 noundef) local_unnamed_addr #3

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

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

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

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

declare i32 @sc_sock_term(ptr noundef) local_unnamed_addr #3

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

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

declare i32 @sc_sock_finish_connect(ptr noundef) local_unnamed_addr #3

declare i32 @sc_sock_poll_init(ptr 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_poll_term(ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @check_poll_empty(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @test_poll_edge() local_unnamed_addr #1 {
  %1 = alloca %struct.sc_sock, align 4
  %2 = alloca %struct.sc_sock, align 4
  %3 = alloca %struct.sc_sock, align 4
  %4 = alloca %struct.sc_sock_poll, align 8
  %5 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 148, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 148, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 148, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  %6 = call i32 @sc_sock_poll_init(ptr noundef nonnull %4) #5
  %7 = icmp eq i32 %6, 0
  br i1 %7, label %9, label %8

8:                                                ; preds = %0
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.3, i32 noundef 1488, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

9:                                                ; preds = %0
  call void @sc_sock_init(ptr noundef nonnull %1, i32 noundef 0, i1 noundef zeroext false, i32 noundef 2) #5
  %10 = call i32 @sc_sock_listen(ptr noundef nonnull %1, ptr noundef nonnull @.str, ptr noundef nonnull @.str.83) #5
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %13, label %12

12:                                               ; preds = %9
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.3, i32 noundef 1492, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

13:                                               ; preds = %9
  %14 = call i32 @sc_sock_poll_add(ptr noundef nonnull %4, ptr noundef nonnull %1, i32 noundef 1, ptr noundef nonnull %1) #5
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.3, i32 noundef 1495, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

17:                                               ; preds = %13
  call void @check_poll_empty(ptr noundef nonnull %4, i32 noundef 1)
  call void @sc_sock_init(ptr noundef nonnull %2, i32 noundef 0, i1 noundef zeroext false, i32 noundef 2) #5
  %18 = call i32 @sc_sock_connect(ptr noundef nonnull %2, ptr noundef nonnull @.str, ptr noundef nonnull @.str.83, ptr noundef null, ptr noundef null) #5
  switch i32 %18, label %24 [
    i32 -1, label %19
    i32 0, label %25
  ]

19:                                               ; preds = %17
  %20 = tail call ptr @__errno_location() #7
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = icmp eq i32 %21, 11
  br i1 %22, label %25, label %23

23:                                               ; preds = %19
  call void @__assert_fail(ptr noundef nonnull @.str.101, ptr noundef nonnull @.str.3, i32 noundef 1502, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

24:                                               ; preds = %17
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.3, i32 noundef 1504, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

25:                                               ; preds = %17, %19
  %26 = call i32 @sc_sock_poll_add(ptr noundef nonnull %4, ptr noundef nonnull %2, i32 noundef 7, ptr noundef nonnull %2) #5
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %29, label %28

28:                                               ; preds = %25
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.3, i32 noundef 1510, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

29:                                               ; preds = %25
  %30 = call i32 @sc_time_sleep(i64 noundef 250)
  %31 = call i32 @sc_sock_poll_wait(ptr noundef nonnull %4, i32 noundef 1) #5
  %32 = icmp sgt i32 %31, 1
  br i1 %32, label %.preheader133, label %33

33:                                               ; preds = %29
  call void @__assert_fail(ptr noundef nonnull @.str.102, ptr noundef nonnull @.str.3, i32 noundef 1514, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

34:                                               ; preds = %66
  %35 = icmp eq i32 %.197, 2
  br i1 %35, label %69, label %68

.preheader133:                                    ; preds = %29, %66
  %.095148 = phi i32 [ %67, %66 ], [ 0, %29 ]
  %.096147 = phi i32 [ %.197, %66 ], [ 0, %29 ]
  %36 = call i32 @sc_sock_poll_event(ptr noundef nonnull %4, i32 noundef %.095148) #5
  %37 = call ptr @sc_sock_poll_data(ptr noundef nonnull %4, i32 noundef %.095148) #5
  %38 = icmp eq i32 %36, 0
  br i1 %38, label %66, label %39

39:                                               ; preds = %.preheader133
  %40 = icmp eq ptr %37, %1
  br i1 %40, label %41, label %52

41:                                               ; preds = %39
  %42 = and i32 %36, 1
  %.not117 = icmp eq i32 %42, 0
  br i1 %.not117, label %47, label %43

43:                                               ; preds = %41
  %44 = call i32 @sc_sock_accept(ptr noundef nonnull %1, ptr noundef nonnull %3) #5
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.3, i32 noundef 1528, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

47:                                               ; preds = %43, %41
  %48 = and i32 %36, 2
  %.not118 = icmp eq i32 %48, 0
  br i1 %.not118, label %50, label %49

49:                                               ; preds = %47
  call void @__assert_fail(ptr noundef nonnull @.str.86, ptr noundef nonnull @.str.3, i32 noundef 1532, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

50:                                               ; preds = %47
  %51 = add nsw i32 %.096147, 1
  br label %66

52:                                               ; preds = %39
  %53 = icmp eq ptr %37, %2
  br i1 %53, label %54, label %65

54:                                               ; preds = %52
  %55 = and i32 %36, 2
  %.not115 = icmp eq i32 %55, 0
  br i1 %.not115, label %60, label %56

56:                                               ; preds = %54
  %57 = call i32 @sc_sock_finish_connect(ptr noundef nonnull %2) #5
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.3, i32 noundef 1538, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

60:                                               ; preds = %56, %54
  %61 = and i32 %36, 1
  %.not116 = icmp eq i32 %61, 0
  br i1 %.not116, label %63, label %62

62:                                               ; preds = %60
  call void @__assert_fail(ptr noundef nonnull @.str.86, ptr noundef nonnull @.str.3, i32 noundef 1542, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

63:                                               ; preds = %60
  %64 = add nsw i32 %.096147, 1
  br label %66

65:                                               ; preds = %52
  call void @__assert_fail(ptr noundef nonnull @.str.86, ptr noundef nonnull @.str.3, i32 noundef 1546, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

66:                                               ; preds = %50, %63, %.preheader133
  %.197 = phi i32 [ %.096147, %.preheader133 ], [ %51, %50 ], [ %64, %63 ]
  %67 = add nuw nsw i32 %.095148, 1
  %exitcond.not = icmp eq i32 %67, %31
  br i1 %exitcond.not, label %34, label %.preheader133, !llvm.loop !9

68:                                               ; preds = %34
  call void @__assert_fail(ptr noundef nonnull @.str.103, ptr noundef nonnull @.str.3, i32 noundef 1549, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

69:                                               ; preds = %34
  %70 = call i32 @sc_sock_poll_add(ptr noundef nonnull %4, ptr noundef nonnull %3, i32 noundef 7, ptr noundef nonnull %3) #5
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %73, label %72

72:                                               ; preds = %69
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.3, i32 noundef 1554, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

73:                                               ; preds = %69
  %74 = call i32 @sc_time_sleep(i64 noundef 250)
  %75 = call i32 @sc_sock_poll_wait(ptr noundef nonnull %4, i32 noundef 1) #5
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %.preheader132, label %77

77:                                               ; preds = %73
  call void @__assert_fail(ptr noundef nonnull @.str.104, ptr noundef nonnull @.str.3, i32 noundef 1558, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

78:                                               ; preds = %91
  %79 = icmp eq i32 %.3, 1
  br i1 %79, label %94, label %93

.preheader132:                                    ; preds = %73, %91
  %.094150 = phi i32 [ %92, %91 ], [ 0, %73 ]
  %.298149 = phi i32 [ %.3, %91 ], [ 0, %73 ]
  %80 = call i32 @sc_sock_poll_event(ptr noundef nonnull %4, i32 noundef %.094150) #5
  %81 = call ptr @sc_sock_poll_data(ptr noundef nonnull %4, i32 noundef %.094150) #5
  %82 = icmp eq i32 %80, 0
  br i1 %82, label %91, label %83

83:                                               ; preds = %.preheader132
  %84 = icmp eq ptr %81, %3
  br i1 %84, label %86, label %85

85:                                               ; preds = %83
  call void @__assert_fail(ptr noundef nonnull @.str.105, ptr noundef nonnull @.str.3, i32 noundef 1569, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

86:                                               ; preds = %83
  %87 = icmp eq i32 %80, 2
  br i1 %87, label %89, label %88

88:                                               ; preds = %86
  call void @__assert_fail(ptr noundef nonnull @.str.106, ptr noundef nonnull @.str.3, i32 noundef 1570, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

89:                                               ; preds = %86
  %90 = add nsw i32 %.298149, 1
  br label %91

91:                                               ; preds = %.preheader132, %89
  %.3 = phi i32 [ %.298149, %.preheader132 ], [ %90, %89 ]
  %92 = add nuw nsw i32 %.094150, 1
  %exitcond156.not = icmp eq i32 %92, %75
  br i1 %exitcond156.not, label %78, label %.preheader132, !llvm.loop !11

93:                                               ; preds = %78
  call void @__assert_fail(ptr noundef nonnull @.str.107, ptr noundef nonnull @.str.3, i32 noundef 1573, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

94:                                               ; preds = %78
  call void @check_poll_empty(ptr noundef nonnull %4, i32 noundef 1)
  br label %95

95:                                               ; preds = %95, %94
  %.092 = phi i32 [ 0, %94 ], [ %98, %95 ]
  %96 = call i32 @sc_sock_send(ptr noundef nonnull %3, ptr noundef nonnull @.str.108, i32 noundef 7, i32 noundef 0) #5
  %97 = icmp slt i32 %96, 0
  %98 = add nuw nsw i32 %96, %.092
  br i1 %97, label %99, label %95

99:                                               ; preds = %95
  %100 = tail call ptr @__errno_location() #7
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = icmp eq i32 %101, 11
  br i1 %102, label %104, label %103

103:                                              ; preds = %99
  call void @__assert_fail(ptr noundef nonnull @.str.101, ptr noundef nonnull @.str.3, i32 noundef 1583, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

104:                                              ; preds = %99
  %105 = icmp sgt i32 %.092, 0
  br i1 %105, label %.preheader131, label %106

106:                                              ; preds = %104
  call void @__assert_fail(ptr noundef nonnull @.str.109, ptr noundef nonnull @.str.3, i32 noundef 1589, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

.preheader131:                                    ; preds = %104, %143
  %.090 = phi i32 [ %.191, %143 ], [ 0, %104 ]
  %107 = call i32 @sc_time_sleep(i64 noundef 250)
  %108 = call i32 @sc_sock_poll_wait(ptr noundef nonnull %4, i32 noundef 1) #5
  %109 = icmp sgt i32 %108, 0
  br i1 %109, label %.preheader130, label %110

110:                                              ; preds = %.preheader131
  call void @__assert_fail(ptr noundef nonnull @.str.104, ptr noundef nonnull @.str.3, i32 noundef 1594, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

111:                                              ; preds = %131
  %112 = add i32 %.5, -1
  %or.cond = icmp ult i32 %112, 2
  br i1 %or.cond, label %134, label %133

.preheader130:                                    ; preds = %.preheader131, %131
  %.088152 = phi i32 [ %132, %131 ], [ 0, %.preheader131 ]
  %.4151 = phi i32 [ %.5, %131 ], [ 0, %.preheader131 ]
  %113 = call i32 @sc_sock_poll_event(ptr noundef nonnull %4, i32 noundef %.088152) #5
  %114 = call ptr @sc_sock_poll_data(ptr noundef nonnull %4, i32 noundef %.088152) #5
  %115 = icmp eq i32 %113, 0
  br i1 %115, label %131, label %116

116:                                              ; preds = %.preheader130
  %117 = icmp eq ptr %114, %2
  br i1 %117, label %118, label %123

118:                                              ; preds = %116
  %119 = and i32 %113, 1
  %.not114 = icmp eq i32 %119, 0
  br i1 %.not114, label %120, label %121

120:                                              ; preds = %118
  call void @__assert_fail(ptr noundef nonnull @.str.110, ptr noundef nonnull @.str.3, i32 noundef 1606, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

121:                                              ; preds = %118
  %122 = add nsw i32 %.4151, 1
  br label %131

123:                                              ; preds = %116
  %124 = icmp eq ptr %114, %3
  br i1 %124, label %125, label %130

125:                                              ; preds = %123
  %126 = and i32 %113, 2
  %.not = icmp eq i32 %126, 0
  br i1 %.not, label %127, label %128

127:                                              ; preds = %125
  call void @__assert_fail(ptr noundef nonnull @.str.111, ptr noundef nonnull @.str.3, i32 noundef 1609, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

128:                                              ; preds = %125
  %129 = add nsw i32 %.4151, 1
  br label %131

130:                                              ; preds = %123
  call void @__assert_fail(ptr noundef nonnull @.str.86, ptr noundef nonnull @.str.3, i32 noundef 1612, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

131:                                              ; preds = %121, %128, %.preheader130
  %.5 = phi i32 [ %.4151, %.preheader130 ], [ %122, %121 ], [ %129, %128 ]
  %132 = add nuw nsw i32 %.088152, 1
  %exitcond157.not = icmp eq i32 %132, %108
  br i1 %exitcond157.not, label %111, label %.preheader130, !llvm.loop !12

133:                                              ; preds = %111
  call void @__assert_fail(ptr noundef nonnull @.str.112, ptr noundef nonnull @.str.3, i32 noundef 1615, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

134:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  br label %135

135:                                              ; preds = %135, %134
  %.191 = phi i32 [ %.090, %134 ], [ %138, %135 ]
  %136 = call i32 @sc_sock_recv(ptr noundef nonnull %2, ptr noundef nonnull %5, i32 noundef 1, i32 noundef 0) #5
  %137 = icmp slt i32 %136, 0
  %138 = add nuw nsw i32 %136, %.191
  br i1 %137, label %139, label %135

139:                                              ; preds = %135
  %140 = load i32, ptr %100, align 4, !tbaa !5
  %141 = icmp eq i32 %140, 11
  br i1 %141, label %143, label %142

142:                                              ; preds = %139
  call void @__assert_fail(ptr noundef nonnull @.str.101, ptr noundef nonnull @.str.3, i32 noundef 1622, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

143:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  %144 = icmp slt i32 %.191, %.092
  br i1 %144, label %.preheader131, label %145, !llvm.loop !13

145:                                              ; preds = %143
  %146 = icmp eq i32 %.191, %.092
  br i1 %146, label %148, label %147

147:                                              ; preds = %145
  call void @__assert_fail(ptr noundef nonnull @.str.113, ptr noundef nonnull @.str.3, i32 noundef 1629, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

148:                                              ; preds = %145
  %149 = call i32 @sc_time_sleep(i64 noundef 250)
  %150 = call i32 @sc_sock_poll_wait(ptr noundef nonnull %4, i32 noundef 1) #5
  %151 = icmp sgt i32 %150, 0
  br i1 %151, label %.preheader, label %152

152:                                              ; preds = %148
  call void @__assert_fail(ptr noundef nonnull @.str.104, ptr noundef nonnull @.str.3, i32 noundef 1633, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

153:                                              ; preds = %167
  %154 = add i32 %.7, -1
  %or.cond5 = icmp ult i32 %154, 2
  br i1 %or.cond5, label %170, label %169

.preheader:                                       ; preds = %148, %167
  %.0154 = phi i32 [ %168, %167 ], [ 0, %148 ]
  %.6153 = phi i32 [ %.7, %167 ], [ 0, %148 ]
  %155 = call i32 @sc_sock_poll_event(ptr noundef nonnull %4, i32 noundef %.0154) #5
  %156 = call ptr @sc_sock_poll_data(ptr noundef nonnull %4, i32 noundef %.0154) #5
  %157 = icmp eq i32 %155, 0
  br i1 %157, label %167, label %158

158:                                              ; preds = %.preheader
  %159 = icmp eq ptr %156, %2
  %160 = icmp eq ptr %156, %3
  %or.cond3 = or i1 %159, %160
  br i1 %or.cond3, label %162, label %161

161:                                              ; preds = %158
  call void @__assert_fail(ptr noundef nonnull @.str.114, ptr noundef nonnull @.str.3, i32 noundef 1644, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

162:                                              ; preds = %158
  %163 = icmp eq i32 %155, 2
  br i1 %163, label %165, label %164

164:                                              ; preds = %162
  call void @__assert_fail(ptr noundef nonnull @.str.106, ptr noundef nonnull @.str.3, i32 noundef 1645, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

165:                                              ; preds = %162
  %166 = add nsw i32 %.6153, 1
  br label %167

167:                                              ; preds = %.preheader, %165
  %.7 = phi i32 [ %.6153, %.preheader ], [ %166, %165 ]
  %168 = add nuw nsw i32 %.0154, 1
  %exitcond158.not = icmp eq i32 %168, %150
  br i1 %exitcond158.not, label %153, label %.preheader, !llvm.loop !14

169:                                              ; preds = %153
  call void @__assert_fail(ptr noundef nonnull @.str.112, ptr noundef nonnull @.str.3, i32 noundef 1648, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

170:                                              ; preds = %153
  call void @check_poll_empty(ptr noundef nonnull %4, i32 noundef 1)
  %171 = getelementptr inbounds i8, ptr %1, i64 4
  %172 = load i32, ptr %171, align 4, !tbaa !15
  %173 = icmp eq i32 %172, 1
  br i1 %173, label %175, label %174

174:                                              ; preds = %170
  call void @__assert_fail(ptr noundef nonnull @.str.99, ptr noundef nonnull @.str.3, i32 noundef 1652, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

175:                                              ; preds = %170
  %176 = call i32 @sc_sock_poll_del(ptr noundef nonnull %4, ptr noundef nonnull %1, i32 noundef 1, ptr noundef null) #5
  %177 = icmp eq i32 %176, 0
  br i1 %177, label %179, label %178

178:                                              ; preds = %175
  call void @__assert_fail(ptr noundef nonnull @.str.115, ptr noundef nonnull @.str.3, i32 noundef 1653, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

179:                                              ; preds = %175
  %180 = load i32, ptr %171, align 4, !tbaa !15
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %183, label %182

182:                                              ; preds = %179
  call void @__assert_fail(ptr noundef nonnull @.str.100, ptr noundef nonnull @.str.3, i32 noundef 1654, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

183:                                              ; preds = %179
  %184 = getelementptr inbounds i8, ptr %3, i64 4
  %185 = load i32, ptr %184, align 4, !tbaa !15
  %186 = icmp eq i32 %185, 7
  br i1 %186, label %188, label %187

187:                                              ; preds = %183
  call void @__assert_fail(ptr noundef nonnull @.str.116, ptr noundef nonnull @.str.3, i32 noundef 1656, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

188:                                              ; preds = %183
  %189 = call i32 @sc_sock_poll_del(ptr noundef nonnull %4, ptr noundef nonnull %3, i32 noundef 5, ptr noundef null) #5
  %190 = icmp eq i32 %189, 0
  br i1 %190, label %192, label %191

191:                                              ; preds = %188
  call void @__assert_fail(ptr noundef nonnull @.str.117, ptr noundef nonnull @.str.3, i32 noundef 1658, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

192:                                              ; preds = %188
  %193 = load i32, ptr %184, align 4, !tbaa !15
  %194 = icmp eq i32 %193, 2
  br i1 %194, label %196, label %195

195:                                              ; preds = %192
  call void @__assert_fail(ptr noundef nonnull @.str.118, ptr noundef nonnull @.str.3, i32 noundef 1659, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

196:                                              ; preds = %192
  %197 = call i32 @sc_sock_poll_add(ptr noundef nonnull %4, ptr noundef nonnull %3, i32 noundef 4, ptr noundef null) #5
  %198 = icmp eq i32 %197, 0
  br i1 %198, label %200, label %199

199:                                              ; preds = %196
  call void @__assert_fail(ptr noundef nonnull @.str.119, ptr noundef nonnull @.str.3, i32 noundef 1660, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

200:                                              ; preds = %196
  %201 = load i32, ptr %184, align 4, !tbaa !15
  %202 = icmp eq i32 %201, 6
  br i1 %202, label %204, label %203

203:                                              ; preds = %200
  call void @__assert_fail(ptr noundef nonnull @.str.120, ptr noundef nonnull @.str.3, i32 noundef 1661, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

204:                                              ; preds = %200
  %205 = call i32 @sc_sock_poll_del(ptr noundef nonnull %4, ptr noundef nonnull %3, i32 noundef 2, ptr noundef null) #5
  %206 = icmp eq i32 %205, 0
  br i1 %206, label %208, label %207

207:                                              ; preds = %204
  call void @__assert_fail(ptr noundef nonnull @.str.121, ptr noundef nonnull @.str.3, i32 noundef 1662, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

208:                                              ; preds = %204
  %209 = load i32, ptr %184, align 4, !tbaa !15
  %210 = icmp eq i32 %209, 0
  br i1 %210, label %212, label %211

211:                                              ; preds = %208
  call void @__assert_fail(ptr noundef nonnull @.str.122, ptr noundef nonnull @.str.3, i32 noundef 1663, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

212:                                              ; preds = %208
  %213 = getelementptr inbounds i8, ptr %2, i64 4
  %214 = load i32, ptr %213, align 4, !tbaa !15
  %215 = icmp eq i32 %214, 7
  br i1 %215, label %217, label %216

216:                                              ; preds = %212
  call void @__assert_fail(ptr noundef nonnull @.str.123, ptr noundef nonnull @.str.3, i32 noundef 1665, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

217:                                              ; preds = %212
  %218 = call i32 @sc_sock_poll_del(ptr noundef nonnull %4, ptr noundef nonnull %2, i32 noundef 4, ptr noundef null) #5
  %219 = icmp eq i32 %218, 0
  br i1 %219, label %221, label %220

220:                                              ; preds = %217
  call void @__assert_fail(ptr noundef nonnull @.str.124, ptr noundef nonnull @.str.3, i32 noundef 1666, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

221:                                              ; preds = %217
  %222 = load i32, ptr %213, align 4, !tbaa !15
  %223 = icmp eq i32 %222, 3
  br i1 %223, label %225, label %224

224:                                              ; preds = %221
  call void @__assert_fail(ptr noundef nonnull @.str.125, ptr noundef nonnull @.str.3, i32 noundef 1667, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

225:                                              ; preds = %221
  %226 = call i32 @sc_sock_poll_del(ptr noundef nonnull %4, ptr noundef nonnull %2, i32 noundef 3, ptr noundef null) #5
  %227 = icmp eq i32 %226, 0
  br i1 %227, label %229, label %228

228:                                              ; preds = %225
  call void @__assert_fail(ptr noundef nonnull @.str.126, ptr noundef nonnull @.str.3, i32 noundef 1669, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

229:                                              ; preds = %225
  %230 = load i32, ptr %213, align 4, !tbaa !15
  %231 = icmp eq i32 %230, 0
  br i1 %231, label %233, label %232

232:                                              ; preds = %229
  call void @__assert_fail(ptr noundef nonnull @.str.127, ptr noundef nonnull @.str.3, i32 noundef 1670, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

233:                                              ; preds = %229
  %234 = call i32 @sc_sock_poll_add(ptr noundef nonnull %4, ptr noundef nonnull %3, i32 noundef 1, ptr noundef null) #5
  %235 = icmp eq i32 %234, 0
  br i1 %235, label %237, label %236

236:                                              ; preds = %233
  call void @__assert_fail(ptr noundef nonnull @.str.128, ptr noundef nonnull @.str.3, i32 noundef 1672, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

237:                                              ; preds = %233
  %238 = call i32 @sc_sock_poll_add(ptr noundef nonnull %4, ptr noundef nonnull %3, i32 noundef 2, ptr noundef null) #5
  %239 = icmp eq i32 %238, 0
  br i1 %239, label %241, label %240

240:                                              ; preds = %237
  call void @__assert_fail(ptr noundef nonnull @.str.129, ptr noundef nonnull @.str.3, i32 noundef 1673, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

241:                                              ; preds = %237
  %242 = call i32 @sc_sock_poll_add(ptr noundef nonnull %4, ptr noundef nonnull %3, i32 noundef 4, ptr noundef null) #5
  %243 = icmp eq i32 %242, 0
  br i1 %243, label %245, label %244

244:                                              ; preds = %241
  call void @__assert_fail(ptr noundef nonnull @.str.119, ptr noundef nonnull @.str.3, i32 noundef 1674, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

245:                                              ; preds = %241
  %246 = load i32, ptr %184, align 4, !tbaa !15
  %247 = icmp eq i32 %246, 7
  br i1 %247, label %249, label %248

248:                                              ; preds = %245
  call void @__assert_fail(ptr noundef nonnull @.str.130, ptr noundef nonnull @.str.3, i32 noundef 1675, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

249:                                              ; preds = %245
  %250 = call i32 @sc_sock_poll_del(ptr noundef nonnull %4, ptr noundef nonnull %3, i32 noundef 1, ptr noundef null) #5
  %251 = icmp eq i32 %250, 0
  br i1 %251, label %253, label %252

252:                                              ; preds = %249
  call void @__assert_fail(ptr noundef nonnull @.str.131, ptr noundef nonnull @.str.3, i32 noundef 1676, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

253:                                              ; preds = %249
  %254 = load i32, ptr %184, align 4, !tbaa !15
  %255 = icmp eq i32 %254, 6
  br i1 %255, label %257, label %256

256:                                              ; preds = %253
  call void @__assert_fail(ptr noundef nonnull @.str.120, ptr noundef nonnull @.str.3, i32 noundef 1677, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

257:                                              ; preds = %253
  %258 = call i32 @sc_sock_term(ptr noundef nonnull %1) #5
  %259 = icmp eq i32 %258, 0
  br i1 %259, label %261, label %260

260:                                              ; preds = %257
  call void @__assert_fail(ptr noundef nonnull @.str.89, ptr noundef nonnull @.str.3, i32 noundef 1679, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

261:                                              ; preds = %257
  %262 = call i32 @sc_sock_term(ptr noundef nonnull %3) #5
  %263 = icmp eq i32 %262, 0
  br i1 %263, label %265, label %264

264:                                              ; preds = %261
  call void @__assert_fail(ptr noundef nonnull @.str.132, ptr noundef nonnull @.str.3, i32 noundef 1680, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

265:                                              ; preds = %261
  %266 = call i32 @sc_sock_term(ptr noundef nonnull %2) #5
  %267 = icmp eq i32 %266, 0
  br i1 %267, label %269, label %268

268:                                              ; preds = %265
  call void @__assert_fail(ptr noundef nonnull @.str.133, ptr noundef nonnull @.str.3, i32 noundef 1681, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

269:                                              ; preds = %265
  %270 = call i32 @sc_sock_poll_term(ptr noundef nonnull %4) #5
  %271 = icmp eq i32 %270, 0
  br i1 %271, label %273, label %272

272:                                              ; preds = %269
  call void @__assert_fail(ptr noundef nonnull @.str.82, ptr noundef nonnull @.str.3, i32 noundef 1682, ptr noundef nonnull @__PRETTY_FUNCTION__.test_poll_edge) #6
  unreachable

273:                                              ; preds = %269
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 148, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 148, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 148, ptr nonnull %1) #5
  ret void
}

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

!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 = !{!16, !6, i64 4}
!16 = !{!"sc_sock", !17, i64 0, !18, i64 12, !6, i64 16, !7, i64 20}
!17 = !{!"sc_sock_fd", !6, i64 0, !6, i64 4, !6, i64 8}
!18 = !{!"_Bool", !7, i64 0}


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