; LLVM IR from jgaeddert/liquid-dsp :: examples (fec_example)

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

@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() #0

declare i32 @printf(ptr noundef, ...) #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 i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %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 i8, align 1
  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) #8
  store i32 4, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 2048, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 4, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  br label %23

23:                                               ; preds = %45, %2
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = call i32 @getopt(i32 noundef %24, ptr noundef %25, ptr noundef @.str.4) #8
  store i32 %26, ptr %9, align 4, !tbaa !5
  %27 = icmp ne i32 %26, -1
  br i1 %27, label %28, label %46

28:                                               ; preds = %23
  %29 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %29, label %44 [
    i32 104, label %30
    i32 117, label %30
    i32 110, label %31
    i32 99, label %34
  ]

30:                                               ; preds = %28, %28
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %270

31:                                               ; preds = %28
  %32 = load ptr, ptr @optarg, align 8, !tbaa !9
  %33 = call i32 @atoi(ptr noundef %32) #9
  store i32 %33, ptr %6, align 4, !tbaa !5
  br label %45

34:                                               ; preds = %28
  %35 = load ptr, ptr @optarg, align 8, !tbaa !9
  %36 = call i32 @liquid_getopt_str2fec(ptr noundef %35)
  store i32 %36, ptr %8, align 4, !tbaa !5
  %37 = load i32, ptr %8, align 4, !tbaa !5
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %43

39:                                               ; preds = %34
  %40 = load ptr, ptr @stderr, align 8, !tbaa !9
  %41 = load ptr, ptr @optarg, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.5, ptr noundef %41) #8
  call void @exit(i32 noundef 1) #10
  unreachable

43:                                               ; preds = %34
  br label %45

44:                                               ; preds = %28
  call void @exit(i32 noundef 1) #10
  unreachable

45:                                               ; preds = %43, %31
  br label %23, !llvm.loop !11

46:                                               ; preds = %23
  %47 = load i32, ptr %6, align 4, !tbaa !5
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = icmp ugt i32 %47, %48
  br i1 %49, label %50, label %52

50:                                               ; preds = %46
  %51 = load i32, ptr %7, align 4, !tbaa !5
  br label %54

52:                                               ; preds = %46
  %53 = load i32, ptr %6, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %52, %50
  %55 = phi i32 [ %51, %50 ], [ %53, %52 ]
  store i32 %55, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = call i32 @fec_get_enc_msg_length(i32 noundef %56, i32 noundef %57)
  store i32 %58, ptr %11, align 4, !tbaa !5
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %59)
  %61 = load i32, ptr %11, align 4, !tbaa !5
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %61)
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = zext i32 %63 to i64
  %65 = call ptr @llvm.stacksave.p0()
  store ptr %65, ptr %12, align 8
  %66 = alloca i8, i64 %64, align 16
  store i64 %64, ptr %13, align 8
  %67 = load i32, ptr %11, align 4, !tbaa !5
  %68 = zext i32 %67 to i64
  %69 = alloca i8, i64 %68, align 16
  store i64 %68, ptr %14, align 8
  %70 = load i32, ptr %11, align 4, !tbaa !5
  %71 = zext i32 %70 to i64
  %72 = alloca i8, i64 %71, align 16
  store i64 %71, ptr %15, align 8
  %73 = load i32, ptr %6, align 4, !tbaa !5
  %74 = zext i32 %73 to i64
  %75 = alloca i8, i64 %74, align 16
  store i64 %74, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %76 = load i32, ptr %8, align 4, !tbaa !5
  %77 = call ptr @fec_create(i32 noundef %76, ptr noundef null)
  store ptr %77, ptr %17, align 8, !tbaa !9
  %78 = load ptr, ptr %17, align 8, !tbaa !9
  %79 = call i32 @fec_print(ptr noundef %78)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %91, %54
  %81 = load i32, ptr %18, align 4, !tbaa !5
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = icmp ult i32 %81, %82
  br i1 %83, label %84, label %94

84:                                               ; preds = %80
  %85 = call i32 @rand() #8
  %86 = and i32 %85, 255
  %87 = trunc i32 %86 to i8
  %88 = load i32, ptr %18, align 4, !tbaa !5
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds i8, ptr %66, i64 %89
  store i8 %87, ptr %90, align 1, !tbaa !13
  br label %91

91:                                               ; preds = %84
  %92 = load i32, ptr %18, align 4, !tbaa !5
  %93 = add i32 %92, 1
  store i32 %93, ptr %18, align 4, !tbaa !5
  br label %80, !llvm.loop !14

94:                                               ; preds = %80
  %95 = load ptr, ptr %17, align 8, !tbaa !9
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = call i32 @fec_encode(ptr noundef %95, i32 noundef %96, ptr noundef %66, ptr noundef %69)
  %98 = load i32, ptr %11, align 4, !tbaa !5
  %99 = zext i32 %98 to i64
  call void @llvm.memmove.p0.p0.i64(ptr align 16 %72, ptr align 16 %69, i64 %99, i1 false)
  %100 = getelementptr inbounds i8, ptr %72, i64 0
  %101 = load i8, ptr %100, align 16, !tbaa !13
  %102 = zext i8 %101 to i32
  %103 = xor i32 %102, 4
  %104 = trunc i32 %103 to i8
  store i8 %104, ptr %100, align 16, !tbaa !13
  %105 = load ptr, ptr %17, align 8, !tbaa !9
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = call i32 @fec_decode(ptr noundef %105, i32 noundef %106, ptr noundef %72, ptr noundef %75)
  %108 = load i32, ptr %6, align 4, !tbaa !5
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %108)
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %121, %94
  %111 = load i32, ptr %18, align 4, !tbaa !5
  %112 = load i32, ptr %6, align 4, !tbaa !5
  %113 = icmp ult i32 %111, %112
  br i1 %113, label %114, label %124

114:                                              ; preds = %110
  %115 = load i32, ptr %18, align 4, !tbaa !5
  %116 = zext i32 %115 to i64
  %117 = getelementptr inbounds i8, ptr %66, i64 %116
  %118 = load i8, ptr %117, align 1, !tbaa !13
  %119 = zext i8 %118 to i32
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %119)
  br label %121

121:                                              ; preds = %114
  %122 = load i32, ptr %18, align 4, !tbaa !5
  %123 = add i32 %122, 1
  store i32 %123, ptr %18, align 4, !tbaa !5
  br label %110, !llvm.loop !15

124:                                              ; preds = %110
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %126 = load i32, ptr %11, align 4, !tbaa !5
  %127 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %126)
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %139, %124
  %129 = load i32, ptr %18, align 4, !tbaa !5
  %130 = load i32, ptr %11, align 4, !tbaa !5
  %131 = icmp ult i32 %129, %130
  br i1 %131, label %132, label %142

132:                                              ; preds = %128
  %133 = load i32, ptr %18, align 4, !tbaa !5
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds i8, ptr %69, i64 %134
  %136 = load i8, ptr %135, align 1, !tbaa !13
  %137 = zext i8 %136 to i32
  %138 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %137)
  br label %139

139:                                              ; preds = %132
  %140 = load i32, ptr %18, align 4, !tbaa !5
  %141 = add i32 %140, 1
  store i32 %141, ptr %18, align 4, !tbaa !5
  br label %128, !llvm.loop !16

142:                                              ; preds = %128
  %143 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %144 = load i32, ptr %11, align 4, !tbaa !5
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %144)
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %170, %142
  %147 = load i32, ptr %18, align 4, !tbaa !5
  %148 = load i32, ptr %11, align 4, !tbaa !5
  %149 = icmp ult i32 %147, %148
  br i1 %149, label %150, label %173

150:                                              ; preds = %146
  %151 = load i32, ptr %18, align 4, !tbaa !5
  %152 = zext i32 %151 to i64
  %153 = getelementptr inbounds i8, ptr %72, i64 %152
  %154 = load i8, ptr %153, align 1, !tbaa !13
  %155 = zext i8 %154 to i32
  %156 = load i32, ptr %18, align 4, !tbaa !5
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds i8, ptr %69, i64 %157
  %159 = load i8, ptr %158, align 1, !tbaa !13
  %160 = zext i8 %159 to i32
  %161 = icmp eq i32 %155, %160
  %162 = zext i1 %161 to i64
  %163 = select i1 %161, i32 32, i32 42
  %164 = load i32, ptr %18, align 4, !tbaa !5
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds i8, ptr %72, i64 %165
  %167 = load i8, ptr %166, align 1, !tbaa !13
  %168 = zext i8 %167 to i32
  %169 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %163, i32 noundef %168)
  br label %170

170:                                              ; preds = %150
  %171 = load i32, ptr %18, align 4, !tbaa !5
  %172 = add i32 %171, 1
  store i32 %172, ptr %18, align 4, !tbaa !5
  br label %146, !llvm.loop !17

173:                                              ; preds = %146
  %174 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %175 = load i32, ptr %6, align 4, !tbaa !5
  %176 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %175)
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %177

177:                                              ; preds = %201, %173
  %178 = load i32, ptr %18, align 4, !tbaa !5
  %179 = load i32, ptr %6, align 4, !tbaa !5
  %180 = icmp ult i32 %178, %179
  br i1 %180, label %181, label %204

181:                                              ; preds = %177
  %182 = load i32, ptr %18, align 4, !tbaa !5
  %183 = zext i32 %182 to i64
  %184 = getelementptr inbounds i8, ptr %75, i64 %183
  %185 = load i8, ptr %184, align 1, !tbaa !13
  %186 = zext i8 %185 to i32
  %187 = load i32, ptr %18, align 4, !tbaa !5
  %188 = zext i32 %187 to i64
  %189 = getelementptr inbounds i8, ptr %66, i64 %188
  %190 = load i8, ptr %189, align 1, !tbaa !13
  %191 = zext i8 %190 to i32
  %192 = icmp eq i32 %186, %191
  %193 = zext i1 %192 to i64
  %194 = select i1 %192, i32 32, i32 42
  %195 = load i32, ptr %18, align 4, !tbaa !5
  %196 = zext i32 %195 to i64
  %197 = getelementptr inbounds i8, ptr %75, i64 %196
  %198 = load i8, ptr %197, align 1, !tbaa !13
  %199 = zext i8 %198 to i32
  %200 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %194, i32 noundef %199)
  br label %201

201:                                              ; preds = %181
  %202 = load i32, ptr %18, align 4, !tbaa !5
  %203 = add i32 %202, 1
  store i32 %203, ptr %18, align 4, !tbaa !5
  br label %177, !llvm.loop !18

204:                                              ; preds = %177
  %205 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %206 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #8
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %207

207:                                              ; preds = %256, %204
  %208 = load i32, ptr %18, align 4, !tbaa !5
  %209 = load i32, ptr %6, align 4, !tbaa !5
  %210 = icmp ult i32 %208, %209
  br i1 %210, label %211, label %259

211:                                              ; preds = %207
  %212 = load i32, ptr %18, align 4, !tbaa !5
  %213 = zext i32 %212 to i64
  %214 = getelementptr inbounds i8, ptr %66, i64 %213
  %215 = load i8, ptr %214, align 1, !tbaa !13
  %216 = zext i8 %215 to i32
  %217 = load i32, ptr %18, align 4, !tbaa !5
  %218 = zext i32 %217 to i64
  %219 = getelementptr inbounds i8, ptr %75, i64 %218
  %220 = load i8, ptr %219, align 1, !tbaa !13
  %221 = zext i8 %220 to i32
  %222 = icmp eq i32 %216, %221
  %223 = zext i1 %222 to i64
  %224 = select i1 %222, i32 0, i32 1
  %225 = load i32, ptr %20, align 4, !tbaa !5
  %226 = add i32 %225, %224
  store i32 %226, ptr %20, align 4, !tbaa !5
  %227 = load i32, ptr %18, align 4, !tbaa !5
  %228 = zext i32 %227 to i64
  %229 = getelementptr inbounds i8, ptr %66, i64 %228
  %230 = load i8, ptr %229, align 1, !tbaa !13
  %231 = zext i8 %230 to i32
  %232 = load i32, ptr %18, align 4, !tbaa !5
  %233 = zext i32 %232 to i64
  %234 = getelementptr inbounds i8, ptr %75, i64 %233
  %235 = load i8, ptr %234, align 1, !tbaa !13
  %236 = zext i8 %235 to i32
  %237 = xor i32 %231, %236
  %238 = trunc i32 %237 to i8
  store i8 %238, ptr %22, align 1, !tbaa !13
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %239

239:                                              ; preds = %252, %211
  %240 = load i32, ptr %19, align 4, !tbaa !5
  %241 = icmp ult i32 %240, 8
  br i1 %241, label %242, label %255

242:                                              ; preds = %239
  %243 = load i8, ptr %22, align 1, !tbaa !13
  %244 = zext i8 %243 to i32
  %245 = and i32 %244, 1
  %246 = load i32, ptr %21, align 4, !tbaa !5
  %247 = add i32 %246, %245
  store i32 %247, ptr %21, align 4, !tbaa !5
  %248 = load i8, ptr %22, align 1, !tbaa !13
  %249 = zext i8 %248 to i32
  %250 = ashr i32 %249, 1
  %251 = trunc i32 %250 to i8
  store i8 %251, ptr %22, align 1, !tbaa !13
  br label %252

252:                                              ; preds = %242
  %253 = load i32, ptr %19, align 4, !tbaa !5
  %254 = add i32 %253, 1
  store i32 %254, ptr %19, align 4, !tbaa !5
  br label %239, !llvm.loop !19

255:                                              ; preds = %239
  br label %256

256:                                              ; preds = %255
  %257 = load i32, ptr %18, align 4, !tbaa !5
  %258 = add i32 %257, 1
  store i32 %258, ptr %18, align 4, !tbaa !5
  br label %207, !llvm.loop !20

259:                                              ; preds = %207
  %260 = load i32, ptr %20, align 4, !tbaa !5
  %261 = load i32, ptr %6, align 4, !tbaa !5
  %262 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %260, i32 noundef %261)
  %263 = load i32, ptr %21, align 4, !tbaa !5
  %264 = load i32, ptr %6, align 4, !tbaa !5
  %265 = mul i32 %264, 8
  %266 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %263, i32 noundef %265)
  %267 = load ptr, ptr %17, align 8, !tbaa !9
  %268 = call i32 @fec_destroy(ptr noundef %267)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  %269 = load ptr, ptr %12, align 8
  call void @llvm.stackrestore.p0(ptr %269)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %270

270:                                              ; preds = %259, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %271 = load i32, ptr %3, align 4
  ret i32 %271
}

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

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #4

declare i32 @liquid_getopt_str2fec(ptr noundef) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

declare i32 @fec_get_enc_msg_length(i32 noundef, i32 noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #6

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

declare i32 @fec_print(ptr noundef) #1

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

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

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

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

declare i32 @fec_destroy(ptr noundef) #1

; 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 nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #6

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

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

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


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

@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  br label %.outer

.outer:                                           ; preds = %9, %2
  %.078.ph = phi i32 [ %11, %9 ], [ 4, %2 ]
  %.076.ph = phi i32 [ %.076, %9 ], [ 4, %2 ]
  br label %3

3:                                                ; preds = %.outer, %6
  %.076 = phi i32 [ %8, %6 ], [ %.076.ph, %.outer ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.4) #9
  switch i32 %4, label %17 [
    i32 -1, label %18
    i32 104, label %5
    i32 117, label %5
    i32 110, label %6
    i32 99, label %9
  ]

5:                                                ; preds = %3, %3
  tail call void @usage()
  br label %198

6:                                                ; preds = %3
  %7 = load ptr, ptr @optarg, align 8, !tbaa !5
  %8 = tail call i32 @atoi(ptr nocapture noundef %7) #10
  br label %3, !llvm.loop !9

9:                                                ; preds = %3
  %10 = load ptr, ptr @optarg, align 8, !tbaa !5
  %11 = tail call i32 @liquid_getopt_str2fec(ptr noundef %10) #9
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %.outer, !llvm.loop !9

13:                                               ; preds = %9
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = load ptr, ptr @optarg, align 8, !tbaa !5
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.5, ptr noundef %15) #11
  tail call void @exit(i32 noundef 1) #12
  unreachable

17:                                               ; preds = %3
  tail call void @exit(i32 noundef 1) #12
  unreachable

18:                                               ; preds = %3
  %19 = tail call i32 @llvm.umin.i32(i32 %.076, i32 2048)
  %20 = tail call i32 @fec_get_enc_msg_length(i32 noundef %.078.ph, i32 noundef %19) #9
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %19)
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %20)
  %23 = zext nneg i32 %19 to i64
  %24 = tail call ptr @llvm.stacksave.p0()
  %25 = alloca i8, i64 %23, align 16
  %26 = zext i32 %20 to i64
  %27 = alloca i8, i64 %26, align 16
  %28 = alloca i8, i64 %26, align 16
  %29 = alloca i8, i64 %23, align 16
  %30 = tail call ptr @fec_create(i32 noundef %.078.ph, ptr noundef null) #9
  %31 = tail call i32 @fec_print(ptr noundef %30) #9
  %.not = icmp eq i32 %.076, 0
  br i1 %.not, label %._crit_edge94.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %18, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %18 ]
  %32 = tail call i32 @rand() #9
  %33 = trunc i32 %32 to i8
  %34 = getelementptr inbounds i8, ptr %25, i64 %indvars.iv
  store i8 %33, ptr %34, align 1, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %23
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph
  %35 = call i32 @fec_encode(ptr noundef %30, i32 noundef %19, ptr noundef nonnull %25, ptr noundef nonnull %27) #9
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %28, ptr nonnull align 16 %27, i64 %26, i1 false)
  %36 = load i8, ptr %28, align 16, !tbaa !11
  %37 = xor i8 %36, 4
  store i8 %37, ptr %28, align 16, !tbaa !11
  %38 = call i32 @fec_decode(ptr noundef %30, i32 noundef %19, ptr noundef nonnull %28, ptr noundef nonnull %29) #9
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %19)
  br i1 %.not, label %._crit_edge94, label %.lr.ph93

.lr.ph93:                                         ; preds = %._crit_edge, %.lr.ph93
  %indvars.iv130 = phi i64 [ %indvars.iv.next131, %.lr.ph93 ], [ 0, %._crit_edge ]
  %40 = getelementptr inbounds i8, ptr %25, i64 %indvars.iv130
  %41 = load i8, ptr %40, align 1, !tbaa !11
  %42 = zext i8 %41 to i32
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %42)
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %exitcond134.not = icmp eq i64 %indvars.iv.next131, %23
  br i1 %exitcond134.not, label %._crit_edge94, label %.lr.ph93, !llvm.loop !13

._crit_edge94.critedge:                           ; preds = %18
  %44 = call i32 @fec_encode(ptr noundef %30, i32 noundef %19, ptr noundef nonnull %25, ptr noundef nonnull %27) #9
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %28, ptr nonnull align 16 %27, i64 %26, i1 false)
  %45 = load i8, ptr %28, align 16, !tbaa !11
  %46 = xor i8 %45, 4
  store i8 %46, ptr %28, align 16, !tbaa !11
  %47 = call i32 @fec_decode(ptr noundef %30, i32 noundef %19, ptr noundef nonnull %28, ptr noundef nonnull %29) #9
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %19)
  br label %._crit_edge94

._crit_edge94:                                    ; preds = %.lr.ph93, %._crit_edge94.critedge, %._crit_edge
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %20)
  %.not118 = icmp eq i32 %20, 0
  br i1 %.not118, label %._crit_edge102.critedge, label %.lr.ph97

.lr.ph97:                                         ; preds = %._crit_edge94, %.lr.ph97
  %indvars.iv135 = phi i64 [ %indvars.iv.next136, %.lr.ph97 ], [ 0, %._crit_edge94 ]
  %51 = getelementptr inbounds i8, ptr %27, i64 %indvars.iv135
  %52 = load i8, ptr %51, align 1, !tbaa !11
  %53 = zext i8 %52 to i32
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %53)
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %exitcond139.not = icmp eq i64 %indvars.iv.next136, %26
  br i1 %exitcond139.not, label %._crit_edge98, label %.lr.ph97, !llvm.loop !14

._crit_edge98:                                    ; preds = %.lr.ph97
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %20)
  br i1 %.not118, label %._crit_edge102, label %.lr.ph101

.lr.ph101:                                        ; preds = %._crit_edge98, %.lr.ph101
  %indvars.iv140 = phi i64 [ %indvars.iv.next141, %.lr.ph101 ], [ 0, %._crit_edge98 ]
  %57 = getelementptr inbounds i8, ptr %28, i64 %indvars.iv140
  %58 = load i8, ptr %57, align 1, !tbaa !11
  %59 = zext i8 %58 to i32
  %60 = getelementptr inbounds i8, ptr %27, i64 %indvars.iv140
  %61 = load i8, ptr %60, align 1, !tbaa !11
  %62 = icmp eq i8 %58, %61
  %63 = select i1 %62, i32 32, i32 42
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %63, i32 noundef %59)
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %exitcond144.not = icmp eq i64 %indvars.iv.next141, %26
  br i1 %exitcond144.not, label %._crit_edge102, label %.lr.ph101, !llvm.loop !15

._crit_edge102.critedge:                          ; preds = %._crit_edge94
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %20)
  br label %._crit_edge102

._crit_edge102:                                   ; preds = %.lr.ph101, %._crit_edge102.critedge, %._crit_edge98
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %19)
  br i1 %.not, label %._crit_edge115.critedge, label %.lr.ph105

.lr.ph105:                                        ; preds = %._crit_edge102, %.lr.ph105
  %indvars.iv145 = phi i64 [ %indvars.iv.next146, %.lr.ph105 ], [ 0, %._crit_edge102 ]
  %69 = getelementptr inbounds i8, ptr %29, i64 %indvars.iv145
  %70 = load i8, ptr %69, align 1, !tbaa !11
  %71 = zext i8 %70 to i32
  %72 = getelementptr inbounds i8, ptr %25, i64 %indvars.iv145
  %73 = load i8, ptr %72, align 1, !tbaa !11
  %74 = icmp eq i8 %70, %73
  %75 = select i1 %74, i32 32, i32 42
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %75, i32 noundef %71)
  %indvars.iv.next146 = add nuw nsw i64 %indvars.iv145, 1
  %exitcond149.not = icmp eq i64 %indvars.iv.next146, %23
  br i1 %exitcond149.not, label %._crit_edge106, label %.lr.ph105, !llvm.loop !16

._crit_edge106:                                   ; preds = %.lr.ph105
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  br i1 %.not, label %._crit_edge115, label %.lr.ph114.preheader

.lr.ph114.preheader:                              ; preds = %._crit_edge106
  %min.iters.check = icmp ult i32 %.076, 8
  br i1 %min.iters.check, label %.lr.ph114.preheader178, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph114.preheader
  %n.vec = and i64 %23, 4088
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %147, %vector.body ]
  %vec.phi170 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %148, %vector.body ]
  %vec.phi171 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %149, %vector.body ]
  %vec.phi172 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %150, %vector.body ]
  %79 = getelementptr inbounds i8, ptr %25, i64 %index
  %80 = getelementptr inbounds i8, ptr %79, i64 4
  %wide.load = load <4 x i8>, ptr %79, align 8, !tbaa !11
  %wide.load173 = load <4 x i8>, ptr %80, align 4, !tbaa !11
  %81 = getelementptr inbounds i8, ptr %29, i64 %index
  %82 = getelementptr inbounds i8, ptr %81, i64 4
  %wide.load174 = load <4 x i8>, ptr %81, align 8, !tbaa !11
  %wide.load175 = load <4 x i8>, ptr %82, align 4, !tbaa !11
  %83 = icmp ne <4 x i8> %wide.load, %wide.load174
  %84 = icmp ne <4 x i8> %wide.load173, %wide.load175
  %85 = zext <4 x i1> %83 to <4 x i32>
  %86 = zext <4 x i1> %84 to <4 x i32>
  %87 = xor <4 x i8> %wide.load174, %wide.load
  %88 = xor <4 x i8> %wide.load175, %wide.load173
  %89 = and <4 x i8> %87, <i8 1, i8 1, i8 1, i8 1>
  %90 = and <4 x i8> %88, <i8 1, i8 1, i8 1, i8 1>
  %91 = zext nneg <4 x i8> %89 to <4 x i32>
  %92 = zext nneg <4 x i8> %90 to <4 x i32>
  %93 = add <4 x i32> %vec.phi, %91
  %94 = add <4 x i32> %vec.phi170, %92
  %95 = lshr <4 x i8> %87, <i8 1, i8 1, i8 1, i8 1>
  %96 = lshr <4 x i8> %88, <i8 1, i8 1, i8 1, i8 1>
  %97 = and <4 x i8> %95, <i8 1, i8 1, i8 1, i8 1>
  %98 = and <4 x i8> %96, <i8 1, i8 1, i8 1, i8 1>
  %99 = zext nneg <4 x i8> %97 to <4 x i32>
  %100 = zext nneg <4 x i8> %98 to <4 x i32>
  %101 = add <4 x i32> %93, %99
  %102 = add <4 x i32> %94, %100
  %103 = lshr <4 x i8> %87, <i8 2, i8 2, i8 2, i8 2>
  %104 = lshr <4 x i8> %88, <i8 2, i8 2, i8 2, i8 2>
  %105 = and <4 x i8> %103, <i8 1, i8 1, i8 1, i8 1>
  %106 = and <4 x i8> %104, <i8 1, i8 1, i8 1, i8 1>
  %107 = zext nneg <4 x i8> %105 to <4 x i32>
  %108 = zext nneg <4 x i8> %106 to <4 x i32>
  %109 = add <4 x i32> %101, %107
  %110 = add <4 x i32> %102, %108
  %111 = lshr <4 x i8> %87, <i8 3, i8 3, i8 3, i8 3>
  %112 = lshr <4 x i8> %88, <i8 3, i8 3, i8 3, i8 3>
  %113 = and <4 x i8> %111, <i8 1, i8 1, i8 1, i8 1>
  %114 = and <4 x i8> %112, <i8 1, i8 1, i8 1, i8 1>
  %115 = zext nneg <4 x i8> %113 to <4 x i32>
  %116 = zext nneg <4 x i8> %114 to <4 x i32>
  %117 = add <4 x i32> %109, %115
  %118 = add <4 x i32> %110, %116
  %119 = lshr <4 x i8> %87, <i8 4, i8 4, i8 4, i8 4>
  %120 = lshr <4 x i8> %88, <i8 4, i8 4, i8 4, i8 4>
  %121 = and <4 x i8> %119, <i8 1, i8 1, i8 1, i8 1>
  %122 = and <4 x i8> %120, <i8 1, i8 1, i8 1, i8 1>
  %123 = zext nneg <4 x i8> %121 to <4 x i32>
  %124 = zext nneg <4 x i8> %122 to <4 x i32>
  %125 = add <4 x i32> %117, %123
  %126 = add <4 x i32> %118, %124
  %127 = lshr <4 x i8> %87, <i8 5, i8 5, i8 5, i8 5>
  %128 = lshr <4 x i8> %88, <i8 5, i8 5, i8 5, i8 5>
  %129 = and <4 x i8> %127, <i8 1, i8 1, i8 1, i8 1>
  %130 = and <4 x i8> %128, <i8 1, i8 1, i8 1, i8 1>
  %131 = zext nneg <4 x i8> %129 to <4 x i32>
  %132 = zext nneg <4 x i8> %130 to <4 x i32>
  %133 = add <4 x i32> %125, %131
  %134 = add <4 x i32> %126, %132
  %135 = lshr <4 x i8> %87, <i8 6, i8 6, i8 6, i8 6>
  %136 = lshr <4 x i8> %88, <i8 6, i8 6, i8 6, i8 6>
  %137 = and <4 x i8> %135, <i8 1, i8 1, i8 1, i8 1>
  %138 = and <4 x i8> %136, <i8 1, i8 1, i8 1, i8 1>
  %139 = zext nneg <4 x i8> %137 to <4 x i32>
  %140 = zext nneg <4 x i8> %138 to <4 x i32>
  %141 = add <4 x i32> %133, %139
  %142 = add <4 x i32> %134, %140
  %143 = lshr <4 x i8> %87, <i8 7, i8 7, i8 7, i8 7>
  %144 = lshr <4 x i8> %88, <i8 7, i8 7, i8 7, i8 7>
  %145 = zext nneg <4 x i8> %143 to <4 x i32>
  %146 = zext nneg <4 x i8> %144 to <4 x i32>
  %147 = add <4 x i32> %141, %145
  %148 = add <4 x i32> %142, %146
  %149 = add <4 x i32> %vec.phi171, %85
  %150 = add <4 x i32> %vec.phi172, %86
  %index.next = add nuw i64 %index, 8
  %151 = icmp eq i64 %index.next, %n.vec
  br i1 %151, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %148, %147
  %152 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %bin.rdx176 = add <4 x i32> %150, %149
  %153 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx176)
  %cmp.n = icmp eq i64 %n.vec, %23
  br i1 %cmp.n, label %._crit_edge115, label %.lr.ph114.preheader178

.lr.ph114.preheader178:                           ; preds = %middle.block, %.lr.ph114.preheader
  %indvars.iv151.ph = phi i64 [ 0, %.lr.ph114.preheader ], [ %n.vec, %middle.block ]
  %.070112.ph = phi i32 [ 0, %.lr.ph114.preheader ], [ %152, %middle.block ]
  %.071111.ph = phi i32 [ 0, %.lr.ph114.preheader ], [ %153, %middle.block ]
  br label %.lr.ph114

.lr.ph114:                                        ; preds = %.lr.ph114.preheader178, %.lr.ph114
  %indvars.iv151 = phi i64 [ %indvars.iv.next152, %.lr.ph114 ], [ %indvars.iv151.ph, %.lr.ph114.preheader178 ]
  %.070112 = phi i32 [ %190, %.lr.ph114 ], [ %.070112.ph, %.lr.ph114.preheader178 ]
  %.071111 = phi i32 [ %191, %.lr.ph114 ], [ %.071111.ph, %.lr.ph114.preheader178 ]
  %154 = getelementptr inbounds i8, ptr %25, i64 %indvars.iv151
  %155 = load i8, ptr %154, align 1, !tbaa !11
  %156 = getelementptr inbounds i8, ptr %29, i64 %indvars.iv151
  %157 = load i8, ptr %156, align 1, !tbaa !11
  %158 = icmp ne i8 %155, %157
  %159 = zext i1 %158 to i32
  %160 = xor i8 %157, %155
  %161 = and i8 %160, 1
  %162 = zext nneg i8 %161 to i32
  %163 = add i32 %.070112, %162
  %164 = lshr i8 %160, 1
  %165 = and i8 %164, 1
  %166 = zext nneg i8 %165 to i32
  %167 = add i32 %163, %166
  %168 = lshr i8 %160, 2
  %169 = and i8 %168, 1
  %170 = zext nneg i8 %169 to i32
  %171 = add i32 %167, %170
  %172 = lshr i8 %160, 3
  %173 = and i8 %172, 1
  %174 = zext nneg i8 %173 to i32
  %175 = add i32 %171, %174
  %176 = lshr i8 %160, 4
  %177 = and i8 %176, 1
  %178 = zext nneg i8 %177 to i32
  %179 = add i32 %175, %178
  %180 = lshr i8 %160, 5
  %181 = and i8 %180, 1
  %182 = zext nneg i8 %181 to i32
  %183 = add i32 %179, %182
  %184 = lshr i8 %160, 6
  %185 = and i8 %184, 1
  %186 = zext nneg i8 %185 to i32
  %187 = add i32 %183, %186
  %188 = lshr i8 %160, 7
  %189 = zext nneg i8 %188 to i32
  %190 = add i32 %187, %189
  %191 = add i32 %.071111, %159
  %indvars.iv.next152 = add nuw nsw i64 %indvars.iv151, 1
  %exitcond155.not = icmp eq i64 %indvars.iv.next152, %23
  br i1 %exitcond155.not, label %._crit_edge115, label %.lr.ph114, !llvm.loop !20

._crit_edge115.critedge:                          ; preds = %._crit_edge102
  %192 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %193 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  br label %._crit_edge115

._crit_edge115:                                   ; preds = %.lr.ph114, %middle.block, %._crit_edge115.critedge, %._crit_edge106
  %.071.lcssa = phi i32 [ 0, %._crit_edge106 ], [ 0, %._crit_edge115.critedge ], [ %153, %middle.block ], [ %191, %.lr.ph114 ]
  %.070.lcssa = phi i32 [ 0, %._crit_edge106 ], [ 0, %._crit_edge115.critedge ], [ %152, %middle.block ], [ %190, %.lr.ph114 ]
  %194 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef %.071.lcssa, i32 noundef %19)
  %195 = shl nuw nsw i32 %19, 3
  %196 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %.070.lcssa, i32 noundef %195)
  %197 = call i32 @fec_destroy(ptr noundef %30) #9
  call void @llvm.stackrestore.p0(ptr %24)
  br label %198

198:                                              ; preds = %._crit_edge115, %5
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #3

declare i32 @liquid_getopt_str2fec(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

declare i32 @fec_get_enc_msg_length(i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #6

declare ptr @fec_create(i32 noundef, ptr noundef) local_unnamed_addr #4

declare i32 @fec_print(ptr noundef) local_unnamed_addr #4

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

declare i32 @fec_encode(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @fec_decode(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @fec_destroy(ptr noundef) local_unnamed_addr #4

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

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

; 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

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

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

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

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


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