; LLVM IR from DroneBridge/DroneBridge :: video (fec_speed_test)

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

%struct.timespec = type { i64, i64 }

@.str = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [48 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.timespec, align 8
  %10 = alloca %struct.timespec, align 8
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, 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 i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i64, align 8
  %31 = alloca [32 x ptr], align 16
  %32 = alloca [32 x ptr], align 16
  %33 = alloca [32 x [1450 x i8]], align 16
  %34 = alloca [32 x [1450 x i8]], align 16
  %35 = alloca [32 x ptr], align 16
  %36 = alloca [32 x ptr], align 16
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca [32 x i32], align 16
  %44 = alloca [32 x i32], align 16
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i64, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 1024, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 8, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 4, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #9
  call void @fec_init_old()
  call void @fec_init()
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %49 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %49, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #9
  store i8 56, ptr %12, align 1, !tbaa !11
  %50 = load i32, ptr %11, align 4, !tbaa !5
  %51 = zext i32 %50 to i64
  %52 = call ptr @llvm.stacksave.p0()
  store ptr %52, ptr %13, align 8
  %53 = alloca i8, i64 %51, align 16
  store i64 %51, ptr %14, align 8
  %54 = load i32, ptr %11, align 4, !tbaa !5
  %55 = zext i32 %54 to i64
  %56 = alloca i8, i64 %55, align 16
  store i64 %55, ptr %15, align 8
  %57 = load i32, ptr %11, align 4, !tbaa !5
  %58 = zext i32 %57 to i64
  %59 = alloca i8, i64 %58, align 16
  store i64 %58, ptr %16, align 8
  %60 = load i32, ptr %11, align 4, !tbaa !5
  %61 = zext i32 %60 to i64
  %62 = alloca i8, i64 %61, align 16
  store i64 %61, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 1, ptr %18, align 4, !tbaa !5
  %63 = call i64 @time(ptr noundef null) #9
  %64 = trunc i64 %63 to i32
  call void @srand(i32 noundef %64) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %78, %2
  %66 = load i32, ptr %19, align 4, !tbaa !5
  %67 = load i32, ptr %11, align 4, !tbaa !5
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %81

70:                                               ; preds = %65
  %71 = call i32 @rand() #9
  %72 = srem i32 %71, 255
  %73 = add nsw i32 %72, 0
  %74 = trunc i32 %73 to i8
  %75 = load i32, ptr %19, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i8, ptr %53, i64 %76
  store i8 %74, ptr %77, align 1, !tbaa !11
  br label %78

78:                                               ; preds = %70
  %79 = load i32, ptr %19, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %19, align 4, !tbaa !5
  br label %65, !llvm.loop !12

81:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 500, ptr %20, align 4, !tbaa !5
  %82 = load i32, ptr %20, align 4, !tbaa !5
  %83 = load i32, ptr %8, align 4, !tbaa !5
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %82, i32 noundef %83)
  %85 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %104, %81
  %87 = load i32, ptr %21, align 4, !tbaa !5
  %88 = load i32, ptr %20, align 4, !tbaa !5
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  store i32 5, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %107

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

92:                                               ; preds = %100, %91
  %93 = load i32, ptr %23, align 4, !tbaa !5
  %94 = load i32, ptr %8, align 4, !tbaa !5
  %95 = icmp ult i32 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  store i32 8, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %103

97:                                               ; preds = %92
  %98 = load i8, ptr %12, align 1, !tbaa !11
  %99 = load i32, ptr %11, align 4, !tbaa !5
  call void @slow_mul1(ptr noundef %56, ptr noundef %53, i8 noundef zeroext %98, i32 noundef %99)
  br label %100

100:                                              ; preds = %97
  %101 = load i32, ptr %23, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %23, align 4, !tbaa !5
  br label %92, !llvm.loop !14

103:                                              ; preds = %96
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %21, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %21, align 4, !tbaa !5
  br label %86, !llvm.loop !15

107:                                              ; preds = %90
  %108 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %10) #9
  %109 = call float @TimeSpecToUSeconds(ptr noundef %10)
  %110 = call float @TimeSpecToUSeconds(ptr noundef %9)
  %111 = fsub float %109, %110
  %112 = fpext float %111 to double
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %112)
  %114 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %132, %107
  %116 = load i32, ptr %24, align 4, !tbaa !5
  %117 = icmp slt i32 %116, 1000
  br i1 %117, label %119, label %118

118:                                              ; preds = %115
  store i32 11, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %135

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

120:                                              ; preds = %128, %119
  %121 = load i32, ptr %25, align 4, !tbaa !5
  %122 = load i32, ptr %8, align 4, !tbaa !5
  %123 = icmp ult i32 %121, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %120
  store i32 14, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %131

125:                                              ; preds = %120
  %126 = load i8, ptr %12, align 1, !tbaa !11
  %127 = load i32, ptr %11, align 4, !tbaa !5
  call void @gf256_mul_mem(ptr noundef %59, ptr noundef %53, i8 noundef zeroext %126, i32 noundef %127)
  br label %128

128:                                              ; preds = %125
  %129 = load i32, ptr %25, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %25, align 4, !tbaa !5
  br label %120, !llvm.loop !16

131:                                              ; preds = %124
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %24, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %24, align 4, !tbaa !5
  br label %115, !llvm.loop !17

135:                                              ; preds = %118
  %136 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %10) #9
  %137 = call float @TimeSpecToUSeconds(ptr noundef %10)
  %138 = call float @TimeSpecToUSeconds(ptr noundef %9)
  %139 = fsub float %137, %138
  %140 = fpext float %139 to double
  %141 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %140)
  %142 = load i32, ptr %11, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = call i32 @memcmp(ptr noundef %56, ptr noundef %59, i64 noundef %143) #10
  %145 = icmp eq i32 %144, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %135
  br label %148

147:                                              ; preds = %135
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %147, %146
  %149 = load i32, ptr %18, align 4, !tbaa !5
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %153

151:                                              ; preds = %148
  %152 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %155

153:                                              ; preds = %148
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %155

155:                                              ; preds = %153, %151
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %157 = call i64 @time(ptr noundef null) #9
  %158 = trunc i64 %157 to i32
  call void @srand(i32 noundef %158) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %172, %155
  %160 = load i32, ptr %26, align 4, !tbaa !5
  %161 = load i32, ptr %11, align 4, !tbaa !5
  %162 = icmp slt i32 %160, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %159
  store i32 17, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %175

164:                                              ; preds = %159
  %165 = call i32 @rand() #9
  %166 = srem i32 %165, 255
  %167 = add nsw i32 %166, 0
  %168 = trunc i32 %167 to i8
  %169 = load i32, ptr %26, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds i8, ptr %53, i64 %170
  store i8 %168, ptr %171, align 1, !tbaa !11
  br label %172

172:                                              ; preds = %164
  %173 = load i32, ptr %26, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %26, align 4, !tbaa !5
  br label %159, !llvm.loop !18

175:                                              ; preds = %163
  %176 = load i32, ptr %11, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  call void @llvm.memset.p0.i64(ptr align 16 %56, i8 15, i64 %177, i1 false)
  %178 = load i32, ptr %11, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  call void @llvm.memset.p0.i64(ptr align 16 %62, i8 15, i64 %179, i1 false)
  %180 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %191, %175
  %182 = load i32, ptr %27, align 4, !tbaa !5
  %183 = load i32, ptr %8, align 4, !tbaa !5
  %184 = load i32, ptr %7, align 4, !tbaa !5
  %185 = mul i32 %183, %184
  %186 = icmp ult i32 %182, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %181
  store i32 20, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %194

188:                                              ; preds = %181
  %189 = load i8, ptr %12, align 1, !tbaa !11
  %190 = load i32, ptr %11, align 4, !tbaa !5
  call void @slow_addmul1(ptr noundef %56, ptr noundef %53, i8 noundef zeroext %189, i32 noundef %190)
  br label %191

191:                                              ; preds = %188
  %192 = load i32, ptr %27, align 4, !tbaa !5
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %27, align 4, !tbaa !5
  br label %181, !llvm.loop !19

194:                                              ; preds = %187
  %195 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %10) #9
  %196 = call float @TimeSpecToUSeconds(ptr noundef %10)
  %197 = call float @TimeSpecToUSeconds(ptr noundef %9)
  %198 = fsub float %196, %197
  %199 = fpext float %198 to double
  %200 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %199)
  %201 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %202

202:                                              ; preds = %212, %194
  %203 = load i32, ptr %28, align 4, !tbaa !5
  %204 = load i32, ptr %8, align 4, !tbaa !5
  %205 = load i32, ptr %7, align 4, !tbaa !5
  %206 = mul i32 %204, %205
  %207 = icmp ult i32 %203, %206
  br i1 %207, label %209, label %208

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

209:                                              ; preds = %202
  %210 = load i8, ptr %12, align 1, !tbaa !11
  %211 = load i32, ptr %11, align 4, !tbaa !5
  call void @gf256_muladd_mem(ptr noundef %62, i8 noundef zeroext %210, ptr noundef %53, i32 noundef %211)
  br label %212

212:                                              ; preds = %209
  %213 = load i32, ptr %28, align 4, !tbaa !5
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %28, align 4, !tbaa !5
  br label %202, !llvm.loop !20

215:                                              ; preds = %208
  %216 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %10) #9
  %217 = call float @TimeSpecToUSeconds(ptr noundef %10)
  %218 = call float @TimeSpecToUSeconds(ptr noundef %9)
  %219 = fsub float %217, %218
  %220 = fpext float %219 to double
  %221 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %220)
  %222 = load i32, ptr %11, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = call i32 @memcmp(ptr noundef %56, ptr noundef %62, i64 noundef %223) #10
  %225 = icmp eq i32 %224, 0
  br i1 %225, label %226, label %228

226:                                              ; preds = %215
  %227 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  br label %230

228:                                              ; preds = %215
  %229 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %230

230:                                              ; preds = %228, %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  %231 = load i32, ptr %6, align 4, !tbaa !5
  %232 = mul nsw i32 %231, 12
  store i32 %232, ptr %29, align 4, !tbaa !5
  %233 = load i32, ptr %29, align 4, !tbaa !5
  %234 = zext i32 %233 to i64
  %235 = alloca i8, i64 %234, align 16
  store i64 %234, ptr %30, align 8
  call void @llvm.lifetime.start.p0(i64 256, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 256, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 46400, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 46400, ptr %34) #9
  call void @llvm.lifetime.start.p0(i64 256, ptr %35) #9
  call void @llvm.lifetime.start.p0(i64 256, ptr %36) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  store i32 0, ptr %37, align 4, !tbaa !5
  br label %236

236:                                              ; preds = %256, %230
  %237 = load i32, ptr %37, align 4, !tbaa !5
  %238 = load i32, ptr %8, align 4, !tbaa !5
  %239 = icmp ult i32 %237, %238
  br i1 %239, label %241, label %240

240:                                              ; preds = %236
  store i32 26, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  br label %259

241:                                              ; preds = %236
  %242 = load i32, ptr %37, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [32 x [1450 x i8]], ptr %33, i64 0, i64 %243
  %245 = getelementptr inbounds [1450 x i8], ptr %244, i64 0, i64 0
  %246 = load i32, ptr %37, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [32 x ptr], ptr %35, i64 0, i64 %247
  store ptr %245, ptr %248, align 8, !tbaa !9
  %249 = load i32, ptr %37, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [32 x [1450 x i8]], ptr %34, i64 0, i64 %250
  %252 = getelementptr inbounds [1450 x i8], ptr %251, i64 0, i64 0
  %253 = load i32, ptr %37, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [32 x ptr], ptr %36, i64 0, i64 %254
  store ptr %252, ptr %255, align 8, !tbaa !9
  br label %256

256:                                              ; preds = %241
  %257 = load i32, ptr %37, align 4, !tbaa !5
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %37, align 4, !tbaa !5
  br label %236, !llvm.loop !21

259:                                              ; preds = %240
  %260 = call i64 @time(ptr noundef null) #9
  %261 = trunc i64 %260 to i32
  call void @srand(i32 noundef %261) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  store i32 0, ptr %38, align 4, !tbaa !5
  br label %262

262:                                              ; preds = %275, %259
  %263 = load i32, ptr %38, align 4, !tbaa !5
  %264 = load i32, ptr %29, align 4, !tbaa !5
  %265 = icmp slt i32 %263, %264
  br i1 %265, label %267, label %266

266:                                              ; preds = %262
  store i32 29, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %278

267:                                              ; preds = %262
  %268 = call i32 @rand() #9
  %269 = srem i32 %268, 255
  %270 = add nsw i32 %269, 0
  %271 = trunc i32 %270 to i8
  %272 = load i32, ptr %38, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds i8, ptr %235, i64 %273
  store i8 %271, ptr %274, align 1, !tbaa !11
  br label %275

275:                                              ; preds = %267
  %276 = load i32, ptr %38, align 4, !tbaa !5
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %38, align 4, !tbaa !5
  br label %262, !llvm.loop !22

278:                                              ; preds = %266
  %279 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %280 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  store i32 0, ptr %39, align 4, !tbaa !5
  br label %281

281:                                              ; preds = %295, %278
  %282 = load i32, ptr %39, align 4, !tbaa !5
  %283 = load i32, ptr %7, align 4, !tbaa !5
  %284 = icmp slt i32 %282, %283
  br i1 %284, label %286, label %285

285:                                              ; preds = %281
  store i32 32, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %298

286:                                              ; preds = %281
  %287 = load i32, ptr %39, align 4, !tbaa !5
  %288 = load i32, ptr %6, align 4, !tbaa !5
  %289 = mul nsw i32 %287, %288
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds i8, ptr %235, i64 %290
  %292 = load i32, ptr %39, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [32 x ptr], ptr %32, i64 0, i64 %293
  store ptr %291, ptr %294, align 8, !tbaa !9
  br label %295

295:                                              ; preds = %286
  %296 = load i32, ptr %39, align 4, !tbaa !5
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %39, align 4, !tbaa !5
  br label %281, !llvm.loop !23

298:                                              ; preds = %285
  %299 = load i32, ptr %6, align 4, !tbaa !5
  %300 = getelementptr inbounds [32 x ptr], ptr %32, i64 0, i64 0
  %301 = load i32, ptr %7, align 4, !tbaa !5
  %302 = getelementptr inbounds [32 x ptr], ptr %36, i64 0, i64 0
  %303 = load i32, ptr %8, align 4, !tbaa !5
  call void @fec_encode_old(i32 noundef %299, ptr noundef %300, i32 noundef %301, ptr noundef %302, i32 noundef %303)
  %304 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %10) #9
  %305 = call float @TimeSpecToUSeconds(ptr noundef %10)
  %306 = call float @TimeSpecToUSeconds(ptr noundef %9)
  %307 = fsub float %305, %306
  %308 = fpext float %307 to double
  %309 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %308)
  %310 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  store i32 0, ptr %40, align 4, !tbaa !5
  br label %311

311:                                              ; preds = %325, %298
  %312 = load i32, ptr %40, align 4, !tbaa !5
  %313 = load i32, ptr %7, align 4, !tbaa !5
  %314 = icmp slt i32 %312, %313
  br i1 %314, label %316, label %315

315:                                              ; preds = %311
  store i32 35, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  br label %328

316:                                              ; preds = %311
  %317 = load i32, ptr %40, align 4, !tbaa !5
  %318 = load i32, ptr %6, align 4, !tbaa !5
  %319 = mul nsw i32 %317, %318
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds i8, ptr %235, i64 %320
  %322 = load i32, ptr %40, align 4, !tbaa !5
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [32 x ptr], ptr %31, i64 0, i64 %323
  store ptr %321, ptr %324, align 8, !tbaa !9
  br label %325

325:                                              ; preds = %316
  %326 = load i32, ptr %40, align 4, !tbaa !5
  %327 = add nsw i32 %326, 1
  store i32 %327, ptr %40, align 4, !tbaa !5
  br label %311, !llvm.loop !24

328:                                              ; preds = %315
  %329 = load i32, ptr %6, align 4, !tbaa !5
  %330 = getelementptr inbounds [32 x ptr], ptr %31, i64 0, i64 0
  %331 = load i32, ptr %7, align 4, !tbaa !5
  %332 = getelementptr inbounds [32 x ptr], ptr %35, i64 0, i64 0
  %333 = load i32, ptr %8, align 4, !tbaa !5
  call void @fec_encode(i32 noundef %329, ptr noundef %330, i32 noundef %331, ptr noundef %332, i32 noundef %333)
  %334 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %10) #9
  %335 = call float @TimeSpecToUSeconds(ptr noundef %10)
  %336 = call float @TimeSpecToUSeconds(ptr noundef %9)
  %337 = fsub float %335, %336
  %338 = fpext float %337 to double
  %339 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %338)
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  store i32 0, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #9
  store i32 0, ptr %42, align 4, !tbaa !5
  br label %340

340:                                              ; preds = %360, %328
  %341 = load i32, ptr %42, align 4, !tbaa !5
  %342 = load i32, ptr %8, align 4, !tbaa !5
  %343 = icmp ult i32 %341, %342
  br i1 %343, label %345, label %344

344:                                              ; preds = %340
  store i32 38, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  br label %363

345:                                              ; preds = %340
  %346 = load i32, ptr %42, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [32 x [1450 x i8]], ptr %34, i64 0, i64 %347
  %349 = getelementptr inbounds [1450 x i8], ptr %348, i64 0, i64 0
  %350 = load i32, ptr %42, align 4, !tbaa !5
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds [32 x [1450 x i8]], ptr %33, i64 0, i64 %351
  %353 = getelementptr inbounds [1450 x i8], ptr %352, i64 0, i64 0
  %354 = load i32, ptr %6, align 4, !tbaa !5
  %355 = sext i32 %354 to i64
  %356 = call i32 @memcmp(ptr noundef %349, ptr noundef %353, i64 noundef %355) #10
  %357 = icmp ne i32 %356, 0
  br i1 %357, label %358, label %359

358:                                              ; preds = %345
  store i32 1, ptr %41, align 4, !tbaa !5
  br label %359

359:                                              ; preds = %358, %345
  br label %360

360:                                              ; preds = %359
  %361 = load i32, ptr %42, align 4, !tbaa !5
  %362 = add nsw i32 %361, 1
  store i32 %362, ptr %42, align 4, !tbaa !5
  br label %340, !llvm.loop !25

363:                                              ; preds = %344
  %364 = load i32, ptr %41, align 4, !tbaa !5
  %365 = icmp eq i32 %364, 0
  br i1 %365, label %366, label %368

366:                                              ; preds = %363
  %367 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  br label %370

368:                                              ; preds = %363
  %369 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %370

370:                                              ; preds = %368, %366
  call void @llvm.lifetime.start.p0(i64 128, ptr %43) #9
  call void @llvm.lifetime.start.p0(i64 128, ptr %44) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #9
  store i32 1, ptr %45, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #9
  store i32 1, ptr %46, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #9
  store i32 0, ptr %47, align 4, !tbaa !5
  %371 = load i32, ptr %46, align 4, !tbaa !5
  %372 = getelementptr inbounds [32 x i32], ptr %44, i64 0, i64 0
  store i32 %371, ptr %372, align 16, !tbaa !5
  %373 = load i32, ptr %47, align 4, !tbaa !5
  %374 = getelementptr inbounds [32 x i32], ptr %43, i64 0, i64 0
  store i32 %373, ptr %374, align 16, !tbaa !5
  %375 = load i32, ptr %6, align 4, !tbaa !5
  %376 = zext i32 %375 to i64
  %377 = alloca i8, i64 %376, align 16
  store i64 %376, ptr %48, align 8
  %378 = load i32, ptr %46, align 4, !tbaa !5
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds [32 x ptr], ptr %32, i64 0, i64 %379
  %381 = load ptr, ptr %380, align 8, !tbaa !9
  %382 = load i32, ptr %6, align 4, !tbaa !5
  %383 = sext i32 %382 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %377, ptr align 1 %381, i64 %383, i1 false)
  %384 = load i32, ptr %46, align 4, !tbaa !5
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds [32 x ptr], ptr %31, i64 0, i64 %385
  %387 = load ptr, ptr %386, align 8, !tbaa !9
  %388 = load i32, ptr %6, align 4, !tbaa !5
  %389 = sext i32 %388 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %387, i8 0, i64 %389, i1 false)
  %390 = load i32, ptr %46, align 4, !tbaa !5
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [32 x ptr], ptr %32, i64 0, i64 %391
  %393 = load ptr, ptr %392, align 8, !tbaa !9
  %394 = load i32, ptr %6, align 4, !tbaa !5
  %395 = sext i32 %394 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %393, i8 0, i64 %395, i1 false)
  %396 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %397 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %9) #9
  %398 = load i32, ptr %6, align 4, !tbaa !5
  %399 = getelementptr inbounds [32 x ptr], ptr %32, i64 0, i64 0
  %400 = load i32, ptr %7, align 4, !tbaa !5
  %401 = getelementptr inbounds [32 x ptr], ptr %36, i64 0, i64 0
  %402 = getelementptr inbounds [32 x i32], ptr %43, i64 0, i64 0
  %403 = getelementptr inbounds [32 x i32], ptr %44, i64 0, i64 0
  %404 = load i32, ptr %45, align 4, !tbaa !5
  %405 = trunc i32 %404 to i16
  call void @fec_decode_old(i32 noundef %398, ptr noundef %399, i32 noundef %400, ptr noundef %401, ptr noundef %402, ptr noundef %403, i16 noundef zeroext %405)
  %406 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %10) #9
  %407 = call float @TimeSpecToUSeconds(ptr noundef %10)
  %408 = call float @TimeSpecToUSeconds(ptr noundef %9)
  %409 = fsub float %407, %408
  %410 = fpext float %409 to double
  %411 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef %410)
  %412 = load i32, ptr %46, align 4, !tbaa !5
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds [32 x ptr], ptr %32, i64 0, i64 %413
  %415 = load ptr, ptr %414, align 8, !tbaa !9
  %416 = load i32, ptr %6, align 4, !tbaa !5
  %417 = sext i32 %416 to i64
  %418 = call i32 @memcmp(ptr noundef %415, ptr noundef %377, i64 noundef %417) #10
  %419 = icmp eq i32 %418, 0
  br i1 %419, label %420, label %422

420:                                              ; preds = %370
  %421 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  br label %424

422:                                              ; preds = %370
  %423 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  br label %424

424:                                              ; preds = %422, %420
  %425 = load i32, ptr %46, align 4, !tbaa !5
  %426 = sext i32 %425 to i64
  %427 = getelementptr inbounds [32 x ptr], ptr %31, i64 0, i64 %426
  %428 = load ptr, ptr %427, align 8, !tbaa !9
  %429 = load i32, ptr %6, align 4, !tbaa !5
  %430 = sext i32 %429 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %377, ptr align 1 %428, i64 %430, i1 false)
  %431 = load i32, ptr %46, align 4, !tbaa !5
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds [32 x ptr], ptr %31, i64 0, i64 %432
  %434 = load ptr, ptr %433, align 8, !tbaa !9
  %435 = load i32, ptr %6, align 4, !tbaa !5
  %436 = sext i32 %435 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %434, i8 0, i64 %436, i1 false)
  %437 = load i32, ptr %46, align 4, !tbaa !5
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds [32 x ptr], ptr %32, i64 0, i64 %438
  %440 = load ptr, ptr %439, align 8, !tbaa !9
  %441 = load i32, ptr %6, align 4, !tbaa !5
  %442 = sext i32 %441 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %440, i8 0, i64 %442, i1 false)
  %443 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %9) #9
  %444 = load i32, ptr %6, align 4, !tbaa !5
  %445 = getelementptr inbounds [32 x ptr], ptr %31, i64 0, i64 0
  %446 = load i32, ptr %7, align 4, !tbaa !5
  %447 = getelementptr inbounds [32 x ptr], ptr %35, i64 0, i64 0
  %448 = getelementptr inbounds [32 x i32], ptr %43, i64 0, i64 0
  %449 = getelementptr inbounds [32 x i32], ptr %44, i64 0, i64 0
  %450 = load i32, ptr %45, align 4, !tbaa !5
  %451 = trunc i32 %450 to i16
  call void @fec_decode(i32 noundef %444, ptr noundef %445, i32 noundef %446, ptr noundef %447, ptr noundef %448, ptr noundef %449, i16 noundef zeroext %451)
  %452 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %10) #9
  %453 = call float @TimeSpecToUSeconds(ptr noundef %10)
  %454 = call float @TimeSpecToUSeconds(ptr noundef %9)
  %455 = fsub float %453, %454
  %456 = fpext float %455 to double
  %457 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, double noundef %456)
  %458 = load i32, ptr %46, align 4, !tbaa !5
  %459 = sext i32 %458 to i64
  %460 = getelementptr inbounds [32 x ptr], ptr %31, i64 0, i64 %459
  %461 = load ptr, ptr %460, align 8, !tbaa !9
  %462 = load i32, ptr %6, align 4, !tbaa !5
  %463 = sext i32 %462 to i64
  %464 = call i32 @memcmp(ptr noundef %461, ptr noundef %377, i64 noundef %463) #10
  %465 = icmp eq i32 %464, 0
  br i1 %465, label %466, label %468

466:                                              ; preds = %424
  %467 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  br label %470

468:                                              ; preds = %424
  %469 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  br label %470

470:                                              ; preds = %468, %466
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 46400, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 46400, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  %471 = load ptr, ptr %13, align 8
  call void @llvm.stackrestore.p0(ptr %471)
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  %472 = load i32, ptr %3, align 4
  ret i32 %472
}

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

declare void @fec_init_old() #2

declare void @fec_init() #2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #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) #1

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

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

declare void @slow_mul1(ptr noundef, ptr noundef, i8 noundef zeroext, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @TimeSpecToUSeconds(ptr noundef) #5

declare void @gf256_mul_mem(ptr noundef, ptr noundef, i8 noundef zeroext, i32 noundef) #2

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

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

declare void @slow_addmul1(ptr noundef, ptr noundef, i8 noundef zeroext, i32 noundef) #2

declare void @gf256_muladd_mem(ptr noundef, i8 noundef zeroext, ptr noundef, i32 noundef) #2

declare void @fec_encode_old(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2

declare void @fec_encode(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #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) #8

declare void @fec_decode_old(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i16 noundef zeroext) #2

declare void @fec_decode(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i16 noundef zeroext) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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

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

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


; 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 [38 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [48 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca %struct.timespec, align 8
  %4 = alloca %struct.timespec, align 8
  %5 = alloca [32 x ptr], align 16
  %6 = alloca [32 x ptr], align 16
  %7 = alloca [32 x [1450 x i8]], align 16
  %8 = alloca [32 x [1450 x i8]], align 16
  %9 = alloca [32 x ptr], align 16
  %10 = alloca [32 x ptr], align 16
  %11 = alloca [32 x i32], align 16
  %12 = alloca [32 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #10
  tail call void @fec_init_old() #10
  tail call void @fec_init() #10
  %13 = tail call ptr @llvm.stacksave.p0()
  %14 = alloca [1024 x i8], align 16
  %15 = alloca [1024 x i8], align 16
  %16 = alloca [1024 x i8], align 16
  %17 = alloca [1024 x i8], align 16
  %18 = tail call i64 @time(ptr noundef null) #10
  %19 = trunc i64 %18 to i32
  tail call void @srand(i32 noundef %19) #10
  br label %23

20:                                               ; preds = %23
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 500, i32 noundef 4)
  %22 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %3) #10
  br label %.preheader130

23:                                               ; preds = %2, %23
  %indvars.iv = phi i64 [ 0, %2 ], [ %indvars.iv.next, %23 ]
  %24 = tail call i32 @rand() #10
  %25 = srem i32 %24, 255
  %26 = trunc i32 %25 to i8
  %27 = getelementptr inbounds i8, ptr %14, i64 %indvars.iv
  store i8 %26, ptr %27, align 1, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1024
  br i1 %exitcond.not, label %20, label %23, !llvm.loop !8

.preheader130:                                    ; preds = %20, %.preheader130
  %.0112133 = phi i32 [ 0, %20 ], [ %28, %.preheader130 ]
  call void @slow_mul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_mul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_mul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_mul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  %28 = add nuw nsw i32 %.0112133, 1
  %exitcond147.not = icmp eq i32 %28, 500
  br i1 %exitcond147.not, label %29, label %.preheader130, !llvm.loop !10

29:                                               ; preds = %.preheader130
  %30 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %4) #10
  %31 = call float @TimeSpecToUSeconds(ptr noundef nonnull %4)
  %32 = call float @TimeSpecToUSeconds(ptr noundef nonnull %3)
  %33 = fsub float %31, %32
  %34 = fpext float %33 to double
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %34)
  %36 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %3) #10
  br label %.preheader

.preheader:                                       ; preds = %29, %.preheader
  %.0124135 = phi i32 [ 0, %29 ], [ %37, %.preheader ]
  call void @gf256_mul_mem(ptr noundef nonnull %16, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @gf256_mul_mem(ptr noundef nonnull %16, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @gf256_mul_mem(ptr noundef nonnull %16, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @gf256_mul_mem(ptr noundef nonnull %16, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  %37 = add nuw nsw i32 %.0124135, 1
  %exitcond149.not = icmp eq i32 %37, 1000
  br i1 %exitcond149.not, label %38, label %.preheader, !llvm.loop !11

38:                                               ; preds = %.preheader
  %39 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %4) #10
  %40 = call float @TimeSpecToUSeconds(ptr noundef nonnull %4)
  %41 = call float @TimeSpecToUSeconds(ptr noundef nonnull %3)
  %42 = fsub float %40, %41
  %43 = fpext float %42 to double
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %43)
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(1024) %15, ptr noundef nonnull dereferenceable(1024) %16, i64 1024)
  %.not = icmp eq i32 %bcmp, 0
  %.str.3..str.4 = select i1 %.not, ptr @.str.3, ptr @.str.4
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3..str.4)
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %47 = call i64 @time(ptr noundef null) #10
  %48 = trunc i64 %47 to i32
  call void @srand(i32 noundef %48) #10
  br label %81

49:                                               ; preds = %81
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %15, i8 15, i64 1024, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %17, i8 15, i64 1024, i1 false)
  %50 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %3) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  call void @slow_addmul1(ptr noundef nonnull %15, ptr noundef nonnull %14, i8 noundef zeroext 56, i32 noundef 1024) #10
  %51 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %4) #10
  %52 = call float @TimeSpecToUSeconds(ptr noundef nonnull %4)
  %53 = call float @TimeSpecToUSeconds(ptr noundef nonnull %3)
  %54 = fsub float %52, %53
  %55 = fpext float %54 to double
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %55)
  %57 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %3) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  call void @gf256_muladd_mem(ptr noundef nonnull %17, i8 noundef zeroext 56, ptr noundef nonnull %14, i32 noundef 1024) #10
  %58 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %4) #10
  %59 = call float @TimeSpecToUSeconds(ptr noundef nonnull %4)
  %60 = call float @TimeSpecToUSeconds(ptr noundef nonnull %3)
  %61 = fsub float %59, %60
  %62 = fpext float %61 to double
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, double noundef %62)
  %bcmp125 = call i32 @bcmp(ptr noundef nonnull dereferenceable(1024) %15, ptr noundef nonnull dereferenceable(1024) %17, i64 1024)
  %64 = icmp eq i32 %bcmp125, 0
  %.str.8..str.9 = select i1 %64, ptr @.str.8, ptr @.str.9
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.8..str.9)
  %66 = alloca [12288 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 46400, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 46400, ptr nonnull %8) #10
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %10) #10
  store ptr %7, ptr %9, align 16, !tbaa !12
  store ptr %8, ptr %10, align 16, !tbaa !12
  %67 = getelementptr inbounds i8, ptr %7, i64 1450
  %68 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %67, ptr %68, align 8, !tbaa !12
  %69 = getelementptr inbounds i8, ptr %8, i64 1450
  %70 = getelementptr inbounds i8, ptr %10, i64 8
  store ptr %69, ptr %70, align 8, !tbaa !12
  %71 = getelementptr inbounds i8, ptr %7, i64 2900
  %72 = getelementptr inbounds i8, ptr %9, i64 16
  store ptr %71, ptr %72, align 16, !tbaa !12
  %73 = getelementptr inbounds i8, ptr %8, i64 2900
  %74 = getelementptr inbounds i8, ptr %10, i64 16
  store ptr %73, ptr %74, align 16, !tbaa !12
  %75 = getelementptr inbounds i8, ptr %7, i64 4350
  %76 = getelementptr inbounds i8, ptr %9, i64 24
  store ptr %75, ptr %76, align 8, !tbaa !12
  %77 = getelementptr inbounds i8, ptr %8, i64 4350
  %78 = getelementptr inbounds i8, ptr %10, i64 24
  store ptr %77, ptr %78, align 8, !tbaa !12
  %79 = call i64 @time(ptr noundef null) #10
  %80 = trunc i64 %79 to i32
  call void @srand(i32 noundef %80) #10
  br label %150

81:                                               ; preds = %38, %81
  %indvars.iv150 = phi i64 [ 0, %38 ], [ %indvars.iv.next151, %81 ]
  %82 = call i32 @rand() #10
  %83 = srem i32 %82, 255
  %84 = trunc i32 %83 to i8
  %85 = getelementptr inbounds i8, ptr %14, i64 %indvars.iv150
  store i8 %84, ptr %85, align 1, !tbaa !5
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %exitcond153.not = icmp eq i64 %indvars.iv.next151, 1024
  br i1 %exitcond153.not, label %49, label %81, !llvm.loop !14

86:                                               ; preds = %150
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %88 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %3) #10
  store ptr %66, ptr %6, align 16, !tbaa !12
  %89 = getelementptr inbounds i8, ptr %66, i64 1024
  %90 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %89, ptr %90, align 8, !tbaa !12
  %91 = getelementptr inbounds i8, ptr %66, i64 2048
  %92 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %91, ptr %92, align 16, !tbaa !12
  %93 = getelementptr inbounds i8, ptr %66, i64 3072
  %94 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr %93, ptr %94, align 8, !tbaa !12
  %95 = getelementptr inbounds i8, ptr %66, i64 4096
  %96 = getelementptr inbounds i8, ptr %6, i64 32
  store ptr %95, ptr %96, align 16, !tbaa !12
  %97 = getelementptr inbounds i8, ptr %66, i64 5120
  %98 = getelementptr inbounds i8, ptr %6, i64 40
  store ptr %97, ptr %98, align 8, !tbaa !12
  %99 = getelementptr inbounds i8, ptr %66, i64 6144
  %100 = getelementptr inbounds i8, ptr %6, i64 48
  store ptr %99, ptr %100, align 16, !tbaa !12
  %101 = getelementptr inbounds i8, ptr %66, i64 7168
  %102 = getelementptr inbounds i8, ptr %6, i64 56
  store ptr %101, ptr %102, align 8, !tbaa !12
  call void @fec_encode_old(i32 noundef 1024, ptr noundef nonnull %6, i32 noundef 8, ptr noundef nonnull %10, i32 noundef 4) #10
  %103 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %4) #10
  %104 = call float @TimeSpecToUSeconds(ptr noundef nonnull %4)
  %105 = call float @TimeSpecToUSeconds(ptr noundef nonnull %3)
  %106 = fsub float %104, %105
  %107 = fpext float %106 to double
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %107)
  %109 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %3) #10
  store ptr %66, ptr %5, align 16, !tbaa !12
  %110 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %89, ptr %110, align 8, !tbaa !12
  %111 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr %91, ptr %111, align 16, !tbaa !12
  %112 = getelementptr inbounds i8, ptr %5, i64 24
  store ptr %93, ptr %112, align 8, !tbaa !12
  %113 = getelementptr inbounds i8, ptr %5, i64 32
  store ptr %95, ptr %113, align 16, !tbaa !12
  %114 = getelementptr inbounds i8, ptr %5, i64 40
  store ptr %97, ptr %114, align 8, !tbaa !12
  %115 = getelementptr inbounds i8, ptr %5, i64 48
  store ptr %99, ptr %115, align 16, !tbaa !12
  %116 = getelementptr inbounds i8, ptr %5, i64 56
  store ptr %101, ptr %116, align 8, !tbaa !12
  call void @fec_encode(i32 noundef 1024, ptr noundef nonnull %5, i32 noundef 8, ptr noundef nonnull %9, i32 noundef 4) #10
  %117 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %4) #10
  %118 = call float @TimeSpecToUSeconds(ptr noundef nonnull %4)
  %119 = call float @TimeSpecToUSeconds(ptr noundef nonnull %3)
  %120 = fsub float %118, %119
  %121 = fpext float %120 to double
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, double noundef %121)
  %bcmp128 = call i32 @bcmp(ptr noundef nonnull dereferenceable(1024) %8, ptr noundef nonnull dereferenceable(1024) %7, i64 1024)
  %.not129 = icmp eq i32 %bcmp128, 0
  %bcmp128.1 = call i32 @bcmp(ptr noundef nonnull dereferenceable(1024) %69, ptr noundef nonnull dereferenceable(1024) %67, i64 1024)
  %.not129.1 = icmp eq i32 %bcmp128.1, 0
  %bcmp128.2 = call i32 @bcmp(ptr noundef nonnull dereferenceable(1024) %73, ptr noundef nonnull dereferenceable(1024) %71, i64 1024)
  %.not129.2 = icmp eq i32 %bcmp128.2, 0
  %bcmp128.3 = call i32 @bcmp(ptr noundef nonnull dereferenceable(1024) %77, ptr noundef nonnull dereferenceable(1024) %75, i64 1024)
  %.not129.3 = icmp eq i32 %bcmp128.3, 0
  %.not180 = select i1 %.not129.3, i1 %.not129.2, i1 false
  %.not179 = select i1 %.not180, i1 %.not129.1, i1 false
  %narrow.not = select i1 %.not179, i1 %.not129, i1 false
  %.str.13..str.14 = select i1 %narrow.not, ptr @.str.13, ptr @.str.14
  %123 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.13..str.14)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %11) #10
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %12) #10
  store i32 1, ptr %12, align 16, !tbaa !15
  store i32 0, ptr %11, align 16, !tbaa !15
  %124 = alloca [1024 x i8], align 16
  %125 = load ptr, ptr %90, align 8, !tbaa !12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %124, ptr noundef nonnull align 1 dereferenceable(1024) %125, i64 1024, i1 false)
  %126 = load ptr, ptr %110, align 8, !tbaa !12
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1024) %126, i8 0, i64 1024, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1024) %125, i8 0, i64 1024, i1 false)
  %127 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %128 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %3) #10
  call void @fec_decode_old(i32 noundef 1024, ptr noundef nonnull %6, i32 noundef 8, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, i16 noundef zeroext 1) #10
  %129 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %4) #10
  %130 = call float @TimeSpecToUSeconds(ptr noundef nonnull %4)
  %131 = call float @TimeSpecToUSeconds(ptr noundef nonnull %3)
  %132 = fsub float %130, %131
  %133 = fpext float %132 to double
  %134 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef %133)
  %135 = load ptr, ptr %90, align 8, !tbaa !12
  %bcmp126 = call i32 @bcmp(ptr noundef nonnull dereferenceable(1024) %135, ptr noundef nonnull dereferenceable(1024) %124, i64 1024)
  %136 = icmp eq i32 %bcmp126, 0
  %.str.18.sink = select i1 %136, ptr @.str.17, ptr @.str.18
  %137 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.18.sink)
  %138 = load ptr, ptr %110, align 8, !tbaa !12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %124, ptr noundef nonnull align 1 dereferenceable(1024) %138, i64 1024, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1024) %138, i8 0, i64 1024, i1 false)
  %139 = load ptr, ptr %90, align 8, !tbaa !12
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1024) %139, i8 0, i64 1024, i1 false)
  %140 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %3) #10
  call void @fec_decode(i32 noundef 1024, ptr noundef nonnull %5, i32 noundef 8, ptr noundef nonnull %9, ptr noundef nonnull %11, ptr noundef nonnull %12, i16 noundef zeroext 1) #10
  %141 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %4) #10
  %142 = call float @TimeSpecToUSeconds(ptr noundef nonnull %4)
  %143 = call float @TimeSpecToUSeconds(ptr noundef nonnull %3)
  %144 = fsub float %142, %143
  %145 = fpext float %144 to double
  %146 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, double noundef %145)
  %147 = load ptr, ptr %110, align 8, !tbaa !12
  %bcmp127 = call i32 @bcmp(ptr noundef nonnull dereferenceable(1024) %147, ptr noundef nonnull dereferenceable(1024) %124, i64 1024)
  %148 = icmp eq i32 %bcmp127, 0
  %.str.21.sink = select i1 %148, ptr @.str.20, ptr @.str.21
  %149 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.21.sink)
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 46400, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 46400, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #10
  call void @llvm.stackrestore.p0(ptr %13)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  ret i32 0

150:                                              ; preds = %49, %150
  %indvars.iv160 = phi i64 [ 0, %49 ], [ %indvars.iv.next161, %150 ]
  %151 = call i32 @rand() #10
  %152 = srem i32 %151, 255
  %153 = trunc i32 %152 to i8
  %154 = getelementptr inbounds i8, ptr %66, i64 %indvars.iv160
  store i8 %153, ptr %154, align 1, !tbaa !5
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %exitcond163.not = icmp eq i64 %indvars.iv.next161, 12288
  br i1 %exitcond163.not, label %86, label %150, !llvm.loop !17
}

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

declare void @fec_init_old() local_unnamed_addr #2

declare void @fec_init() local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #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) #1

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

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

declare void @slow_mul1(ptr noundef, ptr noundef, i8 noundef zeroext, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @TimeSpecToUSeconds(ptr noundef) local_unnamed_addr #6

declare void @gf256_mul_mem(ptr noundef, ptr noundef, i8 noundef zeroext, i32 noundef) local_unnamed_addr #2

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

declare void @slow_addmul1(ptr noundef, ptr noundef, i8 noundef zeroext, i32 noundef) local_unnamed_addr #2

declare void @gf256_muladd_mem(ptr noundef, i8 noundef zeroext, ptr noundef, i32 noundef) local_unnamed_addr #2

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

declare void @fec_encode(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #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) #8

declare void @fec_decode_old(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i16 noundef zeroext) local_unnamed_addr #2

declare void @fec_decode(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i16 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 = { 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 #6 = { inlinehint 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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nofree nounwind willreturn memory(argmem: read) }
attributes #10 = { 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, !9}
!11 = distinct !{!11, !9}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = distinct !{!14, !9}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !6, i64 0}
!17 = distinct !{!17, !9}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass