; LLVM IR from jgaeddert/liquid-dsp :: examples (rresamp_crcf_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 [51 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [48 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 [14 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [25 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 [33 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 float, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %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 20, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store float -1.000000e+00, 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 %265

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_crcf_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 = icmp eq ptr %87, null
  br i1 %88, label %89, label %90

89:                                               ; preds = %80
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %264

90:                                               ; preds = %80
  %91 = load ptr, ptr %13, align 8, !tbaa !9
  %92 = call i32 @rresamp_crcf_print(ptr noundef %91)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %93 = load ptr, ptr %13, align 8, !tbaa !9
  %94 = call float @rresamp_crcf_get_rate(ptr noundef %93)
  store float %94, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = icmp ugt i32 %95, %96
  br i1 %97, label %98, label %100

98:                                               ; preds = %90
  %99 = load i32, ptr %6, align 4, !tbaa !5
  br label %102

100:                                              ; preds = %90
  %101 = load i32, ptr %7, align 4, !tbaa !5
  br label %102

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

117:                                              ; preds = %102
  br label %121

118:                                              ; preds = %102
  %119 = load float, ptr %14, align 4, !tbaa !11
  %120 = fpext float %119 to double
  br label %121

121:                                              ; preds = %118, %117
  %122 = phi double [ 1.000000e+00, %117 ], [ %120, %118 ]
  %123 = fmul double 0x3FE6666660000000, %122
  %124 = fptrunc double %123 to float
  store float %124, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %125 = call ptr @msourcecf_create_default()
  store ptr %125, ptr %20, align 8, !tbaa !9
  %126 = load ptr, ptr %20, align 8, !tbaa !9
  %127 = load float, ptr %19, align 4, !tbaa !11
  %128 = call i32 @msourcecf_add_noise(ptr noundef %126, float noundef 0.000000e+00, float noundef %127, float noundef 0.000000e+00)
  %129 = load ptr, ptr %20, align 8, !tbaa !9
  %130 = load float, ptr %14, align 4, !tbaa !11
  %131 = fpext float %130 to double
  %132 = fcmp ogt double %131, 1.000000e+00
  br i1 %132, label %133, label %134

133:                                              ; preds = %121
  br label %137

134:                                              ; preds = %121
  %135 = load float, ptr %19, align 4, !tbaa !11
  %136 = fpext float %135 to double
  br label %137

137:                                              ; preds = %134, %133
  %138 = phi double [ 4.000000e-01, %133 ], [ %136, %134 ]
  %139 = fptrunc double %138 to float
  %140 = call i32 @msourcecf_add_tone(ptr noundef %129, float noundef %139, float noundef 0.000000e+00, float noundef 2.000000e+01)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 2400, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %141 = load i32, ptr %21, align 4, !tbaa !5
  %142 = call ptr @spgramcf_create_default(i32 noundef %141)
  store ptr %142, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %143 = load i32, ptr %21, align 4, !tbaa !5
  %144 = call ptr @spgramcf_create_default(i32 noundef %143)
  store ptr %144, 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
  br label %145

145:                                              ; preds = %161, %137
  %146 = load i32, ptr %24, align 4, !tbaa !5
  %147 = load i32, ptr %15, align 4, !tbaa !5
  %148 = icmp ult i32 %146, %147
  br i1 %148, label %149, label %164

149:                                              ; preds = %145
  %150 = load ptr, ptr %20, align 8, !tbaa !9
  %151 = load i32, ptr %7, align 4, !tbaa !5
  %152 = call i32 @msourcecf_write_samples(ptr noundef %150, ptr noundef %110, i32 noundef %151)
  %153 = load ptr, ptr %13, align 8, !tbaa !9
  %154 = call i32 @rresamp_crcf_execute(ptr noundef %153, ptr noundef %110, ptr noundef %113)
  %155 = load ptr, ptr %22, align 8, !tbaa !9
  %156 = load i32, ptr %7, align 4, !tbaa !5
  %157 = call i32 @spgramcf_write(ptr noundef %155, ptr noundef %110, i32 noundef %156)
  %158 = load ptr, ptr %23, align 8, !tbaa !9
  %159 = load i32, ptr %6, align 4, !tbaa !5
  %160 = call i32 @spgramcf_write(ptr noundef %158, ptr noundef %113, i32 noundef %159)
  br label %161

161:                                              ; preds = %149
  %162 = load i32, ptr %24, align 4, !tbaa !5
  %163 = add i32 %162, 1
  store i32 %163, ptr %24, align 4, !tbaa !5
  br label %145, !llvm.loop !15

164:                                              ; preds = %145
  %165 = load ptr, ptr %23, align 8, !tbaa !9
  %166 = call i64 @spgramcf_get_num_samples_total(ptr noundef %165)
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i64 noundef %166)
  %168 = load ptr, ptr %22, align 8, !tbaa !9
  %169 = call i64 @spgramcf_get_num_samples_total(ptr noundef %168)
  %170 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i64 noundef %169)
  %171 = load ptr, ptr %13, align 8, !tbaa !9
  %172 = call i32 @rresamp_crcf_destroy(ptr noundef %171)
  %173 = load i32, ptr %21, align 4, !tbaa !5
  %174 = zext i32 %173 to i64
  %175 = alloca float, i64 %174, align 16
  store i64 %174, ptr %25, align 8
  %176 = load i32, ptr %21, align 4, !tbaa !5
  %177 = zext i32 %176 to i64
  %178 = alloca float, i64 %177, align 16
  store i64 %177, ptr %26, align 8
  %179 = load ptr, ptr %22, align 8, !tbaa !9
  %180 = call i32 @spgramcf_get_psd(ptr noundef %179, ptr noundef %175)
  %181 = load ptr, ptr %23, align 8, !tbaa !9
  %182 = call i32 @spgramcf_get_psd(ptr noundef %181, ptr noundef %178)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %183 = call noalias ptr @fopen(ptr noundef @.str.14, ptr noundef @.str.15)
  store ptr %183, ptr %27, align 8, !tbaa !9
  %184 = load ptr, ptr %27, align 8, !tbaa !9
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %184, ptr noundef @.str.16, ptr noundef @.str.14) #7
  %186 = load ptr, ptr %27, align 8, !tbaa !9
  %187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %186, ptr noundef @.str.17) #7
  %188 = load ptr, ptr %27, align 8, !tbaa !9
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str.18) #7
  %190 = load ptr, ptr %27, align 8, !tbaa !9
  %191 = load i32, ptr %6, align 4, !tbaa !5
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef @.str.19, i32 noundef %191) #7
  %193 = load ptr, ptr %27, align 8, !tbaa !9
  %194 = load i32, ptr %7, align 4, !tbaa !5
  %195 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str.20, 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.21) #7
  %198 = load ptr, ptr %27, align 8, !tbaa !9
  %199 = load i32, ptr %21, align 4, !tbaa !5
  %200 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %198, ptr noundef @.str.22, i32 noundef %199) #7
  %201 = load ptr, ptr %27, align 8, !tbaa !9
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %201, ptr noundef @.str.23) #7
  %203 = load ptr, ptr %27, align 8, !tbaa !9
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef @.str.24) #7
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %205

205:                                              ; preds = %228, %164
  %206 = load i32, ptr %24, align 4, !tbaa !5
  %207 = load i32, ptr %21, align 4, !tbaa !5
  %208 = icmp ult i32 %206, %207
  br i1 %208, label %209, label %231

209:                                              ; preds = %205
  %210 = load ptr, ptr %27, align 8, !tbaa !9
  %211 = load i32, ptr %24, align 4, !tbaa !5
  %212 = add i32 %211, 1
  %213 = load i32, ptr %24, align 4, !tbaa !5
  %214 = zext i32 %213 to i64
  %215 = getelementptr inbounds float, ptr %175, i64 %214
  %216 = load float, ptr %215, align 4, !tbaa !11
  %217 = fpext float %216 to double
  %218 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %210, ptr noundef @.str.25, i32 noundef %212, double noundef %217) #7
  %219 = load ptr, ptr %27, align 8, !tbaa !9
  %220 = load i32, ptr %24, align 4, !tbaa !5
  %221 = add i32 %220, 1
  %222 = load i32, ptr %24, align 4, !tbaa !5
  %223 = zext i32 %222 to i64
  %224 = getelementptr inbounds float, ptr %178, i64 %223
  %225 = load float, ptr %224, align 4, !tbaa !11
  %226 = fpext float %225 to double
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %219, ptr noundef @.str.26, i32 noundef %221, double noundef %226) #7
  br label %228

228:                                              ; preds = %209
  %229 = load i32, ptr %24, align 4, !tbaa !5
  %230 = add i32 %229, 1
  store i32 %230, ptr %24, align 4, !tbaa !5
  br label %205, !llvm.loop !16

231:                                              ; preds = %205
  %232 = load ptr, ptr %27, align 8, !tbaa !9
  %233 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %232, ptr noundef @.str.27) #7
  %234 = load ptr, ptr %27, align 8, !tbaa !9
  %235 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef @.str.28) #7
  %236 = load ptr, ptr %27, align 8, !tbaa !9
  %237 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %236, ptr noundef @.str.29) #7
  %238 = load ptr, ptr %27, align 8, !tbaa !9
  %239 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %238, ptr noundef @.str.30) #7
  %240 = load ptr, ptr %27, align 8, !tbaa !9
  %241 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %240, ptr noundef @.str.31) #7
  %242 = load ptr, ptr %27, align 8, !tbaa !9
  %243 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef @.str.32) #7
  %244 = load ptr, ptr %27, align 8, !tbaa !9
  %245 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %244, ptr noundef @.str.33) #7
  %246 = load ptr, ptr %27, align 8, !tbaa !9
  %247 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %246, ptr noundef @.str.34) #7
  %248 = load ptr, ptr %27, align 8, !tbaa !9
  %249 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %248, ptr noundef @.str.35) #7
  %250 = load ptr, ptr %27, align 8, !tbaa !9
  %251 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %250, ptr noundef @.str.36) #7
  %252 = load ptr, ptr %27, align 8, !tbaa !9
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %252, ptr noundef @.str.37) #7
  %254 = load ptr, ptr %27, align 8, !tbaa !9
  %255 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %254, ptr noundef @.str.38) #7
  %256 = load ptr, ptr %27, align 8, !tbaa !9
  %257 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef @.str.39) #7
  %258 = load ptr, ptr %27, align 8, !tbaa !9
  %259 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %258, ptr noundef @.str.40) #7
  %260 = load ptr, ptr %27, align 8, !tbaa !9
  %261 = call i32 @fclose(ptr noundef %260)
  %262 = 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 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  %263 = load ptr, ptr %16, align 8
  call void @llvm.stackrestore.p0(ptr %263)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %264

264:                                              ; preds = %231, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %265

265:                                              ; preds = %264, %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
  %266 = load i32, ptr %3, align 4
  ret i32 %266
}

; 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_crcf_create_kaiser(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) #1

declare i32 @rresamp_crcf_print(ptr noundef) #1

declare float @rresamp_crcf_get_rate(ptr noundef) #1

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

declare ptr @msourcecf_create_default() #1

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

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

declare ptr @spgramcf_create_default(i32 noundef) #1

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

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

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

declare i64 @spgramcf_get_num_samples_total(ptr noundef) #1

declare i32 @rresamp_crcf_destroy(ptr noundef) #1

declare i32 @spgramcf_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}


; 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 [51 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [48 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 [14 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [25 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 [33 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 range(i32 -1, 1) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  br label %.outer

.outer:                                           ; preds = %19, %2
  %.099.ph = phi float [ %22, %19 ], [ 6.000000e+01, %2 ]
  %.097.ph = phi float [ %.097.ph148, %19 ], [ -1.000000e+00, %2 ]
  %.095.ph = phi i32 [ %.095.ph153, %19 ], [ 20, %2 ]
  %.091.ph = phi i32 [ %.091.ph157, %19 ], [ 5, %2 ]
  %.089.ph = phi i32 [ %.089, %19 ], [ 3, %2 ]
  br label %.outer147

.outer147:                                        ; preds = %.outer, %15
  %.097.ph148 = phi float [ %.097.ph, %.outer ], [ %18, %15 ]
  %.095.ph149 = phi i32 [ %.095.ph, %.outer ], [ %.095.ph153, %15 ]
  %.091.ph150 = phi i32 [ %.091.ph, %.outer ], [ %.091.ph157, %15 ]
  %.089.ph151 = phi i32 [ %.089.ph, %.outer ], [ %.089, %15 ]
  br label %.outer152

.outer152:                                        ; preds = %.outer147, %12
  %.095.ph153 = phi i32 [ %.095.ph149, %.outer147 ], [ %14, %12 ]
  %.091.ph154 = phi i32 [ %.091.ph150, %.outer147 ], [ %.091.ph157, %12 ]
  %.089.ph155 = phi i32 [ %.089.ph151, %.outer147 ], [ %.089, %12 ]
  br label %.outer156

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

3:                                                ; preds = %.outer156, %6
  %.089 = phi i32 [ %8, %6 ], [ %.089.ph158, %.outer156 ]
  %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 %111

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 %.outer156, !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 %.outer152, !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 %.outer147, !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 %.089, -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 %.091.ph157, -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_crcf_create_kaiser(i32 noundef %.089, i32 noundef %.091.ph157, i32 noundef %.095.ph153, float noundef %.097.ph148, float noundef %.099.ph) #8
  %38 = icmp eq ptr %37, null
  br i1 %38, label %111, label %39

39:                                               ; preds = %36
  %40 = tail call i32 @rresamp_crcf_print(ptr noundef nonnull %37) #8
  %41 = tail call float @rresamp_crcf_get_rate(ptr noundef nonnull %37) #8
  %42 = tail call i32 @llvm.umax.i32(i32 %.089, i32 %.091.ph157)
  %43 = uitofp nneg i32 %42 to double
  %44 = fdiv double 1.200000e+05, %43
  %45 = fptoui double %44 to i32
  %46 = zext nneg i32 %.091.ph157 to i64
  %47 = tail call ptr @llvm.stacksave.p0()
  %48 = alloca { float, float }, i64 %46, align 16
  %49 = zext nneg i32 %.089 to i64
  %50 = alloca { float, float }, i64 %49, align 16
  %51 = fcmp ogt float %41, 1.000000e+00
  %.inv = fcmp oge float %41, 1.000000e+00
  %52 = select i1 %.inv, float 1.000000e+00, float %41
  %53 = fmul float %52, 0x3FE6666660000000
  %54 = tail call ptr @msourcecf_create_default() #8
  %55 = tail call i32 @msourcecf_add_noise(ptr noundef %54, float noundef 0.000000e+00, float noundef %53, float noundef 0.000000e+00) #8
  %56 = select i1 %51, float 0x3FD99999A0000000, float %53
  %57 = tail call i32 @msourcecf_add_tone(ptr noundef %54, float noundef %56, float noundef 0.000000e+00, float noundef 2.000000e+01) #8
  %58 = tail call ptr @spgramcf_create_default(i32 noundef 2400) #8
  %59 = tail call ptr @spgramcf_create_default(i32 noundef 2400) #8
  %.not = icmp eq i32 %45, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %39, %.lr.ph
  %.093113 = phi i32 [ %64, %.lr.ph ], [ 0, %39 ]
  %60 = call i32 @msourcecf_write_samples(ptr noundef %54, ptr noundef nonnull %48, i32 noundef %.091.ph157) #8
  %61 = call i32 @rresamp_crcf_execute(ptr noundef nonnull %37, ptr noundef nonnull %48, ptr noundef nonnull %50) #8
  %62 = call i32 @spgramcf_write(ptr noundef %58, ptr noundef nonnull %48, i32 noundef %.091.ph157) #8
  %63 = call i32 @spgramcf_write(ptr noundef %59, ptr noundef nonnull %50, i32 noundef %.089) #8
  %64 = add nuw i32 %.093113, 1
  %exitcond.not = icmp eq i32 %64, %45
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %39
  %65 = call i64 @spgramcf_get_num_samples_total(ptr noundef %59) #8
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i64 noundef %65)
  %67 = call i64 @spgramcf_get_num_samples_total(ptr noundef %58) #8
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i64 noundef %67)
  %69 = call i32 @rresamp_crcf_destroy(ptr noundef nonnull %37) #8
  %70 = alloca [2400 x float], align 16
  %71 = alloca [2400 x float], align 16
  %72 = call i32 @spgramcf_get_psd(ptr noundef %58, ptr noundef nonnull %70) #8
  %73 = call i32 @spgramcf_get_psd(ptr noundef %59, ptr noundef nonnull %71) #8
  %74 = call noalias ptr @fopen(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.15)
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.14) #8
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.17) #8
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.18) #8
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.19, i32 noundef %.089) #8
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.20, i32 noundef %.091.ph157) #8
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.21) #8
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.22, i32 noundef 2400) #8
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.23) #8
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.24) #8
  br label %84

84:                                               ; preds = %._crit_edge, %84
  %indvars.iv = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next, %84 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %85 = getelementptr inbounds float, ptr %70, i64 %indvars.iv
  %86 = load float, ptr %85, align 4, !tbaa !12
  %87 = fpext float %86 to double
  %88 = trunc nuw nsw i64 %indvars.iv.next to i32
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.25, i32 noundef %88, double noundef %87) #8
  %90 = getelementptr inbounds float, ptr %71, i64 %indvars.iv
  %91 = load float, ptr %90, align 4, !tbaa !12
  %92 = fpext float %91 to double
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.26, i32 noundef %88, double noundef %92) #8
  %exitcond126.not = icmp eq i64 %indvars.iv.next, 2400
  br i1 %exitcond126.not, label %94, label %84, !llvm.loop !14

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

111:                                              ; preds = %94, %36, %5
  %.1 = phi i32 [ 0, %5 ], [ 0, %94 ], [ -1, %36 ]
  ret i32 %.1
}

; 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_crcf_create_kaiser(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #5

declare i32 @rresamp_crcf_print(ptr noundef) local_unnamed_addr #5

declare float @rresamp_crcf_get_rate(ptr noundef) local_unnamed_addr #5

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

declare ptr @msourcecf_create_default() local_unnamed_addr #5

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

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

declare ptr @spgramcf_create_default(i32 noundef) local_unnamed_addr #5

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

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

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

declare i64 @spgramcf_get_num_samples_total(ptr noundef) local_unnamed_addr #5

declare i32 @rresamp_crcf_destroy(ptr noundef) local_unnamed_addr #5

declare i32 @spgramcf_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 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = distinct !{!14, !10}


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