; LLVM IR from fast-pack/simdcomp :: benchmarks (benchmark)

; 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"

@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__.benchmarkSearch = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [99 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

declare i32 @printf(ptr noundef, ...) #1

declare i32 @simdmaxbitsd1(i32 noundef, ptr noundef) #1

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

declare void @simdpackwithoutmaskd1(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind
declare i64 @clock() #3

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

declare void @simdunpackd1(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @benchmarkSearch() #5 {
  %1 = alloca [128 x i32], align 16
  %2 = alloca [128 x i32], align 16
  %3 = alloca [128 x i32], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca <2 x i64>, align 16
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 512, ptr %1) #7
  call void @llvm.lifetime.start.p0(i64 512, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 512, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %306, %0
  %22 = load i32, ptr %6, align 4, !tbaa !5
  %23 = icmp ule i32 %22, 32
  br i1 %23, label %24, label %309

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %25 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %25, ptr %12, align 4, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %45, %24
  %27 = load i32, ptr %7, align 4, !tbaa !5
  %28 = icmp ult i32 %27, 128
  br i1 %28, label %29, label %48

29:                                               ; preds = %26
  %30 = call i32 @rand() #7
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = zext i32 %31 to i64
  %33 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %32
  store i32 %30, ptr %33, align 4, !tbaa !5
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = icmp ult i32 %34, 32
  br i1 %35, label %36, label %44

36:                                               ; preds = %29
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = shl i32 1, %37
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = urem i32 %42, %38
  store i32 %43, ptr %41, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %36, %29
  br label %45

45:                                               ; preds = %44
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = add i32 %46, 1
  store i32 %47, ptr %7, align 4, !tbaa !5
  br label %26, !llvm.loop !9

48:                                               ; preds = %26
  %49 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 0
  call void @qsort(ptr noundef %49, i64 noundef 128, i64 noundef 4, ptr noundef @uint32_cmp)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %67, %48
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = icmp ult i32 %51, 128
  br i1 %52, label %53, label %70

53:                                               ; preds = %50
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = load i32, ptr %12, align 4, !tbaa !5
  %59 = add i32 %57, %58
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %61
  store i32 %59, ptr %62, align 4, !tbaa !5
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  store i32 %66, ptr %12, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %53
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = add i32 %68, 1
  store i32 %69, ptr %7, align 4, !tbaa !5
  br label %50, !llvm.loop !11

70:                                               ; preds = %50
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %95, %70
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = icmp ult i32 %72, 128
  br i1 %73, label %74, label %98

74:                                               ; preds = %71
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = sub i32 %79, 1
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = icmp ult i32 %78, %83
  br i1 %84, label %85, label %94

85:                                               ; preds = %74
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = sub i32 %86, 1
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %92
  store i32 %90, ptr %93, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %85, %74
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = add i32 %96, 1
  store i32 %97, ptr %7, align 4, !tbaa !5
  br label %71, !llvm.loop !12

98:                                               ; preds = %71
  %99 = load i32, ptr %5, align 4, !tbaa !5
  %100 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 0
  %101 = call i32 @simdmaxbitsd1(i32 noundef %99, ptr noundef %100)
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = icmp ule i32 %101, %102
  br i1 %103, label %104, label %105

104:                                              ; preds = %98
  br label %106

105:                                              ; preds = %98
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 165, ptr noundef @__PRETTY_FUNCTION__.benchmarkSearch) #8
  unreachable

106:                                              ; preds = %104
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %114, %106
  %108 = load i32, ptr %7, align 4, !tbaa !5
  %109 = icmp ult i32 %108, 128
  br i1 %109, label %110, label %117

110:                                              ; preds = %107
  %111 = load i32, ptr %7, align 4, !tbaa !5
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds [128 x i32], ptr %3, i64 0, i64 %112
  store i32 0, ptr %113, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %110
  %115 = load i32, ptr %7, align 4, !tbaa !5
  %116 = add i32 %115, 1
  store i32 %116, ptr %7, align 4, !tbaa !5
  br label %107, !llvm.loop !13

117:                                              ; preds = %107
  %118 = load i32, ptr %5, align 4, !tbaa !5
  %119 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 0
  %120 = getelementptr inbounds [128 x i32], ptr %3, i64 0, i64 0
  %121 = load i32, ptr %6, align 4, !tbaa !5
  call void @simdpackwithoutmaskd1(i32 noundef %118, ptr noundef %119, ptr noundef %120, i32 noundef %121)
  %122 = load i32, ptr %5, align 4, !tbaa !5
  %123 = getelementptr inbounds [128 x i32], ptr %3, i64 0, i64 0
  %124 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 0
  %125 = load i32, ptr %6, align 4, !tbaa !5
  call void @simdunpackd1(i32 noundef %122, ptr noundef %123, ptr noundef %124, i32 noundef %125)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %142, %117
  %127 = load i32, ptr %7, align 4, !tbaa !5
  %128 = icmp ult i32 %127, 128
  br i1 %128, label %129, label %145

129:                                              ; preds = %126
  %130 = load i32, ptr %7, align 4, !tbaa !5
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = load i32, ptr %7, align 4, !tbaa !5
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = icmp eq i32 %133, %137
  br i1 %138, label %139, label %140

139:                                              ; preds = %129
  br label %141

140:                                              ; preds = %129
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef 175, ptr noundef @__PRETTY_FUNCTION__.benchmarkSearch) #8
  unreachable

141:                                              ; preds = %139
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %7, align 4, !tbaa !5
  %144 = add i32 %143, 1
  store i32 %144, ptr %7, align 4, !tbaa !5
  br label %126, !llvm.loop !14

145:                                              ; preds = %126
  %146 = call i64 @clock() #7
  store i64 %146, ptr %8, align 8, !tbaa !15
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %190, %145
  %148 = load i32, ptr %7, align 4, !tbaa !5
  %149 = icmp ult i32 %148, 1280
  br i1 %149, label %150, label %193

150:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %151 = load i32, ptr %7, align 4, !tbaa !5
  %152 = urem i32 %151, 128
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !5
  store i32 %155, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %156 = load i32, ptr %5, align 4, !tbaa !5
  %157 = call <2 x i64> @_mm_set1_epi32(i32 noundef %156)
  store <2 x i64> %157, ptr %15, align 16, !tbaa !17
  %158 = getelementptr inbounds [128 x i32], ptr %3, i64 0, i64 0
  %159 = load i32, ptr %6, align 4, !tbaa !5
  %160 = load i32, ptr %14, align 4, !tbaa !5
  %161 = call i32 @simdsearchd1(ptr noundef %15, ptr noundef %158, i32 noundef %159, i32 noundef %160, ptr noundef %4)
  store i32 %161, ptr %13, align 4, !tbaa !5
  %162 = load i32, ptr %4, align 4, !tbaa !5
  %163 = load i32, ptr %14, align 4, !tbaa !5
  %164 = icmp ult i32 %162, %163
  br i1 %164, label %172, label %165

165:                                              ; preds = %150
  %166 = load i32, ptr %13, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = load i32, ptr %4, align 4, !tbaa !5
  %171 = icmp ne i32 %169, %170
  br i1 %171, label %172, label %174

172:                                              ; preds = %165, %150
  %173 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  br label %189

174:                                              ; preds = %165
  %175 = load i32, ptr %13, align 4, !tbaa !5
  %176 = icmp sgt i32 %175, 0
  br i1 %176, label %177, label %188

177:                                              ; preds = %174
  %178 = load i32, ptr %13, align 4, !tbaa !5
  %179 = sub nsw i32 %178, 1
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = load i32, ptr %14, align 4, !tbaa !5
  %184 = icmp uge i32 %182, %183
  br i1 %184, label %185, label %187

185:                                              ; preds = %177
  %186 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %187

187:                                              ; preds = %185, %177
  br label %188

188:                                              ; preds = %187, %174
  br label %189

189:                                              ; preds = %188, %172
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %190

190:                                              ; preds = %189
  %191 = load i32, ptr %7, align 4, !tbaa !5
  %192 = add i32 %191, 1
  store i32 %192, ptr %7, align 4, !tbaa !5
  br label %147, !llvm.loop !18

193:                                              ; preds = %147
  %194 = call i64 @clock() #7
  store i64 %194, ptr %9, align 8, !tbaa !15
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %243, %193
  %196 = load i32, ptr %7, align 4, !tbaa !5
  %197 = icmp ult i32 %196, 1280
  br i1 %197, label %198, label %246

198:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %199 = load i32, ptr %7, align 4, !tbaa !5
  %200 = urem i32 %199, 128
  %201 = zext i32 %200 to i64
  %202 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  store i32 %203, ptr %17, align 4, !tbaa !5
  %204 = load i32, ptr %5, align 4, !tbaa !5
  %205 = getelementptr inbounds [128 x i32], ptr %3, i64 0, i64 0
  %206 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 0
  %207 = load i32, ptr %6, align 4, !tbaa !5
  call void @simdunpackd1(i32 noundef %204, ptr noundef %205, ptr noundef %206, i32 noundef %207)
  %208 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 0
  %209 = load i32, ptr %17, align 4, !tbaa !5
  %210 = call i32 @lower_bound(ptr noundef %208, i32 noundef %209, i32 noundef 0, i32 noundef 128)
  store i32 %210, ptr %16, align 4, !tbaa !5
  %211 = load i32, ptr %16, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 %212
  %214 = load i32, ptr %213, align 4, !tbaa !5
  store i32 %214, ptr %4, align 4, !tbaa !5
  %215 = load i32, ptr %4, align 4, !tbaa !5
  %216 = load i32, ptr %17, align 4, !tbaa !5
  %217 = icmp ult i32 %215, %216
  br i1 %217, label %225, label %218

218:                                              ; preds = %198
  %219 = load i32, ptr %16, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %220
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %223 = load i32, ptr %4, align 4, !tbaa !5
  %224 = icmp ne i32 %222, %223
  br i1 %224, label %225, label %227

225:                                              ; preds = %218, %198
  %226 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  br label %242

227:                                              ; preds = %218
  %228 = load i32, ptr %16, align 4, !tbaa !5
  %229 = icmp sgt i32 %228, 0
  br i1 %229, label %230, label %241

230:                                              ; preds = %227
  %231 = load i32, ptr %16, align 4, !tbaa !5
  %232 = sub nsw i32 %231, 1
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %233
  %235 = load i32, ptr %234, align 4, !tbaa !5
  %236 = load i32, ptr %17, align 4, !tbaa !5
  %237 = icmp uge i32 %235, %236
  br i1 %237, label %238, label %240

238:                                              ; preds = %230
  %239 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %240

240:                                              ; preds = %238, %230
  br label %241

241:                                              ; preds = %240, %227
  br label %242

242:                                              ; preds = %241, %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %7, align 4, !tbaa !5
  %245 = add i32 %244, 1
  store i32 %245, ptr %7, align 4, !tbaa !5
  br label %195, !llvm.loop !19

246:                                              ; preds = %195
  %247 = call i64 @clock() #7
  store i64 %247, ptr %10, align 8, !tbaa !15
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %248

248:                                              ; preds = %290, %246
  %249 = load i32, ptr %7, align 4, !tbaa !5
  %250 = icmp ult i32 %249, 1280
  br i1 %250, label %251, label %293

251:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %252 = load i32, ptr %7, align 4, !tbaa !5
  %253 = urem i32 %252, 128
  %254 = zext i32 %253 to i64
  %255 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %254
  %256 = load i32, ptr %255, align 4, !tbaa !5
  store i32 %256, ptr %19, align 4, !tbaa !5
  %257 = load i32, ptr %5, align 4, !tbaa !5
  %258 = getelementptr inbounds [128 x i32], ptr %3, i64 0, i64 0
  %259 = load i32, ptr %6, align 4, !tbaa !5
  %260 = load i32, ptr %19, align 4, !tbaa !5
  %261 = call i32 @simdsearchwithlengthd1(i32 noundef %257, ptr noundef %258, i32 noundef %259, i32 noundef 128, i32 noundef %260, ptr noundef %4)
  store i32 %261, ptr %18, align 4, !tbaa !5
  %262 = load i32, ptr %4, align 4, !tbaa !5
  %263 = load i32, ptr %19, align 4, !tbaa !5
  %264 = icmp ult i32 %262, %263
  br i1 %264, label %272, label %265

265:                                              ; preds = %251
  %266 = load i32, ptr %18, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %267
  %269 = load i32, ptr %268, align 4, !tbaa !5
  %270 = load i32, ptr %4, align 4, !tbaa !5
  %271 = icmp ne i32 %269, %270
  br i1 %271, label %272, label %274

272:                                              ; preds = %265, %251
  %273 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  br label %289

274:                                              ; preds = %265
  %275 = load i32, ptr %18, align 4, !tbaa !5
  %276 = icmp sgt i32 %275, 0
  br i1 %276, label %277, label %288

277:                                              ; preds = %274
  %278 = load i32, ptr %18, align 4, !tbaa !5
  %279 = sub nsw i32 %278, 1
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %280
  %282 = load i32, ptr %281, align 4, !tbaa !5
  %283 = load i32, ptr %19, align 4, !tbaa !5
  %284 = icmp uge i32 %282, %283
  br i1 %284, label %285, label %287

285:                                              ; preds = %277
  %286 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %287

287:                                              ; preds = %285, %277
  br label %288

288:                                              ; preds = %287, %274
  br label %289

289:                                              ; preds = %288, %272
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %290

290:                                              ; preds = %289
  %291 = load i32, ptr %7, align 4, !tbaa !5
  %292 = add i32 %291, 1
  store i32 %292, ptr %7, align 4, !tbaa !5
  br label %248, !llvm.loop !20

293:                                              ; preds = %248
  %294 = call i64 @clock() #7
  store i64 %294, ptr %11, align 8, !tbaa !15
  %295 = load i32, ptr %6, align 4, !tbaa !5
  %296 = load i64, ptr %9, align 8, !tbaa !15
  %297 = load i64, ptr %8, align 8, !tbaa !15
  %298 = sub nsw i64 %296, %297
  %299 = load i64, ptr %10, align 8, !tbaa !15
  %300 = load i64, ptr %9, align 8, !tbaa !15
  %301 = sub nsw i64 %299, %300
  %302 = load i64, ptr %11, align 8, !tbaa !15
  %303 = load i64, ptr %10, align 8, !tbaa !15
  %304 = sub nsw i64 %302, %303
  %305 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %295, i64 noundef %298, i64 noundef %301, i64 noundef %304)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %306

306:                                              ; preds = %293
  %307 = load i32, ptr %6, align 4, !tbaa !5
  %308 = add i32 %307, 1
  store i32 %308, ptr %6, align 4, !tbaa !5
  br label %21, !llvm.loop !21

309:                                              ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %1) #7
  ret void
}

; Function Attrs: nounwind
declare i32 @rand() #3

declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_set1_epi32(i32 noundef) #6

declare i32 @simdsearchd1(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1

declare i32 @simdsearchwithlengthd1(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1

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

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

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


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

@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__.benchmarkSearch = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [99 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

declare void @simdpackwithoutmaskd1(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #4

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

declare void @simdunpackd1(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @benchmarkSearch() local_unnamed_addr #6 {
  %1 = alloca [128 x i32], align 16
  %2 = alloca [128 x i32], align 16
  %3 = alloca [128 x i32], align 16
  %4 = alloca i32, align 4
  %5 = alloca <2 x i64>, align 16
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %1) #10
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %2) #10
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %3) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #10
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %.preheader95

.preheader95:                                     ; preds = %0, %142
  %.0105 = phi i32 [ 0, %0 ], [ %148, %142 ]
  %.not93 = icmp eq i32 %.0105, 32
  %notmask = shl nsw i32 -1, %.0105
  %7 = xor i32 %notmask, -1
  %8 = select i1 %.not93, i32 -1, i32 %7
  br label %9

9:                                                ; preds = %.preheader95, %9
  %indvars.iv = phi i64 [ 0, %.preheader95 ], [ %indvars.iv.next, %9 ]
  %10 = call i32 @rand() #10
  %11 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv
  %storemerge = and i32 %10, %8
  store i32 %storemerge, ptr %11, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 128
  br i1 %exitcond.not, label %12, label %9, !llvm.loop !9

12:                                               ; preds = %9
  call void @qsort(ptr noundef nonnull %1, i64 noundef 128, i64 noundef 4, ptr noundef nonnull @uint32_cmp) #10
  br label %13

13:                                               ; preds = %13, %12
  %indvars.iv107 = phi i64 [ 0, %12 ], [ %indvars.iv.next108.3, %13 ]
  %.07697 = phi i32 [ 0, %12 ], [ %25, %13 ]
  %14 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv107
  %15 = load i32, ptr %14, align 16, !tbaa !5
  %16 = add i32 %15, %.07697
  store i32 %16, ptr %14, align 16, !tbaa !5
  %indvars.iv.next108 = or disjoint i64 %indvars.iv107, 1
  %17 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv.next108
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = add i32 %18, %16
  store i32 %19, ptr %17, align 4, !tbaa !5
  %indvars.iv.next108.1 = or disjoint i64 %indvars.iv107, 2
  %20 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv.next108.1
  %21 = load i32, ptr %20, align 8, !tbaa !5
  %22 = add i32 %21, %19
  store i32 %22, ptr %20, align 8, !tbaa !5
  %indvars.iv.next108.2 = or disjoint i64 %indvars.iv107, 3
  %23 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv.next108.2
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = add i32 %24, %22
  store i32 %25, ptr %23, align 4, !tbaa !5
  %indvars.iv.next108.3 = add nuw nsw i64 %indvars.iv107, 4
  %exitcond110.not.3 = icmp eq i64 %indvars.iv.next108.3, 128
  br i1 %exitcond110.not.3, label %.preheader94.preheader, label %13, !llvm.loop !11

.preheader94.preheader:                           ; preds = %13
  %.pre = load i32, ptr %1, align 16, !tbaa !5
  br label %.preheader94

.preheader94:                                     ; preds = %37, %.preheader94.preheader
  %26 = phi i32 [ %.pre, %.preheader94.preheader ], [ %38, %37 ]
  %indvars.iv111 = phi i64 [ 1, %.preheader94.preheader ], [ %indvars.iv.next112.1, %37 ]
  %27 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv111
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = icmp ult i32 %28, %26
  br i1 %29, label %30, label %31

30:                                               ; preds = %.preheader94
  store i32 %26, ptr %27, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %.preheader94, %30
  %32 = phi i32 [ %28, %.preheader94 ], [ %26, %30 ]
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond114.not = icmp eq i64 %indvars.iv.next112, 128
  br i1 %exitcond114.not, label %39, label %.preheader94.1, !llvm.loop !12

.preheader94.1:                                   ; preds = %31
  %33 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv.next112
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = icmp ult i32 %34, %32
  br i1 %35, label %36, label %37

36:                                               ; preds = %.preheader94.1
  store i32 %32, ptr %33, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %36, %.preheader94.1
  %38 = phi i32 [ %34, %.preheader94.1 ], [ %32, %36 ]
  %indvars.iv.next112.1 = add nuw nsw i64 %indvars.iv111, 2
  br label %.preheader94

39:                                               ; preds = %31
  %40 = call i32 @simdmaxbitsd1(i32 noundef 0, ptr noundef nonnull %1) #10
  %.not = icmp ugt i32 %40, %.0105
  br i1 %.not, label %41, label %.preheader.preheader

.preheader.preheader:                             ; preds = %39
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(512) %3, i8 0, i64 512, i1 false), !tbaa !5
  call void @simdpackwithoutmaskd1(i32 noundef 0, ptr noundef nonnull %1, ptr noundef nonnull %3, i32 noundef %.0105) #10
  call void @simdunpackd1(i32 noundef 0, ptr noundef nonnull %3, ptr noundef nonnull %2, i32 noundef %.0105) #10
  br label %61

41:                                               ; preds = %39
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 165, ptr noundef nonnull @__PRETTY_FUNCTION__.benchmarkSearch) #11
  unreachable

42:                                               ; preds = %61
  %indvars.iv.next119 = or disjoint i64 %indvars.iv118, 1
  %43 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv.next119
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 %indvars.iv.next119
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = icmp eq i32 %44, %46
  br i1 %47, label %48, label %67

48:                                               ; preds = %42
  %indvars.iv.next119.1 = or disjoint i64 %indvars.iv118, 2
  %49 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv.next119.1
  %50 = load i32, ptr %49, align 8, !tbaa !5
  %51 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 %indvars.iv.next119.1
  %52 = load i32, ptr %51, align 8, !tbaa !5
  %53 = icmp eq i32 %50, %52
  br i1 %53, label %54, label %67

54:                                               ; preds = %48
  %indvars.iv.next119.2 = or disjoint i64 %indvars.iv118, 3
  %55 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv.next119.2
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 %indvars.iv.next119.2
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = icmp eq i32 %56, %58
  br i1 %59, label %60, label %67

60:                                               ; preds = %54
  %indvars.iv.next119.3 = add nuw nsw i64 %indvars.iv118, 4
  %exitcond121.not.3 = icmp eq i64 %indvars.iv.next119.3, 128
  br i1 %exitcond121.not.3, label %68, label %61, !llvm.loop !13

61:                                               ; preds = %60, %.preheader.preheader
  %indvars.iv118 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next119.3, %60 ]
  %62 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv118
  %63 = load i32, ptr %62, align 16, !tbaa !5
  %64 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 %indvars.iv118
  %65 = load i32, ptr %64, align 16, !tbaa !5
  %66 = icmp eq i32 %63, %65
  br i1 %66, label %42, label %67

67:                                               ; preds = %54, %48, %42, %61
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.2, i32 noundef 175, ptr noundef nonnull @__PRETTY_FUNCTION__.benchmarkSearch) #11
  unreachable

68:                                               ; preds = %60
  %69 = call i64 @clock() #10
  br label %70

70:                                               ; preds = %68, %91
  %.5102 = phi i32 [ 0, %68 ], [ %92, %91 ]
  %71 = and i32 %.5102, 127
  %72 = zext nneg i32 %71 to i64
  %73 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #10
  %75 = call <2 x i64> @_mm_set1_epi32(i32 noundef 0)
  store <2 x i64> %75, ptr %5, align 16, !tbaa !14
  %76 = call i32 @simdsearchd1(ptr noundef nonnull %5, ptr noundef nonnull %3, i32 noundef %.0105, i32 noundef %74, ptr noundef nonnull %4) #10
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = icmp ult i32 %77, %74
  br i1 %78, label %.sink.split, label %79

79:                                               ; preds = %70
  %80 = sext i32 %76 to i64
  %81 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %.not91 = icmp eq i32 %82, %77
  br i1 %.not91, label %83, label %.sink.split

83:                                               ; preds = %79
  %84 = icmp sgt i32 %76, 0
  br i1 %84, label %85, label %91

85:                                               ; preds = %83
  %86 = add nsw i32 %76, -1
  %87 = zext nneg i32 %86 to i64
  %88 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %.not92 = icmp ult i32 %89, %74
  br i1 %.not92, label %91, label %.sink.split

.sink.split:                                      ; preds = %85, %70, %79
  %.str.9.sink = phi ptr [ @.str.8, %79 ], [ @.str.8, %70 ], [ @.str.9, %85 ]
  %90 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.9.sink)
  br label %91

91:                                               ; preds = %.sink.split, %83, %85
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  %92 = add nuw nsw i32 %.5102, 1
  %exitcond122.not = icmp eq i32 %92, 1280
  br i1 %exitcond122.not, label %93, label %70, !llvm.loop !15

93:                                               ; preds = %91
  %94 = call i64 @clock() #10
  br label %95

95:                                               ; preds = %93, %116
  %.6103 = phi i32 [ 0, %93 ], [ %117, %116 ]
  %96 = and i32 %.6103, 127
  %97 = zext nneg i32 %96 to i64
  %98 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !5
  call void @simdunpackd1(i32 noundef 0, ptr noundef nonnull %3, ptr noundef nonnull %2, i32 noundef %.0105) #10
  %100 = call i32 @lower_bound(ptr noundef nonnull %2, i32 noundef %99, i32 noundef 0, i32 noundef 128)
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  store i32 %103, ptr %4, align 4, !tbaa !5
  %104 = icmp ult i32 %103, %99
  br i1 %104, label %.sink.split126, label %105

105:                                              ; preds = %95
  %106 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %101
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %.not89 = icmp eq i32 %107, %103
  br i1 %.not89, label %108, label %.sink.split126

108:                                              ; preds = %105
  %109 = icmp sgt i32 %100, 0
  br i1 %109, label %110, label %116

110:                                              ; preds = %108
  %111 = add nsw i32 %100, -1
  %112 = zext nneg i32 %111 to i64
  %113 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %.not90 = icmp ult i32 %114, %99
  br i1 %.not90, label %116, label %.sink.split126

.sink.split126:                                   ; preds = %110, %95, %105
  %.str.11.sink = phi ptr [ @.str.10, %105 ], [ @.str.10, %95 ], [ @.str.11, %110 ]
  %115 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.11.sink)
  br label %116

116:                                              ; preds = %.sink.split126, %108, %110
  %117 = add nuw nsw i32 %.6103, 1
  %exitcond123.not = icmp eq i32 %117, 1280
  br i1 %exitcond123.not, label %118, label %95, !llvm.loop !16

118:                                              ; preds = %116
  %119 = call i64 @clock() #10
  br label %120

120:                                              ; preds = %118, %140
  %.7104 = phi i32 [ 0, %118 ], [ %141, %140 ]
  %121 = and i32 %.7104, 127
  %122 = zext nneg i32 %121 to i64
  %123 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = call i32 @simdsearchwithlengthd1(i32 noundef 0, ptr noundef nonnull %3, i32 noundef %.0105, i32 noundef 128, i32 noundef %124, ptr noundef nonnull %4) #10
  %126 = load i32, ptr %4, align 4, !tbaa !5
  %127 = icmp ult i32 %126, %124
  br i1 %127, label %.sink.split127, label %128

128:                                              ; preds = %120
  %129 = sext i32 %125 to i64
  %130 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %.not87 = icmp eq i32 %131, %126
  br i1 %.not87, label %132, label %.sink.split127

132:                                              ; preds = %128
  %133 = icmp sgt i32 %125, 0
  br i1 %133, label %134, label %140

134:                                              ; preds = %132
  %135 = add nsw i32 %125, -1
  %136 = zext nneg i32 %135 to i64
  %137 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %.not88 = icmp ult i32 %138, %124
  br i1 %.not88, label %140, label %.sink.split127

.sink.split127:                                   ; preds = %134, %120, %128
  %.str.9.sink128 = phi ptr [ @.str.8, %128 ], [ @.str.8, %120 ], [ @.str.9, %134 ]
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.9.sink128)
  br label %140

140:                                              ; preds = %.sink.split127, %132, %134
  %141 = add nuw nsw i32 %.7104, 1
  %exitcond124.not = icmp eq i32 %141, 1280
  br i1 %exitcond124.not, label %142, label %120, !llvm.loop !17

142:                                              ; preds = %140
  %143 = call i64 @clock() #10
  %144 = sub nsw i64 %94, %69
  %145 = sub nsw i64 %119, %94
  %146 = sub nsw i64 %143, %119
  %147 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %.0105, i64 noundef %144, i64 noundef %145, i64 noundef %146)
  %148 = add nuw nsw i32 %.0105, 1
  %exitcond125.not = icmp eq i32 %148, 33
  br i1 %exitcond125.not, label %149, label %.preheader95, !llvm.loop !18

149:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #10
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %1) #10
  ret void
}

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #4

; Function Attrs: nofree
declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #7

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_set1_epi32(i32 noundef) local_unnamed_addr #8

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

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

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

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

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

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


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass