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

36:                                               ; preds = %65, %2
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = load ptr, ptr %5, align 8, !tbaa !9
  %39 = call i32 @getopt(i32 noundef %37, ptr noundef %38, ptr noundef @.str.9) #8
  store i32 %39, ptr %13, align 4, !tbaa !5
  %40 = icmp ne i32 %39, -1
  br i1 %40, label %41, label %66

41:                                               ; preds = %36
  %42 = load i32, ptr %13, align 4, !tbaa !5
  switch i32 %42, label %64 [
    i32 104, label %43
    i32 112, label %44
    i32 72, label %47
    i32 107, label %51
    i32 109, label %54
    i32 98, label %57
    i32 110, label %61
  ]

43:                                               ; preds = %41
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %303

44:                                               ; preds = %41
  %45 = load ptr, ptr @optarg, align 8, !tbaa !9
  %46 = call i32 @atoi(ptr noundef %45) #9
  store i32 %46, ptr %6, align 4, !tbaa !5
  br label %65

47:                                               ; preds = %41
  %48 = load ptr, ptr @optarg, align 8, !tbaa !9
  %49 = call double @atof(ptr noundef %48) #9
  %50 = fptrunc double %49 to float
  store float %50, ptr %7, align 4, !tbaa !11
  br label %65

51:                                               ; preds = %41
  %52 = load ptr, ptr @optarg, align 8, !tbaa !9
  %53 = call i32 @atoi(ptr noundef %52) #9
  store i32 %53, ptr %8, align 4, !tbaa !5
  br label %65

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

57:                                               ; preds = %41
  %58 = load ptr, ptr @optarg, align 8, !tbaa !9
  %59 = call double @atof(ptr noundef %58) #9
  %60 = fptrunc double %59 to float
  store float %60, ptr %10, align 4, !tbaa !11
  br label %65

61:                                               ; preds = %41
  %62 = load ptr, ptr @optarg, align 8, !tbaa !9
  %63 = call i32 @atoi(ptr noundef %62) #9
  store i32 %63, ptr %11, align 4, !tbaa !5
  br label %65

64:                                               ; preds = %41
  call void @exit(i32 noundef 1) #10
  unreachable

65:                                               ; preds = %61, %57, %54, %51, %47, %44
  br label %36, !llvm.loop !13

66:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = shl i32 1, %67
  store i32 %68, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %69 = load i32, ptr %6, align 4, !tbaa !5
  %70 = load float, ptr %7, align 4, !tbaa !11
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = load float, ptr %10, align 4, !tbaa !11
  %74 = call ptr @cpfskmod_create(i32 noundef %69, float noundef %70, i32 noundef %71, i32 noundef %72, float noundef %73, i32 noundef 0)
  store ptr %74, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = load float, ptr %7, align 4, !tbaa !11
  %77 = load i32, ptr %8, align 4, !tbaa !5
  %78 = load i32, ptr %9, align 4, !tbaa !5
  %79 = load float, ptr %10, align 4, !tbaa !11
  %80 = call ptr @cpfskmod_create(i32 noundef %75, float noundef %76, i32 noundef %77, i32 noundef %78, float noundef %79, i32 noundef 1)
  store ptr %80, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = load float, ptr %7, align 4, !tbaa !11
  %83 = load i32, ptr %8, align 4, !tbaa !5
  %84 = load i32, ptr %9, align 4, !tbaa !5
  %85 = load float, ptr %10, align 4, !tbaa !11
  %86 = call ptr @cpfskmod_create(i32 noundef %81, float noundef %82, i32 noundef %83, i32 noundef %84, float noundef %85, i32 noundef 2)
  store ptr %86, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = load float, ptr %7, align 4, !tbaa !11
  %89 = load i32, ptr %8, align 4, !tbaa !5
  %90 = load i32, ptr %9, align 4, !tbaa !5
  %91 = load float, ptr %10, align 4, !tbaa !11
  %92 = call ptr @cpfskmod_create(i32 noundef %87, float noundef %88, i32 noundef %89, i32 noundef %90, float noundef %91, i32 noundef 3)
  store ptr %92, ptr %20, align 8, !tbaa !9
  %93 = load i32, ptr %8, align 4, !tbaa !5
  %94 = zext i32 %93 to i64
  %95 = call ptr @llvm.stacksave.p0()
  store ptr %95, ptr %21, align 8
  %96 = alloca { float, float }, i64 %94, align 16
  store i64 %94, ptr %22, align 8
  %97 = load i32, ptr %8, align 4, !tbaa !5
  %98 = zext i32 %97 to i64
  %99 = alloca { float, float }, i64 %98, align 16
  store i64 %98, ptr %23, align 8
  %100 = load i32, ptr %8, align 4, !tbaa !5
  %101 = zext i32 %100 to i64
  %102 = alloca { float, float }, i64 %101, align 16
  store i64 %101, ptr %24, align 8
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = zext i32 %103 to i64
  %105 = alloca { float, float }, i64 %104, align 16
  store i64 %104, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %106 = load i32, ptr %12, align 4, !tbaa !5
  %107 = call ptr @spgramcf_create_default(i32 noundef %106)
  store ptr %107, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %108 = load i32, ptr %12, align 4, !tbaa !5
  %109 = call ptr @spgramcf_create_default(i32 noundef %108)
  store ptr %109, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %110 = load i32, ptr %12, align 4, !tbaa !5
  %111 = call ptr @spgramcf_create_default(i32 noundef %110)
  store ptr %111, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %112 = load i32, ptr %12, align 4, !tbaa !5
  %113 = call ptr @spgramcf_create_default(i32 noundef %112)
  store ptr %113, ptr %29, align 8, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %146, %66
  %115 = load i32, ptr %15, align 4, !tbaa !5
  %116 = load i32, ptr %11, align 4, !tbaa !5
  %117 = icmp ult i32 %115, %116
  br i1 %117, label %118, label %149

118:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %119 = call i32 @rand() #8
  %120 = load i32, ptr %16, align 4, !tbaa !5
  %121 = urem i32 %119, %120
  store i32 %121, ptr %30, align 4, !tbaa !5
  %122 = load ptr, ptr %17, align 8, !tbaa !9
  %123 = load i32, ptr %30, align 4, !tbaa !5
  %124 = call i32 @cpfskmod_modulate(ptr noundef %122, i32 noundef %123, ptr noundef %96)
  %125 = load ptr, ptr %18, align 8, !tbaa !9
  %126 = load i32, ptr %30, align 4, !tbaa !5
  %127 = call i32 @cpfskmod_modulate(ptr noundef %125, i32 noundef %126, ptr noundef %99)
  %128 = load ptr, ptr %19, align 8, !tbaa !9
  %129 = load i32, ptr %30, align 4, !tbaa !5
  %130 = call i32 @cpfskmod_modulate(ptr noundef %128, i32 noundef %129, ptr noundef %102)
  %131 = load ptr, ptr %20, align 8, !tbaa !9
  %132 = load i32, ptr %30, align 4, !tbaa !5
  %133 = call i32 @cpfskmod_modulate(ptr noundef %131, i32 noundef %132, ptr noundef %105)
  %134 = load ptr, ptr %26, align 8, !tbaa !9
  %135 = load i32, ptr %8, align 4, !tbaa !5
  %136 = call i32 @spgramcf_write(ptr noundef %134, ptr noundef %96, i32 noundef %135)
  %137 = load ptr, ptr %27, align 8, !tbaa !9
  %138 = load i32, ptr %8, align 4, !tbaa !5
  %139 = call i32 @spgramcf_write(ptr noundef %137, ptr noundef %99, i32 noundef %138)
  %140 = load ptr, ptr %28, align 8, !tbaa !9
  %141 = load i32, ptr %8, align 4, !tbaa !5
  %142 = call i32 @spgramcf_write(ptr noundef %140, ptr noundef %102, i32 noundef %141)
  %143 = load ptr, ptr %29, align 8, !tbaa !9
  %144 = load i32, ptr %8, align 4, !tbaa !5
  %145 = call i32 @spgramcf_write(ptr noundef %143, ptr noundef %105, i32 noundef %144)
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %146

146:                                              ; preds = %118
  %147 = load i32, ptr %15, align 4, !tbaa !5
  %148 = add i32 %147, 1
  store i32 %148, ptr %15, align 4, !tbaa !5
  br label %114, !llvm.loop !15

149:                                              ; preds = %114
  %150 = load i32, ptr %12, align 4, !tbaa !5
  %151 = zext i32 %150 to i64
  %152 = alloca float, i64 %151, align 16
  store i64 %151, ptr %31, align 8
  %153 = load ptr, ptr %26, align 8, !tbaa !9
  %154 = call i32 @spgramcf_get_psd(ptr noundef %153, ptr noundef %152)
  %155 = load i32, ptr %12, align 4, !tbaa !5
  %156 = zext i32 %155 to i64
  %157 = alloca float, i64 %156, align 16
  store i64 %156, ptr %32, align 8
  %158 = load ptr, ptr %27, align 8, !tbaa !9
  %159 = call i32 @spgramcf_get_psd(ptr noundef %158, ptr noundef %157)
  %160 = load i32, ptr %12, align 4, !tbaa !5
  %161 = zext i32 %160 to i64
  %162 = alloca float, i64 %161, align 16
  store i64 %161, ptr %33, align 8
  %163 = load ptr, ptr %28, align 8, !tbaa !9
  %164 = call i32 @spgramcf_get_psd(ptr noundef %163, ptr noundef %162)
  %165 = load i32, ptr %12, align 4, !tbaa !5
  %166 = zext i32 %165 to i64
  %167 = alloca float, i64 %166, align 16
  store i64 %166, ptr %34, align 8
  %168 = load ptr, ptr %29, align 8, !tbaa !9
  %169 = call i32 @spgramcf_get_psd(ptr noundef %168, ptr noundef %167)
  %170 = load ptr, ptr %17, align 8, !tbaa !9
  %171 = call i32 @cpfskmod_destroy(ptr noundef %170)
  %172 = load ptr, ptr %18, align 8, !tbaa !9
  %173 = call i32 @cpfskmod_destroy(ptr noundef %172)
  %174 = load ptr, ptr %19, align 8, !tbaa !9
  %175 = call i32 @cpfskmod_destroy(ptr noundef %174)
  %176 = load ptr, ptr %20, align 8, !tbaa !9
  %177 = call i32 @cpfskmod_destroy(ptr noundef %176)
  %178 = load ptr, ptr %26, align 8, !tbaa !9
  %179 = call i32 @spgramcf_destroy(ptr noundef %178)
  %180 = load ptr, ptr %27, align 8, !tbaa !9
  %181 = call i32 @spgramcf_destroy(ptr noundef %180)
  %182 = load ptr, ptr %28, align 8, !tbaa !9
  %183 = call i32 @spgramcf_destroy(ptr noundef %182)
  %184 = load ptr, ptr %29, align 8, !tbaa !9
  %185 = call i32 @spgramcf_destroy(ptr noundef %184)
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %186 = call noalias ptr @fopen(ptr noundef @.str.10, ptr noundef @.str.11)
  store ptr %186, ptr %35, align 8, !tbaa !9
  %187 = load ptr, ptr %35, align 8, !tbaa !9
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef @.str.12, ptr noundef @.str.10) #8
  %189 = load ptr, ptr %35, align 8, !tbaa !9
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %189, ptr noundef @.str.13) #8
  %191 = load ptr, ptr %35, align 8, !tbaa !9
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.14) #8
  %193 = load ptr, ptr %35, align 8, !tbaa !9
  %194 = load i32, ptr %8, align 4, !tbaa !5
  %195 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str.15, i32 noundef %194) #8
  %196 = load ptr, ptr %35, align 8, !tbaa !9
  %197 = load i32, ptr %11, align 4, !tbaa !5
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef @.str.16, i32 noundef %197) #8
  %199 = load ptr, ptr %35, align 8, !tbaa !9
  %200 = load i32, ptr %12, align 4, !tbaa !5
  %201 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.17, i32 noundef %200) #8
  %202 = load ptr, ptr %35, align 8, !tbaa !9
  %203 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %202, ptr noundef @.str.18) #8
  %204 = load ptr, ptr %35, align 8, !tbaa !9
  %205 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %204, ptr noundef @.str.19) #8
  %206 = load ptr, ptr %35, align 8, !tbaa !9
  %207 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %206, ptr noundef @.str.20) #8
  %208 = load ptr, ptr %35, align 8, !tbaa !9
  %209 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %208, ptr noundef @.str.21) #8
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %210

210:                                              ; preds = %267, %149
  %211 = load i32, ptr %15, align 4, !tbaa !5
  %212 = load i32, ptr %12, align 4, !tbaa !5
  %213 = icmp ult i32 %211, %212
  br i1 %213, label %214, label %270

214:                                              ; preds = %210
  %215 = load ptr, ptr %35, align 8, !tbaa !9
  %216 = load i32, ptr %15, align 4, !tbaa !5
  %217 = add i32 %216, 1
  %218 = load i32, ptr %15, align 4, !tbaa !5
  %219 = zext i32 %218 to i64
  %220 = getelementptr inbounds float, ptr %152, i64 %219
  %221 = load float, ptr %220, align 4, !tbaa !11
  %222 = fpext float %221 to double
  %223 = load i32, ptr %8, align 4, !tbaa !5
  %224 = uitofp i32 %223 to double
  %225 = call double @log10(double noundef %224) #8
  %226 = call double @llvm.fmuladd.f64(double -1.000000e+01, double %225, double %222)
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.22, i32 noundef %217, double noundef %226) #8
  %228 = load ptr, ptr %35, align 8, !tbaa !9
  %229 = load i32, ptr %15, align 4, !tbaa !5
  %230 = add i32 %229, 1
  %231 = load i32, ptr %15, align 4, !tbaa !5
  %232 = zext i32 %231 to i64
  %233 = getelementptr inbounds float, ptr %157, i64 %232
  %234 = load float, ptr %233, align 4, !tbaa !11
  %235 = fpext float %234 to double
  %236 = load i32, ptr %8, align 4, !tbaa !5
  %237 = uitofp i32 %236 to double
  %238 = call double @log10(double noundef %237) #8
  %239 = call double @llvm.fmuladd.f64(double -1.000000e+01, double %238, double %235)
  %240 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %228, ptr noundef @.str.23, i32 noundef %230, double noundef %239) #8
  %241 = load ptr, ptr %35, align 8, !tbaa !9
  %242 = load i32, ptr %15, align 4, !tbaa !5
  %243 = add i32 %242, 1
  %244 = load i32, ptr %15, align 4, !tbaa !5
  %245 = zext i32 %244 to i64
  %246 = getelementptr inbounds float, ptr %162, i64 %245
  %247 = load float, ptr %246, align 4, !tbaa !11
  %248 = fpext float %247 to double
  %249 = load i32, ptr %8, align 4, !tbaa !5
  %250 = uitofp i32 %249 to double
  %251 = call double @log10(double noundef %250) #8
  %252 = call double @llvm.fmuladd.f64(double -1.000000e+01, double %251, double %248)
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %241, ptr noundef @.str.24, i32 noundef %243, double noundef %252) #8
  %254 = load ptr, ptr %35, align 8, !tbaa !9
  %255 = load i32, ptr %15, align 4, !tbaa !5
  %256 = add i32 %255, 1
  %257 = load i32, ptr %15, align 4, !tbaa !5
  %258 = zext i32 %257 to i64
  %259 = getelementptr inbounds float, ptr %167, i64 %258
  %260 = load float, ptr %259, align 4, !tbaa !11
  %261 = fpext float %260 to double
  %262 = load i32, ptr %8, align 4, !tbaa !5
  %263 = uitofp i32 %262 to double
  %264 = call double @log10(double noundef %263) #8
  %265 = call double @llvm.fmuladd.f64(double -1.000000e+01, double %264, double %261)
  %266 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %254, ptr noundef @.str.25, i32 noundef %256, double noundef %265) #8
  br label %267

267:                                              ; preds = %214
  %268 = load i32, ptr %15, align 4, !tbaa !5
  %269 = add i32 %268, 1
  store i32 %269, ptr %15, align 4, !tbaa !5
  br label %210, !llvm.loop !16

270:                                              ; preds = %210
  %271 = load ptr, ptr %35, align 8, !tbaa !9
  %272 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %271, ptr noundef @.str.26) #8
  %273 = load ptr, ptr %35, align 8, !tbaa !9
  %274 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %273, ptr noundef @.str.27) #8
  %275 = load ptr, ptr %35, align 8, !tbaa !9
  %276 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %275, ptr noundef @.str.28) #8
  %277 = load ptr, ptr %35, align 8, !tbaa !9
  %278 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %277, ptr noundef @.str.29) #8
  %279 = load ptr, ptr %35, align 8, !tbaa !9
  %280 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %279, ptr noundef @.str.30) #8
  %281 = load ptr, ptr %35, align 8, !tbaa !9
  %282 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %281, ptr noundef @.str.31) #8
  %283 = load ptr, ptr %35, align 8, !tbaa !9
  %284 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %283, ptr noundef @.str.32) #8
  %285 = load ptr, ptr %35, align 8, !tbaa !9
  %286 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %285, ptr noundef @.str.33) #8
  %287 = load ptr, ptr %35, align 8, !tbaa !9
  %288 = load float, ptr %10, align 4, !tbaa !11
  %289 = fpext float %288 to double
  %290 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %287, ptr noundef @.str.34, double noundef %289) #8
  %291 = load ptr, ptr %35, align 8, !tbaa !9
  %292 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %291, ptr noundef @.str.35) #8
  %293 = load ptr, ptr %35, align 8, !tbaa !9
  %294 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %293, ptr noundef @.str.36) #8
  %295 = load ptr, ptr %35, align 8, !tbaa !9
  %296 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %295, ptr noundef @.str.37) #8
  %297 = load ptr, ptr %35, align 8, !tbaa !9
  %298 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %297, ptr noundef @.str.38) #8
  %299 = load ptr, ptr %35, align 8, !tbaa !9
  %300 = call i32 @fclose(ptr noundef %299)
  %301 = call i32 (ptr, ...) @printf(ptr noundef @.str.39, ptr noundef @.str.10)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  %302 = load ptr, ptr %21, align 8
  call void @llvm.stackrestore.p0(ptr %302)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %303

303:                                              ; preds = %270, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %304 = load i32, ptr %3, align 4
  ret i32 %304
}

; 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

declare ptr @cpfskmod_create(i32 noundef, float noundef, i32 noundef, i32 noundef, float noundef, i32 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 @cpfskmod_modulate(ptr noundef, i32 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 @spgramcf_get_psd(ptr noundef, ptr noundef) #1

declare i32 @cpfskmod_destroy(ptr noundef) #1

declare i32 @spgramcf_destroy(ptr noundef) #1

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

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

; Function Attrs: nounwind
declare double @log10(double noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = 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 [14 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.39 = 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 = %23, %2
  %.0125.ph = phi i32 [ %25, %23 ], [ 48000, %2 ]
  %.0123.ph = phi float [ %.0123.ph182, %23 ], [ 0x3FD6666660000000, %2 ]
  %.0121.ph = phi i32 [ %.0121.ph188, %23 ], [ 7, %2 ]
  %.0119.ph = phi i32 [ %.0119.ph193, %23 ], [ 8, %2 ]
  %.0117.ph = phi float [ %.0117.ph197, %23 ], [ 5.000000e-01, %2 ]
  %.0116.ph = phi i32 [ %.0116, %23 ], [ 1, %2 ]
  br label %.outer181

.outer181:                                        ; preds = %.outer, %19
  %.0123.ph182 = phi float [ %.0123.ph, %.outer ], [ %22, %19 ]
  %.0121.ph183 = phi i32 [ %.0121.ph, %.outer ], [ %.0121.ph188, %19 ]
  %.0119.ph184 = phi i32 [ %.0119.ph, %.outer ], [ %.0119.ph193, %19 ]
  %.0117.ph185 = phi float [ %.0117.ph, %.outer ], [ %.0117.ph197, %19 ]
  %.0116.ph186 = phi i32 [ %.0116.ph, %.outer ], [ %.0116, %19 ]
  br label %.outer187

.outer187:                                        ; preds = %.outer181, %16
  %.0121.ph188 = phi i32 [ %.0121.ph183, %.outer181 ], [ %18, %16 ]
  %.0119.ph189 = phi i32 [ %.0119.ph184, %.outer181 ], [ %.0119.ph193, %16 ]
  %.0117.ph190 = phi float [ %.0117.ph185, %.outer181 ], [ %.0117.ph197, %16 ]
  %.0116.ph191 = phi i32 [ %.0116.ph186, %.outer181 ], [ %.0116, %16 ]
  br label %.outer192

.outer192:                                        ; preds = %.outer187, %13
  %.0119.ph193 = phi i32 [ %.0119.ph189, %.outer187 ], [ %15, %13 ]
  %.0117.ph194 = phi float [ %.0117.ph190, %.outer187 ], [ %.0117.ph197, %13 ]
  %.0116.ph195 = phi i32 [ %.0116.ph191, %.outer187 ], [ %.0116, %13 ]
  br label %.outer196

.outer196:                                        ; preds = %.outer192, %9
  %.0117.ph197 = phi float [ %.0117.ph194, %.outer192 ], [ %12, %9 ]
  %.0116.ph198 = phi i32 [ %.0116.ph195, %.outer192 ], [ %.0116, %9 ]
  br label %3

3:                                                ; preds = %.outer196, %6
  %.0116 = phi i32 [ %8, %6 ], [ %.0116.ph198, %.outer196 ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.9) #9
  switch i32 %4, label %26 [
    i32 -1, label %27
    i32 104, label %5
    i32 112, label %6
    i32 72, label %9
    i32 107, label %13
    i32 109, label %16
    i32 98, label %19
    i32 110, label %23
  ]

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

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 double @atof(ptr noundef %10) #10
  %12 = fptrunc double %11 to float
  br label %.outer196, !llvm.loop !9

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

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

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

27:                                               ; preds = %3
  %28 = tail call ptr @cpfskmod_create(i32 noundef %.0116, float noundef %.0117.ph197, i32 noundef %.0119.ph193, i32 noundef %.0121.ph188, float noundef %.0123.ph182, i32 noundef 0) #9
  %29 = tail call ptr @cpfskmod_create(i32 noundef %.0116, float noundef %.0117.ph197, i32 noundef %.0119.ph193, i32 noundef %.0121.ph188, float noundef %.0123.ph182, i32 noundef 1) #9
  %30 = tail call ptr @cpfskmod_create(i32 noundef %.0116, float noundef %.0117.ph197, i32 noundef %.0119.ph193, i32 noundef %.0121.ph188, float noundef %.0123.ph182, i32 noundef 2) #9
  %31 = tail call ptr @cpfskmod_create(i32 noundef %.0116, float noundef %.0117.ph197, i32 noundef %.0119.ph193, i32 noundef %.0121.ph188, float noundef %.0123.ph182, i32 noundef 3) #9
  %32 = zext i32 %.0119.ph193 to i64
  %33 = tail call ptr @llvm.stacksave.p0()
  %34 = alloca { float, float }, i64 %32, align 16
  %35 = alloca { float, float }, i64 %32, align 16
  %36 = alloca { float, float }, i64 %32, align 16
  %37 = alloca { float, float }, i64 %32, align 16
  %38 = tail call ptr @spgramcf_create_default(i32 noundef 2400) #9
  %39 = tail call ptr @spgramcf_create_default(i32 noundef 2400) #9
  %40 = tail call ptr @spgramcf_create_default(i32 noundef 2400) #9
  %41 = tail call ptr @spgramcf_create_default(i32 noundef 2400) #9
  %.not = icmp eq i32 %.0125.ph, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %27
  %notmask = shl nsw i32 -1, %.0116
  %42 = xor i32 %notmask, -1
  br label %43

43:                                               ; preds = %.lr.ph, %43
  %.0127141 = phi i32 [ 0, %.lr.ph ], [ %54, %43 ]
  %44 = call i32 @rand() #9
  %45 = and i32 %44, %42
  %46 = call i32 @cpfskmod_modulate(ptr noundef %28, i32 noundef %45, ptr noundef nonnull %34) #9
  %47 = call i32 @cpfskmod_modulate(ptr noundef %29, i32 noundef %45, ptr noundef nonnull %35) #9
  %48 = call i32 @cpfskmod_modulate(ptr noundef %30, i32 noundef %45, ptr noundef nonnull %36) #9
  %49 = call i32 @cpfskmod_modulate(ptr noundef %31, i32 noundef %45, ptr noundef nonnull %37) #9
  %50 = call i32 @spgramcf_write(ptr noundef %38, ptr noundef nonnull %34, i32 noundef %.0119.ph193) #9
  %51 = call i32 @spgramcf_write(ptr noundef %39, ptr noundef nonnull %35, i32 noundef %.0119.ph193) #9
  %52 = call i32 @spgramcf_write(ptr noundef %40, ptr noundef nonnull %36, i32 noundef %.0119.ph193) #9
  %53 = call i32 @spgramcf_write(ptr noundef %41, ptr noundef nonnull %37, i32 noundef %.0119.ph193) #9
  %54 = add nuw i32 %.0127141, 1
  %exitcond.not = icmp eq i32 %54, %.0125.ph
  br i1 %exitcond.not, label %._crit_edge, label %43, !llvm.loop !11

._crit_edge:                                      ; preds = %43, %27
  %55 = alloca [2400 x float], align 16
  %56 = call i32 @spgramcf_get_psd(ptr noundef %38, ptr noundef nonnull %55) #9
  %57 = alloca [2400 x float], align 16
  %58 = call i32 @spgramcf_get_psd(ptr noundef %39, ptr noundef nonnull %57) #9
  %59 = alloca [2400 x float], align 16
  %60 = call i32 @spgramcf_get_psd(ptr noundef %40, ptr noundef nonnull %59) #9
  %61 = alloca [2400 x float], align 16
  %62 = call i32 @spgramcf_get_psd(ptr noundef %41, ptr noundef nonnull %61) #9
  %63 = call i32 @cpfskmod_destroy(ptr noundef %28) #9
  %64 = call i32 @cpfskmod_destroy(ptr noundef %29) #9
  %65 = call i32 @cpfskmod_destroy(ptr noundef %30) #9
  %66 = call i32 @cpfskmod_destroy(ptr noundef %31) #9
  %67 = call i32 @spgramcf_destroy(ptr noundef %38) #9
  %68 = call i32 @spgramcf_destroy(ptr noundef %39) #9
  %69 = call i32 @spgramcf_destroy(ptr noundef %40) #9
  %70 = call i32 @spgramcf_destroy(ptr noundef %41) #9
  %71 = call noalias ptr @fopen(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.11)
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.10) #9
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.13) #9
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.14) #9
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.15, i32 noundef %.0119.ph193) #9
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.16, i32 noundef %.0125.ph) #9
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.17, i32 noundef 2400) #9
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.18) #9
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.19) #9
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.20) #9
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.21) #9
  %82 = uitofp i32 %.0119.ph193 to double
  br label %83

83:                                               ; preds = %._crit_edge, %83
  %indvars.iv = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next, %83 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %84 = getelementptr inbounds float, ptr %55, i64 %indvars.iv
  %85 = load float, ptr %84, align 4, !tbaa !12
  %86 = fpext float %85 to double
  %87 = call double @log10(double noundef %82) #9
  %88 = call double @llvm.fmuladd.f64(double %87, double -1.000000e+01, double %86)
  %89 = trunc nuw nsw i64 %indvars.iv.next to i32
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.22, i32 noundef %89, double noundef %88) #9
  %91 = getelementptr inbounds float, ptr %57, i64 %indvars.iv
  %92 = load float, ptr %91, align 4, !tbaa !12
  %93 = fpext float %92 to double
  %94 = call double @log10(double noundef %82) #9
  %95 = call double @llvm.fmuladd.f64(double %94, double -1.000000e+01, double %93)
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.23, i32 noundef %89, double noundef %95) #9
  %97 = getelementptr inbounds float, ptr %59, i64 %indvars.iv
  %98 = load float, ptr %97, align 4, !tbaa !12
  %99 = fpext float %98 to double
  %100 = call double @log10(double noundef %82) #9
  %101 = call double @llvm.fmuladd.f64(double %100, double -1.000000e+01, double %99)
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.24, i32 noundef %89, double noundef %101) #9
  %103 = getelementptr inbounds float, ptr %61, i64 %indvars.iv
  %104 = load float, ptr %103, align 4, !tbaa !12
  %105 = fpext float %104 to double
  %106 = call double @log10(double noundef %82) #9
  %107 = call double @llvm.fmuladd.f64(double %106, double -1.000000e+01, double %105)
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.25, i32 noundef %89, double noundef %107) #9
  %exitcond156.not = icmp eq i64 %indvars.iv.next, 2400
  br i1 %exitcond156.not, label %109, label %83, !llvm.loop !14

109:                                              ; preds = %83
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.26) #9
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.27) #9
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.28) #9
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.29) #9
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.30) #9
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.31) #9
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.32) #9
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.33) #9
  %118 = fpext float %.0123.ph182 to double
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.34, double noundef %118) #9
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.35) #9
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.36) #9
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.37) #9
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.38) #9
  %124 = call i32 @fclose(ptr noundef %71)
  %125 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.39, ptr noundef nonnull @.str.10)
  call void @llvm.stackrestore.p0(ptr %33)
  br label %126

126:                                              ; preds = %109, %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

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

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

declare ptr @spgramcf_create_default(i32 noundef) local_unnamed_addr #5

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

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

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

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

declare i32 @cpfskmod_destroy(ptr noundef) local_unnamed_addr #5

declare i32 @spgramcf_destroy(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 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log10(double noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #8

; 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

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 = { 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 #8 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { 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 = !{!"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,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass