; 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: mustprogress uwtable
define dso_local void @kiss_fftr(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %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
  %14 = 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
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.kiss_fftr_state, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = getelementptr inbounds %struct.kiss_fft_state, ptr %17, i32 0, i32 1
  %19 = load i32, ptr %18, align 4, !tbaa !11
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %24

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

24:                                               ; preds = %3
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.kiss_fftr_state, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct.kiss_fft_state, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 4, !tbaa !14
  store i32 %29, ptr %8, align 4, !tbaa !15
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.kiss_fftr_state, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.kiss_fftr_state, ptr %34, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !16
  call void @kiss_fft(ptr noundef %32, ptr noundef %33, ptr noundef %36)
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.kiss_fftr_state, ptr %37, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  %40 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %39, i64 0
  %41 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %40, i32 0, i32 0
  %42 = load float, ptr %41, align 4, !tbaa !17
  %43 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 0
  store float %42, ptr %43, align 4, !tbaa !17
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.kiss_fftr_state, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !16
  %47 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %46, i64 0
  %48 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %47, i32 0, i32 1
  %49 = load float, ptr %48, align 4, !tbaa !20
  %50 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 1
  store float %49, ptr %50, align 4, !tbaa !20
  %51 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 0
  %52 = load float, ptr %51, align 4, !tbaa !17
  %53 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 1
  %54 = load float, ptr %53, align 4, !tbaa !20
  %55 = fadd float %52, %54
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %56, i64 0
  %58 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %57, i32 0, i32 0
  store float %55, ptr %58, align 4, !tbaa !17
  %59 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 0
  %60 = load float, ptr %59, align 4, !tbaa !17
  %61 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 1
  %62 = load float, ptr %61, align 4, !tbaa !20
  %63 = fsub float %60, %62
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = load i32, ptr %8, align 4, !tbaa !15
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %64, i64 %66
  %68 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %67, i32 0, i32 0
  store float %63, ptr %68, align 4, !tbaa !17
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %69, i64 0
  %71 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %70, i32 0, i32 1
  store float 0.000000e+00, ptr %71, align 4, !tbaa !20
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load i32, ptr %8, align 4, !tbaa !15
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %72, i64 %74
  %76 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %75, i32 0, i32 1
  store float 0.000000e+00, ptr %76, align 4, !tbaa !20
  store i32 1, ptr %7, align 4, !tbaa !15
  br label %77

77:                                               ; preds = %252, %24
  %78 = load i32, ptr %7, align 4, !tbaa !15
  %79 = load i32, ptr %8, align 4, !tbaa !15
  %80 = sdiv i32 %79, 2
  %81 = icmp sle i32 %78, %80
  br i1 %81, label %82, label %255

82:                                               ; preds = %77
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.kiss_fftr_state, ptr %83, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !16
  %86 = load i32, ptr %7, align 4, !tbaa !15
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %85, i64 %87
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %88, i64 8, i1 false), !tbaa.struct !21
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.kiss_fftr_state, ptr %89, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8, !tbaa !16
  %92 = load i32, ptr %8, align 4, !tbaa !15
  %93 = load i32, ptr %7, align 4, !tbaa !15
  %94 = sub nsw i32 %92, %93
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %91, i64 %95
  %97 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %96, i32 0, i32 0
  %98 = load float, ptr %97, align 4, !tbaa !17
  %99 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %9, i32 0, i32 0
  store float %98, ptr %99, align 4, !tbaa !17
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.kiss_fftr_state, ptr %100, i32 0, i32 1
  %102 = load ptr, ptr %101, align 8, !tbaa !16
  %103 = load i32, ptr %8, align 4, !tbaa !15
  %104 = load i32, ptr %7, align 4, !tbaa !15
  %105 = sub nsw i32 %103, %104
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %102, i64 %106
  %108 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %107, i32 0, i32 1
  %109 = load float, ptr %108, align 4, !tbaa !20
  %110 = fneg float %109
  %111 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %9, i32 0, i32 1
  store float %110, ptr %111, align 4, !tbaa !20
  br label %112

112:                                              ; preds = %82
  %113 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 0
  %114 = load float, ptr %113, align 4, !tbaa !17
  %115 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %9, i32 0, i32 0
  %116 = load float, ptr %115, align 4, !tbaa !17
  %117 = fadd float %114, %116
  %118 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 0
  store float %117, ptr %118, align 4, !tbaa !17
  %119 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 1
  %120 = load float, ptr %119, align 4, !tbaa !20
  %121 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %9, i32 0, i32 1
  %122 = load float, ptr %121, align 4, !tbaa !20
  %123 = fadd float %120, %122
  %124 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 1
  store float %123, ptr %124, align 4, !tbaa !20
  br label %125

125:                                              ; preds = %112
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  %128 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 0
  %129 = load float, ptr %128, align 4, !tbaa !17
  %130 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %9, i32 0, i32 0
  %131 = load float, ptr %130, align 4, !tbaa !17
  %132 = fsub float %129, %131
  %133 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 0
  store float %132, ptr %133, align 4, !tbaa !17
  %134 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 1
  %135 = load float, ptr %134, align 4, !tbaa !20
  %136 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %9, i32 0, i32 1
  %137 = load float, ptr %136, align 4, !tbaa !20
  %138 = fsub float %135, %137
  %139 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 1
  store float %138, ptr %139, align 4, !tbaa !20
  br label %140

140:                                              ; preds = %127
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  %143 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 0
  %144 = load float, ptr %143, align 4, !tbaa !17
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.kiss_fftr_state, ptr %145, i32 0, i32 2
  %147 = load ptr, ptr %146, align 8, !tbaa !23
  %148 = load i32, ptr %7, align 4, !tbaa !15
  %149 = sub nsw i32 %148, 1
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %147, i64 %150
  %152 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %151, i32 0, i32 0
  %153 = load float, ptr %152, align 4, !tbaa !17
  %154 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 1
  %155 = load float, ptr %154, align 4, !tbaa !20
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.kiss_fftr_state, ptr %156, i32 0, i32 2
  %158 = load ptr, ptr %157, align 8, !tbaa !23
  %159 = load i32, ptr %7, align 4, !tbaa !15
  %160 = sub nsw i32 %159, 1
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %158, i64 %161
  %163 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %162, i32 0, i32 1
  %164 = load float, ptr %163, align 4, !tbaa !20
  %165 = fmul float %155, %164
  %166 = fneg float %165
  %167 = call float @llvm.fmuladd.f32(float %144, float %153, float %166)
  %168 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 0
  store float %167, ptr %168, align 4, !tbaa !17
  %169 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 0
  %170 = load float, ptr %169, align 4, !tbaa !17
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.kiss_fftr_state, ptr %171, i32 0, i32 2
  %173 = load ptr, ptr %172, align 8, !tbaa !23
  %174 = load i32, ptr %7, align 4, !tbaa !15
  %175 = sub nsw i32 %174, 1
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %173, i64 %176
  %178 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %177, i32 0, i32 1
  %179 = load float, ptr %178, align 4, !tbaa !20
  %180 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 1
  %181 = load float, ptr %180, align 4, !tbaa !20
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.kiss_fftr_state, ptr %182, i32 0, i32 2
  %184 = load ptr, ptr %183, align 8, !tbaa !23
  %185 = load i32, ptr %7, align 4, !tbaa !15
  %186 = sub nsw i32 %185, 1
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %184, i64 %187
  %189 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %188, i32 0, i32 0
  %190 = load float, ptr %189, align 4, !tbaa !17
  %191 = fmul float %181, %190
  %192 = call float @llvm.fmuladd.f32(float %170, float %179, float %191)
  %193 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 1
  store float %192, ptr %193, align 4, !tbaa !20
  br label %194

194:                                              ; preds = %142
  br label %195

195:                                              ; preds = %194
  %196 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 0
  %197 = load float, ptr %196, align 4, !tbaa !17
  %198 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 0
  %199 = load float, ptr %198, align 4, !tbaa !17
  %200 = fadd float %197, %199
  %201 = fpext float %200 to double
  %202 = fmul double %201, 5.000000e-01
  %203 = fptrunc double %202 to float
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = load i32, ptr %7, align 4, !tbaa !15
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %204, i64 %206
  %208 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %207, i32 0, i32 0
  store float %203, ptr %208, align 4, !tbaa !17
  %209 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 1
  %210 = load float, ptr %209, align 4, !tbaa !20
  %211 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 1
  %212 = load float, ptr %211, align 4, !tbaa !20
  %213 = fadd float %210, %212
  %214 = fpext float %213 to double
  %215 = fmul double %214, 5.000000e-01
  %216 = fptrunc double %215 to float
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = load i32, ptr %7, align 4, !tbaa !15
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %217, i64 %219
  %221 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %220, i32 0, i32 1
  store float %216, ptr %221, align 4, !tbaa !20
  %222 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 0
  %223 = load float, ptr %222, align 4, !tbaa !17
  %224 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 0
  %225 = load float, ptr %224, align 4, !tbaa !17
  %226 = fsub float %223, %225
  %227 = fpext float %226 to double
  %228 = fmul double %227, 5.000000e-01
  %229 = fptrunc double %228 to float
  %230 = load ptr, ptr %6, align 8, !tbaa !5
  %231 = load i32, ptr %8, align 4, !tbaa !15
  %232 = load i32, ptr %7, align 4, !tbaa !15
  %233 = sub nsw i32 %231, %232
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %230, i64 %234
  %236 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %235, i32 0, i32 0
  store float %229, ptr %236, align 4, !tbaa !17
  %237 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 1
  %238 = load float, ptr %237, align 4, !tbaa !20
  %239 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 1
  %240 = load float, ptr %239, align 4, !tbaa !20
  %241 = fsub float %238, %240
  %242 = fpext float %241 to double
  %243 = fmul double %242, 5.000000e-01
  %244 = fptrunc double %243 to float
  %245 = load ptr, ptr %6, align 8, !tbaa !5
  %246 = load i32, ptr %8, align 4, !tbaa !15
  %247 = load i32, ptr %7, align 4, !tbaa !15
  %248 = sub nsw i32 %246, %247
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %245, i64 %249
  %251 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %250, i32 0, i32 1
  store float %244, ptr %251, align 4, !tbaa !20
  br label %252

252:                                              ; preds = %195
  %253 = load i32, ptr %7, align 4, !tbaa !15
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %7, align 4, !tbaa !15
  br label %77, !llvm.loop !24

255:                                              ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  ret void
}

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

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

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

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

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 = { 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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!10, !6, i64 8}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTS12kiss_fft_cpx", !19, i64 0, !19, i64 4}
!19 = !{!"float", !7, i64 0}
!20 = !{!18, !19, i64 4}
!21 = !{i64 0, i64 4, !22, i64 4, i64 4, !22}
!22 = !{!19, !19, 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: mustprogress uwtable
define dso_local void @kiss_fftr(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #1 {
  %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
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %10, label %7

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

10:                                               ; preds = %3
  %11 = load i32, ptr %4, align 4, !tbaa !14
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !15
  tail call void @kiss_fft(ptr noundef nonnull %4, ptr noundef %1, ptr noundef %13)
  %14 = load ptr, ptr %12, align 8, !tbaa !15
  %15 = load float, ptr %14, align 4, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %14, i64 4
  %17 = load float, ptr %16, align 4, !tbaa !19
  %18 = fadd float %15, %17
  store float %18, ptr %2, align 4, !tbaa !16
  %19 = fsub float %15, %17
  %20 = sext i32 %11 to i64
  %21 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %2, i64 %20
  store float %19, ptr %21, align 4, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %2, i64 4
  store float 0.000000e+00, ptr %22, align 4, !tbaa !19
  %23 = getelementptr inbounds i8, ptr %21, i64 4
  store float 0.000000e+00, ptr %23, align 4, !tbaa !19
  %.not6364 = icmp slt i32 %11, 2
  br i1 %.not6364, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %10
  %24 = lshr i32 %11, 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 %14, i64 %indvars.iv
  %30 = sub nsw i64 %20, %indvars.iv
  %31 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i64 %30
  %gep = getelementptr %struct.kiss_fft_cpx, ptr %invariant.gep, i64 %indvars.iv
  %32 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %2, 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
  %49 = fmul <2 x float> %48, <float 5.000000e-01, float 5.000000e-01>
  store <2 x float> %49, ptr %32, align 4, !tbaa !21
  %50 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %2, i64 %30
  %51 = shufflevector <2 x float> %37, <2 x float> %47, <2 x i32> <i32 0, i32 3>
  %52 = shufflevector <2 x float> %47, <2 x float> %37, <2 x i32> <i32 0, i32 3>
  %53 = fsub <2 x float> %51, %52
  %54 = fmul <2 x float> %53, <float 5.000000e-01, float 5.000000e-01>
  store <2 x float> %54, ptr %50, align 4, !tbaa !21
  %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, %10
  ret void
}

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

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

; 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 = { 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 = { 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 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 = !{!6, !7, i64 8}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTS12kiss_fft_cpx", !18, i64 0, !18, i64 4}
!18 = !{!"float", !8, i64 0}
!19 = !{!17, !18, i64 4}
!20 = !{!6, !7, i64 16}
!21 = !{!18, !18, 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