; LLVM IR from netease-youdao/EMLL :: test (TestBias)

; 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.timespec = type { i64, i64 }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @test_sum_uint8to32(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %struct.timespec, align 8
  %29 = alloca %struct.timespec, align 8
  %30 = alloca i32, align 4
  %31 = alloca double, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !5
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %34, i32 noundef %35)
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %41

39:                                               ; preds = %3
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %43

41:                                               ; preds = %3
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %43

43:                                               ; preds = %41, %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = add i32 %44, 4
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = add i32 %46, 4
  %48 = mul i32 %45, %47
  %49 = zext i32 %48 to i64
  store i64 %49, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %50 = load i64, ptr %7, align 8, !tbaa !9
  %51 = udiv i64 40000000, %50
  %52 = trunc i64 %51 to i32
  store i32 %52, ptr %8, align 4, !tbaa !5
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = icmp ule i32 %53, 2
  br i1 %54, label %55, label %57

55:                                               ; preds = %43
  %56 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i32 1, ptr %9, align 4
  br label %349

57:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %58 = load i64, ptr %7, align 8, !tbaa !9
  %59 = load i32, ptr %8, align 4, !tbaa !5
  %60 = zext i32 %59 to i64
  %61 = mul i64 %58, %60
  %62 = call noalias ptr @malloc(i64 noundef %61) #8
  store ptr %62, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %68

65:                                               ; preds = %57
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = add i32 %66, 4
  br label %71

68:                                               ; preds = %57
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = add i32 %69, 4
  br label %71

71:                                               ; preds = %68, %65
  %72 = phi i32 [ %67, %65 ], [ %70, %68 ]
  store i32 %72, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %73 = load i32, ptr %11, align 4, !tbaa !5
  %74 = mul i32 %73, 4
  %75 = zext i32 %74 to i64
  %76 = call noalias ptr @malloc(i64 noundef %75) #8
  store ptr %76, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %77 = load i32, ptr %11, align 4, !tbaa !5
  %78 = load i32, ptr %8, align 4, !tbaa !5
  %79 = mul i32 %77, %78
  %80 = mul i32 %79, 4
  %81 = zext i32 %80 to i64
  %82 = call noalias ptr @malloc(i64 noundef %81) #8
  store ptr %82, ptr %13, align 8, !tbaa !11
  %83 = call i64 @time(ptr noundef null) #7
  %84 = trunc i64 %83 to i32
  call void @srand(i32 noundef %84) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %96, %71
  %86 = load i64, ptr %14, align 8, !tbaa !9
  %87 = load i64, ptr %7, align 8, !tbaa !9
  %88 = icmp ult i64 %86, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %85
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %99

90:                                               ; preds = %85
  %91 = call i32 @rand() #7
  %92 = trunc i32 %91 to i8
  %93 = load ptr, ptr %10, align 8, !tbaa !11
  %94 = load i64, ptr %14, align 8, !tbaa !9
  %95 = getelementptr inbounds i8, ptr %93, i64 %94
  store i8 %92, ptr %95, align 1, !tbaa !13
  br label %96

96:                                               ; preds = %90
  %97 = load i64, ptr %14, align 8, !tbaa !9
  %98 = add i64 %97, 1
  store i64 %98, ptr %14, align 8, !tbaa !9
  br label %85, !llvm.loop !14

99:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %114, %99
  %101 = load i32, ptr %15, align 4, !tbaa !5
  %102 = load i32, ptr %8, align 4, !tbaa !5
  %103 = icmp ult i32 %101, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %117

105:                                              ; preds = %100
  %106 = load ptr, ptr %10, align 8, !tbaa !11
  %107 = load i32, ptr %15, align 4, !tbaa !5
  %108 = zext i32 %107 to i64
  %109 = load i64, ptr %7, align 8, !tbaa !9
  %110 = mul i64 %108, %109
  %111 = getelementptr inbounds i8, ptr %106, i64 %110
  %112 = load ptr, ptr %10, align 8, !tbaa !11
  %113 = load i64, ptr %7, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %111, ptr align 1 %112, i64 %113, i1 false)
  br label %114

114:                                              ; preds = %105
  %115 = load i32, ptr %15, align 4, !tbaa !5
  %116 = add i32 %115, 1
  store i32 %116, ptr %15, align 4, !tbaa !5
  br label %100, !llvm.loop !16

117:                                              ; preds = %104
  %118 = load i32, ptr %6, align 4, !tbaa !5
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %180

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

121:                                              ; preds = %156, %120
  %122 = load i32, ptr %16, align 4, !tbaa !5
  %123 = load i32, ptr %5, align 4, !tbaa !5
  %124 = icmp ult i32 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %121
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %159

126:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %127 = load ptr, ptr %10, align 8, !tbaa !11
  %128 = load i32, ptr %16, align 4, !tbaa !5
  %129 = load i32, ptr %4, align 4, !tbaa !5
  %130 = mul i32 %128, %129
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds i8, ptr %127, i64 %131
  store ptr %132, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %133

133:                                              ; preds = %147, %126
  %134 = load i32, ptr %19, align 4, !tbaa !5
  %135 = load i32, ptr %4, align 4, !tbaa !5
  %136 = icmp ult i32 %134, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %133
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %150

138:                                              ; preds = %133
  %139 = load ptr, ptr %17, align 8, !tbaa !11
  %140 = load i32, ptr %19, align 4, !tbaa !5
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds i8, ptr %139, i64 %141
  %143 = load i8, ptr %142, align 1, !tbaa !13
  %144 = zext i8 %143 to i32
  %145 = load i32, ptr %18, align 4, !tbaa !5
  %146 = add i32 %145, %144
  store i32 %146, ptr %18, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %138
  %148 = load i32, ptr %19, align 4, !tbaa !5
  %149 = add i32 %148, 1
  store i32 %149, ptr %19, align 4, !tbaa !5
  br label %133, !llvm.loop !17

150:                                              ; preds = %137
  %151 = load i32, ptr %18, align 4, !tbaa !5
  %152 = load ptr, ptr %12, align 8, !tbaa !11
  %153 = load i32, ptr %16, align 4, !tbaa !5
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds i32, ptr %152, i64 %154
  store i32 %151, ptr %155, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %156

156:                                              ; preds = %150
  %157 = load i32, ptr %16, align 4, !tbaa !5
  %158 = add i32 %157, 1
  store i32 %158, ptr %16, align 4, !tbaa !5
  br label %121, !llvm.loop !18

159:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %160 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %160, ptr %20, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %176, %159
  %162 = load i32, ptr %20, align 4, !tbaa !5
  %163 = load i32, ptr %11, align 4, !tbaa !5
  %164 = icmp ult i32 %162, %163
  br i1 %164, label %166, label %165

165:                                              ; preds = %161
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %179

166:                                              ; preds = %161
  %167 = call i32 @rand() #7
  %168 = load ptr, ptr %13, align 8, !tbaa !11
  %169 = load i32, ptr %20, align 4, !tbaa !5
  %170 = zext i32 %169 to i64
  %171 = getelementptr inbounds i32, ptr %168, i64 %170
  store i32 %167, ptr %171, align 4, !tbaa !5
  %172 = load ptr, ptr %12, align 8, !tbaa !11
  %173 = load i32, ptr %20, align 4, !tbaa !5
  %174 = zext i32 %173 to i64
  %175 = getelementptr inbounds i32, ptr %172, i64 %174
  store i32 %167, ptr %175, align 4, !tbaa !5
  br label %176

176:                                              ; preds = %166
  %177 = load i32, ptr %20, align 4, !tbaa !5
  %178 = add i32 %177, 1
  store i32 %178, ptr %20, align 4, !tbaa !5
  br label %161, !llvm.loop !19

179:                                              ; preds = %165
  br label %253

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

181:                                              ; preds = %191, %180
  %182 = load i32, ptr %21, align 4, !tbaa !5
  %183 = load i32, ptr %4, align 4, !tbaa !5
  %184 = icmp ult i32 %182, %183
  br i1 %184, label %186, label %185

185:                                              ; preds = %181
  store i32 17, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %194

186:                                              ; preds = %181
  %187 = load ptr, ptr %12, align 8, !tbaa !11
  %188 = load i32, ptr %21, align 4, !tbaa !5
  %189 = zext i32 %188 to i64
  %190 = getelementptr inbounds i32, ptr %187, i64 %189
  store i32 0, ptr %190, align 4, !tbaa !5
  br label %191

191:                                              ; preds = %186
  %192 = load i32, ptr %21, align 4, !tbaa !5
  %193 = add i32 %192, 1
  store i32 %193, ptr %21, align 4, !tbaa !5
  br label %181, !llvm.loop !20

194:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %195 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %195, ptr %22, align 4, !tbaa !5
  br label %196

196:                                              ; preds = %211, %194
  %197 = load i32, ptr %22, align 4, !tbaa !5
  %198 = load i32, ptr %11, align 4, !tbaa !5
  %199 = icmp ult i32 %197, %198
  br i1 %199, label %201, label %200

200:                                              ; preds = %196
  store i32 20, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %214

201:                                              ; preds = %196
  %202 = call i32 @rand() #7
  %203 = load ptr, ptr %13, align 8, !tbaa !11
  %204 = load i32, ptr %22, align 4, !tbaa !5
  %205 = zext i32 %204 to i64
  %206 = getelementptr inbounds i32, ptr %203, i64 %205
  store i32 %202, ptr %206, align 4, !tbaa !5
  %207 = load ptr, ptr %12, align 8, !tbaa !11
  %208 = load i32, ptr %22, align 4, !tbaa !5
  %209 = zext i32 %208 to i64
  %210 = getelementptr inbounds i32, ptr %207, i64 %209
  store i32 %202, ptr %210, align 4, !tbaa !5
  br label %211

211:                                              ; preds = %201
  %212 = load i32, ptr %22, align 4, !tbaa !5
  %213 = add i32 %212, 1
  store i32 %213, ptr %22, align 4, !tbaa !5
  br label %196, !llvm.loop !21

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

215:                                              ; preds = %249, %214
  %216 = load i32, ptr %23, align 4, !tbaa !5
  %217 = load i32, ptr %5, align 4, !tbaa !5
  %218 = icmp ult i32 %216, %217
  br i1 %218, label %220, label %219

219:                                              ; preds = %215
  store i32 23, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %252

220:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %221 = load ptr, ptr %10, align 8, !tbaa !11
  %222 = load i32, ptr %23, align 4, !tbaa !5
  %223 = load i32, ptr %4, align 4, !tbaa !5
  %224 = mul i32 %222, %223
  %225 = zext i32 %224 to i64
  %226 = getelementptr inbounds i8, ptr %221, i64 %225
  store ptr %226, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %227

227:                                              ; preds = %245, %220
  %228 = load i32, ptr %25, align 4, !tbaa !5
  %229 = load i32, ptr %4, align 4, !tbaa !5
  %230 = icmp ult i32 %228, %229
  br i1 %230, label %232, label %231

231:                                              ; preds = %227
  store i32 26, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %248

232:                                              ; preds = %227
  %233 = load ptr, ptr %24, align 8, !tbaa !11
  %234 = load i32, ptr %25, align 4, !tbaa !5
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds i8, ptr %233, i64 %235
  %237 = load i8, ptr %236, align 1, !tbaa !13
  %238 = zext i8 %237 to i32
  %239 = load ptr, ptr %12, align 8, !tbaa !11
  %240 = load i32, ptr %25, align 4, !tbaa !5
  %241 = zext i32 %240 to i64
  %242 = getelementptr inbounds i32, ptr %239, i64 %241
  %243 = load i32, ptr %242, align 4, !tbaa !5
  %244 = add i32 %243, %238
  store i32 %244, ptr %242, align 4, !tbaa !5
  br label %245

245:                                              ; preds = %232
  %246 = load i32, ptr %25, align 4, !tbaa !5
  %247 = add i32 %246, 1
  store i32 %247, ptr %25, align 4, !tbaa !5
  br label %227, !llvm.loop !22

248:                                              ; preds = %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr %23, align 4, !tbaa !5
  %251 = add i32 %250, 1
  store i32 %251, ptr %23, align 4, !tbaa !5
  br label %215, !llvm.loop !23

252:                                              ; preds = %219
  br label %253

253:                                              ; preds = %252, %179
  %254 = load ptr, ptr %10, align 8, !tbaa !11
  %255 = load ptr, ptr %13, align 8, !tbaa !11
  %256 = load i32, ptr %4, align 4, !tbaa !5
  %257 = load i32, ptr %5, align 4, !tbaa !5
  %258 = load i32, ptr %6, align 4, !tbaa !5
  %259 = trunc i32 %258 to i8
  call void @u8u32_sum(ptr noundef %254, ptr noundef %255, i32 noundef %256, i32 noundef %257, i8 noundef zeroext %259)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 1, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %260

260:                                              ; preds = %284, %253
  %261 = load i32, ptr %27, align 4, !tbaa !5
  %262 = load i32, ptr %11, align 4, !tbaa !5
  %263 = icmp ult i32 %261, %262
  br i1 %263, label %265, label %264

264:                                              ; preds = %260
  store i32 29, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %287

265:                                              ; preds = %260
  %266 = load i32, ptr %26, align 4, !tbaa !5
  %267 = icmp ne i32 %266, 0
  br i1 %267, label %268, label %283

268:                                              ; preds = %265
  %269 = load ptr, ptr %12, align 8, !tbaa !11
  %270 = load i32, ptr %27, align 4, !tbaa !5
  %271 = zext i32 %270 to i64
  %272 = getelementptr inbounds i32, ptr %269, i64 %271
  %273 = load i32, ptr %272, align 4, !tbaa !5
  %274 = load ptr, ptr %13, align 8, !tbaa !11
  %275 = load i32, ptr %27, align 4, !tbaa !5
  %276 = zext i32 %275 to i64
  %277 = getelementptr inbounds i32, ptr %274, i64 %276
  %278 = load i32, ptr %277, align 4, !tbaa !5
  %279 = icmp ne i32 %273, %278
  br i1 %279, label %280, label %283

280:                                              ; preds = %268
  store i32 0, ptr %26, align 4, !tbaa !5
  %281 = load i32, ptr %27, align 4, !tbaa !5
  %282 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %281)
  br label %283

283:                                              ; preds = %280, %268, %265
  br label %284

284:                                              ; preds = %283
  %285 = load i32, ptr %27, align 4, !tbaa !5
  %286 = add i32 %285, 1
  store i32 %286, ptr %27, align 4, !tbaa !5
  br label %260, !llvm.loop !24

287:                                              ; preds = %264
  %288 = load i32, ptr %26, align 4, !tbaa !5
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %290, label %345

290:                                              ; preds = %287
  %291 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #7
  %292 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 1, ptr %30, align 4, !tbaa !5
  br label %293

293:                                              ; preds = %315, %290
  %294 = load i32, ptr %30, align 4, !tbaa !5
  %295 = load i32, ptr %8, align 4, !tbaa !5
  %296 = icmp ult i32 %294, %295
  br i1 %296, label %298, label %297

297:                                              ; preds = %293
  store i32 32, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %318

298:                                              ; preds = %293
  %299 = load ptr, ptr %10, align 8, !tbaa !11
  %300 = load i32, ptr %30, align 4, !tbaa !5
  %301 = zext i32 %300 to i64
  %302 = load i64, ptr %7, align 8, !tbaa !9
  %303 = mul i64 %301, %302
  %304 = getelementptr inbounds i8, ptr %299, i64 %303
  %305 = load ptr, ptr %13, align 8, !tbaa !11
  %306 = load i32, ptr %30, align 4, !tbaa !5
  %307 = load i32, ptr %11, align 4, !tbaa !5
  %308 = mul i32 %306, %307
  %309 = zext i32 %308 to i64
  %310 = getelementptr inbounds i32, ptr %305, i64 %309
  %311 = load i32, ptr %4, align 4, !tbaa !5
  %312 = load i32, ptr %5, align 4, !tbaa !5
  %313 = load i32, ptr %6, align 4, !tbaa !5
  %314 = trunc i32 %313 to i8
  call void @u8u32_sum(ptr noundef %304, ptr noundef %310, i32 noundef %311, i32 noundef %312, i8 noundef zeroext %314)
  br label %315

315:                                              ; preds = %298
  %316 = load i32, ptr %30, align 4, !tbaa !5
  %317 = add i32 %316, 1
  store i32 %317, ptr %30, align 4, !tbaa !5
  br label %293, !llvm.loop !25

318:                                              ; preds = %297
  %319 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %29) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %320 = getelementptr inbounds %struct.timespec, ptr %29, i32 0, i32 1
  %321 = load i64, ptr %320, align 8, !tbaa !26
  %322 = getelementptr inbounds %struct.timespec, ptr %28, i32 0, i32 1
  %323 = load i64, ptr %322, align 8, !tbaa !26
  %324 = sub nsw i64 %321, %323
  %325 = sitofp i64 %324 to double
  %326 = getelementptr inbounds %struct.timespec, ptr %29, i32 0, i32 0
  %327 = load i64, ptr %326, align 8, !tbaa !28
  %328 = getelementptr inbounds %struct.timespec, ptr %28, i32 0, i32 0
  %329 = load i64, ptr %328, align 8, !tbaa !28
  %330 = sub nsw i64 %327, %329
  %331 = sitofp i64 %330 to double
  %332 = call double @llvm.fmuladd.f64(double 1.000000e+09, double %331, double %325)
  store double %332, ptr %31, align 8, !tbaa !29
  %333 = load i32, ptr %4, align 4, !tbaa !5
  %334 = uitofp i32 %333 to double
  %335 = load i32, ptr %5, align 4, !tbaa !5
  %336 = uitofp i32 %335 to double
  %337 = fmul double %334, %336
  %338 = load i32, ptr %8, align 4, !tbaa !5
  %339 = sub i32 %338, 1
  %340 = uitofp i32 %339 to double
  %341 = fmul double %337, %340
  %342 = load double, ptr %31, align 8, !tbaa !29
  %343 = fdiv double %341, %342
  %344 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %343)
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  br label %345

345:                                              ; preds = %318, %287
  %346 = load ptr, ptr %10, align 8, !tbaa !11
  call void @free(ptr noundef %346) #7
  %347 = load ptr, ptr %12, align 8, !tbaa !11
  call void @free(ptr noundef %347) #7
  %348 = load ptr, ptr %13, align 8, !tbaa !11
  call void @free(ptr noundef %348) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  store i32 0, ptr %9, align 4
  br label %349

349:                                              ; preds = %345, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  %350 = load i32, ptr %9, align 4
  switch i32 %350, label %352 [
    i32 0, label %351
    i32 1, label %351
  ]

351:                                              ; preds = %349, %349
  ret void

352:                                              ; preds = %349
  unreachable
}

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

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

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) #4

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #4

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

declare void @u8u32_sum(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i8 noundef zeroext) #1

; Function Attrs: nounwind
declare i32 @clock_gettime(i32 noundef, ptr noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

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

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

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

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


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

%struct.timespec = type { i64, i64 }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @test_sum_uint8to32(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.timespec, align 8
  %5 = alloca %struct.timespec, align 8
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %0, i32 noundef %1)
  %.not = icmp eq i32 %2, 0
  %.str.4..str.3 = select i1 %.not, ptr @.str.4, ptr @.str.3
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.4..str.3)
  %10 = add i32 %0, 4
  %11 = add i32 %1, 4
  %12 = mul i32 %11, %10
  %13 = zext i32 %12 to i64
  %14 = udiv i32 40000000, %12
  %15 = icmp ugt i32 %12, 13333333
  br i1 %15, label %16, label %18

16:                                               ; preds = %3
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %140

18:                                               ; preds = %3
  %19 = zext nneg i32 %14 to i64
  %20 = mul nuw nsw i64 %19, %13
  %21 = tail call noalias ptr @malloc(i64 noundef %20) #11
  %22 = select i1 %.not, i32 %10, i32 %11
  %23 = shl i32 %22, 2
  %24 = zext i32 %23 to i64
  %25 = tail call noalias ptr @malloc(i64 noundef %24) #11
  %26 = mul i32 %23, %14
  %27 = zext i32 %26 to i64
  %28 = tail call noalias ptr @malloc(i64 noundef %27) #11
  %29 = tail call i64 @time(ptr noundef null) #12
  %30 = trunc i64 %29 to i32
  tail call void @srand(i32 noundef %30) #12
  %umax = tail call i64 @llvm.umax.i64(i64 %13, i64 1)
  br label %31

31:                                               ; preds = %18, %31
  %.0114137 = phi i64 [ 0, %18 ], [ %35, %31 ]
  %32 = tail call i32 @rand() #12
  %33 = trunc i32 %32 to i8
  %34 = getelementptr inbounds i8, ptr %21, i64 %.0114137
  store i8 %33, ptr %34, align 1, !tbaa !5
  %35 = add nuw nsw i64 %.0114137, 1
  %exitcond.not = icmp eq i64 %35, %umax
  br i1 %exitcond.not, label %.lr.ph.preheader, label %31, !llvm.loop !8

.lr.ph.preheader:                                 ; preds = %31
  %umax245 = tail call i64 @llvm.umax.i64(i64 %19, i64 2)
  %36 = add nsw i64 %umax245, -1
  %37 = add nsw i64 %umax245, -2
  %xtraiter = and i64 %36, 3
  %38 = icmp ult i64 %37, 3
  br i1 %38, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %36, -4
  br label %.lr.ph

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %39 = mul nuw nsw i64 %indvars.iv.epil, %13
  %40 = getelementptr inbounds i8, ptr %21, i64 %39
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %40, ptr align 1 %21, i64 %13, i1 false)
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !10

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.unr-lcssa
  br i1 %.not, label %.preheader132, label %.preheader135

.preheader135:                                    ; preds = %._crit_edge
  %.not167 = icmp eq i32 %1, 0
  br i1 %.not167, label %.preheader133, label %.lr.ph145

.lr.ph145:                                        ; preds = %.preheader135
  %.not168 = icmp eq i32 %0, 0
  %41 = zext i32 %1 to i64
  br i1 %.not168, label %.lr.ph145.split.preheader, label %.lr.ph142.us.preheader

.lr.ph142.us.preheader:                           ; preds = %.lr.ph145
  %wide.trip.count = zext i32 %0 to i64
  %min.iters.check = icmp ult i32 %0, 8
  %n.vec = and i64 %wide.trip.count, 4294967288
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br label %.lr.ph142.us

.lr.ph145.split.preheader:                        ; preds = %.lr.ph145
  %42 = shl nuw nsw i64 %41, 2
  tail call void @llvm.memset.p0.i64(ptr align 4 %25, i8 0, i64 %42, i1 false), !tbaa !12
  br label %.preheader133

.lr.ph142.us:                                     ; preds = %.lr.ph142.us.preheader, %._crit_edge143.us
  %indvars.iv181 = phi i64 [ 0, %.lr.ph142.us.preheader ], [ %indvars.iv.next182, %._crit_edge143.us ]
  %43 = trunc nuw i64 %indvars.iv181 to i32
  %44 = mul i32 %43, %0
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds i8, ptr %21, i64 %45
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.lr.ph142.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.lr.ph142.us ]
  %vec.phi = phi <4 x i32> [ %51, %vector.body ], [ zeroinitializer, %.lr.ph142.us ]
  %vec.phi224 = phi <4 x i32> [ %52, %vector.body ], [ zeroinitializer, %.lr.ph142.us ]
  %47 = getelementptr inbounds i8, ptr %46, i64 %index
  %48 = getelementptr inbounds i8, ptr %47, i64 4
  %wide.load = load <4 x i8>, ptr %47, align 1, !tbaa !5
  %wide.load225 = load <4 x i8>, ptr %48, align 1, !tbaa !5
  %49 = zext <4 x i8> %wide.load to <4 x i32>
  %50 = zext <4 x i8> %wide.load225 to <4 x i32>
  %51 = add <4 x i32> %vec.phi, %49
  %52 = add <4 x i32> %vec.phi224, %50
  %index.next = add nuw i64 %index, 8
  %53 = icmp eq i64 %index.next, %n.vec
  br i1 %53, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %52, %51
  %54 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n, label %._crit_edge143.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph142.us
  %indvars.iv177.ph = phi i64 [ 0, %.lr.ph142.us ], [ %n.vec, %middle.block ]
  %.0120139.us.ph = phi i32 [ 0, %.lr.ph142.us ], [ %54, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv177 = phi i64 [ %indvars.iv.next178, %scalar.ph ], [ %indvars.iv177.ph, %scalar.ph.preheader ]
  %.0120139.us = phi i32 [ %58, %scalar.ph ], [ %.0120139.us.ph, %scalar.ph.preheader ]
  %55 = getelementptr inbounds i8, ptr %46, i64 %indvars.iv177
  %56 = load i8, ptr %55, align 1, !tbaa !5
  %57 = zext i8 %56 to i32
  %58 = add i32 %.0120139.us, %57
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %exitcond180.not = icmp eq i64 %indvars.iv.next178, %wide.trip.count
  br i1 %exitcond180.not, label %._crit_edge143.us, label %scalar.ph, !llvm.loop !17

._crit_edge143.us:                                ; preds = %scalar.ph, %middle.block
  %.lcssa223 = phi i32 [ %54, %middle.block ], [ %58, %scalar.ph ]
  %59 = getelementptr inbounds i32, ptr %25, i64 %indvars.iv181
  store i32 %.lcssa223, ptr %59, align 4, !tbaa !12
  %indvars.iv.next182 = add nuw nsw i64 %indvars.iv181, 1
  %exitcond185.not = icmp eq i64 %indvars.iv.next182, %41
  br i1 %exitcond185.not, label %.preheader133, label %.lr.ph142.us, !llvm.loop !18

.preheader132:                                    ; preds = %._crit_edge
  %.not169 = icmp eq i32 %0, 0
  br i1 %.not169, label %.preheader131, label %.lr.ph149.preheader

.lr.ph149.preheader:                              ; preds = %.preheader132
  %60 = zext i32 %0 to i64
  %61 = shl nuw nsw i64 %60, 2
  tail call void @llvm.memset.p0.i64(ptr align 4 %25, i8 0, i64 %61, i1 false), !tbaa !12
  br label %.preheader131

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %62 = mul nuw nsw i64 %indvars.iv, %13
  %63 = getelementptr inbounds i8, ptr %21, i64 %62
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %63, ptr align 1 %21, i64 %13, i1 false)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %64 = mul nuw nsw i64 %indvars.iv.next, %13
  %65 = getelementptr inbounds i8, ptr %21, i64 %64
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %65, ptr align 1 %21, i64 %13, i1 false)
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %66 = mul nuw nsw i64 %indvars.iv.next.1, %13
  %67 = getelementptr inbounds i8, ptr %21, i64 %66
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %67, ptr align 1 %21, i64 %13, i1 false)
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %68 = mul nuw nsw i64 %indvars.iv.next.2, %13
  %69 = getelementptr inbounds i8, ptr %21, i64 %68
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %69, ptr align 1 %21, i64 %13, i1 false)
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3.not = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3.not, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !19

.preheader133:                                    ; preds = %._crit_edge143.us, %.lr.ph145.split.preheader, %.preheader135
  %70 = icmp ugt i32 %22, %1
  br i1 %70, label %.lr.ph147.preheader, label %.loopexit

.lr.ph147.preheader:                              ; preds = %.preheader133
  %71 = zext i32 %1 to i64
  br label %.lr.ph147

.lr.ph147:                                        ; preds = %.lr.ph147.preheader, %.lr.ph147
  %indvars.iv189 = phi i64 [ %71, %.lr.ph147.preheader ], [ %indvars.iv.next190, %.lr.ph147 ]
  %72 = tail call i32 @rand() #12
  %73 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv189
  store i32 %72, ptr %73, align 4, !tbaa !12
  %74 = getelementptr inbounds i32, ptr %25, i64 %indvars.iv189
  store i32 %72, ptr %74, align 4, !tbaa !12
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next190 to i32
  %exitcond192.not = icmp eq i32 %22, %lftr.wideiv
  br i1 %exitcond192.not, label %.loopexit, label %.lr.ph147, !llvm.loop !20

.preheader131:                                    ; preds = %.lr.ph149.preheader, %.preheader132
  %75 = icmp ult i32 %0, -4
  br i1 %75, label %.lr.ph151.preheader, label %.preheader

.lr.ph151.preheader:                              ; preds = %.preheader131
  %76 = zext i32 %0 to i64
  br label %.lr.ph151

.preheader:                                       ; preds = %.lr.ph151, %.preheader131
  %.not170 = icmp eq i32 %1, 0
  %brmerge = or i1 %.not170, %.not169
  br i1 %brmerge, label %.loopexit, label %.lr.ph154.us.preheader

.lr.ph154.us.preheader:                           ; preds = %.preheader
  %wide.trip.count209 = zext i32 %1 to i64
  %wide.trip.count204 = zext i32 %0 to i64
  %min.iters.check228 = icmp ult i32 %0, 8
  %n.vec231 = and i64 %wide.trip.count204, 4294967288
  %cmp.n240 = icmp eq i64 %n.vec231, %wide.trip.count204
  br label %.lr.ph154.us

.lr.ph154.us:                                     ; preds = %.lr.ph154.us.preheader, %._crit_edge155.us
  %indvars.iv206 = phi i64 [ 0, %.lr.ph154.us.preheader ], [ %indvars.iv.next207, %._crit_edge155.us ]
  %77 = trunc nuw i64 %indvars.iv206 to i32
  %78 = mul i32 %77, %0
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds i8, ptr %21, i64 %79
  br i1 %min.iters.check228, label %scalar.ph227.preheader, label %vector.body233

vector.body233:                                   ; preds = %.lr.ph154.us, %vector.body233
  %index234 = phi i64 [ %index.next239, %vector.body233 ], [ 0, %.lr.ph154.us ]
  %81 = getelementptr inbounds i8, ptr %80, i64 %index234
  %82 = getelementptr inbounds i8, ptr %81, i64 4
  %wide.load235 = load <4 x i8>, ptr %81, align 1, !tbaa !5
  %wide.load236 = load <4 x i8>, ptr %82, align 1, !tbaa !5
  %83 = zext <4 x i8> %wide.load235 to <4 x i32>
  %84 = zext <4 x i8> %wide.load236 to <4 x i32>
  %85 = getelementptr inbounds i32, ptr %25, i64 %index234
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  %wide.load237 = load <4 x i32>, ptr %85, align 4, !tbaa !12
  %wide.load238 = load <4 x i32>, ptr %86, align 4, !tbaa !12
  %87 = add <4 x i32> %wide.load237, %83
  %88 = add <4 x i32> %wide.load238, %84
  store <4 x i32> %87, ptr %85, align 4, !tbaa !12
  store <4 x i32> %88, ptr %86, align 4, !tbaa !12
  %index.next239 = add nuw i64 %index234, 8
  %89 = icmp eq i64 %index.next239, %n.vec231
  br i1 %89, label %middle.block226, label %vector.body233, !llvm.loop !21

middle.block226:                                  ; preds = %vector.body233
  br i1 %cmp.n240, label %._crit_edge155.us, label %scalar.ph227.preheader

scalar.ph227.preheader:                           ; preds = %middle.block226, %.lr.ph154.us
  %indvars.iv201.ph = phi i64 [ 0, %.lr.ph154.us ], [ %n.vec231, %middle.block226 ]
  br label %scalar.ph227

scalar.ph227:                                     ; preds = %scalar.ph227.preheader, %scalar.ph227
  %indvars.iv201 = phi i64 [ %indvars.iv.next202, %scalar.ph227 ], [ %indvars.iv201.ph, %scalar.ph227.preheader ]
  %90 = getelementptr inbounds i8, ptr %80, i64 %indvars.iv201
  %91 = load i8, ptr %90, align 1, !tbaa !5
  %92 = zext i8 %91 to i32
  %93 = getelementptr inbounds i32, ptr %25, i64 %indvars.iv201
  %94 = load i32, ptr %93, align 4, !tbaa !12
  %95 = add i32 %94, %92
  store i32 %95, ptr %93, align 4, !tbaa !12
  %indvars.iv.next202 = add nuw nsw i64 %indvars.iv201, 1
  %exitcond205.not = icmp eq i64 %indvars.iv.next202, %wide.trip.count204
  br i1 %exitcond205.not, label %._crit_edge155.us, label %scalar.ph227, !llvm.loop !22

._crit_edge155.us:                                ; preds = %scalar.ph227, %middle.block226
  %indvars.iv.next207 = add nuw nsw i64 %indvars.iv206, 1
  %exitcond210.not = icmp eq i64 %indvars.iv.next207, %wide.trip.count209
  br i1 %exitcond210.not, label %.loopexit, label %.lr.ph154.us, !llvm.loop !23

.lr.ph151:                                        ; preds = %.lr.ph151.preheader, %.lr.ph151
  %indvars.iv196 = phi i64 [ %76, %.lr.ph151.preheader ], [ %indvars.iv.next197, %.lr.ph151 ]
  %96 = tail call i32 @rand() #12
  %97 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv196
  store i32 %96, ptr %97, align 4, !tbaa !12
  %98 = getelementptr inbounds i32, ptr %25, i64 %indvars.iv196
  store i32 %96, ptr %98, align 4, !tbaa !12
  %indvars.iv.next197 = add nuw nsw i64 %indvars.iv196, 1
  %lftr.wideiv199 = trunc i64 %indvars.iv.next197 to i32
  %exitcond200.not = icmp eq i32 %22, %lftr.wideiv199
  br i1 %exitcond200.not, label %.preheader, label %.lr.ph151, !llvm.loop !24

.loopexit:                                        ; preds = %.lr.ph147, %._crit_edge155.us, %.preheader, %.preheader133
  %99 = trunc i32 %2 to i8
  tail call void @u8u32_sum(ptr noundef %21, ptr noundef %28, i32 noundef %0, i32 noundef %1, i8 noundef zeroext %99) #12
  %.not172 = icmp eq i32 %22, 0
  br i1 %.not172, label %.lr.ph165.preheader, label %.lr.ph161.preheader

.lr.ph161.preheader:                              ; preds = %.loopexit
  %wide.trip.count214 = zext i32 %22 to i64
  br label %.lr.ph161

._crit_edge162:                                   ; preds = %108
  br i1 %109, label %139, label %.lr.ph165.preheader

.lr.ph161:                                        ; preds = %.lr.ph161.preheader, %108
  %indvars.iv211 = phi i64 [ 0, %.lr.ph161.preheader ], [ %indvars.iv.next212, %108 ]
  %.0112158 = phi i32 [ 1, %.lr.ph161.preheader ], [ %.1, %108 ]
  %.not129 = icmp eq i32 %.0112158, 0
  br i1 %.not129, label %108, label %100

100:                                              ; preds = %.lr.ph161
  %101 = getelementptr inbounds i32, ptr %25, i64 %indvars.iv211
  %102 = load i32, ptr %101, align 4, !tbaa !12
  %103 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv211
  %104 = load i32, ptr %103, align 4, !tbaa !12
  %.not130 = icmp eq i32 %102, %104
  br i1 %.not130, label %108, label %105

105:                                              ; preds = %100
  %106 = trunc nuw i64 %indvars.iv211 to i32
  %107 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %106)
  br label %108

108:                                              ; preds = %.lr.ph161, %100, %105
  %109 = phi i1 [ true, %105 ], [ false, %100 ], [ true, %.lr.ph161 ]
  %.1 = phi i32 [ 0, %105 ], [ 1, %100 ], [ 0, %.lr.ph161 ]
  %indvars.iv.next212 = add nuw nsw i64 %indvars.iv211, 1
  %exitcond215.not = icmp eq i64 %indvars.iv.next212, %wide.trip.count214
  br i1 %exitcond215.not, label %._crit_edge162, label %.lr.ph161, !llvm.loop !25

.lr.ph165.preheader:                              ; preds = %.loopexit, %._crit_edge162
  %110 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #12
  %111 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %4) #12
  br label %.lr.ph165

._crit_edge166:                                   ; preds = %.lr.ph165
  %112 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %5) #12
  %113 = getelementptr inbounds i8, ptr %5, i64 8
  %114 = load i64, ptr %113, align 8, !tbaa !26
  %115 = getelementptr inbounds i8, ptr %4, i64 8
  %116 = load i64, ptr %115, align 8, !tbaa !26
  %117 = sub nsw i64 %114, %116
  %118 = sitofp i64 %117 to double
  %119 = load i64, ptr %5, align 8, !tbaa !29
  %120 = load i64, ptr %4, align 8, !tbaa !29
  %121 = sub nsw i64 %119, %120
  %122 = sitofp i64 %121 to double
  %123 = call double @llvm.fmuladd.f64(double %122, double 1.000000e+09, double %118)
  %124 = uitofp i32 %0 to double
  %125 = uitofp i32 %1 to double
  %126 = fmul double %124, %125
  %127 = add nsw i32 %14, -1
  %128 = uitofp nneg i32 %127 to double
  %129 = fmul double %126, %128
  %130 = fdiv double %129, %123
  %131 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, double noundef %130)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #12
  br label %139

.lr.ph165:                                        ; preds = %.lr.ph165.preheader, %.lr.ph165
  %indvars.iv216 = phi i64 [ 1, %.lr.ph165.preheader ], [ %indvars.iv.next217, %.lr.ph165 ]
  %132 = mul nuw nsw i64 %indvars.iv216, %13
  %133 = getelementptr inbounds i8, ptr %21, i64 %132
  %134 = trunc nuw nsw i64 %indvars.iv216 to i32
  %135 = mul i32 %22, %134
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds i32, ptr %28, i64 %136
  call void @u8u32_sum(ptr noundef nonnull %133, ptr noundef %137, i32 noundef %0, i32 noundef %1, i8 noundef zeroext %99) #12
  %indvars.iv.next217 = add nuw nsw i64 %indvars.iv216, 1
  %138 = icmp ult i64 %indvars.iv.next217, %19
  br i1 %138, label %.lr.ph165, label %._crit_edge166, !llvm.loop !30

139:                                              ; preds = %._crit_edge166, %._crit_edge162
  call void @free(ptr noundef %21) #12
  call void @free(ptr noundef %25) #12
  call void @free(ptr noundef %28) #12
  br label %140

140:                                              ; preds = %139, %16
  ret void
}

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

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

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i32 @rand() 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) #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

declare void @u8u32_sum(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #6

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #9

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #9

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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #11 = { nounwind allocsize(0) }
attributes #12 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.unroll.disable"}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !6, i64 0}
!14 = distinct !{!14, !9, !15, !16}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !9, !16, !15}
!18 = distinct !{!18, !9}
!19 = distinct !{!19, !9}
!20 = distinct !{!20, !9}
!21 = distinct !{!21, !9, !15, !16}
!22 = distinct !{!22, !9, !16, !15}
!23 = distinct !{!23, !9}
!24 = distinct !{!24, !9}
!25 = distinct !{!25, !9}
!26 = !{!27, !28, i64 8}
!27 = !{!"timespec", !28, i64 0, !28, i64 8}
!28 = !{!"long", !6, i64 0}
!29 = !{!27, !28, i64 0}
!30 = distinct !{!30, !9}


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