; LLVM IR from intel/QAT_Engine :: test (tests)

; 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.fd_set = type { [16 x i64] }
%struct.timeval = type { i64, i64 }
%struct.test_params_t = type { ptr, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, ptr, [8 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], i32, i32, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, i32 }

@.str = external hidden unnamed_addr constant [10 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @start_async_job(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca %struct.fd_set, align 8
  %15 = alloca %struct.timeval, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  br label %20

20:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store ptr %14, ptr %17, align 8, !tbaa !5
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %31, %20
  %22 = load i32, ptr %16, align 4, !tbaa !9
  %23 = zext i32 %22 to i64
  %24 = icmp ult i64 %23, 16
  br i1 %24, label %25, label %34

25:                                               ; preds = %21
  %26 = load ptr, ptr %17, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.fd_set, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %16, align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = getelementptr inbounds [16 x i64], ptr %27, i64 0, i64 %29
  store i64 0, ptr %30, align 8, !tbaa !11
  br label %31

31:                                               ; preds = %25
  %32 = load i32, ptr %16, align 4, !tbaa !9
  %33 = add i32 %32, 1
  store i32 %33, ptr %16, align 4, !tbaa !9
  br label %21, !llvm.loop !13

34:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35
  %37 = getelementptr inbounds %struct.timeval, ptr %15, i32 0, i32 0
  store i64 0, ptr %37, align 8, !tbaa !15
  %38 = getelementptr inbounds %struct.timeval, ptr %15, i32 0, i32 1
  store i64 0, ptr %38, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %39 = call noalias ptr @calloc(i64 noundef 32, i64 noundef 12) #8
  store ptr %39, ptr %18, align 8, !tbaa !5
  %40 = load ptr, ptr %18, align 8, !tbaa !5
  %41 = icmp eq ptr %40, null
  br i1 %41, label %42, label %44

42:                                               ; preds = %36
  %43 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %43, ptr %3, align 4
  store i32 1, ptr %19, align 4
  br label %338

44:                                               ; preds = %36
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %74, %44
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.test_params_t, ptr %47, i32 0, i32 30
  %49 = load i32, ptr %48, align 4, !tbaa !18
  %50 = icmp slt i32 %46, %49
  br i1 %50, label %51, label %77

51:                                               ; preds = %45
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.test_params_t, ptr %52, i32 0, i32 31
  %54 = load ptr, ptr %53, align 8, !tbaa !20
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds ptr, ptr %54, i64 %56
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.test_params_t, ptr %58, i32 0, i32 32
  %60 = load ptr, ptr %59, align 8, !tbaa !21
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds ptr, ptr %60, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = call i32 @ASYNC_start_job(ptr noundef %57, ptr noundef %64, ptr noundef %6, ptr noundef %65, ptr noundef %66, i64 noundef 424)
  switch i32 %67, label %73 [
    i32 0, label %68
    i32 1, label %68
    i32 2, label %69
    i32 3, label %72
  ]

68:                                               ; preds = %51, %51
  br label %73

69:                                               ; preds = %51
  %70 = load i32, ptr %8, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %8, align 4, !tbaa !9
  br label %73

72:                                               ; preds = %51
  br label %73

73:                                               ; preds = %72, %69, %68, %51
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %9, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %9, align 4, !tbaa !9
  br label %45, !llvm.loop !22

77:                                               ; preds = %45
  br label %78

78:                                               ; preds = %334, %203, %160, %77
  %79 = load i32, ptr %8, align 4, !tbaa !9
  %80 = icmp sgt i32 %79, 0
  br i1 %80, label %81, label %335

81:                                               ; preds = %78
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %143, %81
  %83 = load i32, ptr %9, align 4, !tbaa !9
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.test_params_t, ptr %84, i32 0, i32 30
  %86 = load i32, ptr %85, align 4, !tbaa !18
  %87 = icmp slt i32 %83, %86
  br i1 %87, label %88, label %91

88:                                               ; preds = %82
  %89 = load i32, ptr %8, align 4, !tbaa !9
  %90 = icmp sgt i32 %89, 0
  br label %91

91:                                               ; preds = %88, %82
  %92 = phi i1 [ false, %82 ], [ %90, %88 ]
  br i1 %92, label %93, label %146

93:                                               ; preds = %91
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.test_params_t, ptr %94, i32 0, i32 31
  %96 = load ptr, ptr %95, align 8, !tbaa !20
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds ptr, ptr %96, i64 %98
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = icmp eq ptr %100, null
  br i1 %101, label %102, label %103

102:                                              ; preds = %93
  br label %143

103:                                              ; preds = %93
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.test_params_t, ptr %104, i32 0, i32 32
  %106 = load ptr, ptr %105, align 8, !tbaa !21
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds ptr, ptr %106, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = call i32 @ASYNC_WAIT_CTX_get_all_fds(ptr noundef %110, ptr noundef null, ptr noundef %13)
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %116

113:                                              ; preds = %103
  %114 = load i64, ptr %13, align 8, !tbaa !11
  %115 = icmp ugt i64 %114, 1
  br i1 %115, label %116, label %117

116:                                              ; preds = %113, %103
  br label %146

117:                                              ; preds = %113
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.test_params_t, ptr %118, i32 0, i32 32
  %120 = load ptr, ptr %119, align 8, !tbaa !21
  %121 = load i32, ptr %9, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds ptr, ptr %120, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = call i32 @ASYNC_WAIT_CTX_get_all_fds(ptr noundef %124, ptr noundef %10, ptr noundef %13)
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = srem i32 %126, 64
  %128 = zext i32 %127 to i64
  %129 = shl i64 1, %128
  %130 = getelementptr inbounds %struct.fd_set, ptr %14, i32 0, i32 0
  %131 = load i32, ptr %10, align 4, !tbaa !9
  %132 = sdiv i32 %131, 64
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [16 x i64], ptr %130, i64 0, i64 %133
  %135 = load i64, ptr %134, align 8, !tbaa !11
  %136 = or i64 %135, %129
  store i64 %136, ptr %134, align 8, !tbaa !11
  %137 = load i32, ptr %10, align 4, !tbaa !9
  %138 = load i32, ptr %11, align 4, !tbaa !9
  %139 = icmp sgt i32 %137, %138
  br i1 %139, label %140, label %142

140:                                              ; preds = %117
  %141 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %141, ptr %11, align 4, !tbaa !9
  br label %142

142:                                              ; preds = %140, %117
  br label %143

143:                                              ; preds = %142, %102
  %144 = load i32, ptr %9, align 4, !tbaa !9
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %9, align 4, !tbaa !9
  br label %82, !llvm.loop !23

146:                                              ; preds = %116, %91
  %147 = load i32, ptr %11, align 4, !tbaa !9
  %148 = icmp sge i32 %147, 1024
  br i1 %148, label %149, label %150

149:                                              ; preds = %146
  br label %335

150:                                              ; preds = %146
  %151 = load i32, ptr %11, align 4, !tbaa !9
  %152 = add nsw i32 %151, 1
  %153 = call i32 @select(i32 noundef %152, ptr noundef %14, ptr noundef null, ptr noundef null, ptr noundef %15)
  store i32 %153, ptr %12, align 4, !tbaa !9
  %154 = load i32, ptr %12, align 4, !tbaa !9
  %155 = icmp eq i32 %154, -1
  br i1 %155, label %156, label %161

156:                                              ; preds = %150
  %157 = call ptr @__errno_location() #9
  %158 = load i32, ptr %157, align 4, !tbaa !9
  %159 = icmp eq i32 %158, 4
  br i1 %159, label %160, label %161

160:                                              ; preds = %156
  br label %78, !llvm.loop !24

161:                                              ; preds = %156, %150
  %162 = load i32, ptr %12, align 4, !tbaa !9
  %163 = icmp eq i32 %162, -1
  br i1 %163, label %164, label %165

164:                                              ; preds = %161
  br label %335

165:                                              ; preds = %161
  %166 = load i32, ptr %12, align 4, !tbaa !9
  %167 = icmp eq i32 %166, 0
  br i1 %167, label %168, label %204

168:                                              ; preds = %165
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.test_params_t, ptr %169, i32 0, i32 4
  %171 = load ptr, ptr %170, align 8, !tbaa !25
  %172 = icmp ne ptr %171, null
  br i1 %172, label %173, label %203

173:                                              ; preds = %168
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.test_params_t, ptr %174, i32 0, i32 0
  %176 = load ptr, ptr %175, align 8, !tbaa !26
  %177 = call i32 @strncmp(ptr noundef %176, ptr noundef @.str, i64 noundef 9) #10
  %178 = icmp eq i32 %177, 0
  br i1 %178, label %179, label %202

179:                                              ; preds = %173
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.test_params_t, ptr %180, i32 0, i32 8
  %182 = load i32, ptr %181, align 4, !tbaa !27
  %183 = icmp ne i32 %182, 0
  br i1 %183, label %184, label %201

184:                                              ; preds = %179
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.test_params_t, ptr %185, i32 0, i32 9
  %187 = load i32, ptr %186, align 8, !tbaa !28
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %195

189:                                              ; preds = %184
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.test_params_t, ptr %190, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !25
  %193 = load ptr, ptr %18, align 8, !tbaa !5
  %194 = call i32 @qat_epoll_engine(ptr noundef %192, ptr noundef %193, ptr noundef %7, i32 noundef 0)
  br label %200

195:                                              ; preds = %184
  %196 = load ptr, ptr %4, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.test_params_t, ptr %196, i32 0, i32 4
  %198 = load ptr, ptr %197, align 8, !tbaa !25
  %199 = call i32 @eng_poll_handler(ptr noundef %198, ptr noundef %7)
  br label %200

200:                                              ; preds = %195, %189
  br label %201

201:                                              ; preds = %200, %179
  br label %202

202:                                              ; preds = %201, %173
  br label %203

203:                                              ; preds = %202, %168
  br label %78, !llvm.loop !24

204:                                              ; preds = %165
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %205

205:                                              ; preds = %296, %204
  %206 = load i32, ptr %9, align 4, !tbaa !9
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.test_params_t, ptr %207, i32 0, i32 30
  %209 = load i32, ptr %208, align 4, !tbaa !18
  %210 = icmp slt i32 %206, %209
  br i1 %210, label %211, label %299

211:                                              ; preds = %205
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.test_params_t, ptr %212, i32 0, i32 31
  %214 = load ptr, ptr %213, align 8, !tbaa !20
  %215 = load i32, ptr %9, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds ptr, ptr %214, i64 %216
  %218 = load ptr, ptr %217, align 8, !tbaa !5
  %219 = icmp eq ptr %218, null
  br i1 %219, label %220, label %221

220:                                              ; preds = %211
  br label %296

221:                                              ; preds = %211
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.test_params_t, ptr %222, i32 0, i32 32
  %224 = load ptr, ptr %223, align 8, !tbaa !21
  %225 = load i32, ptr %9, align 4, !tbaa !9
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds ptr, ptr %224, i64 %226
  %228 = load ptr, ptr %227, align 8, !tbaa !5
  %229 = call i32 @ASYNC_WAIT_CTX_get_all_fds(ptr noundef %228, ptr noundef null, ptr noundef %13)
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %231, label %234

231:                                              ; preds = %221
  %232 = load i64, ptr %13, align 8, !tbaa !11
  %233 = icmp ugt i64 %232, 1
  br i1 %233, label %234, label %235

234:                                              ; preds = %231, %221
  br label %299

235:                                              ; preds = %231
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.test_params_t, ptr %236, i32 0, i32 32
  %238 = load ptr, ptr %237, align 8, !tbaa !21
  %239 = load i32, ptr %9, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds ptr, ptr %238, i64 %240
  %242 = load ptr, ptr %241, align 8, !tbaa !5
  %243 = call i32 @ASYNC_WAIT_CTX_get_all_fds(ptr noundef %242, ptr noundef %10, ptr noundef %13)
  %244 = load i64, ptr %13, align 8, !tbaa !11
  %245 = icmp eq i64 %244, 1
  br i1 %245, label %246, label %260

246:                                              ; preds = %235
  %247 = getelementptr inbounds %struct.fd_set, ptr %14, i32 0, i32 0
  %248 = load i32, ptr %10, align 4, !tbaa !9
  %249 = sdiv i32 %248, 64
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [16 x i64], ptr %247, i64 0, i64 %250
  %252 = load i64, ptr %251, align 8, !tbaa !11
  %253 = load i32, ptr %10, align 4, !tbaa !9
  %254 = srem i32 %253, 64
  %255 = zext i32 %254 to i64
  %256 = shl i64 1, %255
  %257 = and i64 %252, %256
  %258 = icmp ne i64 %257, 0
  br i1 %258, label %260, label %259

259:                                              ; preds = %246
  br label %296

260:                                              ; preds = %246, %235
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.test_params_t, ptr %261, i32 0, i32 31
  %263 = load ptr, ptr %262, align 8, !tbaa !20
  %264 = load i32, ptr %9, align 4, !tbaa !9
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds ptr, ptr %263, i64 %265
  %267 = load ptr, ptr %4, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.test_params_t, ptr %267, i32 0, i32 32
  %269 = load ptr, ptr %268, align 8, !tbaa !21
  %270 = load i32, ptr %9, align 4, !tbaa !9
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds ptr, ptr %269, i64 %271
  %273 = load ptr, ptr %272, align 8, !tbaa !5
  %274 = load ptr, ptr %5, align 8, !tbaa !5
  %275 = load ptr, ptr %4, align 8, !tbaa !5
  %276 = call i32 @ASYNC_start_job(ptr noundef %266, ptr noundef %273, ptr noundef %6, ptr noundef %274, ptr noundef %275, i64 noundef 424)
  switch i32 %276, label %295 [
    i32 2, label %295
    i32 3, label %277
    i32 1, label %286
    i32 0, label %286
  ]

277:                                              ; preds = %260
  %278 = load i32, ptr %8, align 4, !tbaa !9
  %279 = add nsw i32 %278, -1
  store i32 %279, ptr %8, align 4, !tbaa !9
  %280 = load ptr, ptr %4, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.test_params_t, ptr %280, i32 0, i32 31
  %282 = load ptr, ptr %281, align 8, !tbaa !20
  %283 = load i32, ptr %9, align 4, !tbaa !9
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds ptr, ptr %282, i64 %284
  store ptr null, ptr %285, align 8, !tbaa !5
  br label %295

286:                                              ; preds = %260, %260
  %287 = load i32, ptr %8, align 4, !tbaa !9
  %288 = add nsw i32 %287, -1
  store i32 %288, ptr %8, align 4, !tbaa !9
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.test_params_t, ptr %289, i32 0, i32 31
  %291 = load ptr, ptr %290, align 8, !tbaa !20
  %292 = load i32, ptr %9, align 4, !tbaa !9
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds ptr, ptr %291, i64 %293
  store ptr null, ptr %294, align 8, !tbaa !5
  br label %295

295:                                              ; preds = %286, %277, %260, %260
  br label %296

296:                                              ; preds = %295, %259, %220
  %297 = load i32, ptr %9, align 4, !tbaa !9
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr %9, align 4, !tbaa !9
  br label %205, !llvm.loop !29

299:                                              ; preds = %234, %205
  %300 = load ptr, ptr %4, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.test_params_t, ptr %300, i32 0, i32 4
  %302 = load ptr, ptr %301, align 8, !tbaa !25
  %303 = icmp ne ptr %302, null
  br i1 %303, label %304, label %334

304:                                              ; preds = %299
  %305 = load ptr, ptr %4, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.test_params_t, ptr %305, i32 0, i32 0
  %307 = load ptr, ptr %306, align 8, !tbaa !26
  %308 = call i32 @strncmp(ptr noundef %307, ptr noundef @.str, i64 noundef 9) #10
  %309 = icmp eq i32 %308, 0
  br i1 %309, label %310, label %333

310:                                              ; preds = %304
  %311 = load ptr, ptr %4, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.test_params_t, ptr %311, i32 0, i32 8
  %313 = load i32, ptr %312, align 4, !tbaa !27
  %314 = icmp ne i32 %313, 0
  br i1 %314, label %315, label %332

315:                                              ; preds = %310
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.test_params_t, ptr %316, i32 0, i32 9
  %318 = load i32, ptr %317, align 8, !tbaa !28
  %319 = icmp ne i32 %318, 0
  br i1 %319, label %320, label %326

320:                                              ; preds = %315
  %321 = load ptr, ptr %4, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.test_params_t, ptr %321, i32 0, i32 4
  %323 = load ptr, ptr %322, align 8, !tbaa !25
  %324 = load ptr, ptr %18, align 8, !tbaa !5
  %325 = call i32 @qat_epoll_engine(ptr noundef %323, ptr noundef %324, ptr noundef %7, i32 noundef 0)
  br label %331

326:                                              ; preds = %315
  %327 = load ptr, ptr %4, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.test_params_t, ptr %327, i32 0, i32 4
  %329 = load ptr, ptr %328, align 8, !tbaa !25
  %330 = call i32 @eng_poll_handler(ptr noundef %329, ptr noundef %7)
  br label %331

331:                                              ; preds = %326, %320
  br label %332

332:                                              ; preds = %331, %310
  br label %333

333:                                              ; preds = %332, %304
  br label %334

334:                                              ; preds = %333, %299
  br label %78, !llvm.loop !24

335:                                              ; preds = %164, %149, %78
  %336 = load ptr, ptr %18, align 8, !tbaa !5
  call void @free(ptr noundef %336) #7
  %337 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %337, ptr %3, align 4
  store i32 1, ptr %19, align 4
  br label %338

338:                                              ; preds = %335, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %339 = load i32, ptr %3, align 4
  ret i32 %339
}

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #2

declare i32 @ASYNC_start_job(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) #3

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #5

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !12, i64 0}
!16 = !{!"timeval", !12, i64 0, !12, i64 8}
!17 = !{!16, !12, i64 8}
!18 = !{!19, !10, i64 388}
!19 = !{!"test_params_t", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !6, i64 56, !7, i64 64, !7, i64 128, !7, i64 192, !7, i64 256, !10, i64 320, !10, i64 324, !10, i64 328, !6, i64 336, !6, i64 344, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !6, i64 392, !6, i64 400, !6, i64 408, !10, i64 416, !10, i64 420}
!20 = !{!19, !6, i64 392}
!21 = !{!19, !6, i64 400}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = !{!19, !6, i64 24}
!26 = !{!19, !6, i64 0}
!27 = !{!19, !10, i64 44}
!28 = !{!19, !10, i64 48}
!29 = distinct !{!29, !14}


; 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.fd_set = type { [16 x i64] }
%struct.timeval = type { i64, i64 }

@.str = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @qat_epoll_engine(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @start_async_job(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca %struct.fd_set, align 8
  %8 = alloca %struct.timeval, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %7, i8 0, i64 128, i1 false), !tbaa !9
  %9 = tail call noalias dereferenceable_or_null(384) ptr @calloc(i64 noundef 32, i64 noundef 12) #10
  %10 = icmp eq ptr %9, null
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, i8 0, i64 16, i1 false)
  br i1 %10, label %146, label %.preheader94

.preheader94:                                     ; preds = %2
  %11 = getelementptr inbounds i8, ptr %0, i64 388
  %12 = load i32, ptr %11, align 4, !tbaa !11
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph, label %.outer._crit_edge

.lr.ph:                                           ; preds = %.preheader94
  %14 = getelementptr inbounds i8, ptr %0, i64 392
  %15 = getelementptr inbounds i8, ptr %0, i64 400
  br label %21

.preheader93:                                     ; preds = %21
  %.not135 = icmp eq i32 %spec.select, 0
  br i1 %.not135, label %.outer._crit_edge, label %.preheader92.lr.ph.lr.ph

.preheader92.lr.ph.lr.ph:                         ; preds = %.preheader93
  %16 = getelementptr inbounds i8, ptr %0, i64 392
  %17 = getelementptr inbounds i8, ptr %0, i64 400
  %18 = getelementptr inbounds i8, ptr %0, i64 24
  %19 = getelementptr inbounds i8, ptr %0, i64 44
  %20 = getelementptr inbounds i8, ptr %0, i64 48
  br label %.preheader92.lr.ph

21:                                               ; preds = %.lr.ph, %21
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %21 ]
  %.07197 = phi i32 [ 0, %.lr.ph ], [ %spec.select, %21 ]
  %22 = load ptr, ptr %14, align 8, !tbaa !14
  %23 = getelementptr inbounds ptr, ptr %22, i64 %indvars.iv
  %24 = load ptr, ptr %15, align 8, !tbaa !15
  %25 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  %27 = call i32 @ASYNC_start_job(ptr noundef %23, ptr noundef %26, ptr noundef nonnull %3, ptr noundef %1, ptr noundef nonnull %0, i64 noundef 424) #9
  %cond = icmp eq i32 %27, 2
  %28 = zext i1 %cond to i32
  %spec.select = add nuw nsw i32 %.07197, %28
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %29 = load i32, ptr %11, align 4, !tbaa !11
  %30 = sext i32 %29 to i64
  %31 = icmp slt i64 %indvars.iv.next, %30
  br i1 %31, label %21, label %.preheader93, !llvm.loop !17

.preheader92:                                     ; preds = %.preheader92.backedge, %.preheader92.lr.ph
  %.073104 = phi i32 [ %.073.ph115, %.preheader92.lr.ph ], [ %.174.lcssa, %.preheader92.backedge ]
  %32 = load i32, ptr %11, align 4, !tbaa !11
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph100, label %._crit_edge

.lr.ph100:                                        ; preds = %.preheader92, %61
  %34 = phi i32 [ %62, %61 ], [ %32, %.preheader92 ]
  %indvars.iv124 = phi i64 [ %indvars.iv.next125, %61 ], [ 0, %.preheader92 ]
  %.17499 = phi i32 [ %.275, %61 ], [ %.073104, %.preheader92 ]
  %35 = load ptr, ptr %16, align 8, !tbaa !14
  %36 = getelementptr inbounds ptr, ptr %35, i64 %indvars.iv124
  %37 = load ptr, ptr %36, align 8, !tbaa !16
  %38 = icmp eq ptr %37, null
  br i1 %38, label %61, label %39

39:                                               ; preds = %.lr.ph100
  %40 = load ptr, ptr %17, align 8, !tbaa !15
  %41 = getelementptr inbounds ptr, ptr %40, i64 %indvars.iv124
  %42 = load ptr, ptr %41, align 8, !tbaa !16
  %43 = call i32 @ASYNC_WAIT_CTX_get_all_fds(ptr noundef %42, ptr noundef null, ptr noundef nonnull %6) #9
  %44 = icmp eq i32 %43, 0
  %45 = load i64, ptr %6, align 8
  %46 = icmp ugt i64 %45, 1
  %or.cond = select i1 %44, i1 true, i1 %46
  br i1 %or.cond, label %._crit_edge, label %47

47:                                               ; preds = %39
  %48 = load ptr, ptr %17, align 8, !tbaa !15
  %49 = getelementptr inbounds ptr, ptr %48, i64 %indvars.iv124
  %50 = load ptr, ptr %49, align 8, !tbaa !16
  %51 = call i32 @ASYNC_WAIT_CTX_get_all_fds(ptr noundef %50, ptr noundef nonnull %5, ptr noundef nonnull %6) #9
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = srem i32 %52, 64
  %54 = zext nneg i32 %53 to i64
  %55 = shl nuw i64 1, %54
  %56 = sdiv i32 %52, 64
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [16 x i64], ptr %7, i64 0, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !9
  %60 = or i64 %55, %59
  store i64 %60, ptr %58, align 8, !tbaa !9
  %spec.select91 = call i32 @llvm.smax.i32(i32 %52, i32 %.17499)
  %.pre = load i32, ptr %11, align 4, !tbaa !11
  br label %61

61:                                               ; preds = %47, %.lr.ph100
  %62 = phi i32 [ %34, %.lr.ph100 ], [ %.pre, %47 ]
  %.275 = phi i32 [ %.17499, %.lr.ph100 ], [ %spec.select91, %47 ]
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %indvars.iv.next125, %63
  br i1 %64, label %.lr.ph100, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %61, %39, %.preheader92
  %.174.lcssa = phi i32 [ %.073104, %.preheader92 ], [ %.17499, %39 ], [ %.275, %61 ]
  %65 = icmp sgt i32 %.174.lcssa, 1023
  br i1 %65, label %.outer._crit_edge, label %66

66:                                               ; preds = %._crit_edge
  %67 = add nuw nsw i32 %.174.lcssa, 1
  %68 = call i32 @select(i32 noundef %67, ptr noundef nonnull %7, ptr noundef null, ptr noundef null, ptr noundef nonnull %8) #9
  switch i32 %68, label %.preheader [
    i32 -1, label %71
    i32 0, label %75
  ]

.preheader:                                       ; preds = %66
  %69 = load i32, ptr %11, align 4, !tbaa !11
  %70 = icmp sgt i32 %69, 0
  br i1 %70, label %.lr.ph110, label %._crit_edge111

71:                                               ; preds = %66
  %72 = tail call ptr @__errno_location() #11
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = icmp eq i32 %73, 4
  br i1 %74, label %.preheader92.backedge, label %.outer._crit_edge

75:                                               ; preds = %66
  %76 = load ptr, ptr %18, align 8, !tbaa !20
  %.not88 = icmp eq ptr %76, null
  br i1 %.not88, label %.preheader92.backedge, label %77

77:                                               ; preds = %75
  %78 = load ptr, ptr %0, align 8, !tbaa !21
  %79 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %78, ptr noundef nonnull dereferenceable(1) @.str, i64 noundef 9) #12
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %.preheader92.backedge

.preheader92.backedge:                            ; preds = %77, %85, %87, %81, %75, %71
  br label %.preheader92, !llvm.loop !22

81:                                               ; preds = %77
  %82 = load i32, ptr %19, align 4, !tbaa !23
  %.not89 = icmp eq i32 %82, 0
  br i1 %.not89, label %.preheader92.backedge, label %83

83:                                               ; preds = %81
  %84 = load i32, ptr %20, align 8, !tbaa !24
  %.not90 = icmp eq i32 %84, 0
  br i1 %.not90, label %87, label %85

85:                                               ; preds = %83
  %86 = call i32 @qat_epoll_engine(ptr noundef nonnull %76, ptr noundef nonnull %9, ptr noundef nonnull %4, i32 noundef 0)
  br label %.preheader92.backedge

87:                                               ; preds = %83
  %88 = call i32 @eng_poll_handler(ptr noundef nonnull %76, ptr noundef nonnull %4)
  br label %.preheader92.backedge

.lr.ph110:                                        ; preds = %.preheader, %128
  %indvars.iv127 = phi i64 [ %indvars.iv.next128, %128 ], [ 0, %.preheader ]
  %.3109 = phi i32 [ %.4, %128 ], [ %.2.ph116, %.preheader ]
  %89 = load ptr, ptr %16, align 8, !tbaa !14
  %90 = getelementptr inbounds ptr, ptr %89, i64 %indvars.iv127
  %91 = load ptr, ptr %90, align 8, !tbaa !16
  %92 = icmp eq ptr %91, null
  br i1 %92, label %128, label %93

93:                                               ; preds = %.lr.ph110
  %94 = load ptr, ptr %17, align 8, !tbaa !15
  %95 = getelementptr inbounds ptr, ptr %94, i64 %indvars.iv127
  %96 = load ptr, ptr %95, align 8, !tbaa !16
  %97 = call i32 @ASYNC_WAIT_CTX_get_all_fds(ptr noundef %96, ptr noundef null, ptr noundef nonnull %6) #9
  %98 = icmp eq i32 %97, 0
  %99 = load i64, ptr %6, align 8
  %100 = icmp ugt i64 %99, 1
  %or.cond3 = select i1 %98, i1 true, i1 %100
  br i1 %or.cond3, label %._crit_edge111, label %101

101:                                              ; preds = %93
  %102 = load ptr, ptr %17, align 8, !tbaa !15
  %103 = getelementptr inbounds ptr, ptr %102, i64 %indvars.iv127
  %104 = load ptr, ptr %103, align 8, !tbaa !16
  %105 = call i32 @ASYNC_WAIT_CTX_get_all_fds(ptr noundef %104, ptr noundef nonnull %5, ptr noundef nonnull %6) #9
  %106 = load i64, ptr %6, align 8, !tbaa !9
  %107 = icmp eq i64 %106, 1
  br i1 %107, label %108, label %118

108:                                              ; preds = %101
  %109 = load i32, ptr %5, align 4, !tbaa !5
  %110 = sdiv i32 %109, 64
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [16 x i64], ptr %7, i64 0, i64 %111
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = srem i32 %109, 64
  %115 = zext nneg i32 %114 to i64
  %116 = shl nuw i64 1, %115
  %117 = and i64 %116, %113
  %.not = icmp eq i64 %117, 0
  br i1 %.not, label %128, label %118

118:                                              ; preds = %108, %101
  %119 = load ptr, ptr %16, align 8, !tbaa !14
  %120 = getelementptr inbounds ptr, ptr %119, i64 %indvars.iv127
  %121 = load ptr, ptr %17, align 8, !tbaa !15
  %122 = getelementptr inbounds ptr, ptr %121, i64 %indvars.iv127
  %123 = load ptr, ptr %122, align 8, !tbaa !16
  %124 = call i32 @ASYNC_start_job(ptr noundef %120, ptr noundef %123, ptr noundef nonnull %3, ptr noundef %1, ptr noundef nonnull %0, i64 noundef 424) #9
  switch i32 %124, label %128 [
    i32 0, label %.sink.split
    i32 3, label %.sink.split
    i32 1, label %.sink.split
  ]

.sink.split:                                      ; preds = %118, %118, %118
  %125 = add nsw i32 %.3109, -1
  %126 = load ptr, ptr %16, align 8, !tbaa !14
  %127 = getelementptr inbounds ptr, ptr %126, i64 %indvars.iv127
  store ptr null, ptr %127, align 8, !tbaa !16
  br label %128

128:                                              ; preds = %.sink.split, %118, %108, %.lr.ph110
  %.4 = phi i32 [ %.3109, %.lr.ph110 ], [ %.3109, %118 ], [ %.3109, %108 ], [ %125, %.sink.split ]
  %indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
  %129 = load i32, ptr %11, align 4, !tbaa !11
  %130 = sext i32 %129 to i64
  %131 = icmp slt i64 %indvars.iv.next128, %130
  br i1 %131, label %.lr.ph110, label %._crit_edge111, !llvm.loop !25

._crit_edge111:                                   ; preds = %128, %93, %.preheader
  %.3.lcssa = phi i32 [ %.2.ph116, %.preheader ], [ %.3109, %93 ], [ %.4, %128 ]
  %132 = load ptr, ptr %18, align 8, !tbaa !20
  %.not85 = icmp eq ptr %132, null
  br i1 %.not85, label %.outer, label %133

133:                                              ; preds = %._crit_edge111
  %134 = load ptr, ptr %0, align 8, !tbaa !21
  %135 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %134, ptr noundef nonnull dereferenceable(1) @.str, i64 noundef 9) #12
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %137, label %.outer

137:                                              ; preds = %133
  %138 = load i32, ptr %19, align 4, !tbaa !23
  %.not86 = icmp eq i32 %138, 0
  br i1 %.not86, label %.outer, label %139

139:                                              ; preds = %137
  %140 = load i32, ptr %20, align 8, !tbaa !24
  %.not87 = icmp eq i32 %140, 0
  br i1 %.not87, label %143, label %141

141:                                              ; preds = %139
  %142 = call i32 @qat_epoll_engine(ptr noundef nonnull %132, ptr noundef nonnull %9, ptr noundef nonnull %4, i32 noundef 0)
  br label %.outer

143:                                              ; preds = %139
  %144 = call i32 @eng_poll_handler(ptr noundef nonnull %132, ptr noundef nonnull %4)
  br label %.outer

.outer:                                           ; preds = %133, %141, %143, %137, %._crit_edge111
  %145 = icmp sgt i32 %.3.lcssa, 0
  br i1 %145, label %.preheader92.lr.ph, label %.outer._crit_edge, !llvm.loop !22

.preheader92.lr.ph:                               ; preds = %.preheader92.lr.ph.lr.ph, %.outer
  %.2.ph116 = phi i32 [ %spec.select, %.preheader92.lr.ph.lr.ph ], [ %.3.lcssa, %.outer ]
  %.073.ph115 = phi i32 [ 0, %.preheader92.lr.ph.lr.ph ], [ %.174.lcssa, %.outer ]
  br label %.preheader92

.outer._crit_edge:                                ; preds = %.outer, %71, %._crit_edge, %.preheader94, %.preheader93
  call void @free(ptr noundef %9) #9
  %.0.pre = load i32, ptr %3, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %2, %.outer._crit_edge
  %.0 = phi i32 [ 0, %2 ], [ %.0.pre, %.outer._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  ret i32 %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #2

declare i32 @ASYNC_start_job(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #5

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #7

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { 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 #5 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nounwind }
attributes #10 = { nounwind allocsize(0,1) }
attributes #11 = { nounwind willreturn memory(none) }
attributes #12 = { nounwind willreturn memory(read) }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 388}
!12 = !{!"test_params_t", !13, i64 0, !13, i64 8, !6, i64 16, !6, i64 20, !13, i64 24, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !13, i64 56, !7, i64 64, !7, i64 128, !7, i64 192, !7, i64 256, !6, i64 320, !6, i64 324, !6, i64 328, !13, i64 336, !13, i64 344, !6, i64 352, !6, i64 356, !6, i64 360, !6, i64 364, !6, i64 368, !6, i64 372, !6, i64 376, !6, i64 380, !6, i64 384, !6, i64 388, !13, i64 392, !13, i64 400, !13, i64 408, !6, i64 416, !6, i64 420}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!12, !13, i64 392}
!15 = !{!12, !13, i64 400}
!16 = !{!13, !13, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!12, !13, i64 24}
!21 = !{!12, !13, i64 0}
!22 = distinct !{!22, !18}
!23 = !{!12, !6, i64 44}
!24 = !{!12, !6, i64 48}
!25 = distinct !{!25, !18}


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