; LLVM IR from suxiaojack/sapDecoder :: src (kiss_fftr)

; 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.kiss_fft_cpx = type { float, float }
%struct.kiss_fftr_state = type { ptr, ptr, ptr }
%struct.kiss_fft_state = type { i32, i32, [64 x i32], [1 x %struct.kiss_fft_cpx] }

@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [38 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

declare void @kiss_fft(ptr noundef, ptr noundef, ptr noundef) #3

; 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) #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @kiss_fftri(ptr noundef %0, ptr noundef %1, ptr noundef %2) #6 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.kiss_fft_cpx, align 4
  %10 = alloca %struct.kiss_fft_cpx, align 4
  %11 = alloca %struct.kiss_fft_cpx, align 4
  %12 = alloca %struct.kiss_fft_cpx, align 4
  %13 = alloca %struct.kiss_fft_cpx, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.kiss_fftr_state, ptr %14, i32 0, i32 0
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = getelementptr inbounds %struct.kiss_fft_state, ptr %16, i32 0, i32 1
  %18 = load i32, ptr %17, align 4, !tbaa !11
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %23

20:                                               ; preds = %3
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str.1) #7
  call void @exit(i32 noundef 1) #8
  unreachable

23:                                               ; preds = %3
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.kiss_fftr_state, ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds %struct.kiss_fft_state, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 4, !tbaa !14
  store i32 %28, ptr %8, align 4, !tbaa !15
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %29, i64 0
  %31 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %30, i32 0, i32 0
  %32 = load float, ptr %31, align 4, !tbaa !16
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = load i32, ptr %8, align 4, !tbaa !15
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %33, i64 %35
  %37 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %36, i32 0, i32 0
  %38 = load float, ptr %37, align 4, !tbaa !16
  %39 = fadd float %32, %38
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.kiss_fftr_state, ptr %40, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !19
  %43 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %42, i64 0
  %44 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %43, i32 0, i32 0
  store float %39, ptr %44, align 4, !tbaa !16
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %45, i64 0
  %47 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %46, i32 0, i32 0
  %48 = load float, ptr %47, align 4, !tbaa !16
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = load i32, ptr %8, align 4, !tbaa !15
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %49, i64 %51
  %53 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %52, i32 0, i32 0
  %54 = load float, ptr %53, align 4, !tbaa !16
  %55 = fsub float %48, %54
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.kiss_fftr_state, ptr %56, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !19
  %59 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %58, i64 0
  %60 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %59, i32 0, i32 1
  store float %55, ptr %60, align 4, !tbaa !20
  store i32 1, ptr %7, align 4, !tbaa !15
  br label %61

61:                                               ; preds = %243, %23
  %62 = load i32, ptr %7, align 4, !tbaa !15
  %63 = load i32, ptr %8, align 4, !tbaa !15
  %64 = sdiv i32 %63, 2
  %65 = icmp sle i32 %62, %64
  br i1 %65, label %66, label %246

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = load i32, ptr %7, align 4, !tbaa !15
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %67, i64 %69
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %70, i64 8, i1 false), !tbaa.struct !21
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = load i32, ptr %8, align 4, !tbaa !15
  %73 = load i32, ptr %7, align 4, !tbaa !15
  %74 = sub nsw i32 %72, %73
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %71, i64 %75
  %77 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %76, i32 0, i32 0
  %78 = load float, ptr %77, align 4, !tbaa !16
  %79 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 0
  store float %78, ptr %79, align 4, !tbaa !16
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = load i32, ptr %8, align 4, !tbaa !15
  %82 = load i32, ptr %7, align 4, !tbaa !15
  %83 = sub nsw i32 %81, %82
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %80, i64 %84
  %86 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %85, i32 0, i32 1
  %87 = load float, ptr %86, align 4, !tbaa !20
  %88 = fneg float %87
  %89 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 1
  store float %88, ptr %89, align 4, !tbaa !20
  br label %90

90:                                               ; preds = %66
  %91 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %9, i32 0, i32 0
  %92 = load float, ptr %91, align 4, !tbaa !16
  %93 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 0
  %94 = load float, ptr %93, align 4, !tbaa !16
  %95 = fadd float %92, %94
  %96 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 0
  store float %95, ptr %96, align 4, !tbaa !16
  %97 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %9, i32 0, i32 1
  %98 = load float, ptr %97, align 4, !tbaa !20
  %99 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 1
  %100 = load float, ptr %99, align 4, !tbaa !20
  %101 = fadd float %98, %100
  %102 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 1
  store float %101, ptr %102, align 4, !tbaa !20
  br label %103

103:                                              ; preds = %90
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  %106 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %9, i32 0, i32 0
  %107 = load float, ptr %106, align 4, !tbaa !16
  %108 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 0
  %109 = load float, ptr %108, align 4, !tbaa !16
  %110 = fsub float %107, %109
  %111 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 0
  store float %110, ptr %111, align 4, !tbaa !16
  %112 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %9, i32 0, i32 1
  %113 = load float, ptr %112, align 4, !tbaa !20
  %114 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 1
  %115 = load float, ptr %114, align 4, !tbaa !20
  %116 = fsub float %113, %115
  %117 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 1
  store float %116, ptr %117, align 4, !tbaa !20
  br label %118

118:                                              ; preds = %105
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  %121 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 0
  %122 = load float, ptr %121, align 4, !tbaa !16
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.kiss_fftr_state, ptr %123, i32 0, i32 2
  %125 = load ptr, ptr %124, align 8, !tbaa !23
  %126 = load i32, ptr %7, align 4, !tbaa !15
  %127 = sub nsw i32 %126, 1
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %125, i64 %128
  %130 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %129, i32 0, i32 0
  %131 = load float, ptr %130, align 4, !tbaa !16
  %132 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 1
  %133 = load float, ptr %132, align 4, !tbaa !20
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.kiss_fftr_state, ptr %134, i32 0, i32 2
  %136 = load ptr, ptr %135, align 8, !tbaa !23
  %137 = load i32, ptr %7, align 4, !tbaa !15
  %138 = sub nsw i32 %137, 1
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %136, i64 %139
  %141 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %140, i32 0, i32 1
  %142 = load float, ptr %141, align 4, !tbaa !20
  %143 = fmul float %133, %142
  %144 = fneg float %143
  %145 = call float @llvm.fmuladd.f32(float %122, float %131, float %144)
  %146 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 0
  store float %145, ptr %146, align 4, !tbaa !16
  %147 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 0
  %148 = load float, ptr %147, align 4, !tbaa !16
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.kiss_fftr_state, ptr %149, i32 0, i32 2
  %151 = load ptr, ptr %150, align 8, !tbaa !23
  %152 = load i32, ptr %7, align 4, !tbaa !15
  %153 = sub nsw i32 %152, 1
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %151, i64 %154
  %156 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %155, i32 0, i32 1
  %157 = load float, ptr %156, align 4, !tbaa !20
  %158 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 1
  %159 = load float, ptr %158, align 4, !tbaa !20
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.kiss_fftr_state, ptr %160, i32 0, i32 2
  %162 = load ptr, ptr %161, align 8, !tbaa !23
  %163 = load i32, ptr %7, align 4, !tbaa !15
  %164 = sub nsw i32 %163, 1
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %162, i64 %165
  %167 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %166, i32 0, i32 0
  %168 = load float, ptr %167, align 4, !tbaa !16
  %169 = fmul float %159, %168
  %170 = call float @llvm.fmuladd.f32(float %148, float %157, float %169)
  %171 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 1
  store float %170, ptr %171, align 4, !tbaa !20
  br label %172

172:                                              ; preds = %120
  br label %173

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173
  %175 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 0
  %176 = load float, ptr %175, align 4, !tbaa !16
  %177 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 0
  %178 = load float, ptr %177, align 4, !tbaa !16
  %179 = fadd float %176, %178
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.kiss_fftr_state, ptr %180, i32 0, i32 1
  %182 = load ptr, ptr %181, align 8, !tbaa !19
  %183 = load i32, ptr %7, align 4, !tbaa !15
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %182, i64 %184
  %186 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %185, i32 0, i32 0
  store float %179, ptr %186, align 4, !tbaa !16
  %187 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 1
  %188 = load float, ptr %187, align 4, !tbaa !20
  %189 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 1
  %190 = load float, ptr %189, align 4, !tbaa !20
  %191 = fadd float %188, %190
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.kiss_fftr_state, ptr %192, i32 0, i32 1
  %194 = load ptr, ptr %193, align 8, !tbaa !19
  %195 = load i32, ptr %7, align 4, !tbaa !15
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %194, i64 %196
  %198 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %197, i32 0, i32 1
  store float %191, ptr %198, align 4, !tbaa !20
  br label %199

199:                                              ; preds = %174
  br label %200

200:                                              ; preds = %199
  br label %201

201:                                              ; preds = %200
  %202 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 0
  %203 = load float, ptr %202, align 4, !tbaa !16
  %204 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 0
  %205 = load float, ptr %204, align 4, !tbaa !16
  %206 = fsub float %203, %205
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.kiss_fftr_state, ptr %207, i32 0, i32 1
  %209 = load ptr, ptr %208, align 8, !tbaa !19
  %210 = load i32, ptr %8, align 4, !tbaa !15
  %211 = load i32, ptr %7, align 4, !tbaa !15
  %212 = sub nsw i32 %210, %211
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %209, i64 %213
  %215 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %214, i32 0, i32 0
  store float %206, ptr %215, align 4, !tbaa !16
  %216 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 1
  %217 = load float, ptr %216, align 4, !tbaa !20
  %218 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 1
  %219 = load float, ptr %218, align 4, !tbaa !20
  %220 = fsub float %217, %219
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.kiss_fftr_state, ptr %221, i32 0, i32 1
  %223 = load ptr, ptr %222, align 8, !tbaa !19
  %224 = load i32, ptr %8, align 4, !tbaa !15
  %225 = load i32, ptr %7, align 4, !tbaa !15
  %226 = sub nsw i32 %224, %225
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %223, i64 %227
  %229 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %228, i32 0, i32 1
  store float %220, ptr %229, align 4, !tbaa !20
  br label %230

230:                                              ; preds = %201
  br label %231

231:                                              ; preds = %230
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.kiss_fftr_state, ptr %232, i32 0, i32 1
  %234 = load ptr, ptr %233, align 8, !tbaa !19
  %235 = load i32, ptr %8, align 4, !tbaa !15
  %236 = load i32, ptr %7, align 4, !tbaa !15
  %237 = sub nsw i32 %235, %236
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %234, i64 %238
  %240 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %239, i32 0, i32 1
  %241 = load float, ptr %240, align 4, !tbaa !20
  %242 = fmul float %241, -1.000000e+00
  store float %242, ptr %240, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %243

243:                                              ; preds = %231
  %244 = load i32, ptr %7, align 4, !tbaa !15
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %7, align 4, !tbaa !15
  br label %61, !llvm.loop !24

246:                                              ; preds = %61
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.kiss_fftr_state, ptr %247, i32 0, i32 0
  %249 = load ptr, ptr %248, align 8, !tbaa !9
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.kiss_fftr_state, ptr %250, i32 0, i32 1
  %252 = load ptr, ptr %251, align 8, !tbaa !19
  %253 = load ptr, ptr %6, align 8, !tbaa !5
  call void @kiss_fft(ptr noundef %249, ptr noundef %252, ptr noundef %253)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS15kiss_fftr_state", !6, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!12, !13, i64 4}
!12 = !{!"_ZTS14kiss_fft_state", !13, i64 0, !13, i64 4, !7, i64 8, !7, i64 264}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTS12kiss_fft_cpx", !18, i64 0, !18, i64 4}
!18 = !{!"float", !7, i64 0}
!19 = !{!10, !6, i64 8}
!20 = !{!17, !18, i64 4}
!21 = !{i64 0, i64 4, !22, i64 4, i64 4, !22}
!22 = !{!18, !18, i64 0}
!23 = !{!10, !6, i64 16}
!24 = distinct !{!24, !25}
!25 = !{!"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"

%struct.kiss_fft_cpx = type { float, float }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [38 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #1

declare void @kiss_fft(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @kiss_fftri(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #3 {
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 4
  %6 = load i32, ptr %5, align 4, !tbaa !10
  %7 = icmp eq i32 %6, 0
  br i1 %7, label %8, label %11

8:                                                ; preds = %3
  %9 = load ptr, ptr @stderr, align 8, !tbaa !13
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.1) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

11:                                               ; preds = %3
  %12 = load i32, ptr %4, align 4, !tbaa !14
  %13 = load float, ptr %1, align 4, !tbaa !15
  %14 = sext i32 %12 to i64
  %15 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %1, i64 %14
  %16 = load float, ptr %15, align 4, !tbaa !15
  %17 = fadd float %13, %16
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !18
  store float %17, ptr %19, align 4, !tbaa !15
  %20 = load float, ptr %1, align 4, !tbaa !15
  %21 = load float, ptr %15, align 4, !tbaa !15
  %22 = fsub float %20, %21
  %23 = getelementptr inbounds i8, ptr %19, i64 4
  store float %22, ptr %23, align 4, !tbaa !19
  %.not62 = icmp slt i32 %12, 2
  br i1 %.not62, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %11
  %24 = lshr i32 %12, 1
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = load ptr, ptr %25, align 8, !tbaa !20
  %27 = add nuw nsw i32 %24, 1
  %wide.trip.count = zext nneg i32 %27 to i64
  %invariant.gep = getelementptr i8, ptr %26, i64 -8
  br label %28

28:                                               ; preds = %.lr.ph, %28
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %28 ]
  %29 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %1, i64 %indvars.iv
  %30 = sub nsw i64 %14, %indvars.iv
  %31 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %1, i64 %30
  %gep = getelementptr %struct.kiss_fft_cpx, ptr %invariant.gep, i64 %indvars.iv
  %32 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %19, i64 %indvars.iv
  %33 = load <2 x float>, ptr %29, align 4, !tbaa !21
  %34 = load <2 x float>, ptr %31, align 4, !tbaa !21
  %35 = fadd <2 x float> %33, %34
  %36 = fsub <2 x float> %33, %34
  %37 = shufflevector <2 x float> %35, <2 x float> %36, <2 x i32> <i32 0, i32 3>
  %38 = fsub <2 x float> %33, %34
  %39 = fadd <2 x float> %33, %34
  %40 = load <2 x float>, ptr %gep, align 4, !tbaa !21
  %41 = shufflevector <2 x float> %39, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %42 = fneg <2 x float> %39
  %43 = shufflevector <2 x float> %41, <2 x float> %42, <2 x i32> <i32 0, i32 3>
  %44 = fmul <2 x float> %40, %43
  %45 = shufflevector <2 x float> %44, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %46 = shufflevector <2 x float> %38, <2 x float> poison, <2 x i32> zeroinitializer
  %47 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %46, <2 x float> %40, <2 x float> %45)
  %48 = fadd <2 x float> %37, %47
  store <2 x float> %48, ptr %32, align 4, !tbaa !21
  %49 = fsub <2 x float> %37, %47
  %50 = extractelement <2 x float> %49, i64 0
  %51 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %19, i64 %30
  store float %50, ptr %51, align 4, !tbaa !15
  %52 = fsub <2 x float> %37, %47
  %53 = extractelement <2 x float> %52, i64 1
  %54 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %19, i64 %30, i32 1
  %55 = fneg float %53
  store float %55, ptr %54, align 4, !tbaa !19
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %28, !llvm.loop !22

._crit_edge:                                      ; preds = %28, %11
  tail call void @kiss_fft(ptr noundef nonnull %4, ptr noundef nonnull %19, ptr noundef %2)
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #4

attributes #0 = { 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 #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { cold nounwind }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS15kiss_fftr_state", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !12, i64 4}
!11 = !{!"_ZTS14kiss_fft_state", !12, i64 0, !12, i64 4, !8, i64 8, !8, i64 264}
!12 = !{!"int", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!11, !12, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS12kiss_fft_cpx", !17, i64 0, !17, i64 4}
!17 = !{!"float", !8, i64 0}
!18 = !{!6, !7, i64 8}
!19 = !{!16, !17, i64 4}
!20 = !{!6, !7, i64 16}
!21 = !{!17, !17, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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