; LLVM IR from T-Troll/alienfx-tools :: alienfx-gui/kiss_fft/tools/kiss_fftr.ll (Z9kiss_fftrPKvPKfP12kiss_fft_cpx)

; 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 { i32, ptr, ptr, ptr }
%struct.kiss_fft_state = type { i32, i32, ptr, ptr, ptr, ptr }

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 @_Z9kiss_fftrPKvPKfP12kiss_fft_cpx(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 ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, 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 8, ptr %7) #5
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %15, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.kiss_fftr_state, ptr %16, i32 0, i32 1
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct.kiss_fft_state, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 8, !tbaa !12
  store i32 %20, ptr %9, align 4, !tbaa !14
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.kiss_fftr_state, ptr %21, i32 0, i32 1
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.kiss_fftr_state, ptr %25, i32 0, i32 2
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  call void @_Z8kiss_fftPKvPK12kiss_fft_cpxPS1_(ptr noundef %23, ptr noundef %24, ptr noundef %27)
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.kiss_fftr_state, ptr %28, i32 0, i32 2
  %30 = load ptr, ptr %29, align 8, !tbaa !15
  %31 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %30, i64 0
  %32 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %31, i32 0, i32 0
  %33 = load float, ptr %32, align 4, !tbaa !16
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.kiss_fftr_state, ptr %34, i32 0, i32 2
  %36 = load ptr, ptr %35, align 8, !tbaa !15
  %37 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %36, i64 0
  %38 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %37, i32 0, i32 1
  %39 = load float, ptr %38, align 4, !tbaa !19
  %40 = fadd float %33, %39
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %41, i64 0
  %43 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %42, i32 0, i32 0
  store float %40, ptr %43, align 4, !tbaa !16
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %44, i64 0
  %46 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %45, i32 0, i32 1
  store float 0.000000e+00, ptr %46, align 4, !tbaa !19
  store i32 1, ptr %8, align 4, !tbaa !14
  br label %47

47:                                               ; preds = %234, %3
  %48 = load i32, ptr %8, align 4, !tbaa !14
  %49 = load i32, ptr %9, align 4, !tbaa !14
  %50 = sdiv i32 %49, 2
  %51 = icmp sle i32 %48, %50
  br i1 %51, label %52, label %237

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.kiss_fftr_state, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  %56 = load i32, ptr %8, align 4, !tbaa !14
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %55, i64 %57
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %58, i64 8, i1 false), !tbaa.struct !20
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.kiss_fftr_state, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !15
  %62 = load i32, ptr %9, align 4, !tbaa !14
  %63 = load i32, ptr %8, align 4, !tbaa !14
  %64 = sub nsw i32 %62, %63
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %61, i64 %65
  %67 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %66, i32 0, i32 0
  %68 = load float, ptr %67, align 4, !tbaa !16
  %69 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 0
  store float %68, ptr %69, align 4, !tbaa !16
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.kiss_fftr_state, ptr %70, i32 0, i32 2
  %72 = load ptr, ptr %71, align 8, !tbaa !15
  %73 = load i32, ptr %9, align 4, !tbaa !14
  %74 = load i32, ptr %8, align 4, !tbaa !14
  %75 = sub nsw i32 %73, %74
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %72, i64 %76
  %78 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %77, i32 0, i32 1
  %79 = load float, ptr %78, align 4, !tbaa !19
  %80 = fneg float %79
  %81 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 1
  store float %80, ptr %81, align 4, !tbaa !19
  br label %82

82:                                               ; preds = %52
  %83 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 0
  %84 = load float, ptr %83, align 4, !tbaa !16
  %85 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 0
  %86 = load float, ptr %85, align 4, !tbaa !16
  %87 = fadd float %84, %86
  %88 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 0
  store float %87, ptr %88, align 4, !tbaa !16
  %89 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 1
  %90 = load float, ptr %89, align 4, !tbaa !19
  %91 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !19
  %93 = fadd float %90, %92
  %94 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 1
  store float %93, ptr %94, align 4, !tbaa !19
  br label %95

95:                                               ; preds = %82
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  %98 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 0
  %99 = load float, ptr %98, align 4, !tbaa !16
  %100 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 0
  %101 = load float, ptr %100, align 4, !tbaa !16
  %102 = fsub float %99, %101
  %103 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 0
  store float %102, ptr %103, align 4, !tbaa !16
  %104 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %11, i32 0, i32 1
  %105 = load float, ptr %104, align 4, !tbaa !19
  %106 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %10, i32 0, i32 1
  %107 = load float, ptr %106, align 4, !tbaa !19
  %108 = fsub float %105, %107
  %109 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 1
  store float %108, ptr %109, align 4, !tbaa !19
  br label %110

110:                                              ; preds = %97
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  %113 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 0
  %114 = load float, ptr %113, align 4, !tbaa !16
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.kiss_fftr_state, ptr %115, i32 0, i32 3
  %117 = load ptr, ptr %116, align 8, !tbaa !22
  %118 = load i32, ptr %8, align 4, !tbaa !14
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %117, i64 %119
  %121 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %120, i32 0, i32 0
  %122 = load float, ptr %121, align 4, !tbaa !16
  %123 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 1
  %124 = load float, ptr %123, align 4, !tbaa !19
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.kiss_fftr_state, ptr %125, i32 0, i32 3
  %127 = load ptr, ptr %126, align 8, !tbaa !22
  %128 = load i32, ptr %8, align 4, !tbaa !14
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %127, i64 %129
  %131 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %130, i32 0, i32 1
  %132 = load float, ptr %131, align 4, !tbaa !19
  %133 = fmul float %124, %132
  %134 = fneg float %133
  %135 = call float @llvm.fmuladd.f32(float %114, float %122, float %134)
  %136 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 0
  store float %135, ptr %136, align 4, !tbaa !16
  %137 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 0
  %138 = load float, ptr %137, align 4, !tbaa !16
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.kiss_fftr_state, ptr %139, i32 0, i32 3
  %141 = load ptr, ptr %140, align 8, !tbaa !22
  %142 = load i32, ptr %8, align 4, !tbaa !14
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %141, i64 %143
  %145 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %144, i32 0, i32 1
  %146 = load float, ptr %145, align 4, !tbaa !19
  %147 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %13, i32 0, i32 1
  %148 = load float, ptr %147, align 4, !tbaa !19
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.kiss_fftr_state, ptr %149, i32 0, i32 3
  %151 = load ptr, ptr %150, align 8, !tbaa !22
  %152 = load i32, ptr %8, align 4, !tbaa !14
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %151, i64 %153
  %155 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %154, i32 0, i32 0
  %156 = load float, ptr %155, align 4, !tbaa !16
  %157 = fmul float %148, %156
  %158 = call float @llvm.fmuladd.f32(float %138, float %146, float %157)
  %159 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 1
  store float %158, ptr %159, align 4, !tbaa !19
  br label %160

160:                                              ; preds = %112
  br label %161

161:                                              ; preds = %160
  br label %162

162:                                              ; preds = %161
  %163 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 0
  %164 = load float, ptr %163, align 4, !tbaa !16
  %165 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 0
  %166 = load float, ptr %165, align 4, !tbaa !16
  %167 = fadd float %164, %166
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = load i32, ptr %8, align 4, !tbaa !14
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %168, i64 %170
  %172 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %171, i32 0, i32 0
  store float %167, ptr %172, align 4, !tbaa !16
  %173 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 1
  %174 = load float, ptr %173, align 4, !tbaa !19
  %175 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 1
  %176 = load float, ptr %175, align 4, !tbaa !19
  %177 = fadd float %174, %176
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = load i32, ptr %8, align 4, !tbaa !14
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %178, i64 %180
  %182 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %181, i32 0, i32 1
  store float %177, ptr %182, align 4, !tbaa !19
  br label %183

183:                                              ; preds = %162
  br label %184

184:                                              ; preds = %183
  %185 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 0
  %186 = load float, ptr %185, align 4, !tbaa !16
  %187 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 0
  %188 = load float, ptr %187, align 4, !tbaa !16
  %189 = fadd float %186, %188
  %190 = fdiv float %189, 2.000000e+00
  %191 = load ptr, ptr %6, align 8, !tbaa !5
  %192 = load i32, ptr %8, align 4, !tbaa !14
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %191, i64 %193
  %195 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %194, i32 0, i32 0
  store float %190, ptr %195, align 4, !tbaa !16
  %196 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 1
  %197 = load float, ptr %196, align 4, !tbaa !19
  %198 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 1
  %199 = load float, ptr %198, align 4, !tbaa !19
  %200 = fadd float %197, %199
  %201 = fdiv float %200, 2.000000e+00
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = load i32, ptr %8, align 4, !tbaa !14
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %202, i64 %204
  %206 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %205, i32 0, i32 1
  store float %201, ptr %206, align 4, !tbaa !19
  %207 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 0
  %208 = load float, ptr %207, align 4, !tbaa !16
  %209 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 0
  %210 = load float, ptr %209, align 4, !tbaa !16
  %211 = fsub float %208, %210
  %212 = fdiv float %211, 2.000000e+00
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = load i32, ptr %9, align 4, !tbaa !14
  %215 = load i32, ptr %8, align 4, !tbaa !14
  %216 = sub nsw i32 %214, %215
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %213, i64 %217
  %219 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %218, i32 0, i32 0
  store float %212, ptr %219, align 4, !tbaa !16
  %220 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %12, i32 0, i32 1
  %221 = load float, ptr %220, align 4, !tbaa !19
  %222 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %14, i32 0, i32 1
  %223 = load float, ptr %222, align 4, !tbaa !19
  %224 = fsub float %221, %223
  %225 = fneg float %224
  %226 = fdiv float %225, 2.000000e+00
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = load i32, ptr %9, align 4, !tbaa !14
  %229 = load i32, ptr %8, align 4, !tbaa !14
  %230 = sub nsw i32 %228, %229
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %227, i64 %231
  %233 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %232, i32 0, i32 1
  store float %226, ptr %233, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %234

234:                                              ; preds = %184
  %235 = load i32, ptr %8, align 4, !tbaa !14
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %8, align 4, !tbaa !14
  br label %47, !llvm.loop !23

237:                                              ; preds = %47
  %238 = load ptr, ptr %7, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.kiss_fftr_state, ptr %238, i32 0, i32 2
  %240 = load ptr, ptr %239, align 8, !tbaa !15
  %241 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %240, i64 0
  %242 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %241, i32 0, i32 0
  %243 = load float, ptr %242, align 4, !tbaa !16
  %244 = load ptr, ptr %7, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.kiss_fftr_state, ptr %244, i32 0, i32 2
  %246 = load ptr, ptr %245, align 8, !tbaa !15
  %247 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %246, i64 0
  %248 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %247, i32 0, i32 1
  %249 = load float, ptr %248, align 4, !tbaa !19
  %250 = fsub float %243, %249
  %251 = load ptr, ptr %6, align 8, !tbaa !5
  %252 = load i32, ptr %9, align 4, !tbaa !14
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %251, i64 %253
  %255 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %254, i32 0, i32 0
  store float %250, ptr %255, align 4, !tbaa !16
  %256 = load ptr, ptr %6, align 8, !tbaa !5
  %257 = load i32, ptr %9, align 4, !tbaa !14
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %256, i64 %258
  %260 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %259, i32 0, i32 1
  store float 0.000000e+00, ptr %260, align 4, !tbaa !19
  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 8, ptr %7) #5
  ret void
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree 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 = { "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 = { 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 8}
!10 = !{!"_ZTS15kiss_fftr_state", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"_ZTS14kiss_fft_state", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !6, i64 16}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTS12kiss_fft_cpx", !18, i64 0, !18, i64 4}
!18 = !{!"float", !7, i64 0}
!19 = !{!17, !18, i64 4}
!20 = !{i64 0, i64 4, !21, i64 4, i64 4, !21}
!21 = !{!18, !18, i64 0}
!22 = !{!10, !6, i64 24}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.kiss_fft_cpx = type { float, float }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9kiss_fftrPKvPKfP12kiss_fft_cpx(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = load i32, ptr %5, align 8, !tbaa !11
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = load ptr, ptr %7, align 8, !tbaa !13
  tail call void @_Z8kiss_fftPKvPK12kiss_fft_cpxPS1_(ptr noundef nonnull %5, ptr noundef %1, ptr noundef %8)
  %9 = load ptr, ptr %7, align 8, !tbaa !13
  %10 = load float, ptr %9, align 4, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %9, i64 4
  %12 = load float, ptr %11, align 4, !tbaa !17
  %13 = fadd float %10, %12
  store float %13, ptr %2, align 4, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %2, i64 4
  store float 0.000000e+00, ptr %14, align 4, !tbaa !17
  %.not68 = icmp slt i32 %6, 2
  br i1 %.not68, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %3
  %.pre = sext i32 %6 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %3
  %15 = lshr i32 %6, 1
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = load ptr, ptr %16, align 8, !tbaa !18
  %18 = zext nneg i32 %6 to i64
  %19 = add nuw nsw i32 %15, 1
  %wide.trip.count = zext nneg i32 %19 to i64
  br label %20

20:                                               ; preds = %.lr.ph, %20
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %20 ]
  %21 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %9, i64 %indvars.iv
  %22 = sub nsw i64 %18, %indvars.iv
  %23 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %9, i64 %22
  %24 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %17, i64 %indvars.iv
  %25 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %2, i64 %indvars.iv
  %26 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %2, i64 %22
  %27 = load <2 x float>, ptr %21, align 4, !tbaa !19
  %28 = load <2 x float>, ptr %23, align 4, !tbaa !19
  %29 = fadd <2 x float> %27, %28
  %30 = fsub <2 x float> %27, %28
  %31 = shufflevector <2 x float> %29, <2 x float> %30, <2 x i32> <i32 0, i32 3>
  %32 = fsub <2 x float> %27, %28
  %33 = fadd <2 x float> %27, %28
  %34 = load <2 x float>, ptr %24, align 4, !tbaa !19
  %35 = shufflevector <2 x float> %33, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %36 = fneg <2 x float> %33
  %37 = shufflevector <2 x float> %35, <2 x float> %36, <2 x i32> <i32 0, i32 3>
  %38 = fmul <2 x float> %34, %37
  %39 = shufflevector <2 x float> %38, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %40 = shufflevector <2 x float> %32, <2 x float> poison, <2 x i32> zeroinitializer
  %41 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %40, <2 x float> %34, <2 x float> %39)
  %42 = fadd <2 x float> %31, %41
  %43 = fmul <2 x float> %42, <float 5.000000e-01, float 5.000000e-01>
  store <2 x float> %43, ptr %25, align 4, !tbaa !19
  %44 = fsub <2 x float> %31, %41
  %45 = fmul <2 x float> %44, <float 5.000000e-01, float -5.000000e-01>
  store <2 x float> %45, ptr %26, 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 %20, !llvm.loop !20

._crit_edge:                                      ; preds = %20, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %18, %20 ]
  %46 = load float, ptr %9, align 4, !tbaa !14
  %47 = load float, ptr %11, align 4, !tbaa !17
  %48 = fsub float %46, %47
  %49 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %2, i64 %.pre-phi
  store float %48, ptr %49, align 4, !tbaa !14
  %50 = getelementptr inbounds i8, ptr %49, i64 4
  store float 0.000000e+00, ptr %50, align 4, !tbaa !17
  ret void
}

declare void @_Z8kiss_fftPKvPK12kiss_fft_cpxPS1_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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


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