; LLVM IR from jgaeddert/liquid-dsp :: examples (packetizer_soft_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.6 = external hidden unnamed_addr constant [11 x i8], align 1
@optarg = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@stderr = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 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 i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %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
  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) #7
  store i32 8, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 6, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 4, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 1, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  br label %28

28:                                               ; preds = %75, %2
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !9
  %31 = call i32 @getopt(i32 noundef %29, ptr noundef %30, ptr noundef @.str.6) #7
  store i32 %31, ptr %10, align 4, !tbaa !5
  %32 = icmp ne i32 %31, -1
  br i1 %32, label %33, label %76

33:                                               ; preds = %28
  %34 = load i32, ptr %10, align 4, !tbaa !5
  switch i32 %34, label %74 [
    i32 104, label %35
    i32 117, label %35
    i32 110, label %36
    i32 118, label %44
    i32 99, label %54
    i32 107, label %64
  ]

35:                                               ; preds = %33, %33
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %499

36:                                               ; preds = %33
  %37 = load ptr, ptr @optarg, align 8, !tbaa !9
  %38 = call i32 @atoi(ptr noundef %37) #8
  store i32 %38, ptr %6, align 4, !tbaa !5
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = icmp ult i32 %39, 1
  br i1 %40, label %41, label %43

41:                                               ; preds = %36
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  call void @usage()
  call void @exit(i32 noundef -1) #9
  unreachable

43:                                               ; preds = %36
  br label %75

44:                                               ; preds = %33
  %45 = load ptr, ptr @optarg, align 8, !tbaa !9
  %46 = call i32 @liquid_getopt_str2crc(ptr noundef %45)
  store i32 %46, ptr %7, align 4, !tbaa !5
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %53

49:                                               ; preds = %44
  %50 = load ptr, ptr @stderr, align 8, !tbaa !9
  %51 = load ptr, ptr @optarg, align 8, !tbaa !9
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.8, ptr noundef %51) #7
  call void @exit(i32 noundef 1) #9
  unreachable

53:                                               ; preds = %44
  br label %75

54:                                               ; preds = %33
  %55 = load ptr, ptr @optarg, align 8, !tbaa !9
  %56 = call i32 @liquid_getopt_str2fec(ptr noundef %55)
  store i32 %56, ptr %8, align 4, !tbaa !5
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %63

59:                                               ; preds = %54
  %60 = load ptr, ptr @stderr, align 8, !tbaa !9
  %61 = load ptr, ptr @optarg, align 8, !tbaa !9
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str.9, ptr noundef %61) #7
  call void @exit(i32 noundef 1) #9
  unreachable

63:                                               ; preds = %54
  br label %75

64:                                               ; preds = %33
  %65 = load ptr, ptr @optarg, align 8, !tbaa !9
  %66 = call i32 @liquid_getopt_str2fec(ptr noundef %65)
  store i32 %66, ptr %9, align 4, !tbaa !5
  %67 = load i32, ptr %9, align 4, !tbaa !5
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %73

69:                                               ; preds = %64
  %70 = load ptr, ptr @stderr, align 8, !tbaa !9
  %71 = load ptr, ptr @optarg, align 8, !tbaa !9
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.10, ptr noundef %71) #7
  call void @exit(i32 noundef 1) #9
  unreachable

73:                                               ; preds = %64
  br label %75

74:                                               ; preds = %33
  call void @exit(i32 noundef 1) #9
  unreachable

75:                                               ; preds = %73, %63, %53, %43
  br label %28, !llvm.loop !11

76:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = load i32, ptr %8, align 4, !tbaa !5
  %80 = load i32, ptr %9, align 4, !tbaa !5
  %81 = call i32 @packetizer_compute_enc_msg_len(i32 noundef %77, i32 noundef %78, i32 noundef %79, i32 noundef %80)
  store i32 %81, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = load i32, ptr %8, align 4, !tbaa !5
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = call ptr @packetizer_create(i32 noundef %82, i32 noundef %83, i32 noundef %84, i32 noundef %85)
  store ptr %86, ptr %14, align 8, !tbaa !9
  %87 = load ptr, ptr %14, align 8, !tbaa !9
  %88 = call i32 @packetizer_print(ptr noundef %87)
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = zext i32 %89 to i64
  %91 = call ptr @llvm.stacksave.p0()
  store ptr %91, ptr %15, align 8
  %92 = alloca i8, i64 %90, align 16
  store i64 %90, ptr %16, align 8
  %93 = load i32, ptr %13, align 4, !tbaa !5
  %94 = zext i32 %93 to i64
  %95 = alloca i8, i64 %94, align 16
  store i64 %94, ptr %17, align 8
  %96 = load i32, ptr %13, align 4, !tbaa !5
  %97 = mul i32 8, %96
  %98 = zext i32 %97 to i64
  %99 = alloca i8, i64 %98, align 16
  store i64 %98, ptr %18, align 8
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = zext i32 %100 to i64
  %102 = alloca i8, i64 %101, align 16
  store i64 %101, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %114, %76
  %104 = load i32, ptr %12, align 4, !tbaa !5
  %105 = load i32, ptr %6, align 4, !tbaa !5
  %106 = icmp ult i32 %104, %105
  br i1 %106, label %107, label %117

107:                                              ; preds = %103
  %108 = call i32 @rand() #7
  %109 = srem i32 %108, 256
  %110 = trunc i32 %109 to i8
  %111 = load i32, ptr %12, align 4, !tbaa !5
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds i8, ptr %92, i64 %112
  store i8 %110, ptr %113, align 1, !tbaa !13
  br label %114

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

117:                                              ; preds = %103
  %118 = load ptr, ptr %14, align 8, !tbaa !9
  %119 = call i32 @packetizer_encode(ptr noundef %118, ptr noundef %92, ptr noundef %95)
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %245, %117
  %121 = load i32, ptr %12, align 4, !tbaa !5
  %122 = load i32, ptr %13, align 4, !tbaa !5
  %123 = icmp ult i32 %121, %122
  br i1 %123, label %124, label %248

124:                                              ; preds = %120
  %125 = load i32, ptr %12, align 4, !tbaa !5
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds i8, ptr %95, i64 %126
  %128 = load i8, ptr %127, align 1, !tbaa !13
  %129 = zext i8 %128 to i32
  %130 = and i32 %129, 128
  %131 = icmp ne i32 %130, 0
  %132 = zext i1 %131 to i64
  %133 = select i1 %131, i32 255, i32 0
  %134 = trunc i32 %133 to i8
  %135 = load i32, ptr %12, align 4, !tbaa !5
  %136 = mul i32 8, %135
  %137 = add i32 %136, 0
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds i8, ptr %99, i64 %138
  store i8 %134, ptr %139, align 1, !tbaa !13
  %140 = load i32, ptr %12, align 4, !tbaa !5
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds i8, ptr %95, i64 %141
  %143 = load i8, ptr %142, align 1, !tbaa !13
  %144 = zext i8 %143 to i32
  %145 = and i32 %144, 64
  %146 = icmp ne i32 %145, 0
  %147 = zext i1 %146 to i64
  %148 = select i1 %146, i32 255, i32 0
  %149 = trunc i32 %148 to i8
  %150 = load i32, ptr %12, align 4, !tbaa !5
  %151 = mul i32 8, %150
  %152 = add i32 %151, 1
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds i8, ptr %99, i64 %153
  store i8 %149, ptr %154, align 1, !tbaa !13
  %155 = load i32, ptr %12, align 4, !tbaa !5
  %156 = zext i32 %155 to i64
  %157 = getelementptr inbounds i8, ptr %95, i64 %156
  %158 = load i8, ptr %157, align 1, !tbaa !13
  %159 = zext i8 %158 to i32
  %160 = and i32 %159, 32
  %161 = icmp ne i32 %160, 0
  %162 = zext i1 %161 to i64
  %163 = select i1 %161, i32 255, i32 0
  %164 = trunc i32 %163 to i8
  %165 = load i32, ptr %12, align 4, !tbaa !5
  %166 = mul i32 8, %165
  %167 = add i32 %166, 2
  %168 = zext i32 %167 to i64
  %169 = getelementptr inbounds i8, ptr %99, i64 %168
  store i8 %164, ptr %169, align 1, !tbaa !13
  %170 = load i32, ptr %12, align 4, !tbaa !5
  %171 = zext i32 %170 to i64
  %172 = getelementptr inbounds i8, ptr %95, i64 %171
  %173 = load i8, ptr %172, align 1, !tbaa !13
  %174 = zext i8 %173 to i32
  %175 = and i32 %174, 16
  %176 = icmp ne i32 %175, 0
  %177 = zext i1 %176 to i64
  %178 = select i1 %176, i32 255, i32 0
  %179 = trunc i32 %178 to i8
  %180 = load i32, ptr %12, align 4, !tbaa !5
  %181 = mul i32 8, %180
  %182 = add i32 %181, 3
  %183 = zext i32 %182 to i64
  %184 = getelementptr inbounds i8, ptr %99, i64 %183
  store i8 %179, ptr %184, align 1, !tbaa !13
  %185 = load i32, ptr %12, align 4, !tbaa !5
  %186 = zext i32 %185 to i64
  %187 = getelementptr inbounds i8, ptr %95, i64 %186
  %188 = load i8, ptr %187, align 1, !tbaa !13
  %189 = zext i8 %188 to i32
  %190 = and i32 %189, 8
  %191 = icmp ne i32 %190, 0
  %192 = zext i1 %191 to i64
  %193 = select i1 %191, i32 255, i32 0
  %194 = trunc i32 %193 to i8
  %195 = load i32, ptr %12, align 4, !tbaa !5
  %196 = mul i32 8, %195
  %197 = add i32 %196, 4
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds i8, ptr %99, i64 %198
  store i8 %194, ptr %199, align 1, !tbaa !13
  %200 = load i32, ptr %12, align 4, !tbaa !5
  %201 = zext i32 %200 to i64
  %202 = getelementptr inbounds i8, ptr %95, i64 %201
  %203 = load i8, ptr %202, align 1, !tbaa !13
  %204 = zext i8 %203 to i32
  %205 = and i32 %204, 4
  %206 = icmp ne i32 %205, 0
  %207 = zext i1 %206 to i64
  %208 = select i1 %206, i32 255, i32 0
  %209 = trunc i32 %208 to i8
  %210 = load i32, ptr %12, align 4, !tbaa !5
  %211 = mul i32 8, %210
  %212 = add i32 %211, 5
  %213 = zext i32 %212 to i64
  %214 = getelementptr inbounds i8, ptr %99, i64 %213
  store i8 %209, ptr %214, align 1, !tbaa !13
  %215 = load i32, ptr %12, align 4, !tbaa !5
  %216 = zext i32 %215 to i64
  %217 = getelementptr inbounds i8, ptr %95, i64 %216
  %218 = load i8, ptr %217, align 1, !tbaa !13
  %219 = zext i8 %218 to i32
  %220 = and i32 %219, 2
  %221 = icmp ne i32 %220, 0
  %222 = zext i1 %221 to i64
  %223 = select i1 %221, i32 255, i32 0
  %224 = trunc i32 %223 to i8
  %225 = load i32, ptr %12, align 4, !tbaa !5
  %226 = mul i32 8, %225
  %227 = add i32 %226, 6
  %228 = zext i32 %227 to i64
  %229 = getelementptr inbounds i8, ptr %99, i64 %228
  store i8 %224, ptr %229, align 1, !tbaa !13
  %230 = load i32, ptr %12, align 4, !tbaa !5
  %231 = zext i32 %230 to i64
  %232 = getelementptr inbounds i8, ptr %95, i64 %231
  %233 = load i8, ptr %232, align 1, !tbaa !13
  %234 = zext i8 %233 to i32
  %235 = and i32 %234, 1
  %236 = icmp ne i32 %235, 0
  %237 = zext i1 %236 to i64
  %238 = select i1 %236, i32 255, i32 0
  %239 = trunc i32 %238 to i8
  %240 = load i32, ptr %12, align 4, !tbaa !5
  %241 = mul i32 8, %240
  %242 = add i32 %241, 7
  %243 = zext i32 %242 to i64
  %244 = getelementptr inbounds i8, ptr %99, i64 %243
  store i8 %239, ptr %244, align 1, !tbaa !13
  br label %245

245:                                              ; preds = %124
  %246 = load i32, ptr %12, align 4, !tbaa !5
  %247 = add i32 %246, 1
  store i32 %247, ptr %12, align 4, !tbaa !5
  br label %120, !llvm.loop !15

248:                                              ; preds = %120
  %249 = getelementptr inbounds i8, ptr %99, i64 0
  %250 = load i8, ptr %249, align 16, !tbaa !13
  %251 = zext i8 %250 to i32
  %252 = sub nsw i32 255, %251
  %253 = trunc i32 %252 to i8
  %254 = getelementptr inbounds i8, ptr %99, i64 0
  store i8 %253, ptr %254, align 16, !tbaa !13
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %255

255:                                              ; preds = %283, %248
  %256 = load i32, ptr %12, align 4, !tbaa !5
  %257 = load i32, ptr %13, align 4, !tbaa !5
  %258 = mul i32 8, %257
  %259 = icmp ult i32 %256, %258
  br i1 %259, label %260, label %286

260:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %261 = load i32, ptr %12, align 4, !tbaa !5
  %262 = zext i32 %261 to i64
  %263 = getelementptr inbounds i8, ptr %99, i64 %262
  %264 = load i8, ptr %263, align 1, !tbaa !13
  %265 = zext i8 %264 to i32
  %266 = call float (...) @randnf()
  %267 = fmul float 2.000000e+01, %266
  %268 = fptosi float %267 to i32
  %269 = add nsw i32 %265, %268
  store i32 %269, ptr %21, align 4, !tbaa !5
  %270 = load i32, ptr %21, align 4, !tbaa !5
  %271 = icmp sgt i32 %270, 255
  br i1 %271, label %272, label %273

272:                                              ; preds = %260
  store i32 255, ptr %21, align 4, !tbaa !5
  br label %273

273:                                              ; preds = %272, %260
  %274 = load i32, ptr %21, align 4, !tbaa !5
  %275 = icmp slt i32 %274, 0
  br i1 %275, label %276, label %277

276:                                              ; preds = %273
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %277

277:                                              ; preds = %276, %273
  %278 = load i32, ptr %21, align 4, !tbaa !5
  %279 = trunc i32 %278 to i8
  %280 = load i32, ptr %12, align 4, !tbaa !5
  %281 = zext i32 %280 to i64
  %282 = getelementptr inbounds i8, ptr %99, i64 %281
  store i8 %279, ptr %282, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %283

283:                                              ; preds = %277
  %284 = load i32, ptr %12, align 4, !tbaa !5
  %285 = add i32 %284, 1
  store i32 %285, ptr %12, align 4, !tbaa !5
  br label %255, !llvm.loop !16

286:                                              ; preds = %255
  %287 = load ptr, ptr %14, align 8, !tbaa !9
  %288 = call i32 @packetizer_decode_soft(ptr noundef %287, ptr noundef %99, ptr noundef %102)
  store i32 %288, ptr %20, align 4, !tbaa !5
  %289 = load ptr, ptr %14, align 8, !tbaa !9
  %290 = call i32 @packetizer_destroy(ptr noundef %289)
  %291 = load i32, ptr %6, align 4, !tbaa !5
  %292 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %291)
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %293

293:                                              ; preds = %304, %286
  %294 = load i32, ptr %12, align 4, !tbaa !5
  %295 = load i32, ptr %6, align 4, !tbaa !5
  %296 = icmp ult i32 %294, %295
  br i1 %296, label %297, label %307

297:                                              ; preds = %293
  %298 = load i32, ptr %12, align 4, !tbaa !5
  %299 = zext i32 %298 to i64
  %300 = getelementptr inbounds i8, ptr %92, i64 %299
  %301 = load i8, ptr %300, align 1, !tbaa !13
  %302 = zext i8 %301 to i32
  %303 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %302)
  br label %304

304:                                              ; preds = %297
  %305 = load i32, ptr %12, align 4, !tbaa !5
  %306 = add i32 %305, 1
  store i32 %306, ptr %12, align 4, !tbaa !5
  br label %293, !llvm.loop !17

307:                                              ; preds = %293
  %308 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %309 = load i32, ptr %13, align 4, !tbaa !5
  %310 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %309)
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %311

311:                                              ; preds = %322, %307
  %312 = load i32, ptr %12, align 4, !tbaa !5
  %313 = load i32, ptr %13, align 4, !tbaa !5
  %314 = icmp ult i32 %312, %313
  br i1 %314, label %315, label %325

315:                                              ; preds = %311
  %316 = load i32, ptr %12, align 4, !tbaa !5
  %317 = zext i32 %316 to i64
  %318 = getelementptr inbounds i8, ptr %95, i64 %317
  %319 = load i8, ptr %318, align 1, !tbaa !13
  %320 = zext i8 %319 to i32
  %321 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %320)
  br label %322

322:                                              ; preds = %315
  %323 = load i32, ptr %12, align 4, !tbaa !5
  %324 = add i32 %323, 1
  store i32 %324, ptr %12, align 4, !tbaa !5
  br label %311, !llvm.loop !18

325:                                              ; preds = %311
  %326 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %327

327:                                              ; preds = %411, %325
  %328 = load i32, ptr %12, align 4, !tbaa !5
  %329 = load i32, ptr %13, align 4, !tbaa !5
  %330 = icmp ult i32 %328, %329
  br i1 %330, label %331, label %414

331:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  store i8 0, ptr %22, align 1, !tbaa !13
  %332 = load i32, ptr %12, align 4, !tbaa !5
  %333 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %332)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %334

334:                                              ; preds = %394, %331
  %335 = load i32, ptr %23, align 4, !tbaa !5
  %336 = icmp ult i32 %335, 8
  br i1 %336, label %337, label %397

337:                                              ; preds = %334
  %338 = load i32, ptr %12, align 4, !tbaa !5
  %339 = mul i32 8, %338
  %340 = load i32, ptr %23, align 4, !tbaa !5
  %341 = add i32 %339, %340
  %342 = zext i32 %341 to i64
  %343 = getelementptr inbounds i8, ptr %99, i64 %342
  %344 = load i8, ptr %343, align 1, !tbaa !13
  %345 = zext i8 %344 to i32
  %346 = icmp sgt i32 %345, 127
  br i1 %346, label %347, label %352

347:                                              ; preds = %337
  %348 = load i32, ptr %23, align 4, !tbaa !5
  %349 = sub i32 8, %348
  %350 = sub i32 %349, 1
  %351 = shl i32 1, %350
  br label %353

352:                                              ; preds = %337
  br label %353

353:                                              ; preds = %352, %347
  %354 = phi i32 [ %351, %347 ], [ 0, %352 ]
  %355 = load i8, ptr %22, align 1, !tbaa !13
  %356 = zext i8 %355 to i32
  %357 = or i32 %356, %354
  %358 = trunc i32 %357 to i8
  store i8 %358, ptr %22, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %359 = load i32, ptr %12, align 4, !tbaa !5
  %360 = zext i32 %359 to i64
  %361 = getelementptr inbounds i8, ptr %95, i64 %360
  %362 = load i8, ptr %361, align 1, !tbaa !13
  %363 = zext i8 %362 to i32
  %364 = load i32, ptr %23, align 4, !tbaa !5
  %365 = sub i32 8, %364
  %366 = sub i32 %365, 1
  %367 = ashr i32 %363, %366
  %368 = and i32 %367, 1
  store i32 %368, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %369 = load i32, ptr %12, align 4, !tbaa !5
  %370 = mul i32 8, %369
  %371 = load i32, ptr %23, align 4, !tbaa !5
  %372 = add i32 %370, %371
  %373 = zext i32 %372 to i64
  %374 = getelementptr inbounds i8, ptr %99, i64 %373
  %375 = load i8, ptr %374, align 1, !tbaa !13
  %376 = zext i8 %375 to i32
  %377 = icmp sgt i32 %376, 127
  %378 = zext i1 %377 to i64
  %379 = select i1 %377, i32 1, i32 0
  store i32 %379, ptr %25, align 4, !tbaa !5
  %380 = load i32, ptr %12, align 4, !tbaa !5
  %381 = mul i32 8, %380
  %382 = load i32, ptr %23, align 4, !tbaa !5
  %383 = add i32 %381, %382
  %384 = zext i32 %383 to i64
  %385 = getelementptr inbounds i8, ptr %99, i64 %384
  %386 = load i8, ptr %385, align 1, !tbaa !13
  %387 = zext i8 %386 to i32
  %388 = load i32, ptr %24, align 4, !tbaa !5
  %389 = load i32, ptr %25, align 4, !tbaa !5
  %390 = icmp ne i32 %388, %389
  %391 = zext i1 %390 to i64
  %392 = select i1 %390, i32 42, i32 32
  %393 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %387, i32 noundef %392)
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %394

394:                                              ; preds = %353
  %395 = load i32, ptr %23, align 4, !tbaa !5
  %396 = add i32 %395, 1
  store i32 %396, ptr %23, align 4, !tbaa !5
  br label %334, !llvm.loop !19

397:                                              ; preds = %334
  %398 = load i8, ptr %22, align 1, !tbaa !13
  %399 = zext i8 %398 to i32
  %400 = load i32, ptr %12, align 4, !tbaa !5
  %401 = zext i32 %400 to i64
  %402 = getelementptr inbounds i8, ptr %95, i64 %401
  %403 = load i8, ptr %402, align 1, !tbaa !13
  %404 = zext i8 %403 to i32
  %405 = icmp eq i32 %399, %404
  %406 = zext i1 %405 to i64
  %407 = select i1 %405, i32 32, i32 42
  %408 = load i8, ptr %22, align 1, !tbaa !13
  %409 = zext i8 %408 to i32
  %410 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %407, i32 noundef %409)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %411

411:                                              ; preds = %397
  %412 = load i32, ptr %12, align 4, !tbaa !5
  %413 = add i32 %412, 1
  store i32 %413, ptr %12, align 4, !tbaa !5
  br label %327, !llvm.loop !20

414:                                              ; preds = %327
  %415 = load i32, ptr %6, align 4, !tbaa !5
  %416 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %415)
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %417

417:                                              ; preds = %441, %414
  %418 = load i32, ptr %12, align 4, !tbaa !5
  %419 = load i32, ptr %6, align 4, !tbaa !5
  %420 = icmp ult i32 %418, %419
  br i1 %420, label %421, label %444

421:                                              ; preds = %417
  %422 = load i32, ptr %12, align 4, !tbaa !5
  %423 = zext i32 %422 to i64
  %424 = getelementptr inbounds i8, ptr %102, i64 %423
  %425 = load i8, ptr %424, align 1, !tbaa !13
  %426 = zext i8 %425 to i32
  %427 = load i32, ptr %12, align 4, !tbaa !5
  %428 = zext i32 %427 to i64
  %429 = getelementptr inbounds i8, ptr %92, i64 %428
  %430 = load i8, ptr %429, align 1, !tbaa !13
  %431 = zext i8 %430 to i32
  %432 = icmp eq i32 %426, %431
  %433 = zext i1 %432 to i64
  %434 = select i1 %432, i32 32, i32 42
  %435 = load i32, ptr %12, align 4, !tbaa !5
  %436 = zext i32 %435 to i64
  %437 = getelementptr inbounds i8, ptr %102, i64 %436
  %438 = load i8, ptr %437, align 1, !tbaa !13
  %439 = zext i8 %438 to i32
  %440 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, i32 noundef %434, i32 noundef %439)
  br label %441

441:                                              ; preds = %421
  %442 = load i32, ptr %12, align 4, !tbaa !5
  %443 = add i32 %442, 1
  store i32 %443, ptr %12, align 4, !tbaa !5
  br label %417, !llvm.loop !21

444:                                              ; preds = %417
  %445 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %446 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %447

447:                                              ; preds = %480, %444
  %448 = load i32, ptr %12, align 4, !tbaa !5
  %449 = load i32, ptr %6, align 4, !tbaa !5
  %450 = icmp ult i32 %448, %449
  br i1 %450, label %451, label %483

451:                                              ; preds = %447
  %452 = load i32, ptr %12, align 4, !tbaa !5
  %453 = zext i32 %452 to i64
  %454 = getelementptr inbounds i8, ptr %92, i64 %453
  %455 = load i8, ptr %454, align 1, !tbaa !13
  %456 = zext i8 %455 to i32
  %457 = load i32, ptr %12, align 4, !tbaa !5
  %458 = zext i32 %457 to i64
  %459 = getelementptr inbounds i8, ptr %102, i64 %458
  %460 = load i8, ptr %459, align 1, !tbaa !13
  %461 = zext i8 %460 to i32
  %462 = icmp eq i32 %456, %461
  %463 = zext i1 %462 to i64
  %464 = select i1 %462, i32 0, i32 1
  %465 = load i32, ptr %26, align 4, !tbaa !5
  %466 = add i32 %465, %464
  store i32 %466, ptr %26, align 4, !tbaa !5
  %467 = load i32, ptr %12, align 4, !tbaa !5
  %468 = zext i32 %467 to i64
  %469 = getelementptr inbounds i8, ptr %92, i64 %468
  %470 = load i8, ptr %469, align 1, !tbaa !13
  %471 = zext i8 %470 to i32
  %472 = load i32, ptr %12, align 4, !tbaa !5
  %473 = zext i32 %472 to i64
  %474 = getelementptr inbounds i8, ptr %102, i64 %473
  %475 = load i8, ptr %474, align 1, !tbaa !13
  %476 = zext i8 %475 to i32
  %477 = call i32 @count_bit_errors(i32 noundef %471, i32 noundef %476)
  %478 = load i32, ptr %27, align 4, !tbaa !5
  %479 = add i32 %478, %477
  store i32 %479, ptr %27, align 4, !tbaa !5
  br label %480

480:                                              ; preds = %451
  %481 = load i32, ptr %12, align 4, !tbaa !5
  %482 = add i32 %481, 1
  store i32 %482, ptr %12, align 4, !tbaa !5
  br label %447, !llvm.loop !22

483:                                              ; preds = %447
  %484 = load i32, ptr %26, align 4, !tbaa !5
  %485 = load i32, ptr %6, align 4, !tbaa !5
  %486 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %484, i32 noundef %485)
  %487 = load i32, ptr %27, align 4, !tbaa !5
  %488 = load i32, ptr %6, align 4, !tbaa !5
  %489 = mul i32 %488, 8
  %490 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef %487, i32 noundef %489)
  %491 = load i32, ptr %20, align 4, !tbaa !5
  %492 = icmp ne i32 %491, 0
  br i1 %492, label %493, label %495

493:                                              ; preds = %483
  %494 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  br label %497

495:                                              ; preds = %483
  %496 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
  br label %497

497:                                              ; preds = %495, %493
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  %498 = load ptr, ptr %15, align 8
  call void @llvm.stackrestore.p0(ptr %498)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %499

499:                                              ; preds = %497, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %500 = load i32, ptr %3, align 4
  ret i32 %500
}

; 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

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

declare i32 @liquid_getopt_str2crc(ptr noundef) #1

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

declare i32 @liquid_getopt_str2fec(ptr noundef) #1

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

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

declare i32 @packetizer_print(ptr noundef) #1

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

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

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

declare float @randnf(...) #1

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

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

declare i32 @packetizer_destroy(ptr noundef) #1

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

; 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 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { 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}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !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.6 = external hidden unnamed_addr constant [11 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 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 = %28, %2
  %.0117.ph = phi i32 [ %30, %28 ], [ 1, %2 ]
  %.0115.ph = phi i32 [ %.0115.ph355, %28 ], [ 4, %2 ]
  %.0113.ph = phi i32 [ %.0113.ph359, %28 ], [ 6, %2 ]
  %.0110.ph = phi i32 [ %.0110, %28 ], [ 8, %2 ]
  br label %.outer354

.outer354:                                        ; preds = %.outer, %20
  %.0115.ph355 = phi i32 [ %.0115.ph, %.outer ], [ %22, %20 ]
  %.0113.ph356 = phi i32 [ %.0113.ph, %.outer ], [ %.0113.ph359, %20 ]
  %.0110.ph357 = phi i32 [ %.0110.ph, %.outer ], [ %.0110, %20 ]
  br label %.outer358

.outer358:                                        ; preds = %.outer354, %12
  %.0113.ph359 = phi i32 [ %.0113.ph356, %.outer354 ], [ %14, %12 ]
  %.0110.ph360 = phi i32 [ %.0110.ph357, %.outer354 ], [ %.0110, %12 ]
  br label %3

3:                                                ; preds = %.outer358, %6
  %.0110 = phi i32 [ %8, %6 ], [ %.0110.ph360, %.outer358 ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.6) #8
  switch i32 %4, label %36 [
    i32 -1, label %.lr.ph.preheader
    i32 104, label %5
    i32 117, label %5
    i32 110, label %6
    i32 118, label %12
    i32 99, label %20
    i32 107, label %28
  ]

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

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

10:                                               ; preds = %6
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  tail call void @usage()
  tail call void @exit(i32 noundef -1) #10
  unreachable

12:                                               ; preds = %3
  %13 = load ptr, ptr @optarg, align 8, !tbaa !5
  %14 = tail call i32 @liquid_getopt_str2crc(ptr noundef %13) #8
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %.outer358, !llvm.loop !9

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

20:                                               ; preds = %3
  %21 = load ptr, ptr @optarg, align 8, !tbaa !5
  %22 = tail call i32 @liquid_getopt_str2fec(ptr noundef %21) #8
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %.outer354, !llvm.loop !9

24:                                               ; preds = %20
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = load ptr, ptr @optarg, align 8, !tbaa !5
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.9, ptr noundef %26) #11
  tail call void @exit(i32 noundef 1) #10
  unreachable

28:                                               ; preds = %3
  %29 = load ptr, ptr @optarg, align 8, !tbaa !5
  %30 = tail call i32 @liquid_getopt_str2fec(ptr noundef %29) #8
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %.outer, !llvm.loop !9

32:                                               ; preds = %28
  %33 = load ptr, ptr @stderr, align 8, !tbaa !5
  %34 = load ptr, ptr @optarg, align 8, !tbaa !5
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.10, ptr noundef %34) #11
  tail call void @exit(i32 noundef 1) #10
  unreachable

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

.lr.ph.preheader:                                 ; preds = %3
  %37 = tail call i32 @packetizer_compute_enc_msg_len(i32 noundef %.0110, i32 noundef %.0113.ph359, i32 noundef %.0115.ph355, i32 noundef %.0117.ph) #8
  %38 = tail call ptr @packetizer_create(i32 noundef %.0110, i32 noundef %.0113.ph359, i32 noundef %.0115.ph355, i32 noundef %.0117.ph) #8
  %39 = tail call i32 @packetizer_print(ptr noundef %38) #8
  %40 = zext i32 %.0110 to i64
  %41 = tail call ptr @llvm.stacksave.p0()
  %42 = alloca i8, i64 %40, align 16
  %43 = zext i32 %37 to i64
  %44 = alloca i8, i64 %43, align 16
  %45 = shl i32 %37, 3
  %46 = zext i32 %45 to i64
  %47 = alloca i8, i64 %46, align 16
  %48 = alloca i8, i64 %40, align 16
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %49 = tail call i32 @rand() #8
  %50 = trunc i32 %49 to i8
  %51 = getelementptr inbounds i8, ptr %42, i64 %indvars.iv
  store i8 %50, ptr %51, align 1, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %40
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph
  %52 = call i32 @packetizer_encode(ptr noundef %38, ptr noundef nonnull %42, ptr noundef nonnull %44) #8
  %.not202 = icmp eq i32 %37, 0
  br i1 %.not202, label %._crit_edge176, label %.lr.ph171.preheader

.lr.ph171.preheader:                              ; preds = %._crit_edge
  %min.iters.check = icmp ult i32 %37, 144
  br i1 %min.iters.check, label %.lr.ph171.preheader353, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.lr.ph171.preheader
  %53 = add nsw i64 %43, -1
  %54 = icmp ugt i64 %53, 4294967295
  %55 = insertelement <4 x ptr> poison, ptr %47, i64 0
  %56 = shufflevector <4 x ptr> %55, <4 x ptr> poison, <4 x i32> zeroinitializer
  %57 = getelementptr i8, <4 x ptr> %56, <4 x i64> <i64 6, i64 7, i64 5, i64 4>
  %mul.result = shl nsw i64 %53, 3
  %scevgep = getelementptr i8, ptr %47, i64 6
  %58 = getelementptr i8, ptr %scevgep, i64 %mul.result
  %mul.result327 = shl nsw i64 %53, 3
  %scevgep325 = getelementptr i8, ptr %47, i64 7
  %59 = getelementptr i8, ptr %scevgep325, i64 %mul.result327
  %mul.result331 = shl nsw i64 %53, 3
  %scevgep329 = getelementptr i8, ptr %47, i64 5
  %60 = getelementptr i8, ptr %scevgep329, i64 %mul.result331
  %mul.result335 = shl nsw i64 %53, 3
  %scevgep333 = getelementptr i8, ptr %47, i64 4
  %61 = getelementptr i8, ptr %scevgep333, i64 %mul.result335
  %62 = insertelement <2 x ptr> poison, ptr %47, i64 0
  %63 = shufflevector <2 x ptr> %62, <2 x ptr> poison, <2 x i32> zeroinitializer
  %64 = getelementptr i8, <2 x ptr> %63, <2 x i64> <i64 3, i64 2>
  %mul.result339 = shl nsw i64 %53, 3
  %scevgep337 = getelementptr i8, ptr %47, i64 3
  %65 = getelementptr i8, ptr %scevgep337, i64 %mul.result339
  %mul.result343 = shl nsw i64 %53, 3
  %scevgep341 = getelementptr i8, ptr %47, i64 2
  %66 = getelementptr i8, ptr %scevgep341, i64 %mul.result343
  %scevgep345 = getelementptr i8, ptr %47, i64 1
  %mul.result347 = shl nsw i64 %53, 3
  %67 = getelementptr i8, ptr %scevgep345, i64 %mul.result347
  %mul.result350 = shl nsw i64 %53, 3
  %68 = getelementptr i8, ptr %47, i64 %mul.result350
  %69 = insertelement <8 x ptr> poison, ptr %58, i64 0
  %70 = insertelement <8 x ptr> %69, ptr %59, i64 1
  %71 = insertelement <8 x ptr> %70, ptr %60, i64 2
  %72 = insertelement <8 x ptr> %71, ptr %61, i64 3
  %73 = insertelement <8 x ptr> %72, ptr %65, i64 4
  %74 = insertelement <8 x ptr> %73, ptr %66, i64 5
  %75 = insertelement <8 x ptr> %74, ptr %67, i64 6
  %76 = insertelement <8 x ptr> %75, ptr %68, i64 7
  %77 = shufflevector <4 x ptr> %57, <4 x ptr> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison>
  %78 = insertelement <8 x ptr> %77, ptr %47, i64 7
  %79 = shufflevector <2 x ptr> %64, <2 x ptr> poison, <8 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
  %80 = shufflevector <8 x ptr> %78, <8 x ptr> %79, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 8, i32 9, i32 poison, i32 7>
  %81 = insertelement <8 x ptr> %80, ptr %scevgep345, i64 6
  %82 = icmp ult <8 x ptr> %76, %81
  %83 = bitcast <8 x i1> %82 to i8
  %84 = icmp ne i8 %83, 0
  %op.rdx = or i1 %84, %54
  br i1 %op.rdx, label %.lr.ph171.preheader353, label %vector.ph

vector.ph:                                        ; preds = %vector.scevcheck
  %n.vec = and i64 %43, 4294967280
  %invariant.gep = getelementptr i8, ptr %47, i64 -7
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %85 = getelementptr inbounds i8, ptr %44, i64 %index
  %wide.load = load <16 x i8>, ptr %85, align 16, !tbaa !11
  %86 = ashr <16 x i8> %wide.load, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
  %87 = shl i64 %index, 3
  %88 = shl <16 x i8> %wide.load, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
  %89 = ashr <16 x i8> %88, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
  %90 = shl <16 x i8> %wide.load, <i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2>
  %91 = ashr <16 x i8> %90, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
  %92 = shl <16 x i8> %wide.load, <i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3>
  %93 = ashr <16 x i8> %92, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
  %94 = shl <16 x i8> %wide.load, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
  %95 = ashr <16 x i8> %94, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
  %96 = shl <16 x i8> %wide.load, <i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5>
  %97 = ashr <16 x i8> %96, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
  %98 = shl <16 x i8> %wide.load, <i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6>
  %99 = ashr <16 x i8> %98, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
  %100 = and <16 x i8> %wide.load, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
  %101 = sub nsw <16 x i8> zeroinitializer, %100
  %102 = and i64 %87, 4294967168
  %103 = or disjoint i64 %102, 7
  %gep = getelementptr i8, ptr %invariant.gep, i64 %103
  %104 = shufflevector <16 x i8> %86, <16 x i8> %89, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
  %105 = shufflevector <16 x i8> %91, <16 x i8> %93, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
  %106 = shufflevector <16 x i8> %95, <16 x i8> %97, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
  %107 = shufflevector <16 x i8> %99, <16 x i8> %101, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
  %108 = shufflevector <32 x i8> %104, <32 x i8> %105, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50, i32 51, i32 52, i32 53, i32 54, i32 55, i32 56, i32 57, i32 58, i32 59, i32 60, i32 61, i32 62, i32 63>
  %109 = shufflevector <32 x i8> %106, <32 x i8> %107, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50, i32 51, i32 52, i32 53, i32 54, i32 55, i32 56, i32 57, i32 58, i32 59, i32 60, i32 61, i32 62, i32 63>
  %interleaved.vec = shufflevector <64 x i8> %108, <64 x i8> %109, <128 x i32> <i32 0, i32 16, i32 32, i32 48, i32 64, i32 80, i32 96, i32 112, i32 1, i32 17, i32 33, i32 49, i32 65, i32 81, i32 97, i32 113, i32 2, i32 18, i32 34, i32 50, i32 66, i32 82, i32 98, i32 114, i32 3, i32 19, i32 35, i32 51, i32 67, i32 83, i32 99, i32 115, i32 4, i32 20, i32 36, i32 52, i32 68, i32 84, i32 100, i32 116, i32 5, i32 21, i32 37, i32 53, i32 69, i32 85, i32 101, i32 117, i32 6, i32 22, i32 38, i32 54, i32 70, i32 86, i32 102, i32 118, i32 7, i32 23, i32 39, i32 55, i32 71, i32 87, i32 103, i32 119, i32 8, i32 24, i32 40, i32 56, i32 72, i32 88, i32 104, i32 120, i32 9, i32 25, i32 41, i32 57, i32 73, i32 89, i32 105, i32 121, i32 10, i32 26, i32 42, i32 58, i32 74, i32 90, i32 106, i32 122, i32 11, i32 27, i32 43, i32 59, i32 75, i32 91, i32 107, i32 123, i32 12, i32 28, i32 44, i32 60, i32 76, i32 92, i32 108, i32 124, i32 13, i32 29, i32 45, i32 61, i32 77, i32 93, i32 109, i32 125, i32 14, i32 30, i32 46, i32 62, i32 78, i32 94, i32 110, i32 126, i32 15, i32 31, i32 47, i32 63, i32 79, i32 95, i32 111, i32 127>
  store <128 x i8> %interleaved.vec, ptr %gep, align 16, !tbaa !11
  %index.next = add nuw i64 %index, 16
  %110 = icmp eq i64 %index.next, %n.vec
  br i1 %110, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %43
  br i1 %cmp.n, label %._crit_edge172, label %.lr.ph171.preheader353

.lr.ph171.preheader353:                           ; preds = %middle.block, %vector.scevcheck, %.lr.ph171.preheader
  %indvars.iv236.ph = phi i64 [ 0, %vector.scevcheck ], [ 0, %.lr.ph171.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph171

.lr.ph171:                                        ; preds = %.lr.ph171.preheader353, %.lr.ph171
  %indvars.iv236 = phi i64 [ %indvars.iv.next237, %.lr.ph171 ], [ %indvars.iv236.ph, %.lr.ph171.preheader353 ]
  %111 = getelementptr inbounds i8, ptr %44, i64 %indvars.iv236
  %112 = load i8, ptr %111, align 1, !tbaa !11
  %.lobit130 = ashr i8 %112, 7
  %113 = trunc nuw i64 %indvars.iv236 to i32
  %114 = shl i32 %113, 3
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds i8, ptr %47, i64 %115
  store i8 %.lobit130, ptr %116, align 8, !tbaa !11
  %117 = shl i8 %112, 1
  %sext = ashr i8 %117, 7
  %118 = or disjoint i32 %114, 1
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds i8, ptr %47, i64 %119
  store i8 %sext, ptr %120, align 1, !tbaa !11
  %121 = shl i8 %112, 2
  %sext133 = ashr i8 %121, 7
  %122 = or disjoint i32 %114, 2
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds i8, ptr %47, i64 %123
  store i8 %sext133, ptr %124, align 2, !tbaa !11
  %125 = shl i8 %112, 3
  %sext135 = ashr i8 %125, 7
  %126 = or disjoint i32 %114, 3
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds i8, ptr %47, i64 %127
  store i8 %sext135, ptr %128, align 1, !tbaa !11
  %129 = shl i8 %112, 4
  %sext137 = ashr i8 %129, 7
  %130 = or disjoint i32 %114, 4
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds i8, ptr %47, i64 %131
  store i8 %sext137, ptr %132, align 4, !tbaa !11
  %133 = shl i8 %112, 5
  %sext139 = ashr i8 %133, 7
  %134 = or disjoint i32 %114, 5
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds i8, ptr %47, i64 %135
  store i8 %sext139, ptr %136, align 1, !tbaa !11
  %137 = shl i8 %112, 6
  %sext141 = ashr i8 %137, 7
  %138 = or disjoint i32 %114, 6
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds i8, ptr %47, i64 %139
  store i8 %sext141, ptr %140, align 2, !tbaa !11
  %141 = and i8 %112, 1
  %sext143 = sub nsw i8 0, %141
  %142 = or disjoint i32 %114, 7
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds i8, ptr %47, i64 %143
  store i8 %sext143, ptr %144, align 1, !tbaa !11
  %indvars.iv.next237 = add nuw nsw i64 %indvars.iv236, 1
  %exitcond240.not = icmp eq i64 %indvars.iv.next237, %43
  br i1 %exitcond240.not, label %._crit_edge172, label %.lr.ph171, !llvm.loop !16

._crit_edge172:                                   ; preds = %.lr.ph171, %middle.block
  %.pre = load i8, ptr %47, align 16, !tbaa !11
  %145 = xor i8 %.pre, -1
  store i8 %145, ptr %47, align 16, !tbaa !11
  %.not203 = icmp eq i32 %45, 0
  br i1 %.not203, label %._crit_edge176, label %.lr.ph175

.lr.ph175:                                        ; preds = %._crit_edge172, %.lr.ph175
  %indvars.iv241 = phi i64 [ %indvars.iv.next242, %.lr.ph175 ], [ 0, %._crit_edge172 ]
  %146 = getelementptr inbounds i8, ptr %47, i64 %indvars.iv241
  %147 = load i8, ptr %146, align 1, !tbaa !11
  %148 = zext i8 %147 to i32
  %149 = call float (...) @randnf() #8
  %150 = fmul float %149, 2.000000e+01
  %151 = fptosi float %150 to i32
  %152 = add nsw i32 %151, %148
  %spec.store.select = call i32 @llvm.smin.i32(i32 %152, i32 255)
  %spec.store.select1 = call i32 @llvm.smax.i32(i32 %spec.store.select, i32 0)
  %153 = trunc nuw i32 %spec.store.select1 to i8
  store i8 %153, ptr %146, align 1, !tbaa !11
  %indvars.iv.next242 = add nuw nsw i64 %indvars.iv241, 1
  %exitcond245.not = icmp eq i64 %indvars.iv.next242, %46
  br i1 %exitcond245.not, label %._crit_edge176, label %.lr.ph175, !llvm.loop !17

._crit_edge176:                                   ; preds = %.lr.ph175, %._crit_edge, %._crit_edge172
  %154 = call i32 @packetizer_decode_soft(ptr noundef %38, ptr noundef nonnull %47, ptr noundef nonnull %48) #8
  %155 = call i32 @packetizer_destroy(ptr noundef %38) #8
  %156 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %.0110)
  br label %.lr.ph179

.lr.ph179:                                        ; preds = %._crit_edge176, %.lr.ph179
  %indvars.iv246 = phi i64 [ %indvars.iv.next247, %.lr.ph179 ], [ 0, %._crit_edge176 ]
  %157 = getelementptr inbounds i8, ptr %42, i64 %indvars.iv246
  %158 = load i8, ptr %157, align 1, !tbaa !11
  %159 = zext i8 %158 to i32
  %160 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %159)
  %indvars.iv.next247 = add nuw nsw i64 %indvars.iv246, 1
  %exitcond250.not = icmp eq i64 %indvars.iv.next247, %40
  br i1 %exitcond250.not, label %._crit_edge180, label %.lr.ph179, !llvm.loop !18

._crit_edge180:                                   ; preds = %.lr.ph179
  %161 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %162 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %37)
  br i1 %.not202, label %._crit_edge184.thread, label %.lr.ph183

._crit_edge184.thread:                            ; preds = %._crit_edge180
  %163 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  br label %._crit_edge190

.lr.ph183:                                        ; preds = %._crit_edge180, %.lr.ph183
  %indvars.iv251 = phi i64 [ %indvars.iv.next252, %.lr.ph183 ], [ 0, %._crit_edge180 ]
  %164 = getelementptr inbounds i8, ptr %44, i64 %indvars.iv251
  %165 = load i8, ptr %164, align 1, !tbaa !11
  %166 = zext i8 %165 to i32
  %167 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %166)
  %indvars.iv.next252 = add nuw nsw i64 %indvars.iv251, 1
  %exitcond255.not = icmp eq i64 %indvars.iv.next252, %43
  br i1 %exitcond255.not, label %._crit_edge184, label %.lr.ph183, !llvm.loop !19

._crit_edge184:                                   ; preds = %.lr.ph183
  %168 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  br i1 %.not202, label %._crit_edge190, label %.lr.ph189

.lr.ph189:                                        ; preds = %._crit_edge184, %.lr.ph189
  %indvars.iv259 = phi i64 [ %indvars.iv.next260, %.lr.ph189 ], [ 0, %._crit_edge184 ]
  %169 = trunc nuw i64 %indvars.iv259 to i32
  %170 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef %169)
  %171 = shl i64 %indvars.iv259, 3
  %172 = getelementptr inbounds i8, ptr %44, i64 %indvars.iv259
  %173 = and i64 %171, 4294967288
  %174 = getelementptr inbounds i8, ptr %47, i64 %173
  %175 = load i8, ptr %174, align 8, !tbaa !11
  %176 = zext i8 %175 to i32
  %177 = and i8 %175, -128
  %178 = load i8, ptr %172, align 1, !tbaa !11
  %.not128.unshifted = xor i8 %178, %175
  %.not128 = icmp sgt i8 %.not128.unshifted, -1
  %179 = select i1 %.not128, i32 32, i32 42
  %180 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %176, i32 noundef %179)
  %181 = or disjoint i64 %173, 1
  %182 = getelementptr inbounds i8, ptr %47, i64 %181
  %183 = load i8, ptr %182, align 1, !tbaa !11
  %184 = zext i8 %183 to i32
  %185 = lshr i8 %183, 1
  %186 = and i8 %185, 64
  %187 = or disjoint i8 %186, %177
  %188 = load i8, ptr %172, align 1, !tbaa !11
  %189 = lshr i8 %188, 6
  %190 = and i8 %189, 1
  %.lobit.1 = lshr i8 %183, 7
  %.not128.1 = icmp eq i8 %190, %.lobit.1
  %191 = select i1 %.not128.1, i32 32, i32 42
  %192 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %184, i32 noundef %191)
  %193 = or disjoint i64 %173, 2
  %194 = getelementptr inbounds i8, ptr %47, i64 %193
  %195 = load i8, ptr %194, align 2, !tbaa !11
  %196 = zext i8 %195 to i32
  %197 = lshr i8 %195, 2
  %198 = and i8 %197, 32
  %199 = or disjoint i8 %198, %187
  %200 = load i8, ptr %172, align 1, !tbaa !11
  %201 = lshr i8 %200, 5
  %202 = and i8 %201, 1
  %.lobit.2 = lshr i8 %195, 7
  %.not128.2 = icmp eq i8 %202, %.lobit.2
  %203 = select i1 %.not128.2, i32 32, i32 42
  %204 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %196, i32 noundef %203)
  %205 = or disjoint i64 %173, 3
  %206 = getelementptr inbounds i8, ptr %47, i64 %205
  %207 = load i8, ptr %206, align 1, !tbaa !11
  %208 = zext i8 %207 to i32
  %209 = lshr i8 %207, 3
  %210 = and i8 %209, 16
  %211 = or disjoint i8 %210, %199
  %212 = load i8, ptr %172, align 1, !tbaa !11
  %213 = lshr i8 %212, 4
  %214 = and i8 %213, 1
  %.lobit.3 = lshr i8 %207, 7
  %.not128.3 = icmp eq i8 %214, %.lobit.3
  %215 = select i1 %.not128.3, i32 32, i32 42
  %216 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %208, i32 noundef %215)
  %217 = or disjoint i64 %173, 4
  %218 = getelementptr inbounds i8, ptr %47, i64 %217
  %219 = load i8, ptr %218, align 4, !tbaa !11
  %220 = zext i8 %219 to i32
  %221 = lshr i8 %219, 4
  %222 = and i8 %221, 8
  %223 = or disjoint i8 %222, %211
  %224 = load i8, ptr %172, align 1, !tbaa !11
  %225 = lshr i8 %224, 3
  %226 = and i8 %225, 1
  %.lobit.4 = lshr i8 %219, 7
  %.not128.4 = icmp eq i8 %226, %.lobit.4
  %227 = select i1 %.not128.4, i32 32, i32 42
  %228 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %220, i32 noundef %227)
  %229 = or disjoint i64 %173, 5
  %230 = getelementptr inbounds i8, ptr %47, i64 %229
  %231 = load i8, ptr %230, align 1, !tbaa !11
  %232 = zext i8 %231 to i32
  %233 = lshr i8 %231, 5
  %234 = and i8 %233, 4
  %235 = or disjoint i8 %234, %223
  %236 = load i8, ptr %172, align 1, !tbaa !11
  %237 = lshr i8 %236, 2
  %238 = and i8 %237, 1
  %.lobit.5 = lshr i8 %231, 7
  %.not128.5 = icmp eq i8 %238, %.lobit.5
  %239 = select i1 %.not128.5, i32 32, i32 42
  %240 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %232, i32 noundef %239)
  %241 = or disjoint i64 %173, 6
  %242 = getelementptr inbounds i8, ptr %47, i64 %241
  %243 = load i8, ptr %242, align 2, !tbaa !11
  %244 = zext i8 %243 to i32
  %245 = lshr i8 %243, 6
  %246 = and i8 %245, 2
  %247 = or i8 %246, %235
  %248 = load i8, ptr %172, align 1, !tbaa !11
  %249 = lshr i8 %248, 1
  %250 = and i8 %249, 1
  %.lobit.6 = lshr i8 %243, 7
  %.not128.6 = icmp eq i8 %250, %.lobit.6
  %251 = select i1 %.not128.6, i32 32, i32 42
  %252 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %244, i32 noundef %251)
  %253 = or disjoint i64 %173, 7
  %254 = getelementptr inbounds i8, ptr %47, i64 %253
  %255 = load i8, ptr %254, align 1, !tbaa !11
  %256 = zext i8 %255 to i32
  %.lobit = lshr i8 %255, 7
  %257 = or i8 %.lobit, %247
  %258 = load i8, ptr %172, align 1, !tbaa !11
  %259 = and i8 %258, 1
  %.lobit.7 = lshr i8 %255, 7
  %.not128.7 = icmp eq i8 %259, %.lobit.7
  %260 = select i1 %.not128.7, i32 32, i32 42
  %261 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %256, i32 noundef %260)
  %262 = zext i8 %257 to i32
  %263 = load i8, ptr %172, align 1, !tbaa !11
  %264 = icmp eq i8 %257, %263
  %265 = select i1 %264, i32 32, i32 42
  %266 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %265, i32 noundef %262)
  %indvars.iv.next260 = add nuw nsw i64 %indvars.iv259, 1
  %exitcond263.not = icmp eq i64 %indvars.iv.next260, %43
  br i1 %exitcond263.not, label %._crit_edge190, label %.lr.ph189, !llvm.loop !20

._crit_edge190:                                   ; preds = %.lr.ph189, %._crit_edge184.thread, %._crit_edge184
  %267 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, i32 noundef %.0110)
  br label %.lr.ph193

.lr.ph193:                                        ; preds = %._crit_edge190, %.lr.ph193
  %indvars.iv264 = phi i64 [ %indvars.iv.next265, %.lr.ph193 ], [ 0, %._crit_edge190 ]
  %268 = getelementptr inbounds i8, ptr %48, i64 %indvars.iv264
  %269 = load i8, ptr %268, align 1, !tbaa !11
  %270 = zext i8 %269 to i32
  %271 = getelementptr inbounds i8, ptr %42, i64 %indvars.iv264
  %272 = load i8, ptr %271, align 1, !tbaa !11
  %273 = icmp eq i8 %269, %272
  %274 = select i1 %273, i32 32, i32 42
  %275 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, i32 noundef %274, i32 noundef %270)
  %indvars.iv.next265 = add nuw nsw i64 %indvars.iv264, 1
  %exitcond268.not = icmp eq i64 %indvars.iv.next265, %40
  br i1 %exitcond268.not, label %._crit_edge194, label %.lr.ph193, !llvm.loop !21

._crit_edge194:                                   ; preds = %.lr.ph193
  %276 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %277 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  br label %.lr.ph199

.lr.ph199:                                        ; preds = %._crit_edge194, %.lr.ph199
  %indvars.iv269 = phi i64 [ %indvars.iv.next270, %.lr.ph199 ], [ 0, %._crit_edge194 ]
  %.0197 = phi i32 [ %288, %.lr.ph199 ], [ 0, %._crit_edge194 ]
  %.0108196 = phi i32 [ %286, %.lr.ph199 ], [ 0, %._crit_edge194 ]
  %278 = getelementptr inbounds i8, ptr %42, i64 %indvars.iv269
  %279 = load i8, ptr %278, align 1, !tbaa !11
  %280 = zext i8 %279 to i32
  %281 = getelementptr inbounds i8, ptr %48, i64 %indvars.iv269
  %282 = load i8, ptr %281, align 1, !tbaa !11
  %283 = zext i8 %282 to i32
  %284 = icmp ne i8 %279, %282
  %285 = zext i1 %284 to i32
  %286 = add i32 %.0108196, %285
  %287 = call i32 @count_bit_errors(i32 noundef %280, i32 noundef %283) #8
  %288 = add i32 %287, %.0197
  %indvars.iv.next270 = add nuw nsw i64 %indvars.iv269, 1
  %exitcond273.not = icmp eq i64 %indvars.iv.next270, %40
  br i1 %exitcond273.not, label %._crit_edge200, label %.lr.ph199, !llvm.loop !22

._crit_edge200:                                   ; preds = %.lr.ph199
  %289 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %286, i32 noundef %.0110)
  %290 = shl i32 %.0110, 3
  %291 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, i32 noundef %288, i32 noundef %290)
  %.not127 = icmp eq i32 %154, 0
  %.str.23..str.22 = select i1 %.not127, ptr @.str.23, ptr @.str.22
  %292 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.23..str.22)
  call void @llvm.stackrestore.p0(ptr %41)
  br label %293

293:                                              ; preds = %._crit_edge200, %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

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

declare i32 @liquid_getopt_str2crc(ptr noundef) local_unnamed_addr #5

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

declare i32 @liquid_getopt_str2fec(ptr noundef) local_unnamed_addr #5

declare i32 @packetizer_compute_enc_msg_len(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare ptr @packetizer_create(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare i32 @packetizer_print(ptr noundef) local_unnamed_addr #5

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

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

declare i32 @packetizer_encode(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

declare float @randnf(...) local_unnamed_addr #5

declare i32 @packetizer_decode_soft(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

declare i32 @packetizer_destroy(ptr noundef) local_unnamed_addr #5

declare i32 @count_bit_errors(i32 noundef, i32 noundef) local_unnamed_addr #5

; 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.smin.i32(i32, i32) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, 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 = { 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 #5 = { "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 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { noreturn nounwind }
attributes #11 = { cold 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, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !10, !14}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}


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