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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL7DBtoLINi(i32 noundef) #1

declare void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20), i32 noundef, i32 noundef, i32 noundef) #2

declare void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20), float noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5klatt10frame_initEv(ptr noundef nonnull align 8 dereferenceable(564) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %12 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %13 = getelementptr inbounds %class.klatt_frame, ptr %12, i32 0, i32 0
  %14 = load i32, ptr %13, align 4, !tbaa !9
  %15 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 19
  store i32 %14, ptr %15, align 4, !tbaa !16
  %16 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %17 = getelementptr inbounds %class.klatt_frame, ptr %16, i32 0, i32 1
  %18 = load i32, ptr %17, align 4, !tbaa !17
  %19 = sub nsw i32 %18, 7
  %20 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 20
  store i32 %19, ptr %20, align 8, !tbaa !18
  %21 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 20
  %22 = load i32, ptr %21, align 8, !tbaa !18
  %23 = icmp slt i32 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %1
  %25 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 20
  store i32 0, ptr %25, align 8, !tbaa !18
  br label %26

26:                                               ; preds = %24, %1
  %27 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %28 = getelementptr inbounds %class.klatt_frame, ptr %27, i32 0, i32 18
  %29 = load i32, ptr %28, align 4, !tbaa !19
  %30 = call noundef float @_ZL7DBtoLINi(i32 noundef %29)
  %31 = fmul float %30, 0x3FA99999A0000000
  %32 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 29
  store float %31, ptr %32, align 4, !tbaa !20
  %33 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %34 = getelementptr inbounds %class.klatt_frame, ptr %33, i32 0, i32 22
  %35 = load i32, ptr %34, align 4, !tbaa !21
  %36 = call noundef float @_ZL7DBtoLINi(i32 noundef %35)
  %37 = fmul float %36, 2.500000e-01
  %38 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 30
  store float %37, ptr %38, align 8, !tbaa !22
  %39 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %40 = getelementptr inbounds %class.klatt_frame, ptr %39, i32 0, i32 23
  %41 = load i32, ptr %40, align 4, !tbaa !23
  %42 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 21
  store i32 %41, ptr %42, align 4, !tbaa !24
  %43 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %44 = getelementptr inbounds %class.klatt_frame, ptr %43, i32 0, i32 24
  %45 = load i32, ptr %44, align 4, !tbaa !25
  %46 = call noundef float @_ZL7DBtoLINi(i32 noundef %45)
  %47 = fmul float %46, 0x3FD99999A0000000
  store float %47, ptr %4, align 4, !tbaa !26
  %48 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %49 = getelementptr inbounds %class.klatt_frame, ptr %48, i32 0, i32 26
  %50 = load i32, ptr %49, align 4, !tbaa !27
  %51 = call noundef float @_ZL7DBtoLINi(i32 noundef %50)
  %52 = fmul float %51, 0x3FC3333340000000
  store float %52, ptr %6, align 4, !tbaa !26
  %53 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %54 = getelementptr inbounds %class.klatt_frame, ptr %53, i32 0, i32 28
  %55 = load i32, ptr %54, align 4, !tbaa !28
  %56 = call noundef float @_ZL7DBtoLINi(i32 noundef %55)
  %57 = fmul float %56, 0x3FAEB851E0000000
  store float %57, ptr %7, align 4, !tbaa !26
  %58 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %59 = getelementptr inbounds %class.klatt_frame, ptr %58, i32 0, i32 30
  %60 = load i32, ptr %59, align 4, !tbaa !29
  %61 = call noundef float @_ZL7DBtoLINi(i32 noundef %60)
  %62 = fmul float %61, 0x3FA47AE140000000
  store float %62, ptr %8, align 4, !tbaa !26
  %63 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %64 = getelementptr inbounds %class.klatt_frame, ptr %63, i32 0, i32 32
  %65 = load i32, ptr %64, align 4, !tbaa !30
  %66 = call noundef float @_ZL7DBtoLINi(i32 noundef %65)
  %67 = fmul float %66, 0x3F96872B00000000
  store float %67, ptr %9, align 4, !tbaa !26
  %68 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %69 = getelementptr inbounds %class.klatt_frame, ptr %68, i32 0, i32 34
  %70 = load i32, ptr %69, align 4, !tbaa !31
  %71 = call noundef float @_ZL7DBtoLINi(i32 noundef %70)
  %72 = fmul float %71, 0x3F9EB851E0000000
  store float %72, ptr %10, align 4, !tbaa !26
  %73 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %74 = getelementptr inbounds %class.klatt_frame, ptr %73, i32 0, i32 36
  %75 = load i32, ptr %74, align 4, !tbaa !32
  %76 = call noundef float @_ZL7DBtoLINi(i32 noundef %75)
  %77 = fmul float %76, 0x3FE3333340000000
  store float %77, ptr %5, align 4, !tbaa !26
  %78 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %79 = getelementptr inbounds %class.klatt_frame, ptr %78, i32 0, i32 37
  %80 = load i32, ptr %79, align 4, !tbaa !33
  %81 = call noundef float @_ZL7DBtoLINi(i32 noundef %80)
  %82 = fmul float %81, 0x3FA99999A0000000
  %83 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 28
  store float %82, ptr %83, align 8, !tbaa !34
  %84 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 7
  %85 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %86 = getelementptr inbounds %class.klatt_frame, ptr %85, i32 0, i32 16
  %87 = load i32, ptr %86, align 4, !tbaa !35
  %88 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %89 = getelementptr inbounds %class.klatt_frame, ptr %88, i32 0, i32 17
  %90 = load i32, ptr %89, align 4, !tbaa !36
  %91 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 17
  %92 = load i32, ptr %91, align 4, !tbaa !37
  call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %84, i32 noundef %87, i32 noundef %90, i32 noundef %92)
  %93 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 8
  %94 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %95 = getelementptr inbounds %class.klatt_frame, ptr %94, i32 0, i32 14
  %96 = load i32, ptr %95, align 4, !tbaa !38
  %97 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %98 = getelementptr inbounds %class.klatt_frame, ptr %97, i32 0, i32 15
  %99 = load i32, ptr %98, align 4, !tbaa !39
  %100 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 17
  %101 = load i32, ptr %100, align 4, !tbaa !37
  call void @_ZN9resonator17initAntiresonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %93, i32 noundef %96, i32 noundef %99, i32 noundef %101)
  %102 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 0
  %103 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %104 = getelementptr inbounds %class.klatt_frame, ptr %103, i32 0, i32 2
  %105 = load i32, ptr %104, align 4, !tbaa !40
  %106 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %107 = getelementptr inbounds %class.klatt_frame, ptr %106, i32 0, i32 25
  %108 = load i32, ptr %107, align 4, !tbaa !41
  %109 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 17
  %110 = load i32, ptr %109, align 4, !tbaa !37
  call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %102, i32 noundef %105, i32 noundef %108, i32 noundef %110)
  %111 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 0
  %112 = load float, ptr %4, align 4, !tbaa !26
  call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %111, float noundef %112)
  %113 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 6
  %114 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %115 = getelementptr inbounds %class.klatt_frame, ptr %114, i32 0, i32 16
  %116 = load i32, ptr %115, align 4, !tbaa !35
  %117 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %118 = getelementptr inbounds %class.klatt_frame, ptr %117, i32 0, i32 17
  %119 = load i32, ptr %118, align 4, !tbaa !36
  %120 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 17
  %121 = load i32, ptr %120, align 4, !tbaa !37
  call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %113, i32 noundef %116, i32 noundef %119, i32 noundef %121)
  %122 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 6
  %123 = load float, ptr %5, align 4, !tbaa !26
  call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %122, float noundef %123)
  %124 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 1
  %125 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %126 = getelementptr inbounds %class.klatt_frame, ptr %125, i32 0, i32 4
  %127 = load i32, ptr %126, align 4, !tbaa !42
  %128 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %129 = getelementptr inbounds %class.klatt_frame, ptr %128, i32 0, i32 27
  %130 = load i32, ptr %129, align 4, !tbaa !43
  %131 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 17
  %132 = load i32, ptr %131, align 4, !tbaa !37
  call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %124, i32 noundef %127, i32 noundef %130, i32 noundef %132)
  %133 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 1
  %134 = load float, ptr %6, align 4, !tbaa !26
  call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %133, float noundef %134)
  %135 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 2
  %136 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %137 = getelementptr inbounds %class.klatt_frame, ptr %136, i32 0, i32 6
  %138 = load i32, ptr %137, align 4, !tbaa !44
  %139 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %140 = getelementptr inbounds %class.klatt_frame, ptr %139, i32 0, i32 29
  %141 = load i32, ptr %140, align 4, !tbaa !45
  %142 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 17
  %143 = load i32, ptr %142, align 4, !tbaa !37
  call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %135, i32 noundef %138, i32 noundef %141, i32 noundef %143)
  %144 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 2
  %145 = load float, ptr %7, align 4, !tbaa !26
  call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %144, float noundef %145)
  %146 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 3
  %147 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %148 = getelementptr inbounds %class.klatt_frame, ptr %147, i32 0, i32 8
  %149 = load i32, ptr %148, align 4, !tbaa !46
  %150 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %151 = getelementptr inbounds %class.klatt_frame, ptr %150, i32 0, i32 31
  %152 = load i32, ptr %151, align 4, !tbaa !47
  %153 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 17
  %154 = load i32, ptr %153, align 4, !tbaa !37
  call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %146, i32 noundef %149, i32 noundef %152, i32 noundef %154)
  %155 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 3
  %156 = load float, ptr %8, align 4, !tbaa !26
  call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %155, float noundef %156)
  %157 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 4
  %158 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %159 = getelementptr inbounds %class.klatt_frame, ptr %158, i32 0, i32 10
  %160 = load i32, ptr %159, align 4, !tbaa !48
  %161 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %162 = getelementptr inbounds %class.klatt_frame, ptr %161, i32 0, i32 33
  %163 = load i32, ptr %162, align 4, !tbaa !49
  %164 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 17
  %165 = load i32, ptr %164, align 4, !tbaa !37
  call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %157, i32 noundef %160, i32 noundef %163, i32 noundef %165)
  %166 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 4
  %167 = load float, ptr %9, align 4, !tbaa !26
  call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %166, float noundef %167)
  %168 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 5
  %169 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %170 = getelementptr inbounds %class.klatt_frame, ptr %169, i32 0, i32 12
  %171 = load i32, ptr %170, align 4, !tbaa !50
  %172 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %173 = getelementptr inbounds %class.klatt_frame, ptr %172, i32 0, i32 35
  %174 = load i32, ptr %173, align 4, !tbaa !51
  %175 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 17
  %176 = load i32, ptr %175, align 4, !tbaa !37
  call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %168, i32 noundef %171, i32 noundef %174, i32 noundef %176)
  %177 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 5
  %178 = load float, ptr %10, align 4, !tbaa !26
  call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %177, float noundef %178)
  %179 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 42
  %180 = getelementptr inbounds %class.klatt_frame, ptr %179, i32 0, i32 39
  %181 = load i32, ptr %180, align 4, !tbaa !52
  %182 = sub nsw i32 %181, 3
  store i32 %182, ptr %3, align 4, !tbaa !53
  %183 = load i32, ptr %3, align 4, !tbaa !53
  %184 = icmp sle i32 %183, 0
  br i1 %184, label %185, label %186

185:                                              ; preds = %26
  store i32 57, ptr %3, align 4, !tbaa !53
  br label %186

186:                                              ; preds = %185, %26
  %187 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 11
  %188 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 17
  %189 = load i32, ptr %188, align 4, !tbaa !37
  %190 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 17
  %191 = load i32, ptr %190, align 4, !tbaa !37
  call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %187, i32 noundef 0, i32 noundef %189, i32 noundef %191)
  %192 = getelementptr inbounds %class.klatt, ptr %11, i32 0, i32 11
  %193 = load i32, ptr %3, align 4, !tbaa !53
  %194 = call noundef float @_ZL7DBtoLINi(i32 noundef %193)
  call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %192, float noundef %194)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void
}

declare void @_ZN9resonator17initAntiresonatorEiii(ptr noundef nonnull align 4 dereferenceable(20), i32 noundef, i32 noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { 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 #4 = { 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 364}
!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 268}
!17 = !{!10, !13, i64 368}
!18 = !{!10, !13, i64 272}
!19 = !{!10, !13, i64 436}
!20 = !{!10, !12, i64 308}
!21 = !{!10, !13, i64 452}
!22 = !{!10, !12, i64 312}
!23 = !{!10, !13, i64 456}
!24 = !{!10, !13, i64 276}
!25 = !{!10, !13, i64 460}
!26 = !{!12, !12, i64 0}
!27 = !{!10, !13, i64 468}
!28 = !{!10, !13, i64 476}
!29 = !{!10, !13, i64 484}
!30 = !{!10, !13, i64 492}
!31 = !{!10, !13, i64 500}
!32 = !{!10, !13, i64 508}
!33 = !{!10, !13, i64 512}
!34 = !{!10, !12, i64 304}
!35 = !{!10, !13, i64 428}
!36 = !{!10, !13, i64 432}
!37 = !{!10, !13, i64 260}
!38 = !{!10, !13, i64 420}
!39 = !{!10, !13, i64 424}
!40 = !{!10, !13, i64 372}
!41 = !{!10, !13, i64 464}
!42 = !{!10, !13, i64 380}
!43 = !{!10, !13, i64 472}
!44 = !{!10, !13, i64 388}
!45 = !{!10, !13, i64 480}
!46 = !{!10, !13, i64 396}
!47 = !{!10, !13, i64 488}
!48 = !{!10, !13, i64 404}
!49 = !{!10, !13, i64 496}
!50 = !{!10, !13, i64 412}
!51 = !{!10, !13, i64 504}
!52 = !{!10, !13, i64 520}
!53 = !{!13, !13, i64 0}


; 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 hidden noundef float @_ZL7DBtoLINi(i32 noundef) local_unnamed_addr #0

declare void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20), float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5klatt10frame_initEv(ptr noundef nonnull align 8 dereferenceable(564) %0) local_unnamed_addr #2 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 364
  %3 = load i32, ptr %2, align 4, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 268
  store i32 %3, ptr %4, align 4, !tbaa !15
  %5 = getelementptr inbounds i8, ptr %0, i64 368
  %6 = load i32, ptr %5, align 8, !tbaa !16
  %7 = add nsw i32 %6, -7
  %8 = icmp slt i32 %6, 7
  %spec.select = select i1 %8, i32 0, i32 %7
  %9 = getelementptr inbounds i8, ptr %0, i64 272
  store i32 %spec.select, ptr %9, align 8, !tbaa !17
  %10 = getelementptr inbounds i8, ptr %0, i64 436
  %11 = load i32, ptr %10, align 4, !tbaa !18
  %12 = tail call noundef float @_ZL7DBtoLINi(i32 noundef %11)
  %13 = fmul float %12, 0x3FA99999A0000000
  %14 = getelementptr inbounds i8, ptr %0, i64 308
  store float %13, ptr %14, align 4, !tbaa !19
  %15 = getelementptr inbounds i8, ptr %0, i64 452
  %16 = load i32, ptr %15, align 4, !tbaa !20
  %17 = tail call noundef float @_ZL7DBtoLINi(i32 noundef %16)
  %18 = fmul float %17, 2.500000e-01
  %19 = getelementptr inbounds i8, ptr %0, i64 312
  store float %18, ptr %19, align 8, !tbaa !21
  %20 = getelementptr inbounds i8, ptr %0, i64 456
  %21 = load i32, ptr %20, align 8, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %0, i64 276
  store i32 %21, ptr %22, align 4, !tbaa !23
  %23 = getelementptr inbounds i8, ptr %0, i64 460
  %24 = load i32, ptr %23, align 4, !tbaa !24
  %25 = tail call noundef float @_ZL7DBtoLINi(i32 noundef %24)
  %26 = fmul float %25, 0x3FD99999A0000000
  %27 = getelementptr inbounds i8, ptr %0, i64 468
  %28 = load i32, ptr %27, align 4, !tbaa !25
  %29 = tail call noundef float @_ZL7DBtoLINi(i32 noundef %28)
  %30 = fmul float %29, 0x3FC3333340000000
  %31 = getelementptr inbounds i8, ptr %0, i64 476
  %32 = load i32, ptr %31, align 4, !tbaa !26
  %33 = tail call noundef float @_ZL7DBtoLINi(i32 noundef %32)
  %34 = fmul float %33, 0x3FAEB851E0000000
  %35 = getelementptr inbounds i8, ptr %0, i64 484
  %36 = load i32, ptr %35, align 4, !tbaa !27
  %37 = tail call noundef float @_ZL7DBtoLINi(i32 noundef %36)
  %38 = fmul float %37, 0x3FA47AE140000000
  %39 = getelementptr inbounds i8, ptr %0, i64 492
  %40 = load i32, ptr %39, align 4, !tbaa !28
  %41 = tail call noundef float @_ZL7DBtoLINi(i32 noundef %40)
  %42 = fmul float %41, 0x3F96872B00000000
  %43 = getelementptr inbounds i8, ptr %0, i64 500
  %44 = load i32, ptr %43, align 4, !tbaa !29
  %45 = tail call noundef float @_ZL7DBtoLINi(i32 noundef %44)
  %46 = fmul float %45, 0x3F9EB851E0000000
  %47 = getelementptr inbounds i8, ptr %0, i64 508
  %48 = load i32, ptr %47, align 4, !tbaa !30
  %49 = tail call noundef float @_ZL7DBtoLINi(i32 noundef %48)
  %50 = fmul float %49, 0x3FE3333340000000
  %51 = getelementptr inbounds i8, ptr %0, i64 512
  %52 = load i32, ptr %51, align 8, !tbaa !31
  %53 = tail call noundef float @_ZL7DBtoLINi(i32 noundef %52)
  %54 = fmul float %53, 0x3FA99999A0000000
  %55 = getelementptr inbounds i8, ptr %0, i64 304
  store float %54, ptr %55, align 8, !tbaa !32
  %56 = getelementptr inbounds i8, ptr %0, i64 140
  %57 = getelementptr inbounds i8, ptr %0, i64 428
  %58 = load i32, ptr %57, align 4, !tbaa !33
  %59 = getelementptr inbounds i8, ptr %0, i64 432
  %60 = load i32, ptr %59, align 8, !tbaa !34
  %61 = getelementptr inbounds i8, ptr %0, i64 260
  %62 = load i32, ptr %61, align 4, !tbaa !35
  tail call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %56, i32 noundef %58, i32 noundef %60, i32 noundef %62)
  %63 = getelementptr inbounds i8, ptr %0, i64 160
  %64 = getelementptr inbounds i8, ptr %0, i64 420
  %65 = load i32, ptr %64, align 4, !tbaa !36
  %66 = getelementptr inbounds i8, ptr %0, i64 424
  %67 = load i32, ptr %66, align 8, !tbaa !37
  %68 = load i32, ptr %61, align 4, !tbaa !35
  tail call void @_ZN9resonator17initAntiresonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %63, i32 noundef %65, i32 noundef %67, i32 noundef %68)
  %69 = getelementptr inbounds i8, ptr %0, i64 372
  %70 = load i32, ptr %69, align 4, !tbaa !38
  %71 = getelementptr inbounds i8, ptr %0, i64 464
  %72 = load i32, ptr %71, align 8, !tbaa !39
  %73 = load i32, ptr %61, align 4, !tbaa !35
  tail call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %0, i32 noundef %70, i32 noundef %72, i32 noundef %73)
  tail call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %0, float noundef %26)
  %74 = getelementptr inbounds i8, ptr %0, i64 120
  %75 = load i32, ptr %57, align 4, !tbaa !33
  %76 = load i32, ptr %59, align 8, !tbaa !34
  %77 = load i32, ptr %61, align 4, !tbaa !35
  tail call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %74, i32 noundef %75, i32 noundef %76, i32 noundef %77)
  tail call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %74, float noundef %50)
  %78 = getelementptr inbounds i8, ptr %0, i64 20
  %79 = getelementptr inbounds i8, ptr %0, i64 380
  %80 = load i32, ptr %79, align 4, !tbaa !40
  %81 = getelementptr inbounds i8, ptr %0, i64 472
  %82 = load i32, ptr %81, align 8, !tbaa !41
  %83 = load i32, ptr %61, align 4, !tbaa !35
  tail call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %78, i32 noundef %80, i32 noundef %82, i32 noundef %83)
  tail call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %78, float noundef %30)
  %84 = getelementptr inbounds i8, ptr %0, i64 40
  %85 = getelementptr inbounds i8, ptr %0, i64 388
  %86 = load i32, ptr %85, align 4, !tbaa !42
  %87 = getelementptr inbounds i8, ptr %0, i64 480
  %88 = load i32, ptr %87, align 8, !tbaa !43
  %89 = load i32, ptr %61, align 4, !tbaa !35
  tail call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %84, i32 noundef %86, i32 noundef %88, i32 noundef %89)
  tail call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %84, float noundef %34)
  %90 = getelementptr inbounds i8, ptr %0, i64 60
  %91 = getelementptr inbounds i8, ptr %0, i64 396
  %92 = load i32, ptr %91, align 4, !tbaa !44
  %93 = getelementptr inbounds i8, ptr %0, i64 488
  %94 = load i32, ptr %93, align 8, !tbaa !45
  %95 = load i32, ptr %61, align 4, !tbaa !35
  tail call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %90, i32 noundef %92, i32 noundef %94, i32 noundef %95)
  tail call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %90, float noundef %38)
  %96 = getelementptr inbounds i8, ptr %0, i64 80
  %97 = getelementptr inbounds i8, ptr %0, i64 404
  %98 = load i32, ptr %97, align 4, !tbaa !46
  %99 = getelementptr inbounds i8, ptr %0, i64 496
  %100 = load i32, ptr %99, align 8, !tbaa !47
  %101 = load i32, ptr %61, align 4, !tbaa !35
  tail call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %96, i32 noundef %98, i32 noundef %100, i32 noundef %101)
  tail call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %96, float noundef %42)
  %102 = getelementptr inbounds i8, ptr %0, i64 100
  %103 = getelementptr inbounds i8, ptr %0, i64 412
  %104 = load i32, ptr %103, align 4, !tbaa !48
  %105 = getelementptr inbounds i8, ptr %0, i64 504
  %106 = load i32, ptr %105, align 8, !tbaa !49
  %107 = load i32, ptr %61, align 4, !tbaa !35
  tail call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %102, i32 noundef %104, i32 noundef %106, i32 noundef %107)
  tail call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %102, float noundef %46)
  %108 = getelementptr inbounds i8, ptr %0, i64 520
  %109 = load i32, ptr %108, align 8, !tbaa !50
  %110 = add nsw i32 %109, -3
  %111 = icmp slt i32 %109, 4
  %spec.store.select = select i1 %111, i32 57, i32 %110
  %112 = getelementptr inbounds i8, ptr %0, i64 220
  %113 = load i32, ptr %61, align 4, !tbaa !35
  tail call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %112, i32 noundef 0, i32 noundef %113, i32 noundef %113)
  %114 = tail call noundef float @_ZL7DBtoLINi(i32 noundef %spec.store.select)
  tail call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %112, float noundef %114)
  ret void
}

declare void @_ZN9resonator17initAntiresonatorEiii(ptr noundef nonnull align 4 dereferenceable(20), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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 = { "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 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" }

!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 364}
!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 268}
!16 = !{!6, !11, i64 368}
!17 = !{!6, !11, i64 272}
!18 = !{!6, !11, i64 436}
!19 = !{!6, !8, i64 308}
!20 = !{!6, !11, i64 452}
!21 = !{!6, !8, i64 312}
!22 = !{!6, !11, i64 456}
!23 = !{!6, !11, i64 276}
!24 = !{!6, !11, i64 460}
!25 = !{!6, !11, i64 468}
!26 = !{!6, !11, i64 476}
!27 = !{!6, !11, i64 484}
!28 = !{!6, !11, i64 492}
!29 = !{!6, !11, i64 500}
!30 = !{!6, !11, i64 508}
!31 = !{!6, !11, i64 512}
!32 = !{!6, !8, i64 304}
!33 = !{!6, !11, i64 428}
!34 = !{!6, !11, i64 432}
!35 = !{!6, !11, i64 260}
!36 = !{!6, !11, i64 420}
!37 = !{!6, !11, i64 424}
!38 = !{!6, !11, i64 372}
!39 = !{!6, !11, i64 464}
!40 = !{!6, !11, i64 380}
!41 = !{!6, !11, i64 472}
!42 = !{!6, !11, i64 388}
!43 = !{!6, !11, i64 480}
!44 = !{!6, !11, i64 396}
!45 = !{!6, !11, i64 488}
!46 = !{!6, !11, i64 404}
!47 = !{!6, !11, i64 496}
!48 = !{!6, !11, i64 412}
!49 = !{!6, !11, i64 504}
!50 = !{!6, !11, i64 520}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass