; LLVM IR from jgaeddert/liquid-dsp :: examples (rresamp_rrrf_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.9 = external hidden unnamed_addr constant [12 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [23 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 ptr, align 8
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = 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 5, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 12, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store float 5.000000e-01, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store float 6.000000e+01, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  br label %28

28:                                               ; preds = %54, %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.9) #7
  store i32 %31, ptr %11, align 4, !tbaa !5
  %32 = icmp ne i32 %31, -1
  br i1 %32, label %33, label %55

33:                                               ; preds = %28
  %34 = load i32, ptr %11, align 4, !tbaa !5
  switch i32 %34, label %53 [
    i32 104, label %35
    i32 80, label %36
    i32 81, label %39
    i32 109, label %42
    i32 119, label %45
    i32 115, label %49
  ]

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

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
  br label %54

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

42:                                               ; preds = %33
  %43 = load ptr, ptr @optarg, align 8, !tbaa !9
  %44 = call i32 @atoi(ptr noundef %43) #8
  store i32 %44, ptr %8, align 4, !tbaa !5
  br label %54

45:                                               ; preds = %33
  %46 = load ptr, ptr @optarg, align 8, !tbaa !9
  %47 = call double @atof(ptr noundef %46) #8
  %48 = fptrunc double %47 to float
  store float %48, ptr %9, align 4, !tbaa !11
  br label %54

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

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

54:                                               ; preds = %49, %45, %42, %39, %36
  br label %28, !llvm.loop !13

55:                                               ; preds = %28
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %61, label %58

58:                                               ; preds = %55
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = icmp ugt i32 %59, 1000
  br i1 %60, label %61, label %67

61:                                               ; preds = %58, %55
  %62 = load ptr, ptr @stderr, align 8, !tbaa !9
  %63 = load ptr, ptr %5, align 8, !tbaa !9
  %64 = getelementptr inbounds ptr, ptr %63, i64 0
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.10, ptr noundef %65) #7
  call void @exit(i32 noundef 1) #9
  unreachable

67:                                               ; preds = %58
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %73, label %70

70:                                               ; preds = %67
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = icmp ugt i32 %71, 1000
  br i1 %72, label %73, label %79

73:                                               ; preds = %70, %67
  %74 = load ptr, ptr @stderr, align 8, !tbaa !9
  %75 = load ptr, ptr %5, align 8, !tbaa !9
  %76 = getelementptr inbounds ptr, ptr %75, i64 0
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.11, ptr noundef %77) #7
  call void @exit(i32 noundef 1) #9
  unreachable

79:                                               ; preds = %70
  br label %80

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %83 = load i32, ptr %8, align 4, !tbaa !5
  %84 = load float, ptr %9, align 4, !tbaa !11
  %85 = load float, ptr %10, align 4, !tbaa !11
  %86 = call ptr @rresamp_rrrf_create_kaiser(i32 noundef %81, i32 noundef %82, i32 noundef %83, float noundef %84, float noundef %85)
  store ptr %86, ptr %13, align 8, !tbaa !9
  %87 = load ptr, ptr %13, align 8, !tbaa !9
  %88 = call i32 @rresamp_rrrf_print(ptr noundef %87)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %89 = load ptr, ptr %13, align 8, !tbaa !9
  %90 = call float @rresamp_rrrf_get_rate(ptr noundef %89)
  store float %90, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %91 = load i32, ptr %6, align 4, !tbaa !5
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = icmp ugt i32 %91, %92
  br i1 %93, label %94, label %96

94:                                               ; preds = %80
  %95 = load i32, ptr %6, align 4, !tbaa !5
  br label %98

96:                                               ; preds = %80
  %97 = load i32, ptr %7, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %96, %94
  %99 = phi i32 [ %95, %94 ], [ %97, %96 ]
  %100 = uitofp i32 %99 to double
  %101 = fdiv double 1.200000e+05, %100
  %102 = fptoui double %101 to i32
  store i32 %102, ptr %15, align 4, !tbaa !5
  %103 = load i32, ptr %7, align 4, !tbaa !5
  %104 = zext i32 %103 to i64
  %105 = call ptr @llvm.stacksave.p0()
  store ptr %105, ptr %16, align 8
  %106 = alloca float, i64 %104, align 16
  store i64 %104, ptr %17, align 8
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = zext i32 %107 to i64
  %109 = alloca float, i64 %108, align 16
  store i64 %108, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %110 = load float, ptr %14, align 4, !tbaa !11
  %111 = fpext float %110 to double
  %112 = fcmp ogt double %111, 1.000000e+00
  br i1 %112, label %113, label %114

113:                                              ; preds = %98
  br label %117

114:                                              ; preds = %98
  %115 = load float, ptr %14, align 4, !tbaa !11
  %116 = fpext float %115 to double
  br label %117

117:                                              ; preds = %114, %113
  %118 = phi double [ 1.000000e+00, %113 ], [ %116, %114 ]
  %119 = fmul double 0x3FD6666660000000, %118
  %120 = fptrunc double %119 to float
  %121 = call ptr @iirfilt_rrrf_create_lowpass(i32 noundef 15, float noundef %120)
  store ptr %121, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 2400, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %122 = load i32, ptr %20, align 4, !tbaa !5
  %123 = call ptr @spgramf_create_default(i32 noundef %122)
  store ptr %123, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %124 = load i32, ptr %20, align 4, !tbaa !5
  %125 = call ptr @spgramf_create_default(i32 noundef %124)
  store ptr %125, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %154, %117
  %127 = load i32, ptr %23, align 4, !tbaa !5
  %128 = load i32, ptr %15, align 4, !tbaa !5
  %129 = icmp ult i32 %127, %128
  br i1 %129, label %130, label %157

130:                                              ; preds = %126
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %142, %130
  %132 = load i32, ptr %24, align 4, !tbaa !5
  %133 = load i32, ptr %7, align 4, !tbaa !5
  %134 = icmp ult i32 %132, %133
  br i1 %134, label %135, label %145

135:                                              ; preds = %131
  %136 = load ptr, ptr %19, align 8, !tbaa !9
  %137 = call float (...) @randnf()
  %138 = load i32, ptr %24, align 4, !tbaa !5
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds float, ptr %106, i64 %139
  %141 = call i32 @iirfilt_rrrf_execute(ptr noundef %136, float noundef %137, ptr noundef %140)
  br label %142

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

145:                                              ; preds = %131
  %146 = load ptr, ptr %13, align 8, !tbaa !9
  %147 = call i32 @rresamp_rrrf_execute(ptr noundef %146, ptr noundef %106, ptr noundef %109)
  %148 = load ptr, ptr %21, align 8, !tbaa !9
  %149 = load i32, ptr %7, align 4, !tbaa !5
  %150 = call i32 @spgramf_write(ptr noundef %148, ptr noundef %106, i32 noundef %149)
  %151 = load ptr, ptr %22, align 8, !tbaa !9
  %152 = load i32, ptr %6, align 4, !tbaa !5
  %153 = call i32 @spgramf_write(ptr noundef %151, ptr noundef %109, i32 noundef %152)
  br label %154

154:                                              ; preds = %145
  %155 = load i32, ptr %23, align 4, !tbaa !5
  %156 = add i32 %155, 1
  store i32 %156, ptr %23, align 4, !tbaa !5
  br label %126, !llvm.loop !16

157:                                              ; preds = %126
  %158 = load ptr, ptr %22, align 8, !tbaa !9
  %159 = call i64 @spgramf_get_num_samples_total(ptr noundef %158)
  %160 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i64 noundef %159)
  %161 = load ptr, ptr %21, align 8, !tbaa !9
  %162 = call i64 @spgramf_get_num_samples_total(ptr noundef %161)
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i64 noundef %162)
  %164 = load ptr, ptr %13, align 8, !tbaa !9
  %165 = call i32 @rresamp_rrrf_destroy(ptr noundef %164)
  %166 = load ptr, ptr %19, align 8, !tbaa !9
  %167 = call i32 @iirfilt_rrrf_destroy(ptr noundef %166)
  %168 = load i32, ptr %20, align 4, !tbaa !5
  %169 = zext i32 %168 to i64
  %170 = alloca float, i64 %169, align 16
  store i64 %169, ptr %25, align 8
  %171 = load i32, ptr %20, align 4, !tbaa !5
  %172 = zext i32 %171 to i64
  %173 = alloca float, i64 %172, align 16
  store i64 %172, ptr %26, align 8
  %174 = load ptr, ptr %21, align 8, !tbaa !9
  %175 = call i32 @spgramf_get_psd(ptr noundef %174, ptr noundef %170)
  %176 = load ptr, ptr %22, align 8, !tbaa !9
  %177 = call i32 @spgramf_get_psd(ptr noundef %176, ptr noundef %173)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %178 = call noalias ptr @fopen(ptr noundef @.str.14, ptr noundef @.str.15)
  store ptr %178, ptr %27, align 8, !tbaa !9
  %179 = load ptr, ptr %27, align 8, !tbaa !9
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %179, ptr noundef @.str.16, ptr noundef @.str.14) #7
  %181 = load ptr, ptr %27, align 8, !tbaa !9
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str.17) #7
  %183 = load ptr, ptr %27, align 8, !tbaa !9
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %183, ptr noundef @.str.18) #7
  %185 = load ptr, ptr %27, align 8, !tbaa !9
  %186 = load i32, ptr %6, align 4, !tbaa !5
  %187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef @.str.19, i32 noundef %186) #7
  %188 = load ptr, ptr %27, align 8, !tbaa !9
  %189 = load i32, ptr %7, align 4, !tbaa !5
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str.20, i32 noundef %189) #7
  %191 = load ptr, ptr %27, align 8, !tbaa !9
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.21) #7
  %193 = load ptr, ptr %27, align 8, !tbaa !9
  %194 = load i32, ptr %20, align 4, !tbaa !5
  %195 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str.22, i32 noundef %194) #7
  %196 = load ptr, ptr %27, align 8, !tbaa !9
  %197 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef @.str.23) #7
  %198 = load ptr, ptr %27, align 8, !tbaa !9
  %199 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %198, ptr noundef @.str.24) #7
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %200

200:                                              ; preds = %223, %157
  %201 = load i32, ptr %23, align 4, !tbaa !5
  %202 = load i32, ptr %20, align 4, !tbaa !5
  %203 = icmp ult i32 %201, %202
  br i1 %203, label %204, label %226

204:                                              ; preds = %200
  %205 = load ptr, ptr %27, align 8, !tbaa !9
  %206 = load i32, ptr %23, align 4, !tbaa !5
  %207 = add i32 %206, 1
  %208 = load i32, ptr %23, align 4, !tbaa !5
  %209 = zext i32 %208 to i64
  %210 = getelementptr inbounds float, ptr %170, i64 %209
  %211 = load float, ptr %210, align 4, !tbaa !11
  %212 = fpext float %211 to double
  %213 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef @.str.25, i32 noundef %207, double noundef %212) #7
  %214 = load ptr, ptr %27, align 8, !tbaa !9
  %215 = load i32, ptr %23, align 4, !tbaa !5
  %216 = add i32 %215, 1
  %217 = load i32, ptr %23, align 4, !tbaa !5
  %218 = zext i32 %217 to i64
  %219 = getelementptr inbounds float, ptr %173, i64 %218
  %220 = load float, ptr %219, align 4, !tbaa !11
  %221 = fpext float %220 to double
  %222 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %214, ptr noundef @.str.26, i32 noundef %216, double noundef %221) #7
  br label %223

223:                                              ; preds = %204
  %224 = load i32, ptr %23, align 4, !tbaa !5
  %225 = add i32 %224, 1
  store i32 %225, ptr %23, align 4, !tbaa !5
  br label %200, !llvm.loop !17

226:                                              ; preds = %200
  %227 = load ptr, ptr %27, align 8, !tbaa !9
  %228 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %227, ptr noundef @.str.27) #7
  %229 = load ptr, ptr %27, align 8, !tbaa !9
  %230 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %229, ptr noundef @.str.28) #7
  %231 = load ptr, ptr %27, align 8, !tbaa !9
  %232 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %231, ptr noundef @.str.29) #7
  %233 = load ptr, ptr %27, align 8, !tbaa !9
  %234 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %233, ptr noundef @.str.30) #7
  %235 = load ptr, ptr %27, align 8, !tbaa !9
  %236 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %235, ptr noundef @.str.31) #7
  %237 = load ptr, ptr %27, align 8, !tbaa !9
  %238 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %237, ptr noundef @.str.32) #7
  %239 = load ptr, ptr %27, align 8, !tbaa !9
  %240 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %239, ptr noundef @.str.33) #7
  %241 = load ptr, ptr %27, align 8, !tbaa !9
  %242 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %241, ptr noundef @.str.34) #7
  %243 = load ptr, ptr %27, align 8, !tbaa !9
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef @.str.35) #7
  %245 = load ptr, ptr %27, align 8, !tbaa !9
  %246 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %245, ptr noundef @.str.36) #7
  %247 = load ptr, ptr %27, align 8, !tbaa !9
  %248 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %247, ptr noundef @.str.37) #7
  %249 = load ptr, ptr %27, align 8, !tbaa !9
  %250 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %249, ptr noundef @.str.38) #7
  %251 = load ptr, ptr %27, align 8, !tbaa !9
  %252 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %251, ptr noundef @.str.39) #7
  %253 = load ptr, ptr %27, align 8, !tbaa !9
  %254 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %253, ptr noundef @.str.40) #7
  %255 = load ptr, ptr %27, align 8, !tbaa !9
  %256 = call i32 @fclose(ptr noundef %255)
  %257 = call i32 (ptr, ...) @printf(ptr noundef @.str.41, ptr noundef @.str.14)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %258 = load ptr, ptr %16, align 8
  call void @llvm.stackrestore.p0(ptr %258)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %259

259:                                              ; preds = %226, %35
  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
  %260 = load i32, ptr %3, align 4
  ret i32 %260
}

; 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 i32 @fprintf(ptr noundef, ptr noundef, ...) #3

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

declare i32 @rresamp_rrrf_print(ptr noundef) #1

declare float @rresamp_rrrf_get_rate(ptr noundef) #1

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

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

declare ptr @spgramf_create_default(i32 noundef) #1

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

declare float @randnf(...) #1

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

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

declare i64 @spgramf_get_num_samples_total(ptr noundef) #1

declare i32 @rresamp_rrrf_destroy(ptr noundef) #1

declare i32 @iirfilt_rrrf_destroy(ptr noundef) #1

declare i32 @spgramf_get_psd(ptr noundef, 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 memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind willreturn }
attributes #7 = { 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.9 = 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.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [23 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 = %19, %2
  %.097.ph = phi float [ %22, %19 ], [ 6.000000e+01, %2 ]
  %.095.ph = phi float [ %.095.ph153, %19 ], [ 5.000000e-01, %2 ]
  %.093.ph = phi i32 [ %.093.ph158, %19 ], [ 12, %2 ]
  %.088.ph = phi i32 [ %.088.ph162, %19 ], [ 5, %2 ]
  %.087.ph = phi i32 [ %.087, %19 ], [ 3, %2 ]
  br label %.outer152

.outer152:                                        ; preds = %.outer, %15
  %.095.ph153 = phi float [ %.095.ph, %.outer ], [ %18, %15 ]
  %.093.ph154 = phi i32 [ %.093.ph, %.outer ], [ %.093.ph158, %15 ]
  %.088.ph155 = phi i32 [ %.088.ph, %.outer ], [ %.088.ph162, %15 ]
  %.087.ph156 = phi i32 [ %.087.ph, %.outer ], [ %.087, %15 ]
  br label %.outer157

.outer157:                                        ; preds = %.outer152, %12
  %.093.ph158 = phi i32 [ %.093.ph154, %.outer152 ], [ %14, %12 ]
  %.088.ph159 = phi i32 [ %.088.ph155, %.outer152 ], [ %.088.ph162, %12 ]
  %.087.ph160 = phi i32 [ %.087.ph156, %.outer152 ], [ %.087, %12 ]
  br label %.outer161

.outer161:                                        ; preds = %.outer157, %9
  %.088.ph162 = phi i32 [ %.088.ph159, %.outer157 ], [ %11, %9 ]
  %.087.ph163 = phi i32 [ %.087.ph160, %.outer157 ], [ %.087, %9 ]
  br label %3

3:                                                ; preds = %.outer161, %6
  %.087 = phi i32 [ %8, %6 ], [ %.087.ph163, %.outer161 ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.9) #8
  switch i32 %4, label %23 [
    i32 -1, label %24
    i32 104, label %5
    i32 80, label %6
    i32 81, label %9
    i32 109, label %12
    i32 119, label %15
    i32 115, label %19
  ]

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

6:                                                ; preds = %3
  %7 = load ptr, ptr @optarg, align 8, !tbaa !5
  %8 = tail call i32 @atoi(ptr nocapture noundef %7) #9
  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) #9
  br label %.outer161, !llvm.loop !9

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

15:                                               ; preds = %3
  %16 = load ptr, ptr @optarg, align 8, !tbaa !5
  %17 = tail call double @atof(ptr noundef %16) #9
  %18 = fptrunc double %17 to float
  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) #9
  %22 = fptrunc double %21 to float
  br label %.outer, !llvm.loop !9

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

24:                                               ; preds = %3
  %25 = add i32 %.087, -1001
  %or.cond = icmp ult i32 %25, -1000
  br i1 %or.cond, label %26, label %30

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

30:                                               ; preds = %24
  %31 = add i32 %.088.ph162, -1001
  %or.cond3 = icmp ult i32 %31, -1000
  br i1 %or.cond3, label %32, label %36

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

36:                                               ; preds = %30
  %37 = tail call ptr @rresamp_rrrf_create_kaiser(i32 noundef %.087, i32 noundef %.088.ph162, i32 noundef %.093.ph158, float noundef %.095.ph153, float noundef %.097.ph) #8
  %38 = tail call i32 @rresamp_rrrf_print(ptr noundef %37) #8
  %39 = tail call float @rresamp_rrrf_get_rate(ptr noundef %37) #8
  %40 = tail call i32 @llvm.umax.i32(i32 %.087, i32 %.088.ph162)
  %41 = uitofp nneg i32 %40 to double
  %42 = fdiv double 1.200000e+05, %41
  %43 = fptoui double %42 to i32
  %44 = zext nneg i32 %.088.ph162 to i64
  %45 = tail call ptr @llvm.stacksave.p0()
  %46 = alloca float, i64 %44, align 16
  %47 = zext nneg i32 %.087 to i64
  %48 = alloca float, i64 %47, align 16
  %49 = fpext float %39 to double
  %50 = fcmp ogt double %49, 1.000000e+00
  %51 = select i1 %50, double 1.000000e+00, double %49
  %52 = fmul double %51, 0x3FD6666660000000
  %53 = fptrunc double %52 to float
  %54 = tail call ptr @iirfilt_rrrf_create_lowpass(i32 noundef 15, float noundef %53) #8
  %55 = tail call ptr @spgramf_create_default(i32 noundef 2400) #8
  %56 = tail call ptr @spgramf_create_default(i32 noundef 2400) #8
  %.not = icmp eq i32 %43, 0
  br i1 %.not, label %._crit_edge111, label %.preheader.us

.preheader.us:                                    ; preds = %36, %._crit_edge.us
  %.091110.us = phi i32 [ %64, %._crit_edge.us ], [ 0, %36 ]
  br label %57

57:                                               ; preds = %.preheader.us, %57
  %indvars.iv = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next, %57 ]
  %58 = call float (...) @randnf() #8
  %59 = getelementptr inbounds float, ptr %46, i64 %indvars.iv
  %60 = call i32 @iirfilt_rrrf_execute(ptr noundef %54, float noundef %58, ptr noundef nonnull %59) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %44
  br i1 %exitcond.not, label %._crit_edge.us, label %57, !llvm.loop !11

._crit_edge.us:                                   ; preds = %57
  %61 = call i32 @rresamp_rrrf_execute(ptr noundef %37, ptr noundef nonnull %46, ptr noundef nonnull %48) #8
  %62 = call i32 @spgramf_write(ptr noundef %55, ptr noundef nonnull %46, i32 noundef %.088.ph162) #8
  %63 = call i32 @spgramf_write(ptr noundef %56, ptr noundef nonnull %48, i32 noundef %.087) #8
  %64 = add nuw i32 %.091110.us, 1
  %exitcond126.not = icmp eq i32 %64, %43
  br i1 %exitcond126.not, label %._crit_edge111, label %.preheader.us, !llvm.loop !12

._crit_edge111:                                   ; preds = %._crit_edge.us, %36
  %65 = call i64 @spgramf_get_num_samples_total(ptr noundef %56) #8
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i64 noundef %65)
  %67 = call i64 @spgramf_get_num_samples_total(ptr noundef %55) #8
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i64 noundef %67)
  %69 = call i32 @rresamp_rrrf_destroy(ptr noundef %37) #8
  %70 = call i32 @iirfilt_rrrf_destroy(ptr noundef %54) #8
  %71 = alloca [2400 x float], align 16
  %72 = alloca [2400 x float], align 16
  %73 = call i32 @spgramf_get_psd(ptr noundef %55, ptr noundef nonnull %71) #8
  %74 = call i32 @spgramf_get_psd(ptr noundef %56, ptr noundef nonnull %72) #8
  %75 = call noalias ptr @fopen(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.15)
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.14) #8
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.17) #8
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.18) #8
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.19, i32 noundef %.087) #8
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.20, i32 noundef %.088.ph162) #8
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.21) #8
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.22, i32 noundef 2400) #8
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.23) #8
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.24) #8
  br label %85

85:                                               ; preds = %._crit_edge111, %85
  %indvars.iv128 = phi i64 [ 0, %._crit_edge111 ], [ %indvars.iv.next129, %85 ]
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %86 = getelementptr inbounds float, ptr %71, i64 %indvars.iv128
  %87 = load float, ptr %86, align 4, !tbaa !13
  %88 = fpext float %87 to double
  %89 = trunc nuw nsw i64 %indvars.iv.next129 to i32
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.25, i32 noundef %89, double noundef %88) #8
  %91 = getelementptr inbounds float, ptr %72, i64 %indvars.iv128
  %92 = load float, ptr %91, align 4, !tbaa !13
  %93 = fpext float %92 to double
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.26, i32 noundef %89, double noundef %93) #8
  %exitcond131.not = icmp eq i64 %indvars.iv.next129, 2400
  br i1 %exitcond131.not, label %95, label %85, !llvm.loop !15

95:                                               ; preds = %85
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.27) #8
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.28) #8
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.29) #8
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.30) #8
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.31) #8
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.32) #8
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.33) #8
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.34) #8
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.35) #8
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.36) #8
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.37) #8
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.38) #8
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.39) #8
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.40) #8
  %110 = call i32 @fclose(ptr noundef %75)
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, ptr noundef nonnull @.str.14)
  call void @llvm.stackrestore.p0(ptr %45)
  br label %112

112:                                              ; preds = %95, %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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

declare ptr @rresamp_rrrf_create_kaiser(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #5

declare i32 @rresamp_rrrf_print(ptr noundef) local_unnamed_addr #5

declare float @rresamp_rrrf_get_rate(ptr noundef) local_unnamed_addr #5

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

declare ptr @iirfilt_rrrf_create_lowpass(i32 noundef, float noundef) local_unnamed_addr #5

declare ptr @spgramf_create_default(i32 noundef) local_unnamed_addr #5

declare i32 @iirfilt_rrrf_execute(ptr noundef, float noundef, ptr noundef) local_unnamed_addr #5

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

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

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

declare i64 @spgramf_get_num_samples_total(ptr noundef) local_unnamed_addr #5

declare i32 @rresamp_rrrf_destroy(ptr noundef) local_unnamed_addr #5

declare i32 @iirfilt_rrrf_destroy(ptr noundef) local_unnamed_addr #5

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

; 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) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.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 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !10}


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