; LLVM IR from jgaeddert/liquid-dsp :: examples (qpacketmodem_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"

@__const.main.filename = external hidden unnamed_addr constant [23 x i8], align 16
@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@optarg = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [7 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 float, align 4
  %12 = alloca [23 x i8], align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 40, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 6, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 7, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 1, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 400, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store float 6.000000e+00, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 23, ptr %12) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.main.filename, i64 23, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  br label %27

27:                                               ; preds = %56, %2
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = load ptr, ptr %5, align 8, !tbaa !9
  %30 = call i32 @getopt(i32 noundef %28, ptr noundef %29, ptr noundef @.str.8) #8
  store i32 %30, ptr %13, align 4, !tbaa !5
  %31 = icmp ne i32 %30, -1
  br i1 %31, label %32, label %57

32:                                               ; preds = %27
  %33 = load i32, ptr %13, align 4, !tbaa !5
  switch i32 %33, label %55 [
    i32 104, label %34
    i32 110, label %35
    i32 109, label %39
    i32 118, label %42
    i32 99, label %45
    i32 107, label %48
    i32 115, label %51
  ]

34:                                               ; preds = %32
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %231

35:                                               ; preds = %32
  %36 = load ptr, ptr @optarg, align 8, !tbaa !9
  %37 = call i64 @atol(ptr noundef %36) #9
  %38 = trunc i64 %37 to i32
  store i32 %38, ptr %10, align 4, !tbaa !5
  br label %56

39:                                               ; preds = %32
  %40 = load ptr, ptr @optarg, align 8, !tbaa !9
  %41 = call i32 @liquid_getopt_str2mod(ptr noundef %40)
  store i32 %41, ptr %6, align 4, !tbaa !5
  br label %56

42:                                               ; preds = %32
  %43 = load ptr, ptr @optarg, align 8, !tbaa !9
  %44 = call i32 @liquid_getopt_str2crc(ptr noundef %43)
  store i32 %44, ptr %7, align 4, !tbaa !5
  br label %56

45:                                               ; preds = %32
  %46 = load ptr, ptr @optarg, align 8, !tbaa !9
  %47 = call i32 @liquid_getopt_str2fec(ptr noundef %46)
  store i32 %47, ptr %8, align 4, !tbaa !5
  br label %56

48:                                               ; preds = %32
  %49 = load ptr, ptr @optarg, align 8, !tbaa !9
  %50 = call i32 @liquid_getopt_str2fec(ptr noundef %49)
  store i32 %50, ptr %9, align 4, !tbaa !5
  br label %56

51:                                               ; preds = %32
  %52 = load ptr, ptr @optarg, align 8, !tbaa !9
  %53 = call double @atof(ptr noundef %52) #9
  %54 = fptrunc double %53 to float
  store float %54, ptr %11, align 4, !tbaa !11
  br label %56

55:                                               ; preds = %32
  call void @exit(i32 noundef -1) #10
  unreachable

56:                                               ; preds = %51, %48, %45, %42, %39, %35
  br label %27, !llvm.loop !13

57:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %58 = load float, ptr %11, align 4, !tbaa !11
  %59 = fneg float %58
  %60 = fdiv float %59, 2.000000e+01
  %61 = call float @powf(float noundef 1.000000e+01, float noundef %60) #8
  store float %61, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %62 = call ptr (...) @qpacketmodem_create()
  store ptr %62, ptr %17, align 8, !tbaa !9
  %63 = load ptr, ptr %17, align 8, !tbaa !9
  %64 = load i32, ptr %10, align 4, !tbaa !5
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = load i32, ptr %9, align 4, !tbaa !5
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = call i32 @qpacketmodem_configure(ptr noundef %63, i32 noundef %64, i32 noundef %65, i32 noundef %66, i32 noundef %67, i32 noundef %68)
  %70 = load ptr, ptr %17, align 8, !tbaa !9
  %71 = call i32 @qpacketmodem_print(ptr noundef %70)
  %72 = load i32, ptr %10, align 4, !tbaa !5
  %73 = zext i32 %72 to i64
  %74 = call ptr @llvm.stacksave.p0()
  store ptr %74, ptr %18, align 8
  %75 = alloca i8, i64 %73, align 16
  store i64 %73, ptr %19, align 8
  %76 = load i32, ptr %10, align 4, !tbaa !5
  %77 = zext i32 %76 to i64
  %78 = alloca i8, i64 %77, align 16
  store i64 %77, ptr %20, align 8
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %93, %57
  %80 = load i32, ptr %15, align 4, !tbaa !5
  %81 = load i32, ptr %10, align 4, !tbaa !5
  %82 = icmp ult i32 %80, %81
  br i1 %82, label %83, label %96

83:                                               ; preds = %79
  %84 = call i32 @rand() #8
  %85 = and i32 %84, 255
  %86 = trunc i32 %85 to i8
  %87 = load i32, ptr %15, align 4, !tbaa !5
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds i8, ptr %75, i64 %88
  store i8 %86, ptr %89, align 1, !tbaa !15
  %90 = load i32, ptr %15, align 4, !tbaa !5
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds i8, ptr %78, i64 %91
  store i8 0, ptr %92, align 1, !tbaa !15
  br label %93

93:                                               ; preds = %83
  %94 = load i32, ptr %15, align 4, !tbaa !5
  %95 = add i32 %94, 1
  store i32 %95, ptr %15, align 4, !tbaa !5
  br label %79, !llvm.loop !16

96:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %97 = load ptr, ptr %17, align 8, !tbaa !9
  %98 = call i32 @qpacketmodem_get_frame_len(ptr noundef %97)
  store i32 %98, ptr %21, align 4, !tbaa !5
  %99 = load i32, ptr %21, align 4, !tbaa !5
  %100 = zext i32 %99 to i64
  %101 = alloca { float, float }, i64 %100, align 16
  store i64 %100, ptr %22, align 8
  %102 = load i32, ptr %21, align 4, !tbaa !5
  %103 = zext i32 %102 to i64
  %104 = alloca { float, float }, i64 %103, align 16
  store i64 %103, ptr %23, align 8
  %105 = load ptr, ptr %17, align 8, !tbaa !9
  %106 = call i32 @qpacketmodem_encode(ptr noundef %105, ptr noundef %75, ptr noundef %101)
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %142, %96
  %108 = load i32, ptr %15, align 4, !tbaa !5
  %109 = load i32, ptr %21, align 4, !tbaa !5
  %110 = icmp ult i32 %108, %109
  br i1 %110, label %111, label %145

111:                                              ; preds = %107
  %112 = load i32, ptr %15, align 4, !tbaa !5
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds { float, float }, ptr %101, i64 %113
  %115 = getelementptr inbounds { float, float }, ptr %114, i32 0, i32 0
  %116 = load float, ptr %115, align 8
  %117 = getelementptr inbounds { float, float }, ptr %114, i32 0, i32 1
  %118 = load float, ptr %117, align 4
  %119 = fpext float %116 to double
  %120 = fpext float %118 to double
  %121 = load float, ptr %16, align 4, !tbaa !11
  %122 = call float (...) @randnf()
  %123 = call float (...) @randnf()
  %124 = fmul float 0.000000e+00, %123
  %125 = fmul float 1.000000e+00, %123
  %126 = fadd float %122, %124
  %127 = fmul float %121, %126
  %128 = fmul float %121, %125
  %129 = fpext float %127 to double
  %130 = fpext float %128 to double
  %131 = fmul double %129, 0x3FE6A09E667F3BCD
  %132 = fmul double %130, 0x3FE6A09E667F3BCD
  %133 = fadd double %119, %131
  %134 = fadd double %120, %132
  %135 = fptrunc double %133 to float
  %136 = fptrunc double %134 to float
  %137 = load i32, ptr %15, align 4, !tbaa !5
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds { float, float }, ptr %104, i64 %138
  %140 = getelementptr inbounds { float, float }, ptr %139, i32 0, i32 0
  %141 = getelementptr inbounds { float, float }, ptr %139, i32 0, i32 1
  store float %135, ptr %140, align 8
  store float %136, ptr %141, align 4
  br label %142

142:                                              ; preds = %111
  %143 = load i32, ptr %15, align 4, !tbaa !5
  %144 = add i32 %143, 1
  store i32 %144, ptr %15, align 4, !tbaa !5
  br label %107, !llvm.loop !17

145:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %146 = load ptr, ptr %17, align 8, !tbaa !9
  %147 = call i32 @qpacketmodem_decode(ptr noundef %146, ptr noundef %104, ptr noundef %78)
  store i32 %147, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %148 = load i32, ptr %10, align 4, !tbaa !5
  %149 = call i32 @count_bit_errors_array(ptr noundef %75, ptr noundef %78, i32 noundef %148)
  store i32 %149, ptr %25, align 4, !tbaa !5
  %150 = load i32, ptr %24, align 4, !tbaa !5
  %151 = icmp ne i32 %150, 0
  %152 = zext i1 %151 to i64
  %153 = select i1 %151, ptr @.str.10, ptr @.str.11
  %154 = load i32, ptr %25, align 4, !tbaa !5
  %155 = load i32, ptr %10, align 4, !tbaa !5
  %156 = mul i32 8, %155
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %153, i32 noundef %154, i32 noundef %156)
  %158 = load ptr, ptr %17, align 8, !tbaa !9
  %159 = call i32 @qpacketmodem_destroy(ptr noundef %158)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %160 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 0
  %161 = call noalias ptr @fopen(ptr noundef %160, ptr noundef @.str.12)
  store ptr %161, ptr %26, align 8, !tbaa !9
  %162 = load ptr, ptr %26, align 8, !tbaa !9
  %163 = icmp ne ptr %162, null
  br i1 %163, label %168, label %164

164:                                              ; preds = %145
  %165 = load ptr, ptr @stderr, align 8, !tbaa !9
  %166 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 0
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %165, ptr noundef @.str.13, ptr noundef %166) #8
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %229

168:                                              ; preds = %145
  %169 = load ptr, ptr %26, align 8, !tbaa !9
  %170 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 0
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef @.str.14, ptr noundef %170) #8
  %172 = load ptr, ptr %26, align 8, !tbaa !9
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str.15) #8
  %174 = load ptr, ptr %26, align 8, !tbaa !9
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %174, ptr noundef @.str.16) #8
  %176 = load ptr, ptr %26, align 8, !tbaa !9
  %177 = load i32, ptr %21, align 4, !tbaa !5
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %176, ptr noundef @.str.17, i32 noundef %177) #8
  %179 = load ptr, ptr %26, align 8, !tbaa !9
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %179, ptr noundef @.str.18) #8
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %206, %168
  %182 = load i32, ptr %15, align 4, !tbaa !5
  %183 = load i32, ptr %21, align 4, !tbaa !5
  %184 = icmp ult i32 %182, %183
  br i1 %184, label %185, label %209

185:                                              ; preds = %181
  %186 = load ptr, ptr %26, align 8, !tbaa !9
  %187 = load i32, ptr %15, align 4, !tbaa !5
  %188 = add i32 %187, 1
  %189 = load i32, ptr %15, align 4, !tbaa !5
  %190 = zext i32 %189 to i64
  %191 = getelementptr inbounds { float, float }, ptr %104, i64 %190
  %192 = getelementptr inbounds { float, float }, ptr %191, i32 0, i32 0
  %193 = load float, ptr %192, align 8
  %194 = getelementptr inbounds { float, float }, ptr %191, i32 0, i32 1
  %195 = load float, ptr %194, align 4
  %196 = fpext float %193 to double
  %197 = load i32, ptr %15, align 4, !tbaa !5
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds { float, float }, ptr %104, i64 %198
  %200 = getelementptr inbounds { float, float }, ptr %199, i32 0, i32 0
  %201 = load float, ptr %200, align 8
  %202 = getelementptr inbounds { float, float }, ptr %199, i32 0, i32 1
  %203 = load float, ptr %202, align 4
  %204 = fpext float %203 to double
  %205 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %186, ptr noundef @.str.19, i32 noundef %188, double noundef %196, double noundef %204) #8
  br label %206

206:                                              ; preds = %185
  %207 = load i32, ptr %15, align 4, !tbaa !5
  %208 = add i32 %207, 1
  store i32 %208, ptr %15, align 4, !tbaa !5
  br label %181, !llvm.loop !18

209:                                              ; preds = %181
  %210 = load ptr, ptr %26, align 8, !tbaa !9
  %211 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %210, ptr noundef @.str.20) #8
  %212 = load ptr, ptr %26, align 8, !tbaa !9
  %213 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %212, ptr noundef @.str.21) #8
  %214 = load ptr, ptr %26, align 8, !tbaa !9
  %215 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %214, ptr noundef @.str.22) #8
  %216 = load ptr, ptr %26, align 8, !tbaa !9
  %217 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %216, ptr noundef @.str.23) #8
  %218 = load ptr, ptr %26, align 8, !tbaa !9
  %219 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %218, ptr noundef @.str.24) #8
  %220 = load ptr, ptr %26, align 8, !tbaa !9
  %221 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %220, ptr noundef @.str.25) #8
  %222 = load ptr, ptr %26, align 8, !tbaa !9
  %223 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %222, ptr noundef @.str.26) #8
  %224 = load ptr, ptr %26, align 8, !tbaa !9
  %225 = call i32 @fclose(ptr noundef %224)
  %226 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 0
  %227 = call i32 (ptr, ...) @printf(ptr noundef @.str.27, ptr noundef %226)
  %228 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %229

229:                                              ; preds = %209, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  %230 = load ptr, ptr %18, align 8
  call void @llvm.stackrestore.p0(ptr %230)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %231

231:                                              ; preds = %229, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 23, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  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
  %232 = load i32, ptr %3, align 4
  ret i32 %232
}

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

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

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i64 @atol(ptr noundef nonnull) #5

declare i32 @liquid_getopt_str2mod(ptr noundef) #1

declare i32 @liquid_getopt_str2crc(ptr noundef) #1

declare i32 @liquid_getopt_str2fec(ptr noundef) #1

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #5

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

; Function Attrs: nounwind
declare float @powf(float noundef, float noundef) #4

declare ptr @qpacketmodem_create(...) #1

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

declare i32 @qpacketmodem_print(ptr noundef) #1

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

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

declare i32 @qpacketmodem_get_frame_len(ptr noundef) #1

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

declare float @randnf(...) #1

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

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

declare i32 @qpacketmodem_destroy(ptr noundef) #1

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

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

declare i32 @fclose(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) #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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint nounwind 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 #6 = { 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 #7 = { nocallback nofree nosync nounwind willreturn }
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 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


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

@__const.main.filename = external hidden unnamed_addr constant [23 x i8], align 16
@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [7 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 range(i32 -1, 1) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca [23 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 23, ptr nonnull %3) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(23) %3, ptr noundef nonnull align 16 dereferenceable(23) @__const.main.filename, i64 23, i1 false)
  br label %.outer

.outer:                                           ; preds = %23, %2
  %.067.ph = phi float [ %26, %23 ], [ 6.000000e+00, %2 ]
  %.065.ph = phi i32 [ %.065.ph147, %23 ], [ 400, %2 ]
  %.063.ph = phi i32 [ %.063.ph153, %23 ], [ 1, %2 ]
  %.061.ph = phi i32 [ %.061.ph158, %23 ], [ 7, %2 ]
  %.059.ph = phi i32 [ %.059.ph162, %23 ], [ 6, %2 ]
  %.057.ph = phi i32 [ %.057, %23 ], [ 40, %2 ]
  br label %.outer146

.outer146:                                        ; preds = %.outer, %7
  %.065.ph147 = phi i32 [ %.065.ph, %.outer ], [ %10, %7 ]
  %.063.ph148 = phi i32 [ %.063.ph, %.outer ], [ %.063.ph153, %7 ]
  %.061.ph149 = phi i32 [ %.061.ph, %.outer ], [ %.061.ph158, %7 ]
  %.059.ph150 = phi i32 [ %.059.ph, %.outer ], [ %.059.ph162, %7 ]
  %.057.ph151 = phi i32 [ %.057.ph, %.outer ], [ %.057, %7 ]
  br label %.outer152

.outer152:                                        ; preds = %.outer146, %20
  %.063.ph153 = phi i32 [ %.063.ph148, %.outer146 ], [ %22, %20 ]
  %.061.ph154 = phi i32 [ %.061.ph149, %.outer146 ], [ %.061.ph158, %20 ]
  %.059.ph155 = phi i32 [ %.059.ph150, %.outer146 ], [ %.059.ph162, %20 ]
  %.057.ph156 = phi i32 [ %.057.ph151, %.outer146 ], [ %.057, %20 ]
  br label %.outer157

.outer157:                                        ; preds = %.outer152, %17
  %.061.ph158 = phi i32 [ %.061.ph154, %.outer152 ], [ %19, %17 ]
  %.059.ph159 = phi i32 [ %.059.ph155, %.outer152 ], [ %.059.ph162, %17 ]
  %.057.ph160 = phi i32 [ %.057.ph156, %.outer152 ], [ %.057, %17 ]
  br label %.outer161

.outer161:                                        ; preds = %.outer157, %14
  %.059.ph162 = phi i32 [ %.059.ph159, %.outer157 ], [ %16, %14 ]
  %.057.ph163 = phi i32 [ %.057.ph160, %.outer157 ], [ %.057, %14 ]
  br label %4

4:                                                ; preds = %.outer161, %11
  %.057 = phi i32 [ %13, %11 ], [ %.057.ph163, %.outer161 ]
  %5 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.8) #10
  switch i32 %5, label %27 [
    i32 -1, label %28
    i32 104, label %6
    i32 110, label %7
    i32 109, label %11
    i32 118, label %14
    i32 99, label %17
    i32 107, label %20
    i32 115, label %23
  ]

6:                                                ; preds = %4
  tail call void @usage()
  br label %99

7:                                                ; preds = %4
  %8 = load ptr, ptr @optarg, align 8, !tbaa !5
  %9 = tail call i64 @atol(ptr nocapture noundef %8) #11
  %10 = trunc i64 %9 to i32
  br label %.outer146, !llvm.loop !9

11:                                               ; preds = %4
  %12 = load ptr, ptr @optarg, align 8, !tbaa !5
  %13 = tail call i32 @liquid_getopt_str2mod(ptr noundef %12) #10
  br label %4, !llvm.loop !9

14:                                               ; preds = %4
  %15 = load ptr, ptr @optarg, align 8, !tbaa !5
  %16 = tail call i32 @liquid_getopt_str2crc(ptr noundef %15) #10
  br label %.outer161, !llvm.loop !9

17:                                               ; preds = %4
  %18 = load ptr, ptr @optarg, align 8, !tbaa !5
  %19 = tail call i32 @liquid_getopt_str2fec(ptr noundef %18) #10
  br label %.outer157, !llvm.loop !9

20:                                               ; preds = %4
  %21 = load ptr, ptr @optarg, align 8, !tbaa !5
  %22 = tail call i32 @liquid_getopt_str2fec(ptr noundef %21) #10
  br label %.outer152, !llvm.loop !9

23:                                               ; preds = %4
  %24 = load ptr, ptr @optarg, align 8, !tbaa !5
  %25 = tail call double @atof(ptr noundef %24) #11
  %26 = fptrunc double %25 to float
  br label %.outer, !llvm.loop !9

27:                                               ; preds = %4
  tail call void @exit(i32 noundef -1) #12
  unreachable

28:                                               ; preds = %4
  %29 = fdiv float %.067.ph, -2.000000e+01
  %30 = tail call float @powf(float noundef 1.000000e+01, float noundef %29) #10
  %31 = tail call ptr (...) @qpacketmodem_create() #10
  %32 = tail call i32 @qpacketmodem_configure(ptr noundef %31, i32 noundef %.065.ph147, i32 noundef %.059.ph162, i32 noundef %.061.ph158, i32 noundef %.063.ph153, i32 noundef %.057) #10
  %33 = tail call i32 @qpacketmodem_print(ptr noundef %31) #10
  %34 = zext i32 %.065.ph147 to i64
  %35 = tail call ptr @llvm.stacksave.p0()
  %36 = alloca i8, i64 %34, align 16
  %37 = alloca i8, i64 %34, align 16
  %.not = icmp eq i32 %.065.ph147, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %28, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %28 ]
  %38 = tail call i32 @rand() #10
  %39 = trunc i32 %38 to i8
  %40 = getelementptr inbounds i8, ptr %36, i64 %indvars.iv
  store i8 %39, ptr %40, align 1, !tbaa !11
  %41 = getelementptr inbounds i8, ptr %37, i64 %indvars.iv
  store i8 0, ptr %41, align 1, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %34
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %28
  %42 = tail call i32 @qpacketmodem_get_frame_len(ptr noundef %31) #10
  %43 = zext i32 %42 to i64
  %44 = alloca { float, float }, i64 %43, align 16
  %45 = alloca { float, float }, i64 %43, align 16
  %46 = call i32 @qpacketmodem_encode(ptr noundef %31, ptr noundef nonnull %36, ptr noundef nonnull %44) #10
  %.not97 = icmp eq i32 %42, 0
  br i1 %.not97, label %._crit_edge92, label %.lr.ph91.preheader

.lr.ph91.preheader:                               ; preds = %._crit_edge
  %47 = insertelement <2 x float> poison, float %30, i64 0
  %48 = shufflevector <2 x float> %47, <2 x float> poison, <2 x i32> zeroinitializer
  br label %.lr.ph91

.lr.ph91:                                         ; preds = %.lr.ph91.preheader, %.lr.ph91
  %indvars.iv112 = phi i64 [ %indvars.iv.next113, %.lr.ph91 ], [ 0, %.lr.ph91.preheader ]
  %49 = getelementptr inbounds { float, float }, ptr %44, i64 %indvars.iv112
  %50 = getelementptr inbounds { float, float }, ptr %45, i64 %indvars.iv112
  %51 = load <2 x float>, ptr %49, align 8
  %52 = fpext <2 x float> %51 to <2 x double>
  %53 = call float (...) @randnf() #10
  %54 = call float (...) @randnf() #10
  %55 = fmul float %54, 0.000000e+00
  %56 = fadd float %53, %55
  %57 = insertelement <2 x float> poison, float %56, i64 0
  %58 = insertelement <2 x float> %57, float %54, i64 1
  %59 = fmul <2 x float> %48, %58
  %60 = fpext <2 x float> %59 to <2 x double>
  %61 = fmul <2 x double> %60, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %62 = fadd <2 x double> %61, %52
  %63 = fptrunc <2 x double> %62 to <2 x float>
  store <2 x float> %63, ptr %50, align 8
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %exitcond116.not = icmp eq i64 %indvars.iv.next113, %43
  br i1 %exitcond116.not, label %._crit_edge92, label %.lr.ph91, !llvm.loop !13

._crit_edge92:                                    ; preds = %.lr.ph91, %._crit_edge
  %64 = call i32 @qpacketmodem_decode(ptr noundef %31, ptr noundef nonnull %45, ptr noundef nonnull %37) #10
  %65 = call i32 @count_bit_errors_array(ptr noundef nonnull %36, ptr noundef nonnull %37, i32 noundef %.065.ph147) #10
  %.not74 = icmp eq i32 %64, 0
  %66 = select i1 %.not74, ptr @.str.11, ptr @.str.10
  %67 = shl i32 %.065.ph147, 3
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %66, i32 noundef %65, i32 noundef %67)
  %69 = call i32 @qpacketmodem_destroy(ptr noundef %31) #10
  %70 = call noalias ptr @fopen(ptr noundef nonnull %3, ptr noundef nonnull @.str.12)
  %.not75 = icmp eq ptr %70, null
  br i1 %.not75, label %71, label %74

71:                                               ; preds = %._crit_edge92
  %72 = load ptr, ptr @stderr, align 8, !tbaa !5
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.13, ptr noundef nonnull %3) #13
  br label %98

74:                                               ; preds = %._crit_edge92
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.14, ptr noundef nonnull %3) #10
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.15) #10
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.16) #10
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.17, i32 noundef %42) #10
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.18) #10
  br i1 %.not97, label %._crit_edge96, label %.lr.ph95

.lr.ph95:                                         ; preds = %74, %.lr.ph95
  %indvars.iv117 = phi i64 [ %indvars.iv.next118, %.lr.ph95 ], [ 0, %74 ]
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %80 = getelementptr inbounds { float, float }, ptr %45, i64 %indvars.iv117
  %81 = load float, ptr %80, align 8
  %82 = getelementptr inbounds i8, ptr %80, i64 4
  %83 = fpext float %81 to double
  %84 = load float, ptr %82, align 4
  %85 = fpext float %84 to double
  %86 = trunc nuw i64 %indvars.iv.next118 to i32
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.19, i32 noundef %86, double noundef %83, double noundef %85) #10
  %exitcond121.not = icmp eq i64 %indvars.iv.next118, %43
  br i1 %exitcond121.not, label %._crit_edge96, label %.lr.ph95, !llvm.loop !14

._crit_edge96:                                    ; preds = %.lr.ph95, %74
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.20) #10
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.21) #10
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.22) #10
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.23) #10
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.24) #10
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.25) #10
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.26) #10
  %95 = call i32 @fclose(ptr noundef nonnull %70)
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27, ptr noundef nonnull %3)
  %97 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28)
  br label %98

98:                                               ; preds = %._crit_edge96, %71
  %.0 = phi i32 [ 0, %._crit_edge96 ], [ -1, %71 ]
  call void @llvm.stackrestore.p0(ptr %35)
  br label %99

99:                                               ; preds = %98, %6
  %.1 = phi i32 [ 0, %6 ], [ %.0, %98 ]
  call void @llvm.lifetime.end.p0(i64 23, ptr nonnull %3) #10
  ret i32 %.1
}

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

; Function Attrs: mustprogress 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) #3

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i64 @atol(ptr nocapture noundef nonnull) local_unnamed_addr #5

declare i32 @liquid_getopt_str2mod(ptr noundef) local_unnamed_addr #6

declare i32 @liquid_getopt_str2crc(ptr noundef) local_unnamed_addr #6

declare i32 @liquid_getopt_str2fec(ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #5

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @powf(float noundef, float noundef) local_unnamed_addr #8

declare ptr @qpacketmodem_create(...) local_unnamed_addr #6

declare i32 @qpacketmodem_configure(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

declare i32 @qpacketmodem_print(ptr noundef) local_unnamed_addr #6

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

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

declare i32 @qpacketmodem_get_frame_len(ptr noundef) local_unnamed_addr #6

declare i32 @qpacketmodem_encode(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

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

declare i32 @qpacketmodem_decode(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

declare i32 @count_bit_errors_array(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

declare i32 @qpacketmodem_destroy(ptr noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

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

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

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


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