; LLVM IR from jgaeddert/liquid-dsp :: examples (fskmodem_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.8 = external hidden unnamed_addr constant [12 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [25 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 float, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i64, align 8
  %28 = 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) #7
  store i32 3, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 8000, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store float 4.000000e+01, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store float 0x3FC99999A0000000, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 1200, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  br label %29

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

34:                                               ; preds = %29
  %35 = load i32, ptr %12, align 4, !tbaa !5
  switch i32 %35, label %54 [
    i32 104, label %36
    i32 109, label %37
    i32 107, label %40
    i32 98, label %43
    i32 110, label %47
    i32 115, label %50
  ]

36:                                               ; preds = %34
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %258

37:                                               ; preds = %34
  %38 = load ptr, ptr @optarg, align 8, !tbaa !9
  %39 = call i32 @atoi(ptr noundef %38) #8
  store i32 %39, ptr %6, align 4, !tbaa !5
  br label %55

40:                                               ; preds = %34
  %41 = load ptr, ptr @optarg, align 8, !tbaa !9
  %42 = call i32 @atoi(ptr noundef %41) #8
  store i32 %42, ptr %7, align 4, !tbaa !5
  br label %55

43:                                               ; preds = %34
  %44 = load ptr, ptr @optarg, align 8, !tbaa !9
  %45 = call double @atof(ptr noundef %44) #8
  %46 = fptrunc double %45 to float
  store float %46, ptr %10, align 4, !tbaa !11
  br label %55

47:                                               ; preds = %34
  %48 = load ptr, ptr @optarg, align 8, !tbaa !9
  %49 = call i32 @atoi(ptr noundef %48) #8
  store i32 %49, ptr %8, align 4, !tbaa !5
  br label %55

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

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

55:                                               ; preds = %50, %47, %43, %40, %37
  br label %29, !llvm.loop !13

56:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %62

59:                                               ; preds = %56
  %60 = load i32, ptr %6, align 4, !tbaa !5
  %61 = shl i32 2, %60
  store i32 %61, ptr %7, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %59, %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = shl i32 1, %63
  store i32 %64, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %65 = load float, ptr %9, align 4, !tbaa !11
  %66 = fneg float %65
  %67 = fdiv float %66, 2.000000e+01
  %68 = call float @powf(float noundef 1.000000e+01, float noundef %67) #7
  store float %68, ptr %17, align 4, !tbaa !11
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = load i32, ptr %16, align 4, !tbaa !5
  %71 = icmp ult i32 %69, %70
  br i1 %71, label %72, label %76

72:                                               ; preds = %62
  %73 = load ptr, ptr @stderr, align 8, !tbaa !9
  %74 = load i32, ptr %16, align 4, !tbaa !5
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef %74) #7
  call void @exit(i32 noundef 1) #9
  unreachable

76:                                               ; preds = %62
  %77 = load i32, ptr %7, align 4, !tbaa !5
  %78 = icmp ugt i32 %77, 2048
  br i1 %78, label %79, label %82

79:                                               ; preds = %76
  %80 = load ptr, ptr @stderr, align 8, !tbaa !9
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.11, ptr noundef @.str.10) #7
  call void @exit(i32 noundef 1) #9
  unreachable

82:                                               ; preds = %76
  %83 = load i32, ptr %16, align 4, !tbaa !5
  %84 = icmp ugt i32 %83, 1024
  br i1 %84, label %85, label %89

85:                                               ; preds = %82
  %86 = load ptr, ptr @stderr, align 8, !tbaa !9
  %87 = load i32, ptr %16, align 4, !tbaa !5
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.12, ptr noundef @.str.10, i32 noundef %87) #7
  call void @exit(i32 noundef 1) #9
  unreachable

89:                                               ; preds = %82
  %90 = load float, ptr %10, align 4, !tbaa !11
  %91 = fcmp ole float %90, 0.000000e+00
  br i1 %91, label %95, label %92

92:                                               ; preds = %89
  %93 = load float, ptr %10, align 4, !tbaa !11
  %94 = fcmp oge float %93, 5.000000e-01
  br i1 %94, label %95, label %98

95:                                               ; preds = %92, %89
  %96 = load ptr, ptr @stderr, align 8, !tbaa !9
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.13, ptr noundef @.str.10) #7
  call void @exit(i32 noundef 1) #9
  unreachable

98:                                               ; preds = %92
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = load i32, ptr %7, align 4, !tbaa !5
  %104 = load float, ptr %10, align 4, !tbaa !11
  %105 = call ptr @fskmod_create(i32 noundef %102, i32 noundef %103, float noundef %104)
  store ptr %105, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = load i32, ptr %7, align 4, !tbaa !5
  %108 = load float, ptr %10, align 4, !tbaa !11
  %109 = call ptr @fskdem_create(i32 noundef %106, i32 noundef %107, float noundef %108)
  store ptr %109, ptr %19, align 8, !tbaa !9
  %110 = load ptr, ptr %19, align 8, !tbaa !9
  %111 = call i32 @fskdem_print(ptr noundef %110)
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = zext i32 %112 to i64
  %114 = call ptr @llvm.stacksave.p0()
  store ptr %114, ptr %20, align 8
  %115 = alloca { float, float }, i64 %113, align 16
  store i64 %113, ptr %21, align 8
  %116 = load i32, ptr %7, align 4, !tbaa !5
  %117 = zext i32 %116 to i64
  %118 = alloca { float, float }, i64 %117, align 16
  store i64 %117, ptr %22, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %119 = load i32, ptr %11, align 4, !tbaa !5
  %120 = call ptr @spgramcf_create_default(i32 noundef %119)
  store ptr %120, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %183, %101
  %122 = load i32, ptr %14, align 4, !tbaa !5
  %123 = load i32, ptr %8, align 4, !tbaa !5
  %124 = icmp ult i32 %122, %123
  br i1 %124, label %125, label %186

125:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %126 = call i32 @rand() #7
  %127 = load i32, ptr %16, align 4, !tbaa !5
  %128 = urem i32 %126, %127
  store i32 %128, ptr %25, align 4, !tbaa !5
  %129 = load ptr, ptr %18, align 8, !tbaa !9
  %130 = load i32, ptr %25, align 4, !tbaa !5
  %131 = call i32 @fskmod_modulate(ptr noundef %129, i32 noundef %130, ptr noundef %115)
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %167, %125
  %133 = load i32, ptr %15, align 4, !tbaa !5
  %134 = load i32, ptr %7, align 4, !tbaa !5
  %135 = icmp ult i32 %133, %134
  br i1 %135, label %136, label %170

136:                                              ; preds = %132
  %137 = load i32, ptr %15, align 4, !tbaa !5
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds { float, float }, ptr %115, i64 %138
  %140 = getelementptr inbounds { float, float }, ptr %139, i32 0, i32 0
  %141 = load float, ptr %140, align 8
  %142 = getelementptr inbounds { float, float }, ptr %139, i32 0, i32 1
  %143 = load float, ptr %142, align 4
  %144 = fpext float %141 to double
  %145 = fpext float %143 to double
  %146 = load float, ptr %17, align 4, !tbaa !11
  %147 = call float (...) @randnf()
  %148 = call float (...) @randnf()
  %149 = fmul float 0.000000e+00, %148
  %150 = fmul float 1.000000e+00, %148
  %151 = fadd float %147, %149
  %152 = fmul float %146, %151
  %153 = fmul float %146, %150
  %154 = fpext float %152 to double
  %155 = fpext float %153 to double
  %156 = fmul double %154, 0x3FE6A09E667F3BCD
  %157 = fmul double %155, 0x3FE6A09E667F3BCD
  %158 = fadd double %144, %156
  %159 = fadd double %145, %157
  %160 = fptrunc double %158 to float
  %161 = fptrunc double %159 to float
  %162 = load i32, ptr %15, align 4, !tbaa !5
  %163 = zext i32 %162 to i64
  %164 = getelementptr inbounds { float, float }, ptr %118, i64 %163
  %165 = getelementptr inbounds { float, float }, ptr %164, i32 0, i32 0
  %166 = getelementptr inbounds { float, float }, ptr %164, i32 0, i32 1
  store float %160, ptr %165, align 8
  store float %161, ptr %166, align 4
  br label %167

167:                                              ; preds = %136
  %168 = load i32, ptr %15, align 4, !tbaa !5
  %169 = add i32 %168, 1
  store i32 %169, ptr %15, align 4, !tbaa !5
  br label %132, !llvm.loop !15

170:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %171 = load ptr, ptr %19, align 8, !tbaa !9
  %172 = call i32 @fskdem_demodulate(ptr noundef %171, ptr noundef %118)
  store i32 %172, ptr %26, align 4, !tbaa !5
  %173 = load i32, ptr %25, align 4, !tbaa !5
  %174 = load i32, ptr %26, align 4, !tbaa !5
  %175 = icmp eq i32 %173, %174
  %176 = zext i1 %175 to i64
  %177 = select i1 %175, i32 0, i32 1
  %178 = load i32, ptr %24, align 4, !tbaa !5
  %179 = add i32 %178, %177
  store i32 %179, ptr %24, align 4, !tbaa !5
  %180 = load ptr, ptr %23, align 8, !tbaa !9
  %181 = load i32, ptr %7, align 4, !tbaa !5
  %182 = call i32 @spgramcf_write(ptr noundef %180, ptr noundef %118, i32 noundef %181)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %183

183:                                              ; preds = %170
  %184 = load i32, ptr %14, align 4, !tbaa !5
  %185 = add i32 %184, 1
  store i32 %185, ptr %14, align 4, !tbaa !5
  br label %121, !llvm.loop !16

186:                                              ; preds = %121
  %187 = load ptr, ptr %18, align 8, !tbaa !9
  %188 = call i32 @fskmod_destroy(ptr noundef %187)
  %189 = load ptr, ptr %19, align 8, !tbaa !9
  %190 = call i32 @fskdem_destroy(ptr noundef %189)
  %191 = load i32, ptr %24, align 4, !tbaa !5
  %192 = load i32, ptr %8, align 4, !tbaa !5
  %193 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %191, i32 noundef %192)
  %194 = load i32, ptr %11, align 4, !tbaa !5
  %195 = zext i32 %194 to i64
  %196 = alloca float, i64 %195, align 16
  store i64 %195, ptr %27, align 8
  %197 = load ptr, ptr %23, align 8, !tbaa !9
  %198 = call i32 @spgramcf_get_psd(ptr noundef %197, ptr noundef %196)
  %199 = load ptr, ptr %23, align 8, !tbaa !9
  %200 = call i32 @spgramcf_destroy(ptr noundef %199)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %201 = call noalias ptr @fopen(ptr noundef @.str.15, ptr noundef @.str.16)
  store ptr %201, ptr %28, align 8, !tbaa !9
  %202 = load ptr, ptr %28, align 8, !tbaa !9
  %203 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %202, ptr noundef @.str.17, ptr noundef @.str.15) #7
  %204 = load ptr, ptr %28, align 8, !tbaa !9
  %205 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %204, ptr noundef @.str.18) #7
  %206 = load ptr, ptr %28, align 8, !tbaa !9
  %207 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %206, ptr noundef @.str.19) #7
  %208 = load ptr, ptr %28, align 8, !tbaa !9
  %209 = load i32, ptr %7, align 4, !tbaa !5
  %210 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %208, ptr noundef @.str.20, i32 noundef %209) #7
  %211 = load ptr, ptr %28, align 8, !tbaa !9
  %212 = load i32, ptr %16, align 4, !tbaa !5
  %213 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %211, ptr noundef @.str.21, i32 noundef %212) #7
  %214 = load ptr, ptr %28, align 8, !tbaa !9
  %215 = load i32, ptr %8, align 4, !tbaa !5
  %216 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %214, ptr noundef @.str.22, i32 noundef %215) #7
  %217 = load ptr, ptr %28, align 8, !tbaa !9
  %218 = load i32, ptr %11, align 4, !tbaa !5
  %219 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %217, ptr noundef @.str.23, i32 noundef %218) #7
  %220 = load ptr, ptr %28, align 8, !tbaa !9
  %221 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %220, ptr noundef @.str.24) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %222

222:                                              ; preds = %236, %186
  %223 = load i32, ptr %14, align 4, !tbaa !5
  %224 = load i32, ptr %11, align 4, !tbaa !5
  %225 = icmp ult i32 %223, %224
  br i1 %225, label %226, label %239

226:                                              ; preds = %222
  %227 = load ptr, ptr %28, align 8, !tbaa !9
  %228 = load i32, ptr %14, align 4, !tbaa !5
  %229 = add i32 %228, 1
  %230 = load i32, ptr %14, align 4, !tbaa !5
  %231 = zext i32 %230 to i64
  %232 = getelementptr inbounds float, ptr %196, i64 %231
  %233 = load float, ptr %232, align 4, !tbaa !11
  %234 = fpext float %233 to double
  %235 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %227, ptr noundef @.str.25, i32 noundef %229, double noundef %234) #7
  br label %236

236:                                              ; preds = %226
  %237 = load i32, ptr %14, align 4, !tbaa !5
  %238 = add i32 %237, 1
  store i32 %238, ptr %14, align 4, !tbaa !5
  br label %222, !llvm.loop !17

239:                                              ; preds = %222
  %240 = load ptr, ptr %28, align 8, !tbaa !9
  %241 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %240, ptr noundef @.str.26) #7
  %242 = load ptr, ptr %28, align 8, !tbaa !9
  %243 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef @.str.27) #7
  %244 = load ptr, ptr %28, align 8, !tbaa !9
  %245 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %244, ptr noundef @.str.28) #7
  %246 = load ptr, ptr %28, align 8, !tbaa !9
  %247 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %246, ptr noundef @.str.29) #7
  %248 = load ptr, ptr %28, align 8, !tbaa !9
  %249 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %248, ptr noundef @.str.30) #7
  %250 = load ptr, ptr %28, align 8, !tbaa !9
  %251 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %250, ptr noundef @.str.31) #7
  %252 = load ptr, ptr %28, align 8, !tbaa !9
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %252, ptr noundef @.str.32) #7
  %254 = load ptr, ptr %28, align 8, !tbaa !9
  %255 = call i32 @fclose(ptr noundef %254)
  %256 = call i32 (ptr, ...) @printf(ptr noundef @.str.33, ptr noundef @.str.15)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  %257 = load ptr, ptr %20, align 8
  call void @llvm.stackrestore.p0(ptr %257)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %258

258:                                              ; preds = %239, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  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
  %259 = load i32, ptr %3, align 4
  ret i32 %259
}

; 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: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #4

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

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

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

declare ptr @fskmod_create(i32 noundef, i32 noundef, float noundef) #1

declare ptr @fskdem_create(i32 noundef, i32 noundef, float noundef) #1

declare i32 @fskdem_print(ptr noundef) #1

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

declare ptr @spgramcf_create_default(i32 noundef) #1

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

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

declare float @randnf(...) #1

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

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

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

declare i32 @fskmod_destroy(ptr noundef) #1

declare i32 @fskdem_destroy(ptr noundef) #1

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

declare i32 @spgramcf_destroy(ptr noundef) #1

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

declare i32 @fclose(ptr 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 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !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"

@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [25 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 = %12, %2
  %.086.ph = phi float [ %15, %12 ], [ 0x3FC99999A0000000, %2 ]
  %.084.ph = phi float [ %.084.ph148, %12 ], [ 4.000000e+01, %2 ]
  %.081.ph = phi i32 [ %.081.ph153, %12 ], [ 8000, %2 ]
  %.079.ph = phi i32 [ %.079.ph157, %12 ], [ 0, %2 ]
  %.078.ph = phi i32 [ %.078, %12 ], [ 3, %2 ]
  br label %.outer147

.outer147:                                        ; preds = %.outer, %19
  %.084.ph148 = phi float [ %.084.ph, %.outer ], [ %22, %19 ]
  %.081.ph149 = phi i32 [ %.081.ph, %.outer ], [ %.081.ph153, %19 ]
  %.079.ph150 = phi i32 [ %.079.ph, %.outer ], [ %.079.ph157, %19 ]
  %.078.ph151 = phi i32 [ %.078.ph, %.outer ], [ %.078, %19 ]
  br label %.outer152

.outer152:                                        ; preds = %.outer147, %16
  %.081.ph153 = phi i32 [ %.081.ph149, %.outer147 ], [ %18, %16 ]
  %.079.ph154 = phi i32 [ %.079.ph150, %.outer147 ], [ %.079.ph157, %16 ]
  %.078.ph155 = phi i32 [ %.078.ph151, %.outer147 ], [ %.078, %16 ]
  br label %.outer156

.outer156:                                        ; preds = %.outer152, %9
  %.079.ph157 = phi i32 [ %.079.ph154, %.outer152 ], [ %11, %9 ]
  %.078.ph158 = phi i32 [ %.078.ph155, %.outer152 ], [ %.078, %9 ]
  br label %3

3:                                                ; preds = %.outer156, %6
  %.078 = phi i32 [ %8, %6 ], [ %.078.ph158, %.outer156 ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.8) #9
  switch i32 %4, label %23 [
    i32 -1, label %24
    i32 104, label %5
    i32 109, label %6
    i32 107, label %9
    i32 98, label %12
    i32 110, label %16
    i32 115, label %19
  ]

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

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

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

12:                                               ; preds = %3
  %13 = load ptr, ptr @optarg, align 8, !tbaa !5
  %14 = tail call double @atof(ptr noundef %13) #10
  %15 = fptrunc double %14 to float
  br label %.outer, !llvm.loop !9

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

19:                                               ; preds = %3
  %20 = load ptr, ptr @optarg, align 8, !tbaa !5
  %21 = tail call double @atof(ptr noundef %20) #10
  %22 = fptrunc double %21 to float
  br label %.outer147, !llvm.loop !9

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

24:                                               ; preds = %3
  %25 = icmp eq i32 %.079.ph157, 0
  %26 = shl i32 2, %.078
  %spec.select = select i1 %25, i32 %26, i32 %.079.ph157
  %27 = shl nuw i32 1, %.078
  %28 = fdiv float %.084.ph148, -2.000000e+01
  %29 = tail call float @powf(float noundef 1.000000e+01, float noundef %28) #9
  %30 = icmp ult i32 %spec.select, %27
  br i1 %30, label %31, label %34

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

34:                                               ; preds = %24
  %35 = icmp ugt i32 %spec.select, 2048
  br i1 %35, label %36, label %39

36:                                               ; preds = %34
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.10) #12
  tail call void @exit(i32 noundef 1) #11
  unreachable

39:                                               ; preds = %34
  %40 = icmp ugt i32 %.078, 10
  br i1 %40, label %41, label %44

41:                                               ; preds = %39
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.10, i32 noundef %27) #12
  tail call void @exit(i32 noundef 1) #11
  unreachable

44:                                               ; preds = %39
  %45 = fcmp ole float %.086.ph, 0.000000e+00
  %46 = fcmp oge float %.086.ph, 5.000000e-01
  %or.cond = or i1 %45, %46
  br i1 %or.cond, label %47, label %50

47:                                               ; preds = %44
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  %49 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.10) #12
  tail call void @exit(i32 noundef 1) #11
  unreachable

50:                                               ; preds = %44
  %51 = tail call ptr @fskmod_create(i32 noundef %.078, i32 noundef %spec.select, float noundef %.086.ph) #9
  %52 = tail call ptr @fskdem_create(i32 noundef %.078, i32 noundef %spec.select, float noundef %.086.ph) #9
  %53 = tail call i32 @fskdem_print(ptr noundef %52) #9
  %54 = zext nneg i32 %spec.select to i64
  %55 = tail call ptr @llvm.stacksave.p0()
  %56 = alloca { float, float }, i64 %54, align 16
  %57 = alloca { float, float }, i64 %54, align 16
  %58 = tail call ptr @spgramcf_create_default(i32 noundef 1200) #9
  %.not = icmp eq i32 %.081.ph153, 0
  br i1 %.not, label %._crit_edge108, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %50
  %59 = add nsw i32 %27, -1
  %umax = tail call i32 @llvm.umax.i32(i32 %spec.select, i32 1)
  %wide.trip.count = zext nneg i32 %umax to i64
  %60 = insertelement <2 x float> poison, float %29, i64 0
  %61 = shufflevector <2 x float> %60, <2 x float> poison, <2 x i32> zeroinitializer
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %.083105.us = phi i32 [ %84, %._crit_edge.us ], [ 0, %.lr.ph.us.preheader ]
  %.088104.us = phi i32 [ %86, %._crit_edge.us ], [ 0, %.lr.ph.us.preheader ]
  %62 = call i32 @rand() #9
  %63 = and i32 %62, %59
  %64 = call i32 @fskmod_modulate(ptr noundef %51, i32 noundef %63, ptr noundef nonnull %56) #9
  br label %65

65:                                               ; preds = %.lr.ph.us, %65
  %indvars.iv = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next, %65 ]
  %66 = getelementptr inbounds { float, float }, ptr %56, i64 %indvars.iv
  %67 = getelementptr inbounds { float, float }, ptr %57, i64 %indvars.iv
  %68 = load <2 x float>, ptr %66, align 8
  %69 = fpext <2 x float> %68 to <2 x double>
  %70 = call float (...) @randnf() #9
  %71 = call float (...) @randnf() #9
  %72 = fmul float %71, 0.000000e+00
  %73 = fadd float %70, %72
  %74 = insertelement <2 x float> poison, float %73, i64 0
  %75 = insertelement <2 x float> %74, float %71, i64 1
  %76 = fmul <2 x float> %61, %75
  %77 = fpext <2 x float> %76 to <2 x double>
  %78 = fmul <2 x double> %77, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %79 = fadd <2 x double> %78, %69
  %80 = fptrunc <2 x double> %79 to <2 x float>
  store <2 x float> %80, ptr %67, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us, label %65, !llvm.loop !11

._crit_edge.us:                                   ; preds = %65
  %81 = call i32 @fskdem_demodulate(ptr noundef %52, ptr noundef nonnull %57) #9
  %82 = icmp ne i32 %63, %81
  %83 = zext i1 %82 to i32
  %84 = add i32 %.083105.us, %83
  %85 = call i32 @spgramcf_write(ptr noundef %58, ptr noundef nonnull %57, i32 noundef %spec.select) #9
  %86 = add nuw i32 %.088104.us, 1
  %exitcond122.not = icmp eq i32 %86, %.081.ph153
  br i1 %exitcond122.not, label %._crit_edge108, label %.lr.ph.us, !llvm.loop !12

._crit_edge108:                                   ; preds = %._crit_edge.us, %50
  %.083.lcssa = phi i32 [ 0, %50 ], [ %84, %._crit_edge.us ]
  %87 = call i32 @fskmod_destroy(ptr noundef %51) #9
  %88 = call i32 @fskdem_destroy(ptr noundef %52) #9
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %.083.lcssa, i32 noundef %.081.ph153)
  %90 = alloca [1200 x float], align 16
  %91 = call i32 @spgramcf_get_psd(ptr noundef %58, ptr noundef nonnull %90) #9
  %92 = call i32 @spgramcf_destroy(ptr noundef %58) #9
  %93 = call noalias ptr @fopen(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16)
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.15) #9
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.18) #9
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.19) #9
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.20, i32 noundef %spec.select) #9
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.21, i32 noundef %27) #9
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.22, i32 noundef %.081.ph153) #9
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.23, i32 noundef 1200) #9
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.24) #9
  br label %102

102:                                              ; preds = %._crit_edge108, %102
  %indvars.iv123 = phi i64 [ 0, %._crit_edge108 ], [ %indvars.iv.next124, %102 ]
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %103 = getelementptr inbounds float, ptr %90, i64 %indvars.iv123
  %104 = load float, ptr %103, align 4, !tbaa !13
  %105 = fpext float %104 to double
  %106 = trunc nuw nsw i64 %indvars.iv.next124 to i32
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.25, i32 noundef %106, double noundef %105) #9
  %exitcond126.not = icmp eq i64 %indvars.iv.next124, 1200
  br i1 %exitcond126.not, label %108, label %102, !llvm.loop !15

108:                                              ; preds = %102
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.26) #9
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.27) #9
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.28) #9
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.29) #9
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.30) #9
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.31) #9
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.32) #9
  %116 = call i32 @fclose(ptr noundef %93)
  %117 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33, ptr noundef nonnull @.str.15)
  call void @llvm.stackrestore.p0(ptr %55)
  br label %118

118:                                              ; preds = %108, %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: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #3

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @powf(float noundef, float 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 ptr @fskmod_create(i32 noundef, i32 noundef, float noundef) local_unnamed_addr #6

declare ptr @fskdem_create(i32 noundef, i32 noundef, float noundef) local_unnamed_addr #6

declare i32 @fskdem_print(ptr noundef) local_unnamed_addr #6

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

declare ptr @spgramcf_create_default(i32 noundef) local_unnamed_addr #6

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

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

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

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

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

declare i32 @fskmod_destroy(ptr noundef) local_unnamed_addr #6

declare i32 @fskdem_destroy(ptr noundef) local_unnamed_addr #6

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

declare i32 @spgramcf_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 @fclose(ptr nocapture noundef) local_unnamed_addr #1

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

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

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 = { 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 #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { noreturn nounwind }
attributes #12 = { 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 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !10}


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