; LLVM IR from jgaeddert/liquid-dsp :: src/fft/src (spgramcf)

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

%struct.spwaterfallcf_s = type { i32, i32, ptr, ptr, i32, i32, float, float, i32, i32, ptr }

@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [54 x i8], align 1
@__const.spwaterfallcf_export_gnu.spacing = external hidden unnamed_addr constant [16 x float], align 16
@.str.87 = external hidden unnamed_addr constant [63 x i8], align 1

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

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

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @spgramcf_get_num_samples_total(ptr noundef) #4

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

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

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

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

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

declare i32 @fclose(ptr noundef) #1

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #7

; Function Attrs: nounwind uwtable
define dso_local i32 @spwaterfallcf_export_gnu(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i8, align 1
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca i8, align 1
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca [16 x float], align 16
  %21 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = call i64 @strlen(ptr noundef %22) #9
  %24 = trunc i64 %23 to i32
  store i32 %24, ptr %6, align 4, !tbaa !9
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = add nsw i32 %25, 5
  %27 = zext i32 %26 to i64
  %28 = call ptr @llvm.stacksave.p0()
  store ptr %28, ptr %7, align 8
  %29 = alloca i8, i64 %27, align 16
  store i64 %27, ptr %8, align 8
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %29, ptr noundef @.str.59, ptr noundef %30) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %32 = call noalias ptr @fopen(ptr noundef %29, ptr noundef @.str.20)
  store ptr %32, ptr %9, align 8, !tbaa !5
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %37

35:                                               ; preds = %2
  %36 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str.40, i32 noundef 452, ptr noundef @.str.60, ptr noundef @.str.2, ptr noundef %29)
  store i32 %36, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %259

37:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %38, i32 0, i32 2
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = call i64 @spgramcf_get_num_samples_total(ptr noundef %40)
  store i64 %41, ptr %11, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #8
  store i8 32, ptr %12, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store float 1.000000e+00, ptr %13, align 4, !tbaa !17
  %42 = load i64, ptr %11, align 8, !tbaa !14
  %43 = uitofp i64 %42 to float
  %44 = fdiv float %43, 4.000000e+00
  %45 = call i32 @liquid_get_scale(float noundef %44, ptr noundef %12, ptr noundef %13)
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.61) #8
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str.23) #8
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %51, i32 0, i32 8
  %53 = load i32, ptr %52, align 8, !tbaa !18
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %54, i32 0, i32 9
  %56 = load i32, ptr %55, align 4, !tbaa !19
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.62, i32 noundef %53, i32 noundef %56) #8
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.25, ptr noundef %59) #8
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.63) #8
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.64) #8
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.65) #8
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.66) #8
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef @.str.30) #8
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.67) #8
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = load i64, ptr %11, align 8, !tbaa !14
  %75 = sub i64 %74, 1
  %76 = uitofp i64 %75 to float
  %77 = load float, ptr %13, align 4, !tbaa !17
  %78 = fmul float %76, %77
  %79 = fpext float %78 to double
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.68, double noundef %79) #8
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef @.str.69) #8
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load i8, ptr %12, align 1, !tbaa !16
  %85 = sext i8 %84 to i32
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.70, i32 noundef %85) #8
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str.71) #8
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.72) #8
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.73) #8
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.74) #8
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.75) #8
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.76) #8
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef @.str.77) #8
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.78) #8
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef @.str.79) #8
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.80) #8
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.81) #8
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str.82) #8
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %111, i32 0, i32 7
  %113 = load float, ptr %112, align 4, !tbaa !20
  %114 = fcmp olt float %113, 0.000000e+00
  br i1 %114, label %115, label %140

115:                                              ; preds = %37
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.32) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store float 0x3FB99999A0000000, ptr %14, align 4, !tbaa !17
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = load float, ptr %14, align 4, !tbaa !17
  %120 = fpext float %119 to double
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %118, ptr noundef @.str.83, double noundef %120) #8
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.84) #8
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %124, i32 0, i32 10
  %126 = load ptr, ptr %125, align 8, !tbaa !21
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %134

128:                                              ; preds = %115
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %130, i32 0, i32 10
  %132 = load ptr, ptr %131, align 8, !tbaa !21
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %129, ptr noundef @.str.85, ptr noundef %132) #8
  br label %134

134:                                              ; preds = %128, %115
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = load float, ptr %13, align 4, !tbaa !17
  %138 = fpext float %137 to double
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.86, ptr noundef %136, double noundef %138) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %256

140:                                              ; preds = %37
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store float 1.000000e+00, ptr %16, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %141, i32 0, i32 6
  %143 = load float, ptr %142, align 8, !tbaa !22
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %144, i32 0, i32 7
  %146 = load float, ptr %145, align 4, !tbaa !20
  %147 = call float @llvm.fmuladd.f32(float 5.000000e-01, float %146, float %143)
  store float %147, ptr %17, align 4, !tbaa !17
  %148 = load float, ptr %17, align 4, !tbaa !17
  %149 = fdiv float %148, 2.000000e+00
  %150 = call i32 @liquid_get_scale(float noundef %149, ptr noundef %15, ptr noundef %16)
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = load i8, ptr %15, align 1, !tbaa !16
  %153 = sext i8 %152 to i32
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef @.str.35, i32 noundef %153) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %155, i32 0, i32 8
  %157 = load i32, ptr %156, align 8, !tbaa !18
  %158 = uitofp i32 %157 to float
  %159 = fmul float %158, 0x3FE99999A0000000
  %160 = fdiv float %159, 7.000000e+01
  store float %160, ptr %18, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store float 1.000000e+00, ptr %19, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 @__const.spwaterfallcf_export_gnu.spacing, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %186, %140
  %162 = load i32, ptr %21, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = getelementptr inbounds [16 x float], ptr %20, i64 0, i64 %163
  %165 = load float, ptr %164, align 4, !tbaa !17
  %166 = fcmp ogt float %165, 0.000000e+00
  br i1 %166, label %167, label %189

167:                                              ; preds = %161
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %168, i32 0, i32 7
  %170 = load float, ptr %169, align 4, !tbaa !20
  %171 = load float, ptr %16, align 4, !tbaa !17
  %172 = fmul float %170, %171
  %173 = load i32, ptr %21, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = getelementptr inbounds [16 x float], ptr %20, i64 0, i64 %174
  %176 = load float, ptr %175, align 4, !tbaa !17
  %177 = fdiv float %172, %176
  %178 = load float, ptr %18, align 4, !tbaa !17
  %179 = fmul float 0x3FF3333340000000, %178
  %180 = fcmp olt float %177, %179
  br i1 %180, label %181, label %186

181:                                              ; preds = %167
  %182 = load i32, ptr %21, align 4, !tbaa !9
  %183 = zext i32 %182 to i64
  %184 = getelementptr inbounds [16 x float], ptr %20, i64 0, i64 %183
  %185 = load float, ptr %184, align 4, !tbaa !17
  store float %185, ptr %19, align 4, !tbaa !17
  br label %189

186:                                              ; preds = %167
  %187 = load i32, ptr %21, align 4, !tbaa !9
  %188 = add i32 %187, 1
  store i32 %188, ptr %21, align 4, !tbaa !9
  br label %161, !llvm.loop !23

189:                                              ; preds = %181, %161
  %190 = load ptr, ptr %9, align 8, !tbaa !5
  %191 = load float, ptr %16, align 4, !tbaa !17
  %192 = fpext float %191 to double
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %193, i32 0, i32 6
  %195 = load float, ptr %194, align 8, !tbaa !22
  %196 = fpext float %195 to double
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %197, i32 0, i32 7
  %199 = load float, ptr %198, align 4, !tbaa !20
  %200 = fpext float %199 to double
  %201 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %200, double %196)
  %202 = fmul double %192, %201
  %203 = load float, ptr %16, align 4, !tbaa !17
  %204 = fpext float %203 to double
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %205, i32 0, i32 6
  %207 = load float, ptr %206, align 8, !tbaa !22
  %208 = fpext float %207 to double
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %209, i32 0, i32 7
  %211 = load float, ptr %210, align 4, !tbaa !20
  %212 = fpext float %211 to double
  %213 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %212, double %208)
  %214 = fmul double %204, %213
  %215 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef @.str.36, double noundef %202, double noundef %214) #8
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  %217 = load float, ptr %19, align 4, !tbaa !17
  %218 = fpext float %217 to double
  %219 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %216, ptr noundef @.str.83, double noundef %218) #8
  %220 = load ptr, ptr %4, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %220, i32 0, i32 10
  %222 = load ptr, ptr %221, align 8, !tbaa !21
  %223 = icmp ne ptr %222, null
  br i1 %223, label %224, label %230

224:                                              ; preds = %189
  %225 = load ptr, ptr %9, align 8, !tbaa !5
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %226, i32 0, i32 10
  %228 = load ptr, ptr %227, align 8, !tbaa !21
  %229 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %225, ptr noundef @.str.85, ptr noundef %228) #8
  br label %230

230:                                              ; preds = %224, %189
  %231 = load ptr, ptr %9, align 8, !tbaa !5
  %232 = load ptr, ptr %5, align 8, !tbaa !5
  %233 = load float, ptr %16, align 4, !tbaa !17
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %234, i32 0, i32 7
  %236 = load float, ptr %235, align 4, !tbaa !20
  %237 = fcmp olt float %236, 0.000000e+00
  br i1 %237, label %238, label %239

238:                                              ; preds = %230
  br label %243

239:                                              ; preds = %230
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %240, i32 0, i32 7
  %242 = load float, ptr %241, align 4, !tbaa !20
  br label %243

243:                                              ; preds = %239, %238
  %244 = phi float [ 1.000000e+00, %238 ], [ %242, %239 ]
  %245 = fmul float %233, %244
  %246 = fpext float %245 to double
  %247 = load float, ptr %16, align 4, !tbaa !17
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.spwaterfallcf_s, ptr %248, i32 0, i32 6
  %250 = load float, ptr %249, align 8, !tbaa !22
  %251 = fmul float %247, %250
  %252 = fpext float %251 to double
  %253 = load float, ptr %13, align 4, !tbaa !17
  %254 = fpext float %253 to double
  %255 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %231, ptr noundef @.str.87, ptr noundef %232, double noundef %246, double noundef %252, double noundef %254) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  br label %256

256:                                              ; preds = %243, %134
  %257 = load ptr, ptr %9, align 8, !tbaa !5
  %258 = call i32 @fclose(ptr noundef %257)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %259

259:                                              ; preds = %256, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  %260 = load ptr, ptr %7, align 8
  call void @llvm.stackrestore.p0(ptr %260)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %261 = load i32, ptr %3, align 4
  ret i32 %261
}

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { 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 #5 = { 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 nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind willreturn memory(read) "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 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }

!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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"spwaterfallcf_s", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !13, i64 32, !13, i64 36, !10, i64 40, !10, i64 44, !6, i64 48}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!13, !13, i64 0}
!18 = !{!12, !10, i64 40}
!19 = !{!12, !10, i64 44}
!20 = !{!12, !13, i64 36}
!21 = !{!12, !6, i64 48}
!22 = !{!12, !13, i64 32}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; 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.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [54 x i8], align 1
@__const.spwaterfallcf_export_gnu.spacing = external hidden unnamed_addr constant [16 x float], align 16
@.str.87 = external hidden unnamed_addr constant [63 x i8], align 1

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

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

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @spgramcf_get_num_samples_total(ptr noundef) local_unnamed_addr #3

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

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

declare i32 @liquid_get_scale(float noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
define dso_local i32 @spwaterfallcf_export_gnu(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca i8, align 1
  %4 = alloca float, align 4
  %5 = alloca i8, align 1
  %6 = alloca float, align 4
  %7 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #6
  %8 = add i64 %7, 5
  %9 = and i64 %8, 4294967295
  %10 = alloca i8, i64 %9, align 16
  %11 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %10, ptr noundef nonnull dereferenceable(1) @.str.59, ptr noundef %1) #7
  %12 = call noalias ptr @fopen(ptr noundef nonnull %10, ptr noundef nonnull @.str.20)
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %16

14:                                               ; preds = %2
  %15 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str.40, i32 noundef 452, ptr noundef nonnull @.str.60, ptr noundef nonnull @.str.2, ptr noundef nonnull %10) #7
  br label %132

16:                                               ; preds = %2
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = tail call i64 @spgramcf_get_num_samples_total(ptr noundef %18)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #7
  store i8 32, ptr %3, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store float 1.000000e+00, ptr %4, align 4, !tbaa !13
  %20 = uitofp i64 %19 to float
  %21 = fmul float %20, 2.500000e-01
  %22 = call i32 @liquid_get_scale(float noundef %21, ptr noundef nonnull %3, ptr noundef nonnull %4) #7
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.61) #7
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.23) #7
  %25 = getelementptr inbounds i8, ptr %0, i64 40
  %26 = load i32, ptr %25, align 8, !tbaa !14
  %27 = getelementptr inbounds i8, ptr %0, i64 44
  %28 = load i32, ptr %27, align 4, !tbaa !15
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.62, i32 noundef %26, i32 noundef %28) #7
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.25, ptr noundef %1) #7
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.63) #7
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.64) #7
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.65) #7
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.66) #7
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.30) #7
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.67) #7
  %37 = add i64 %19, -1
  %38 = uitofp i64 %37 to float
  %39 = load float, ptr %4, align 4, !tbaa !13
  %40 = fmul float %39, %38
  %41 = fpext float %40 to double
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.68, double noundef %41) #7
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.69) #7
  %44 = load i8, ptr %3, align 1, !tbaa !12
  %45 = sext i8 %44 to i32
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.70, i32 noundef %45) #7
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.71) #7
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.72) #7
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.73) #7
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.74) #7
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.75) #7
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.76) #7
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.77) #7
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.78) #7
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.79) #7
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.80) #7
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.81) #7
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.82) #7
  %59 = getelementptr inbounds i8, ptr %0, i64 36
  %60 = load float, ptr %59, align 4, !tbaa !16
  %61 = fcmp olt float %60, 0.000000e+00
  br i1 %61, label %62, label %74

62:                                               ; preds = %16
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.32) #7
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.83, double noundef 0x3FB99999A0000000) #7
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.84) #7
  %66 = getelementptr inbounds i8, ptr %0, i64 48
  %67 = load ptr, ptr %66, align 8, !tbaa !17
  %.not80 = icmp eq ptr %67, null
  br i1 %.not80, label %70, label %68

68:                                               ; preds = %62
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.85, ptr noundef nonnull %67) #7
  br label %70

70:                                               ; preds = %68, %62
  %71 = load float, ptr %4, align 4, !tbaa !13
  %72 = fpext float %71 to double
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.86, ptr noundef %1, double noundef %72) #7
  br label %130

74:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store float 1.000000e+00, ptr %6, align 4, !tbaa !13
  %75 = getelementptr inbounds i8, ptr %0, i64 32
  %76 = load float, ptr %75, align 8, !tbaa !18
  %77 = call float @llvm.fmuladd.f32(float %60, float 5.000000e-01, float %76)
  %78 = fmul float %77, 5.000000e-01
  %79 = call i32 @liquid_get_scale(float noundef %78, ptr noundef nonnull %5, ptr noundef nonnull %6) #7
  %80 = load i8, ptr %5, align 1, !tbaa !12
  %81 = sext i8 %80 to i32
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.35, i32 noundef %81) #7
  %83 = load float, ptr @__const.spwaterfallcf_export_gnu.spacing, align 16, !tbaa !13
  %84 = fcmp ogt float %83, 0.000000e+00
  %.pre = load float, ptr %6, align 4, !tbaa !13
  %.pre84 = load float, ptr %59, align 4, !tbaa !16
  br i1 %84, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %74
  %85 = load i32, ptr %25, align 8, !tbaa !14
  %86 = uitofp i32 %85 to float
  %87 = fmul float %86, 0x3FE99999A0000000
  %88 = fdiv float %87, 7.000000e+01
  %89 = fmul float %.pre84, %.pre
  %90 = fmul float %88, 0x3FF3333340000000
  br label %97

91:                                               ; preds = %97
  %92 = add i32 %.082, 1
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds [16 x float], ptr @__const.spwaterfallcf_export_gnu.spacing, i64 0, i64 %93
  %95 = load float, ptr %94, align 4, !tbaa !13
  %96 = fcmp ogt float %95, 0.000000e+00
  br i1 %96, label %97, label %.loopexit, !llvm.loop !19

97:                                               ; preds = %.lr.ph, %91
  %98 = phi float [ %83, %.lr.ph ], [ %95, %91 ]
  %.082 = phi i32 [ 0, %.lr.ph ], [ %92, %91 ]
  %99 = fdiv float %89, %98
  %100 = fcmp olt float %99, %90
  br i1 %100, label %101, label %91

101:                                              ; preds = %97
  %102 = fpext float %98 to double
  br label %.loopexit

.loopexit:                                        ; preds = %91, %74, %101
  %.073 = phi double [ %102, %101 ], [ 1.000000e+00, %74 ], [ 1.000000e+00, %91 ]
  %103 = fpext float %.pre to double
  %104 = load float, ptr %75, align 8, !tbaa !18
  %105 = fpext float %104 to double
  %106 = fpext float %.pre84 to double
  %107 = call double @llvm.fmuladd.f64(double %106, double -5.000000e-01, double %105)
  %108 = fmul double %107, %103
  %109 = call double @llvm.fmuladd.f64(double %106, double 5.000000e-01, double %105)
  %110 = fmul double %109, %103
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.36, double noundef %108, double noundef %110) #7
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.83, double noundef %.073) #7
  %113 = getelementptr inbounds i8, ptr %0, i64 48
  %114 = load ptr, ptr %113, align 8, !tbaa !17
  %.not = icmp eq ptr %114, null
  br i1 %.not, label %117, label %115

115:                                              ; preds = %.loopexit
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.85, ptr noundef nonnull %114) #7
  br label %117

117:                                              ; preds = %115, %.loopexit
  %118 = load float, ptr %6, align 4, !tbaa !13
  %119 = load float, ptr %59, align 4, !tbaa !16
  %120 = fcmp olt float %119, 0.000000e+00
  %121 = select i1 %120, float 1.000000e+00, float %119
  %122 = fmul float %118, %121
  %123 = fpext float %122 to double
  %124 = load float, ptr %75, align 8, !tbaa !18
  %125 = fmul float %118, %124
  %126 = fpext float %125 to double
  %127 = load float, ptr %4, align 4, !tbaa !13
  %128 = fpext float %127 to double
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.87, ptr noundef %1, double noundef %123, double noundef %126, double noundef %128) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  br label %130

130:                                              ; preds = %117, %70
  %131 = call i32 @fclose(ptr noundef %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #7
  br label %132

132:                                              ; preds = %130, %14
  %.074 = phi i32 [ %15, %14 ], [ 0, %130 ]
  ret i32 %.074
}

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { 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 #5 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { nounwind willreturn memory(read) }
attributes #7 = { 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, !10, i64 8}
!6 = !{!"spwaterfallcf_s", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !11, i64 32, !11, i64 36, !7, i64 40, !7, i64 44, !10, i64 48}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!6, !7, i64 40}
!15 = !{!6, !7, i64 44}
!16 = !{!6, !11, i64 36}
!17 = !{!6, !10, i64 48}
!18 = !{!6, !11, i64 32}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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