; LLVM IR from Overload-Technologies/Overload :: Dependencies/soloud/src/audiosource/speech/klatt.ll (ZN5klatt7parwaveEPs)

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

%class.klatt = type <{ %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, i32, float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, i32, float, float, float, float, float, i32, i32, ptr, i32, %class.klatt_frame, [4 x i8], ptr, i32, i32, %class.Slope, %class.Slope, float, [4 x i8] }>
%class.resonator = type { float, float, float, float, float }
%class.klatt_frame = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%class.Slope = type { float, i32 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5klatt7flutterEv(ptr noundef nonnull align 8 dereferenceable(564)) #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN5klatt14natural_sourceEi(ptr noundef nonnull align 8 dereferenceable(564), i32 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5klatt21pitch_synch_par_resetEi(ptr noundef nonnull align 8 dereferenceable(564), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5klatt10frame_initEv(ptr noundef nonnull align 8 dereferenceable(564)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5klatt7parwaveEPs(ptr noundef nonnull align 8 dereferenceable(564) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8
  call void @_ZN5klatt10frame_initEv(ptr noundef nonnull align 8 dereferenceable(564) %16)
  %17 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 16
  %18 = load i32, ptr %17, align 8, !tbaa !9
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %24

20:                                               ; preds = %2
  %21 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 22
  %22 = load i32, ptr %21, align 8, !tbaa !16
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %21, align 8, !tbaa !16
  call void @_ZN5klatt7flutterEv(ptr noundef nonnull align 8 dereferenceable(564) %16)
  br label %24

24:                                               ; preds = %20, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !17
  br label %25

25:                                               ; preds = %180, %24
  %26 = load i32, ptr %5, align 4, !tbaa !17
  %27 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 18
  %28 = load i32, ptr %27, align 8, !tbaa !18
  %29 = icmp slt i32 %26, %28
  br i1 %29, label %30, label %183

30:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store float 0.000000e+00, ptr %11, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %31 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 38
  %32 = load i32, ptr %31, align 8, !tbaa !20
  %33 = mul i32 %32, 1664525
  %34 = add i32 %33, 1
  %35 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 38
  store i32 %34, ptr %35, align 8, !tbaa !20
  %36 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 38
  %37 = load i32, ptr %36, align 8, !tbaa !20
  %38 = and i32 %37, -1
  store i32 %38, ptr %36, align 8, !tbaa !20
  %39 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 38
  %40 = load i32, ptr %39, align 8, !tbaa !20
  %41 = shl i32 %40, 0
  %42 = ashr i32 %41, 18
  store i32 %42, ptr %14, align 4, !tbaa !17
  %43 = load i32, ptr %14, align 4, !tbaa !17
  %44 = sitofp i32 %43 to float
  %45 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 34
  %46 = load float, ptr %45, align 8, !tbaa !21
  %47 = call float @llvm.fmuladd.f32(float 7.500000e-01, float %46, float %44)
  store float %47, ptr %6, align 4, !tbaa !19
  %48 = load float, ptr %6, align 4, !tbaa !19
  %49 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 34
  store float %48, ptr %49, align 8, !tbaa !21
  %50 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 23
  %51 = load i32, ptr %50, align 4, !tbaa !22
  %52 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 26
  %53 = load i32, ptr %52, align 8, !tbaa !23
  %54 = icmp sgt i32 %51, %53
  br i1 %54, label %55, label %58

55:                                               ; preds = %30
  %56 = load float, ptr %6, align 4, !tbaa !19
  %57 = fmul float %56, 5.000000e-01
  store float %57, ptr %6, align 4, !tbaa !19
  br label %58

58:                                               ; preds = %55, %30
  %59 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 30
  %60 = load float, ptr %59, align 8, !tbaa !24
  %61 = load float, ptr %6, align 4, !tbaa !19
  %62 = fmul float %60, %61
  store float %62, ptr %12, align 4, !tbaa !19
  store float %62, ptr %8, align 4, !tbaa !19
  store i32 0, ptr %7, align 4, !tbaa !17
  br label %63

63:                                               ; preds = %85, %58
  %64 = load i32, ptr %7, align 4, !tbaa !17
  %65 = icmp slt i32 %64, 4
  br i1 %65, label %66, label %88

66:                                               ; preds = %63
  %67 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 23
  %68 = load i32, ptr %67, align 4, !tbaa !22
  %69 = call noundef float @_ZN5klatt14natural_sourceEi(ptr noundef nonnull align 8 dereferenceable(564) %16, i32 noundef %68)
  store float %69, ptr %11, align 4, !tbaa !19
  %70 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 23
  %71 = load i32, ptr %70, align 4, !tbaa !22
  %72 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 24
  %73 = load i32, ptr %72, align 8, !tbaa !25
  %74 = icmp sge i32 %71, %73
  br i1 %74, label %75, label %78

75:                                               ; preds = %66
  %76 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 23
  store i32 0, ptr %76, align 4, !tbaa !22
  %77 = load i32, ptr %5, align 4, !tbaa !17
  call void @_ZN5klatt21pitch_synch_par_resetEi(ptr noundef nonnull align 8 dereferenceable(564) %16, i32 noundef %77)
  br label %78

78:                                               ; preds = %75, %66
  %79 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 10
  %80 = load float, ptr %11, align 4, !tbaa !19
  %81 = call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %79, float noundef %80)
  store float %81, ptr %11, align 4, !tbaa !19
  %82 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 23
  %83 = load i32, ptr %82, align 4, !tbaa !22
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %82, align 4, !tbaa !22
  br label %85

85:                                               ; preds = %78
  %86 = load i32, ptr %7, align 4, !tbaa !17
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %7, align 4, !tbaa !17
  br label %63, !llvm.loop !26

88:                                               ; preds = %63
  %89 = load float, ptr %11, align 4, !tbaa !19
  %90 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 37
  %91 = load float, ptr %90, align 4, !tbaa !28
  %92 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 33
  %93 = load float, ptr %92, align 4, !tbaa !29
  %94 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 36
  %95 = load float, ptr %94, align 8, !tbaa !30
  %96 = fmul float %93, %95
  %97 = call float @llvm.fmuladd.f32(float %89, float %91, float %96)
  store float %97, ptr %11, align 4, !tbaa !19
  %98 = load float, ptr %11, align 4, !tbaa !19
  %99 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 33
  store float %98, ptr %99, align 4, !tbaa !29
  %100 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 23
  %101 = load i32, ptr %100, align 4, !tbaa !22
  %102 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 25
  %103 = load i32, ptr %102, align 4, !tbaa !31
  %104 = icmp slt i32 %101, %103
  br i1 %104, label %105, label %112

105:                                              ; preds = %88
  %106 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 31
  %107 = load float, ptr %106, align 4, !tbaa !32
  %108 = load i32, ptr %14, align 4, !tbaa !17
  %109 = sitofp i32 %108 to float
  %110 = load float, ptr %11, align 4, !tbaa !19
  %111 = call float @llvm.fmuladd.f32(float %107, float %109, float %110)
  store float %111, ptr %11, align 4, !tbaa !19
  br label %112

112:                                              ; preds = %105, %88
  %113 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 27
  %114 = load float, ptr %113, align 4, !tbaa !33
  %115 = load float, ptr %11, align 4, !tbaa !19
  %116 = fmul float %114, %115
  store float %116, ptr %9, align 4, !tbaa !19
  %117 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 29
  %118 = load float, ptr %117, align 4, !tbaa !34
  %119 = load float, ptr %6, align 4, !tbaa !19
  %120 = fmul float %118, %119
  store float %120, ptr %13, align 4, !tbaa !19
  %121 = load float, ptr %13, align 4, !tbaa !19
  %122 = load float, ptr %9, align 4, !tbaa !19
  %123 = fadd float %122, %121
  store float %123, ptr %9, align 4, !tbaa !19
  %124 = load float, ptr %9, align 4, !tbaa !19
  store float %124, ptr %10, align 4, !tbaa !19
  %125 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 8
  %126 = load float, ptr %10, align 4, !tbaa !19
  %127 = call noundef float @_ZN9resonator12antiresonateEf(ptr noundef nonnull align 4 dereferenceable(20) %125, float noundef %126)
  store float %127, ptr %10, align 4, !tbaa !19
  %128 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 7
  %129 = load float, ptr %10, align 4, !tbaa !19
  %130 = call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %128, float noundef %129)
  store float %130, ptr %10, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %131 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 0
  %132 = load float, ptr %10, align 4, !tbaa !19
  %133 = call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %131, float noundef %132)
  store float %133, ptr %15, align 4, !tbaa !19
  %134 = load float, ptr %10, align 4, !tbaa !19
  %135 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 35
  %136 = load float, ptr %135, align 4, !tbaa !35
  %137 = fsub float %134, %136
  %138 = load float, ptr %8, align 4, !tbaa !19
  %139 = fadd float %138, %137
  store float %139, ptr %8, align 4, !tbaa !19
  %140 = load float, ptr %10, align 4, !tbaa !19
  %141 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 35
  store float %140, ptr %141, align 4, !tbaa !35
  %142 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 5
  %143 = load float, ptr %8, align 4, !tbaa !19
  %144 = call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %142, float noundef %143)
  %145 = load float, ptr %15, align 4, !tbaa !19
  %146 = fsub float %144, %145
  store float %146, ptr %15, align 4, !tbaa !19
  %147 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 4
  %148 = load float, ptr %8, align 4, !tbaa !19
  %149 = call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %147, float noundef %148)
  %150 = load float, ptr %15, align 4, !tbaa !19
  %151 = fsub float %149, %150
  store float %151, ptr %15, align 4, !tbaa !19
  %152 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 3
  %153 = load float, ptr %8, align 4, !tbaa !19
  %154 = call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %152, float noundef %153)
  %155 = load float, ptr %15, align 4, !tbaa !19
  %156 = fsub float %154, %155
  store float %156, ptr %15, align 4, !tbaa !19
  %157 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 2
  %158 = load float, ptr %8, align 4, !tbaa !19
  %159 = call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %157, float noundef %158)
  %160 = load float, ptr %15, align 4, !tbaa !19
  %161 = fsub float %159, %160
  store float %161, ptr %15, align 4, !tbaa !19
  %162 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 1
  %163 = load float, ptr %8, align 4, !tbaa !19
  %164 = call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %162, float noundef %163)
  %165 = load float, ptr %15, align 4, !tbaa !19
  %166 = fsub float %164, %165
  store float %166, ptr %15, align 4, !tbaa !19
  %167 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 28
  %168 = load float, ptr %167, align 8, !tbaa !36
  %169 = load float, ptr %8, align 4, !tbaa !19
  %170 = load float, ptr %15, align 4, !tbaa !19
  %171 = fneg float %170
  %172 = call float @llvm.fmuladd.f32(float %168, float %169, float %171)
  store float %172, ptr %15, align 4, !tbaa !19
  %173 = getelementptr inbounds %class.klatt, ptr %16, i32 0, i32 11
  %174 = load float, ptr %15, align 4, !tbaa !19
  %175 = call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %173, float noundef %174)
  store float %175, ptr %15, align 4, !tbaa !19
  %176 = load float, ptr %15, align 4, !tbaa !19
  %177 = call noundef signext i16 @_ZL4clipf(float noundef %176)
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = getelementptr inbounds i16, ptr %178, i32 1
  store ptr %179, ptr %4, align 8, !tbaa !5
  store i16 %177, ptr %178, align 2, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %180

180:                                              ; preds = %112
  %181 = load i32, ptr %5, align 4, !tbaa !17
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %5, align 4, !tbaa !17
  br label %25, !llvm.loop !39

183:                                              ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void
}

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

declare noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20), float noundef) #4

declare noundef float @_ZN9resonator12antiresonateEf(ptr noundef nonnull align 4 dereferenceable(20), float noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef signext i16 @_ZL4clipf(float noundef) #0

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

!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++ TBAA"}
!9 = !{!10, !13, i64 256}
!10 = !{!"_ZTS5klatt", !11, i64 0, !11, i64 20, !11, i64 40, !11, i64 60, !11, i64 80, !11, i64 100, !11, i64 120, !11, i64 140, !11, i64 160, !11, i64 180, !11, i64 200, !11, i64 220, !13, i64 240, !12, i64 244, !12, i64 248, !13, i64 252, !13, i64 256, !13, i64 260, !13, i64 264, !13, i64 268, !13, i64 272, !13, i64 276, !13, i64 280, !13, i64 284, !13, i64 288, !13, i64 292, !13, i64 296, !12, i64 300, !12, i64 304, !12, i64 308, !12, i64 312, !12, i64 316, !13, i64 320, !12, i64 324, !12, i64 328, !12, i64 332, !12, i64 336, !12, i64 340, !13, i64 344, !13, i64 348, !6, i64 352, !13, i64 360, !14, i64 364, !6, i64 528, !13, i64 536, !13, i64 540, !15, i64 544, !15, i64 552, !12, i64 560}
!11 = !{!"_ZTS9resonator", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!12 = !{!"float", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS11klatt_frame", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !13, i64 64, !13, i64 68, !13, i64 72, !13, i64 76, !13, i64 80, !13, i64 84, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !13, i64 140, !13, i64 144, !13, i64 148, !13, i64 152, !13, i64 156}
!15 = !{!"_ZTS5Slope", !12, i64 0, !13, i64 4}
!16 = !{!10, !13, i64 280}
!17 = !{!13, !13, i64 0}
!18 = !{!10, !13, i64 264}
!19 = !{!12, !12, i64 0}
!20 = !{!10, !13, i64 344}
!21 = !{!10, !12, i64 328}
!22 = !{!10, !13, i64 284}
!23 = !{!10, !13, i64 296}
!24 = !{!10, !12, i64 312}
!25 = !{!10, !13, i64 288}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!10, !12, i64 340}
!29 = !{!10, !12, i64 324}
!30 = !{!10, !12, i64 336}
!31 = !{!10, !13, i64 292}
!32 = !{!10, !12, i64 316}
!33 = !{!10, !12, i64 300}
!34 = !{!10, !12, i64 308}
!35 = !{!10, !12, i64 332}
!36 = !{!10, !12, i64 304}
!37 = !{!38, !38, i64 0}
!38 = !{!"short", !7, i64 0}
!39 = distinct !{!39, !27}


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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5klatt7flutterEv(ptr noundef nonnull align 8 dereferenceable(564)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN5klatt14natural_sourceEi(ptr noundef nonnull align 8 dereferenceable(564), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5klatt21pitch_synch_par_resetEi(ptr noundef nonnull align 8 dereferenceable(564), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5klatt10frame_initEv(ptr noundef nonnull align 8 dereferenceable(564)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5klatt7parwaveEPs(ptr noundef nonnull align 8 dereferenceable(564) %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #1 align 2 {
  tail call void @_ZN5klatt10frame_initEv(ptr noundef nonnull align 8 dereferenceable(564) %0)
  %3 = getelementptr inbounds i8, ptr %0, i64 256
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %9, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 280
  %7 = load i32, ptr %6, align 8, !tbaa !15
  %8 = add nsw i32 %7, 1
  store i32 %8, ptr %6, align 8, !tbaa !15
  tail call void @_ZN5klatt7flutterEv(ptr noundef nonnull align 8 dereferenceable(564) %0)
  br label %9

9:                                                ; preds = %5, %2
  %10 = getelementptr inbounds i8, ptr %0, i64 264
  %11 = load i32, ptr %10, align 8, !tbaa !16
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 344
  %14 = getelementptr inbounds i8, ptr %0, i64 328
  %15 = getelementptr inbounds i8, ptr %0, i64 284
  %16 = getelementptr inbounds i8, ptr %0, i64 296
  %17 = getelementptr inbounds i8, ptr %0, i64 312
  %18 = getelementptr inbounds i8, ptr %0, i64 288
  %19 = getelementptr inbounds i8, ptr %0, i64 200
  %20 = getelementptr inbounds i8, ptr %0, i64 340
  %21 = getelementptr inbounds i8, ptr %0, i64 324
  %22 = getelementptr inbounds i8, ptr %0, i64 336
  %23 = getelementptr inbounds i8, ptr %0, i64 292
  %24 = getelementptr inbounds i8, ptr %0, i64 316
  %25 = getelementptr inbounds i8, ptr %0, i64 300
  %26 = getelementptr inbounds i8, ptr %0, i64 308
  %27 = getelementptr inbounds i8, ptr %0, i64 160
  %28 = getelementptr inbounds i8, ptr %0, i64 140
  %29 = getelementptr inbounds i8, ptr %0, i64 332
  %30 = getelementptr inbounds i8, ptr %0, i64 100
  %31 = getelementptr inbounds i8, ptr %0, i64 80
  %32 = getelementptr inbounds i8, ptr %0, i64 60
  %33 = getelementptr inbounds i8, ptr %0, i64 40
  %34 = getelementptr inbounds i8, ptr %0, i64 20
  %35 = getelementptr inbounds i8, ptr %0, i64 304
  %36 = getelementptr inbounds i8, ptr %0, i64 220
  br label %37

37:                                               ; preds = %.lr.ph, %77
  %.047 = phi ptr [ %1, %.lr.ph ], [ %118, %77 ]
  %.04046 = phi i32 [ 0, %.lr.ph ], [ %119, %77 ]
  %38 = load i32, ptr %13, align 8, !tbaa !17
  %39 = mul i32 %38, 1664525
  %40 = add i32 %39, 1
  store i32 %40, ptr %13, align 8, !tbaa !17
  %41 = ashr i32 %40, 18
  %42 = sitofp i32 %41 to float
  %43 = load float, ptr %14, align 8, !tbaa !18
  %44 = tail call float @llvm.fmuladd.f32(float %43, float 7.500000e-01, float %42)
  store float %44, ptr %14, align 8, !tbaa !18
  %45 = load i32, ptr %15, align 4, !tbaa !19
  %46 = load i32, ptr %16, align 8, !tbaa !20
  %47 = fmul float %44, 5.000000e-01
  %48 = load float, ptr %17, align 8, !tbaa !21
  %49 = tail call noundef float @_ZN5klatt14natural_sourceEi(ptr noundef nonnull align 8 dereferenceable(564) %0, i32 noundef %45)
  %50 = load i32, ptr %15, align 4, !tbaa !19
  %51 = load i32, ptr %18, align 8, !tbaa !22
  %.not44 = icmp slt i32 %50, %51
  br i1 %.not44, label %53, label %52

52:                                               ; preds = %37
  store i32 0, ptr %15, align 4, !tbaa !19
  tail call void @_ZN5klatt21pitch_synch_par_resetEi(ptr noundef nonnull align 8 dereferenceable(564) %0, i32 noundef %.04046)
  br label %53

53:                                               ; preds = %52, %37
  %54 = tail call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %19, float noundef %49)
  %55 = load i32, ptr %15, align 4, !tbaa !19
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %15, align 4, !tbaa !19
  %57 = tail call noundef float @_ZN5klatt14natural_sourceEi(ptr noundef nonnull align 8 dereferenceable(564) %0, i32 noundef %56)
  %58 = load i32, ptr %15, align 4, !tbaa !19
  %59 = load i32, ptr %18, align 8, !tbaa !22
  %.not44.1 = icmp slt i32 %58, %59
  br i1 %.not44.1, label %61, label %60

60:                                               ; preds = %53
  store i32 0, ptr %15, align 4, !tbaa !19
  tail call void @_ZN5klatt21pitch_synch_par_resetEi(ptr noundef nonnull align 8 dereferenceable(564) %0, i32 noundef %.04046)
  br label %61

61:                                               ; preds = %60, %53
  %62 = tail call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %19, float noundef %57)
  %63 = load i32, ptr %15, align 4, !tbaa !19
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %15, align 4, !tbaa !19
  %65 = tail call noundef float @_ZN5klatt14natural_sourceEi(ptr noundef nonnull align 8 dereferenceable(564) %0, i32 noundef %64)
  %66 = load i32, ptr %15, align 4, !tbaa !19
  %67 = load i32, ptr %18, align 8, !tbaa !22
  %.not44.2 = icmp slt i32 %66, %67
  br i1 %.not44.2, label %69, label %68

68:                                               ; preds = %61
  store i32 0, ptr %15, align 4, !tbaa !19
  tail call void @_ZN5klatt21pitch_synch_par_resetEi(ptr noundef nonnull align 8 dereferenceable(564) %0, i32 noundef %.04046)
  br label %69

69:                                               ; preds = %68, %61
  %70 = tail call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %19, float noundef %65)
  %71 = load i32, ptr %15, align 4, !tbaa !19
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %15, align 4, !tbaa !19
  %73 = tail call noundef float @_ZN5klatt14natural_sourceEi(ptr noundef nonnull align 8 dereferenceable(564) %0, i32 noundef %72)
  %74 = load i32, ptr %15, align 4, !tbaa !19
  %75 = load i32, ptr %18, align 8, !tbaa !22
  %.not44.3 = icmp slt i32 %74, %75
  br i1 %.not44.3, label %77, label %76

76:                                               ; preds = %69
  store i32 0, ptr %15, align 4, !tbaa !19
  tail call void @_ZN5klatt21pitch_synch_par_resetEi(ptr noundef nonnull align 8 dereferenceable(564) %0, i32 noundef %.04046)
  br label %77

77:                                               ; preds = %76, %69
  %78 = tail call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %19, float noundef %73)
  %79 = load i32, ptr %15, align 4, !tbaa !19
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %15, align 4, !tbaa !19
  %81 = icmp sgt i32 %45, %46
  %.041 = select i1 %81, float %47, float %44
  %82 = fmul float %48, %.041
  %83 = load float, ptr %20, align 4, !tbaa !23
  %84 = load float, ptr %21, align 4, !tbaa !24
  %85 = load float, ptr %22, align 8, !tbaa !25
  %86 = fmul float %84, %85
  %87 = tail call float @llvm.fmuladd.f32(float %78, float %83, float %86)
  store float %87, ptr %21, align 4, !tbaa !24
  %88 = load i32, ptr %23, align 4, !tbaa !26
  %89 = icmp slt i32 %80, %88
  %90 = load float, ptr %24, align 4
  %91 = tail call float @llvm.fmuladd.f32(float %90, float %42, float %87)
  %.1 = select i1 %89, float %91, float %87
  %92 = load float, ptr %25, align 4, !tbaa !27
  %93 = fmul float %92, %.1
  %94 = load float, ptr %26, align 4, !tbaa !28
  %95 = fmul float %.041, %94
  %96 = fadd float %93, %95
  %97 = tail call noundef float @_ZN9resonator12antiresonateEf(ptr noundef nonnull align 4 dereferenceable(20) %27, float noundef %96)
  %98 = tail call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %28, float noundef %97)
  %99 = tail call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %0, float noundef %98)
  %100 = load float, ptr %29, align 4, !tbaa !29
  %101 = fsub float %98, %100
  %102 = fadd float %82, %101
  store float %98, ptr %29, align 4, !tbaa !29
  %103 = tail call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %30, float noundef %102)
  %104 = fsub float %103, %99
  %105 = tail call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %31, float noundef %102)
  %106 = fsub float %105, %104
  %107 = tail call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %32, float noundef %102)
  %108 = fsub float %107, %106
  %109 = tail call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %33, float noundef %102)
  %110 = fsub float %109, %108
  %111 = tail call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %34, float noundef %102)
  %112 = fsub float %111, %110
  %113 = load float, ptr %35, align 8, !tbaa !30
  %114 = fneg float %112
  %115 = tail call float @llvm.fmuladd.f32(float %113, float %102, float %114)
  %116 = tail call noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20) %36, float noundef %115)
  %117 = tail call noundef signext i16 @_ZL4clipf(float noundef %116)
  %118 = getelementptr inbounds i8, ptr %.047, i64 2
  store i16 %117, ptr %.047, align 2, !tbaa !31
  %119 = add nuw nsw i32 %.04046, 1
  %120 = load i32, ptr %10, align 8, !tbaa !16
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %37, label %._crit_edge, !llvm.loop !33

._crit_edge:                                      ; preds = %77, %9
  ret void
}

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

declare noundef float @_ZN9resonator8resonateEf(ptr noundef nonnull align 4 dereferenceable(20), float noundef) local_unnamed_addr #3

declare noundef float @_ZN9resonator12antiresonateEf(ptr noundef nonnull align 4 dereferenceable(20), float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef signext i16 @_ZL4clipf(float noundef) local_unnamed_addr #0

attributes #0 = { mustprogress 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 = { mustprogress 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "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" }

!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, !11, i64 256}
!6 = !{!"_ZTS5klatt", !7, i64 0, !7, i64 20, !7, i64 40, !7, i64 60, !7, i64 80, !7, i64 100, !7, i64 120, !7, i64 140, !7, i64 160, !7, i64 180, !7, i64 200, !7, i64 220, !11, i64 240, !8, i64 244, !8, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !11, i64 296, !8, i64 300, !8, i64 304, !8, i64 308, !8, i64 312, !8, i64 316, !11, i64 320, !8, i64 324, !8, i64 328, !8, i64 332, !8, i64 336, !8, i64 340, !11, i64 344, !11, i64 348, !12, i64 352, !11, i64 360, !13, i64 364, !12, i64 528, !11, i64 536, !11, i64 540, !14, i64 544, !14, i64 552, !8, i64 560}
!7 = !{!"_ZTS9resonator", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"_ZTS11klatt_frame", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156}
!14 = !{!"_ZTS5Slope", !8, i64 0, !11, i64 4}
!15 = !{!6, !11, i64 280}
!16 = !{!6, !11, i64 264}
!17 = !{!6, !11, i64 344}
!18 = !{!6, !8, i64 328}
!19 = !{!6, !11, i64 284}
!20 = !{!6, !11, i64 296}
!21 = !{!6, !8, i64 312}
!22 = !{!6, !11, i64 288}
!23 = !{!6, !8, i64 340}
!24 = !{!6, !8, i64 324}
!25 = !{!6, !8, i64 336}
!26 = !{!6, !11, i64 292}
!27 = !{!6, !8, i64 300}
!28 = !{!6, !8, i64 308}
!29 = !{!6, !8, i64 332}
!30 = !{!6, !8, i64 304}
!31 = !{!32, !32, i64 0}
!32 = !{!"short", !9, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


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