; LLVM IR from vertver/Fresponze-old :: modules/r8brain-free-src (pffft)

; 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.PFFFT_Setup = type { i32, i32, [15 x i32], i32, ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [34 x i8], align 1
@__PRETTY_FUNCTION__.pffft_new_setup = external hidden unnamed_addr constant [53 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [32 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 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 nounwind uwtable
declare dso_local ptr @pffft_aligned_malloc(i64 noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9cffti1_psiPfPi(i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare float @cosf(float noundef) #5

; Function Attrs: nounwind
declare float @sinf(float noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local ptr @pffft_new_setup(i32 noundef %0, i32 noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %14 = call noalias ptr @malloc(i64 noundef 96) #7
  store ptr %14, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %15 = load i32, ptr %4, align 4, !tbaa !9
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %30

17:                                               ; preds = %2
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = srem i32 %18, 32
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %24

21:                                               ; preds = %17
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br label %24

24:                                               ; preds = %21, %17
  %25 = phi i1 [ false, %17 ], [ %23, %21 ]
  br i1 %25, label %26, label %27

26:                                               ; preds = %24
  br label %29

27:                                               ; preds = %24
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str.2, i32 noundef 1223, ptr noundef @__PRETTY_FUNCTION__.pffft_new_setup) #8
  unreachable

28:                                               ; No predecessors!
  br label %29

29:                                               ; preds = %28, %26
  br label %30

30:                                               ; preds = %29, %2
  %31 = load i32, ptr %4, align 4, !tbaa !9
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %46

33:                                               ; preds = %30
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = srem i32 %34, 16
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %40

37:                                               ; preds = %33
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = icmp sgt i32 %38, 0
  br label %40

40:                                               ; preds = %37, %33
  %41 = phi i1 [ false, %33 ], [ %39, %37 ]
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  br label %45

43:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.27, ptr noundef @.str.2, i32 noundef 1224, ptr noundef @__PRETTY_FUNCTION__.pffft_new_setup) #8
  unreachable

44:                                               ; No predecessors!
  br label %45

45:                                               ; preds = %44, %42
  br label %46

46:                                               ; preds = %45, %30
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = load ptr, ptr %5, align 8, !tbaa !11
  %49 = getelementptr inbounds %struct.PFFFT_Setup, ptr %48, i32 0, i32 0
  store i32 %47, ptr %49, align 8, !tbaa !13
  %50 = load i32, ptr %4, align 4, !tbaa !9
  %51 = load ptr, ptr %5, align 8, !tbaa !11
  %52 = getelementptr inbounds %struct.PFFFT_Setup, ptr %51, i32 0, i32 3
  store i32 %50, ptr %52, align 4, !tbaa !15
  %53 = load i32, ptr %4, align 4, !tbaa !9
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %58

55:                                               ; preds = %46
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = sdiv i32 %56, 2
  br label %60

58:                                               ; preds = %46
  %59 = load i32, ptr %3, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %58, %55
  %61 = phi i32 [ %57, %55 ], [ %59, %58 ]
  %62 = sdiv i32 %61, 4
  %63 = load ptr, ptr %5, align 8, !tbaa !11
  %64 = getelementptr inbounds %struct.PFFFT_Setup, ptr %63, i32 0, i32 1
  store i32 %62, ptr %64, align 4, !tbaa !16
  %65 = load ptr, ptr %5, align 8, !tbaa !11
  %66 = getelementptr inbounds %struct.PFFFT_Setup, ptr %65, i32 0, i32 1
  %67 = load i32, ptr %66, align 4, !tbaa !16
  %68 = mul nsw i32 2, %67
  %69 = sext i32 %68 to i64
  %70 = mul i64 %69, 16
  %71 = call ptr @pffft_aligned_malloc(i64 noundef %70)
  %72 = load ptr, ptr %5, align 8, !tbaa !11
  %73 = getelementptr inbounds %struct.PFFFT_Setup, ptr %72, i32 0, i32 4
  store ptr %71, ptr %73, align 8, !tbaa !17
  %74 = load ptr, ptr %5, align 8, !tbaa !11
  %75 = getelementptr inbounds %struct.PFFFT_Setup, ptr %74, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !17
  %77 = load ptr, ptr %5, align 8, !tbaa !11
  %78 = getelementptr inbounds %struct.PFFFT_Setup, ptr %77, i32 0, i32 5
  store ptr %76, ptr %78, align 8, !tbaa !18
  %79 = load ptr, ptr %5, align 8, !tbaa !11
  %80 = getelementptr inbounds %struct.PFFFT_Setup, ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !17
  %82 = load ptr, ptr %5, align 8, !tbaa !11
  %83 = getelementptr inbounds %struct.PFFFT_Setup, ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 4, !tbaa !16
  %85 = mul nsw i32 2, %84
  %86 = mul nsw i32 %85, 3
  %87 = sdiv i32 %86, 4
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds <4 x float>, ptr %81, i64 %88
  %90 = load ptr, ptr %5, align 8, !tbaa !11
  %91 = getelementptr inbounds %struct.PFFFT_Setup, ptr %90, i32 0, i32 6
  store ptr %89, ptr %91, align 8, !tbaa !19
  %92 = load i32, ptr %4, align 4, !tbaa !9
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %168

94:                                               ; preds = %60
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %156, %94
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = load ptr, ptr %5, align 8, !tbaa !11
  %98 = getelementptr inbounds %struct.PFFFT_Setup, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 4, !tbaa !16
  %100 = icmp slt i32 %96, %99
  br i1 %100, label %101, label %159

101:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = sdiv i32 %102, 4
  store i32 %103, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = srem i32 %104, 4
  store i32 %105, ptr %9, align 4, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %152, %101
  %107 = load i32, ptr %7, align 4, !tbaa !5
  %108 = icmp slt i32 %107, 3
  br i1 %108, label %109, label %155

109:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  %112 = sitofp i32 %111 to float
  %113 = fmul float 0xC01921FB60000000, %112
  %114 = load i32, ptr %6, align 4, !tbaa !5
  %115 = sitofp i32 %114 to float
  %116 = fmul float %113, %115
  %117 = load i32, ptr %3, align 4, !tbaa !5
  %118 = sitofp i32 %117 to float
  %119 = fdiv float %116, %118
  store float %119, ptr %10, align 4, !tbaa !20
  %120 = load float, ptr %10, align 4, !tbaa !20
  %121 = call float @cosf(float noundef %120) #6
  %122 = load ptr, ptr %5, align 8, !tbaa !11
  %123 = getelementptr inbounds %struct.PFFFT_Setup, ptr %122, i32 0, i32 5
  %124 = load ptr, ptr %123, align 8, !tbaa !18
  %125 = load i32, ptr %8, align 4, !tbaa !5
  %126 = mul nsw i32 %125, 3
  %127 = load i32, ptr %7, align 4, !tbaa !5
  %128 = add nsw i32 %126, %127
  %129 = mul nsw i32 2, %128
  %130 = add nsw i32 %129, 0
  %131 = mul nsw i32 %130, 4
  %132 = load i32, ptr %9, align 4, !tbaa !5
  %133 = add nsw i32 %131, %132
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds float, ptr %124, i64 %134
  store float %121, ptr %135, align 4, !tbaa !20
  %136 = load float, ptr %10, align 4, !tbaa !20
  %137 = call float @sinf(float noundef %136) #6
  %138 = load ptr, ptr %5, align 8, !tbaa !11
  %139 = getelementptr inbounds %struct.PFFFT_Setup, ptr %138, i32 0, i32 5
  %140 = load ptr, ptr %139, align 8, !tbaa !18
  %141 = load i32, ptr %8, align 4, !tbaa !5
  %142 = mul nsw i32 %141, 3
  %143 = load i32, ptr %7, align 4, !tbaa !5
  %144 = add nsw i32 %142, %143
  %145 = mul nsw i32 2, %144
  %146 = add nsw i32 %145, 1
  %147 = mul nsw i32 %146, 4
  %148 = load i32, ptr %9, align 4, !tbaa !5
  %149 = add nsw i32 %147, %148
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds float, ptr %140, i64 %150
  store float %137, ptr %151, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %152

152:                                              ; preds = %109
  %153 = load i32, ptr %7, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %7, align 4, !tbaa !5
  br label %106, !llvm.loop !22

155:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %6, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %6, align 4, !tbaa !5
  br label %95, !llvm.loop !24

159:                                              ; preds = %95
  %160 = load i32, ptr %3, align 4, !tbaa !5
  %161 = sdiv i32 %160, 4
  %162 = load ptr, ptr %5, align 8, !tbaa !11
  %163 = getelementptr inbounds %struct.PFFFT_Setup, ptr %162, i32 0, i32 6
  %164 = load ptr, ptr %163, align 8, !tbaa !19
  %165 = load ptr, ptr %5, align 8, !tbaa !11
  %166 = getelementptr inbounds %struct.PFFFT_Setup, ptr %165, i32 0, i32 2
  %167 = getelementptr inbounds [15 x i32], ptr %166, i64 0, i64 0
  call void @_ZL9rffti1_psiPfPi(i32 noundef %161, ptr noundef %164, ptr noundef %167)
  br label %242

168:                                              ; preds = %60
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %169

169:                                              ; preds = %230, %168
  %170 = load i32, ptr %6, align 4, !tbaa !5
  %171 = load ptr, ptr %5, align 8, !tbaa !11
  %172 = getelementptr inbounds %struct.PFFFT_Setup, ptr %171, i32 0, i32 1
  %173 = load i32, ptr %172, align 4, !tbaa !16
  %174 = icmp slt i32 %170, %173
  br i1 %174, label %175, label %233

175:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %176 = load i32, ptr %6, align 4, !tbaa !5
  %177 = sdiv i32 %176, 4
  store i32 %177, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %178 = load i32, ptr %6, align 4, !tbaa !5
  %179 = srem i32 %178, 4
  store i32 %179, ptr %12, align 4, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %180

180:                                              ; preds = %226, %175
  %181 = load i32, ptr %7, align 4, !tbaa !5
  %182 = icmp slt i32 %181, 3
  br i1 %182, label %183, label %229

183:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %184 = load i32, ptr %7, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  %186 = sitofp i32 %185 to float
  %187 = fmul float 0xC01921FB60000000, %186
  %188 = load i32, ptr %6, align 4, !tbaa !5
  %189 = sitofp i32 %188 to float
  %190 = fmul float %187, %189
  %191 = load i32, ptr %3, align 4, !tbaa !5
  %192 = sitofp i32 %191 to float
  %193 = fdiv float %190, %192
  store float %193, ptr %13, align 4, !tbaa !20
  %194 = load float, ptr %13, align 4, !tbaa !20
  %195 = call float @cosf(float noundef %194) #6
  %196 = load ptr, ptr %5, align 8, !tbaa !11
  %197 = getelementptr inbounds %struct.PFFFT_Setup, ptr %196, i32 0, i32 5
  %198 = load ptr, ptr %197, align 8, !tbaa !18
  %199 = load i32, ptr %11, align 4, !tbaa !5
  %200 = mul nsw i32 %199, 3
  %201 = load i32, ptr %7, align 4, !tbaa !5
  %202 = add nsw i32 %200, %201
  %203 = mul nsw i32 2, %202
  %204 = add nsw i32 %203, 0
  %205 = mul nsw i32 %204, 4
  %206 = load i32, ptr %12, align 4, !tbaa !5
  %207 = add nsw i32 %205, %206
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds float, ptr %198, i64 %208
  store float %195, ptr %209, align 4, !tbaa !20
  %210 = load float, ptr %13, align 4, !tbaa !20
  %211 = call float @sinf(float noundef %210) #6
  %212 = load ptr, ptr %5, align 8, !tbaa !11
  %213 = getelementptr inbounds %struct.PFFFT_Setup, ptr %212, i32 0, i32 5
  %214 = load ptr, ptr %213, align 8, !tbaa !18
  %215 = load i32, ptr %11, align 4, !tbaa !5
  %216 = mul nsw i32 %215, 3
  %217 = load i32, ptr %7, align 4, !tbaa !5
  %218 = add nsw i32 %216, %217
  %219 = mul nsw i32 2, %218
  %220 = add nsw i32 %219, 1
  %221 = mul nsw i32 %220, 4
  %222 = load i32, ptr %12, align 4, !tbaa !5
  %223 = add nsw i32 %221, %222
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds float, ptr %214, i64 %224
  store float %211, ptr %225, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %226

226:                                              ; preds = %183
  %227 = load i32, ptr %7, align 4, !tbaa !5
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %7, align 4, !tbaa !5
  br label %180, !llvm.loop !25

229:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %230

230:                                              ; preds = %229
  %231 = load i32, ptr %6, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %6, align 4, !tbaa !5
  br label %169, !llvm.loop !26

233:                                              ; preds = %169
  %234 = load i32, ptr %3, align 4, !tbaa !5
  %235 = sdiv i32 %234, 4
  %236 = load ptr, ptr %5, align 8, !tbaa !11
  %237 = getelementptr inbounds %struct.PFFFT_Setup, ptr %236, i32 0, i32 6
  %238 = load ptr, ptr %237, align 8, !tbaa !19
  %239 = load ptr, ptr %5, align 8, !tbaa !11
  %240 = getelementptr inbounds %struct.PFFFT_Setup, ptr %239, i32 0, i32 2
  %241 = getelementptr inbounds [15 x i32], ptr %240, i64 0, i64 0
  call void @_Z9cffti1_psiPfPi(i32 noundef %235, ptr noundef %238, ptr noundef %241)
  br label %242

242:                                              ; preds = %233, %159
  store i32 0, ptr %6, align 4, !tbaa !5
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %243

243:                                              ; preds = %260, %242
  %244 = load i32, ptr %6, align 4, !tbaa !5
  %245 = load ptr, ptr %5, align 8, !tbaa !11
  %246 = getelementptr inbounds %struct.PFFFT_Setup, ptr %245, i32 0, i32 2
  %247 = getelementptr inbounds [15 x i32], ptr %246, i64 0, i64 1
  %248 = load i32, ptr %247, align 4, !tbaa !5
  %249 = icmp slt i32 %244, %248
  br i1 %249, label %250, label %263

250:                                              ; preds = %243
  %251 = load ptr, ptr %5, align 8, !tbaa !11
  %252 = getelementptr inbounds %struct.PFFFT_Setup, ptr %251, i32 0, i32 2
  %253 = load i32, ptr %6, align 4, !tbaa !5
  %254 = add nsw i32 2, %253
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [15 x i32], ptr %252, i64 0, i64 %255
  %257 = load i32, ptr %256, align 4, !tbaa !5
  %258 = load i32, ptr %7, align 4, !tbaa !5
  %259 = mul nsw i32 %258, %257
  store i32 %259, ptr %7, align 4, !tbaa !5
  br label %260

260:                                              ; preds = %250
  %261 = load i32, ptr %6, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %6, align 4, !tbaa !5
  br label %243, !llvm.loop !27

263:                                              ; preds = %243
  %264 = load i32, ptr %7, align 4, !tbaa !5
  %265 = load i32, ptr %3, align 4, !tbaa !5
  %266 = sdiv i32 %265, 4
  %267 = icmp ne i32 %264, %266
  br i1 %267, label %268, label %270

268:                                              ; preds = %263
  %269 = load ptr, ptr %5, align 8, !tbaa !11
  call void @pffft_destroy_setup(ptr noundef %269)
  store ptr null, ptr %5, align 8, !tbaa !11
  br label %270

270:                                              ; preds = %268, %263
  %271 = load ptr, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret ptr %271
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL9rffti1_psiPfPi(i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @pffft_destroy_setup(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { nounwind allocsize(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 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS17pffft_transform_t", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS11PFFFT_Setup", !6, i64 0, !6, i64 4, !7, i64 8, !10, i64 68, !12, i64 72, !12, i64 80, !12, i64 88}
!15 = !{!14, !10, i64 68}
!16 = !{!14, !6, i64 4}
!17 = !{!14, !12, i64 72}
!18 = !{!14, !12, i64 80}
!19 = !{!14, !12, i64 88}
!20 = !{!21, !21, i64 0}
!21 = !{!"float", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !23}
!27 = distinct !{!27, !23}


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

@.str.2 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [34 x i8], align 1
@__PRETTY_FUNCTION__.pffft_new_setup = external hidden unnamed_addr constant [53 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @pffft_aligned_malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9cffti1_psiPfPi(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @cosf(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sinf(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @pffft_new_setup(i32 noundef %0, i32 noundef %1) local_unnamed_addr #3 {
  %3 = tail call noalias dereferenceable_or_null(96) ptr @malloc(i64 noundef 96) #6
  %4 = icmp eq i32 %1, 0
  br i1 %4, label %5, label %11

5:                                                ; preds = %2
  %6 = and i32 %0, 31
  %7 = icmp eq i32 %6, 0
  %8 = icmp sgt i32 %0, 0
  %9 = and i1 %8, %7
  br i1 %9, label %.thread, label %10

10:                                               ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.2, i32 noundef 1223, ptr noundef nonnull @__PRETTY_FUNCTION__.pffft_new_setup) #7
  unreachable

11:                                               ; preds = %2
  %12 = icmp eq i32 %1, 1
  br i1 %12, label %13, label %.thread

13:                                               ; preds = %11
  %14 = and i32 %0, 15
  %15 = icmp eq i32 %14, 0
  %16 = icmp sgt i32 %0, 0
  %17 = and i1 %16, %15
  br i1 %17, label %.thread, label %18

18:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str.27, ptr noundef nonnull @.str.2, i32 noundef 1224, ptr noundef nonnull @__PRETTY_FUNCTION__.pffft_new_setup) #7
  unreachable

.thread:                                          ; preds = %5, %13, %11
  store i32 %0, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %3, i64 68
  store i32 %1, ptr %19, align 4, !tbaa !12
  %20 = sdiv i32 %0, 2
  %21 = select i1 %4, i32 %20, i32 %0
  %22 = sdiv i32 %21, 4
  %23 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 %22, ptr %23, align 4, !tbaa !13
  %24 = shl nsw i32 %22, 1
  %25 = sext i32 %24 to i64
  %26 = shl nsw i64 %25, 4
  %27 = tail call ptr @pffft_aligned_malloc(i64 noundef %26)
  %28 = getelementptr inbounds i8, ptr %3, i64 72
  store ptr %27, ptr %28, align 8, !tbaa !14
  %29 = getelementptr inbounds i8, ptr %3, i64 80
  store ptr %27, ptr %29, align 8, !tbaa !15
  %30 = mul nsw i32 %22, 6
  %31 = sdiv i32 %30, 4
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds <4 x float>, ptr %27, i64 %32
  %34 = getelementptr inbounds i8, ptr %3, i64 88
  store ptr %33, ptr %34, align 8, !tbaa !16
  br i1 %4, label %.preheader, label %.preheader81

.preheader81:                                     ; preds = %.thread
  %35 = icmp sgt i32 %0, 3
  br i1 %35, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader81
  %36 = uitofp nneg i32 %0 to float
  br label %89

.preheader:                                       ; preds = %.thread
  %37 = icmp sgt i32 %0, 7
  br i1 %37, label %.lr.ph86, label %._crit_edge87

.lr.ph86:                                         ; preds = %.preheader
  %38 = sitofp i32 %0 to float
  br label %39

39:                                               ; preds = %.lr.ph86, %39
  %.07785 = phi i32 [ 0, %.lr.ph86 ], [ %83, %39 ]
  %40 = lshr i32 %.07785, 2
  %41 = and i32 %.07785, 3
  %42 = uitofp nneg i32 %.07785 to float
  %43 = fmul float %42, 0xC01921FB60000000
  %44 = fdiv float %43, %38
  %45 = tail call float @cosf(float noundef %44) #8
  %46 = load ptr, ptr %29, align 8, !tbaa !15
  %47 = mul i32 %40, 24
  %48 = or disjoint i32 %47, %41
  %49 = zext nneg i32 %48 to i64
  %50 = getelementptr inbounds float, ptr %46, i64 %49
  store float %45, ptr %50, align 4, !tbaa !17
  %51 = tail call float @sinf(float noundef %44) #8
  %52 = load ptr, ptr %29, align 8, !tbaa !15
  %53 = or disjoint i32 %48, 4
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds float, ptr %52, i64 %54
  store float %51, ptr %55, align 4, !tbaa !17
  %56 = fmul float %42, 0xC02921FB60000000
  %57 = fdiv float %56, %38
  %58 = tail call float @cosf(float noundef %57) #8
  %59 = load ptr, ptr %29, align 8, !tbaa !15
  %60 = mul i32 %40, 24
  %61 = add i32 %60, 8
  %62 = or disjoint i32 %61, %41
  %63 = zext nneg i32 %62 to i64
  %64 = getelementptr inbounds float, ptr %59, i64 %63
  store float %58, ptr %64, align 4, !tbaa !17
  %65 = tail call float @sinf(float noundef %57) #8
  %66 = load ptr, ptr %29, align 8, !tbaa !15
  %67 = or disjoint i32 %62, 4
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds float, ptr %66, i64 %68
  store float %65, ptr %69, align 4, !tbaa !17
  %70 = fmul float %42, 0xC032D97C80000000
  %71 = fdiv float %70, %38
  %72 = tail call float @cosf(float noundef %71) #8
  %73 = load ptr, ptr %29, align 8, !tbaa !15
  %narrow97 = mul i32 %40, 24
  %74 = add i32 %narrow97, 16
  %75 = or disjoint i32 %74, %41
  %76 = zext nneg i32 %75 to i64
  %77 = getelementptr inbounds float, ptr %73, i64 %76
  store float %72, ptr %77, align 4, !tbaa !17
  %78 = tail call float @sinf(float noundef %71) #8
  %79 = load ptr, ptr %29, align 8, !tbaa !15
  %80 = or disjoint i32 %75, 4
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds float, ptr %79, i64 %81
  store float %78, ptr %82, align 4, !tbaa !17
  %83 = add nuw nsw i32 %.07785, 1
  %84 = load i32, ptr %23, align 4, !tbaa !13
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %39, label %._crit_edge87.loopexit, !llvm.loop !19

._crit_edge87.loopexit:                           ; preds = %39
  %.pre96 = load ptr, ptr %34, align 8, !tbaa !16
  br label %._crit_edge87

._crit_edge87:                                    ; preds = %._crit_edge87.loopexit, %.preheader
  %86 = phi ptr [ %.pre96, %._crit_edge87.loopexit ], [ %33, %.preheader ]
  %87 = sdiv i32 %0, 4
  %88 = getelementptr inbounds i8, ptr %3, i64 8
  tail call void @_ZL9rffti1_psiPfPi(i32 noundef %87, ptr noundef %86, ptr noundef nonnull %88)
  br label %139

89:                                               ; preds = %.lr.ph, %89
  %.183 = phi i32 [ 0, %.lr.ph ], [ %133, %89 ]
  %90 = lshr i32 %.183, 2
  %91 = and i32 %.183, 3
  %92 = uitofp nneg i32 %.183 to float
  %93 = fmul float %92, 0xC01921FB60000000
  %94 = fdiv float %93, %36
  %95 = tail call float @cosf(float noundef %94) #8
  %96 = load ptr, ptr %29, align 8, !tbaa !15
  %97 = mul i32 %90, 24
  %98 = or disjoint i32 %97, %91
  %99 = zext nneg i32 %98 to i64
  %100 = getelementptr inbounds float, ptr %96, i64 %99
  store float %95, ptr %100, align 4, !tbaa !17
  %101 = tail call float @sinf(float noundef %94) #8
  %102 = load ptr, ptr %29, align 8, !tbaa !15
  %103 = or disjoint i32 %98, 4
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds float, ptr %102, i64 %104
  store float %101, ptr %105, align 4, !tbaa !17
  %106 = fmul float %92, 0xC02921FB60000000
  %107 = fdiv float %106, %36
  %108 = tail call float @cosf(float noundef %107) #8
  %109 = load ptr, ptr %29, align 8, !tbaa !15
  %110 = mul i32 %90, 24
  %111 = add i32 %110, 8
  %112 = or disjoint i32 %111, %91
  %113 = zext nneg i32 %112 to i64
  %114 = getelementptr inbounds float, ptr %109, i64 %113
  store float %108, ptr %114, align 4, !tbaa !17
  %115 = tail call float @sinf(float noundef %107) #8
  %116 = load ptr, ptr %29, align 8, !tbaa !15
  %117 = or disjoint i32 %112, 4
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds float, ptr %116, i64 %118
  store float %115, ptr %119, align 4, !tbaa !17
  %120 = fmul float %92, 0xC032D97C80000000
  %121 = fdiv float %120, %36
  %122 = tail call float @cosf(float noundef %121) #8
  %123 = load ptr, ptr %29, align 8, !tbaa !15
  %narrow = mul i32 %90, 24
  %124 = add i32 %narrow, 16
  %125 = or disjoint i32 %124, %91
  %126 = zext nneg i32 %125 to i64
  %127 = getelementptr inbounds float, ptr %123, i64 %126
  store float %122, ptr %127, align 4, !tbaa !17
  %128 = tail call float @sinf(float noundef %121) #8
  %129 = load ptr, ptr %29, align 8, !tbaa !15
  %130 = or disjoint i32 %125, 4
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds float, ptr %129, i64 %131
  store float %128, ptr %132, align 4, !tbaa !17
  %133 = add nuw nsw i32 %.183, 1
  %134 = load i32, ptr %23, align 4, !tbaa !13
  %135 = icmp slt i32 %133, %134
  br i1 %135, label %89, label %._crit_edge.loopexit, !llvm.loop !21

._crit_edge.loopexit:                             ; preds = %89
  %.pre = load ptr, ptr %34, align 8, !tbaa !16
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader81
  %136 = phi ptr [ %.pre, %._crit_edge.loopexit ], [ %33, %.preheader81 ]
  %137 = sdiv i32 %0, 4
  %138 = getelementptr inbounds i8, ptr %3, i64 8
  tail call void @_Z9cffti1_psiPfPi(i32 noundef %137, ptr noundef %136, ptr noundef nonnull %138)
  br label %139

139:                                              ; preds = %._crit_edge, %._crit_edge87
  %140 = getelementptr inbounds i8, ptr %3, i64 12
  %141 = load i32, ptr %140, align 4, !tbaa !22
  %142 = icmp sgt i32 %141, 0
  br i1 %142, label %.lr.ph91, label %._crit_edge92

.lr.ph91:                                         ; preds = %139
  %143 = getelementptr inbounds i8, ptr %3, i64 8
  %wide.trip.count = zext nneg i32 %141 to i64
  %min.iters.check = icmp ult i32 %141, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph91
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %147, %vector.body ]
  %vec.phi98 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %148, %vector.body ]
  %144 = or disjoint i64 %index, 2
  %145 = getelementptr inbounds [15 x i32], ptr %143, i64 0, i64 %144
  %146 = getelementptr inbounds i8, ptr %145, i64 16
  %wide.load = load <4 x i32>, ptr %145, align 4, !tbaa !22
  %wide.load99 = load <4 x i32>, ptr %146, align 4, !tbaa !22
  %147 = mul <4 x i32> %wide.load, %vec.phi
  %148 = mul <4 x i32> %wide.load99, %vec.phi98
  %index.next = add nuw i64 %index, 8
  %149 = icmp eq i64 %index.next, %n.vec
  br i1 %149, label %middle.block, label %vector.body, !llvm.loop !23

middle.block:                                     ; preds = %vector.body
  %bin.rdx = mul <4 x i32> %148, %147
  %150 = tail call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge92, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph91
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph91 ], [ %n.vec, %middle.block ]
  %.28088.ph = phi i32 [ 1, %.lr.ph91 ], [ %150, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %.28088 = phi i32 [ %154, %scalar.ph ], [ %.28088.ph, %scalar.ph.preheader ]
  %151 = add nuw nsw i64 %indvars.iv, 2
  %152 = getelementptr inbounds [15 x i32], ptr %143, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !22
  %154 = mul nsw i32 %153, %.28088
  %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_edge92, label %scalar.ph, !llvm.loop !26

._crit_edge92:                                    ; preds = %scalar.ph, %middle.block, %139
  %.280.lcssa = phi i32 [ 1, %139 ], [ %150, %middle.block ], [ %154, %scalar.ph ]
  %155 = sdiv i32 %0, 4
  %.not = icmp eq i32 %.280.lcssa, %155
  br i1 %.not, label %157, label %156

156:                                              ; preds = %._crit_edge92
  tail call void @pffft_destroy_setup(ptr noundef nonnull %3)
  br label %157

157:                                              ; preds = %156, %._crit_edge92
  %.0 = phi ptr [ null, %156 ], [ %3, %._crit_edge92 ]
  ret ptr %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL9rffti1_psiPfPi(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @pffft_destroy_setup(ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.mul.v4i32(<4 x i32>) #5

attributes #0 = { 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 #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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nofree nounwind willreturn memory(write) "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 nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { noreturn nounwind }
attributes #8 = { 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 = !{!"_ZTS11PFFFT_Setup", !7, i64 0, !7, i64 4, !8, i64 8, !10, i64 68, !11, i64 72, !11, i64 80, !11, i64 88}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS17pffft_transform_t", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !10, i64 68}
!13 = !{!6, !7, i64 4}
!14 = !{!6, !11, i64 72}
!15 = !{!6, !11, i64 80}
!16 = !{!6, !11, i64 88}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !20, !24, !25}
!24 = !{!"llvm.loop.isvectorized", i32 1}
!25 = !{!"llvm.loop.unroll.runtime.disable"}
!26 = distinct !{!26, !20, !25, !24}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass