; LLVM IR from jgaeddert/liquid-dsp :: examples (fft_example)

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

@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@optarg = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() #0

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %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 i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca float, align 4
  %18 = alloca { float, float }, align 4
  %19 = alloca { float, float }, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 16, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  br label %20

20:                                               ; preds = %34, %2
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  %23 = call i32 @getopt(i32 noundef %21, ptr noundef %22, ptr noundef @.str.4) #7
  store i32 %23, ptr %9, align 4, !tbaa !5
  %24 = icmp ne i32 %23, -1
  br i1 %24, label %25, label %35

25:                                               ; preds = %20
  %26 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %26, label %33 [
    i32 104, label %27
    i32 118, label %28
    i32 113, label %29
    i32 110, label %30
  ]

27:                                               ; preds = %25
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %281

28:                                               ; preds = %25
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %34

29:                                               ; preds = %25
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %34

30:                                               ; preds = %25
  %31 = load ptr, ptr @optarg, align 8, !tbaa !9
  %32 = call i32 @atoi(ptr noundef %31) #8
  store i32 %32, ptr %6, align 4, !tbaa !5
  br label %34

33:                                               ; preds = %25
  call void @exit(i32 noundef 1) #9
  unreachable

34:                                               ; preds = %30, %29, %28
  br label %20, !llvm.loop !11

35:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = zext i32 %36 to i64
  %38 = mul i64 %37, 8
  %39 = trunc i64 %38 to i32
  %40 = call ptr @fft_malloc(i32 noundef %39)
  store ptr %40, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = zext i32 %41 to i64
  %43 = mul i64 %42, 8
  %44 = trunc i64 %43 to i32
  %45 = call ptr @fft_malloc(i32 noundef %44)
  store ptr %45, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = zext i32 %46 to i64
  %48 = mul i64 %47, 8
  %49 = trunc i64 %48 to i32
  %50 = call ptr @fft_malloc(i32 noundef %49)
  store ptr %50, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %70, %35
  %52 = load i32, ptr %14, align 4, !tbaa !5
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = icmp ult i32 %52, %53
  br i1 %54, label %55, label %73

55:                                               ; preds = %51
  %56 = load i32, ptr %14, align 4, !tbaa !5
  %57 = uitofp i32 %56 to float
  %58 = load i32, ptr %14, align 4, !tbaa !5
  %59 = uitofp i32 %58 to float
  %60 = fmul float 0.000000e+00, %59
  %61 = fmul float 1.000000e+00, %59
  %62 = fsub float %57, %60
  %63 = fneg float %61
  %64 = load ptr, ptr %11, align 8, !tbaa !9
  %65 = load i32, ptr %14, align 4, !tbaa !5
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds { float, float }, ptr %64, i64 %66
  %68 = getelementptr inbounds { float, float }, ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds { float, float }, ptr %67, i32 0, i32 1
  store float %62, ptr %68, align 4
  store float %63, ptr %69, align 4
  br label %70

70:                                               ; preds = %55
  %71 = load i32, ptr %14, align 4, !tbaa !5
  %72 = add i32 %71, 1
  store i32 %72, ptr %14, align 4, !tbaa !5
  br label %51, !llvm.loop !13

73:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = load ptr, ptr %11, align 8, !tbaa !9
  %76 = load ptr, ptr %12, align 8, !tbaa !9
  %77 = load i32, ptr %7, align 4, !tbaa !5
  %78 = call ptr @fft_create_plan(i32 noundef %74, ptr noundef %75, ptr noundef %76, i32 noundef 1, i32 noundef %77)
  store ptr %78, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = load ptr, ptr %12, align 8, !tbaa !9
  %81 = load ptr, ptr %13, align 8, !tbaa !9
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %83 = call ptr @fft_create_plan(i32 noundef %79, ptr noundef %80, ptr noundef %81, i32 noundef -1, i32 noundef %82)
  store ptr %83, ptr %16, align 8, !tbaa !9
  %84 = load ptr, ptr %15, align 8, !tbaa !9
  %85 = call i32 @fft_print_plan(ptr noundef %84)
  %86 = load ptr, ptr %15, align 8, !tbaa !9
  %87 = call i32 @fft_execute(ptr noundef %86)
  %88 = load ptr, ptr %16, align 8, !tbaa !9
  %89 = call i32 @fft_execute(ptr noundef %88)
  %90 = load ptr, ptr %15, align 8, !tbaa !9
  %91 = call i32 @fft_destroy_plan(ptr noundef %90)
  %92 = load ptr, ptr %16, align 8, !tbaa !9
  %93 = call i32 @fft_destroy_plan(ptr noundef %92)
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %113, %73
  %95 = load i32, ptr %14, align 4, !tbaa !5
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = icmp ult i32 %95, %96
  br i1 %97, label %98, label %116

98:                                               ; preds = %94
  %99 = load i32, ptr %6, align 4, !tbaa !5
  %100 = uitofp i32 %99 to float
  %101 = load ptr, ptr %13, align 8, !tbaa !9
  %102 = load i32, ptr %14, align 4, !tbaa !5
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds { float, float }, ptr %101, i64 %103
  %105 = getelementptr inbounds { float, float }, ptr %104, i32 0, i32 0
  %106 = load float, ptr %105, align 4
  %107 = getelementptr inbounds { float, float }, ptr %104, i32 0, i32 1
  %108 = load float, ptr %107, align 4
  %109 = fdiv float %106, %100
  %110 = fdiv float %108, %100
  %111 = getelementptr inbounds { float, float }, ptr %104, i32 0, i32 0
  %112 = getelementptr inbounds { float, float }, ptr %104, i32 0, i32 1
  store float %109, ptr %111, align 4
  store float %110, ptr %112, align 4
  br label %113

113:                                              ; preds = %98
  %114 = load i32, ptr %14, align 4, !tbaa !5
  %115 = add i32 %114, 1
  store i32 %115, ptr %14, align 4, !tbaa !5
  br label %94, !llvm.loop !14

116:                                              ; preds = %94
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %210

119:                                              ; preds = %116
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %146, %119
  %122 = load i32, ptr %14, align 4, !tbaa !5
  %123 = load i32, ptr %6, align 4, !tbaa !5
  %124 = icmp ult i32 %122, %123
  br i1 %124, label %125, label %149

125:                                              ; preds = %121
  %126 = load i32, ptr %14, align 4, !tbaa !5
  %127 = load ptr, ptr %11, align 8, !tbaa !9
  %128 = load i32, ptr %14, align 4, !tbaa !5
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds { float, float }, ptr %127, i64 %129
  %131 = getelementptr inbounds { float, float }, ptr %130, i32 0, i32 0
  %132 = load float, ptr %131, align 4
  %133 = getelementptr inbounds { float, float }, ptr %130, i32 0, i32 1
  %134 = load float, ptr %133, align 4
  %135 = fpext float %132 to double
  %136 = load ptr, ptr %11, align 8, !tbaa !9
  %137 = load i32, ptr %14, align 4, !tbaa !5
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds { float, float }, ptr %136, i64 %138
  %140 = getelementptr inbounds { float, float }, ptr %139, i32 0, i32 0
  %141 = load float, ptr %140, align 4
  %142 = getelementptr inbounds { float, float }, ptr %139, i32 0, i32 1
  %143 = load float, ptr %142, align 4
  %144 = fpext float %143 to double
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %126, double noundef %135, double noundef %144)
  br label %146

146:                                              ; preds = %125
  %147 = load i32, ptr %14, align 4, !tbaa !5
  %148 = add i32 %147, 1
  store i32 %148, ptr %14, align 4, !tbaa !5
  br label %121, !llvm.loop !15

149:                                              ; preds = %121
  %150 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %176, %149
  %152 = load i32, ptr %14, align 4, !tbaa !5
  %153 = load i32, ptr %6, align 4, !tbaa !5
  %154 = icmp ult i32 %152, %153
  br i1 %154, label %155, label %179

155:                                              ; preds = %151
  %156 = load i32, ptr %14, align 4, !tbaa !5
  %157 = load ptr, ptr %12, align 8, !tbaa !9
  %158 = load i32, ptr %14, align 4, !tbaa !5
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds { float, float }, ptr %157, i64 %159
  %161 = getelementptr inbounds { float, float }, ptr %160, i32 0, i32 0
  %162 = load float, ptr %161, align 4
  %163 = getelementptr inbounds { float, float }, ptr %160, i32 0, i32 1
  %164 = load float, ptr %163, align 4
  %165 = fpext float %162 to double
  %166 = load ptr, ptr %12, align 8, !tbaa !9
  %167 = load i32, ptr %14, align 4, !tbaa !5
  %168 = zext i32 %167 to i64
  %169 = getelementptr inbounds { float, float }, ptr %166, i64 %168
  %170 = getelementptr inbounds { float, float }, ptr %169, i32 0, i32 0
  %171 = load float, ptr %170, align 4
  %172 = getelementptr inbounds { float, float }, ptr %169, i32 0, i32 1
  %173 = load float, ptr %172, align 4
  %174 = fpext float %173 to double
  %175 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %156, double noundef %165, double noundef %174)
  br label %176

176:                                              ; preds = %155
  %177 = load i32, ptr %14, align 4, !tbaa !5
  %178 = add i32 %177, 1
  store i32 %178, ptr %14, align 4, !tbaa !5
  br label %151, !llvm.loop !16

179:                                              ; preds = %151
  %180 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %206, %179
  %182 = load i32, ptr %14, align 4, !tbaa !5
  %183 = load i32, ptr %6, align 4, !tbaa !5
  %184 = icmp ult i32 %182, %183
  br i1 %184, label %185, label %209

185:                                              ; preds = %181
  %186 = load i32, ptr %14, align 4, !tbaa !5
  %187 = load ptr, ptr %13, align 8, !tbaa !9
  %188 = load i32, ptr %14, align 4, !tbaa !5
  %189 = zext i32 %188 to i64
  %190 = getelementptr inbounds { float, float }, ptr %187, i64 %189
  %191 = getelementptr inbounds { float, float }, ptr %190, i32 0, i32 0
  %192 = load float, ptr %191, align 4
  %193 = getelementptr inbounds { float, float }, ptr %190, i32 0, i32 1
  %194 = load float, ptr %193, align 4
  %195 = fpext float %192 to double
  %196 = load ptr, ptr %13, align 8, !tbaa !9
  %197 = load i32, ptr %14, align 4, !tbaa !5
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds { float, float }, ptr %196, i64 %198
  %200 = getelementptr inbounds { float, float }, ptr %199, i32 0, i32 0
  %201 = load float, ptr %200, align 4
  %202 = getelementptr inbounds { float, float }, ptr %199, i32 0, i32 1
  %203 = load float, ptr %202, align 4
  %204 = fpext float %203 to double
  %205 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %186, double noundef %195, double noundef %204)
  br label %206

206:                                              ; preds = %185
  %207 = load i32, ptr %14, align 4, !tbaa !5
  %208 = add i32 %207, 1
  store i32 %208, ptr %14, align 4, !tbaa !5
  br label %181, !llvm.loop !17

209:                                              ; preds = %181
  br label %210

210:                                              ; preds = %209, %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store float 0.000000e+00, ptr %17, align 4, !tbaa !18
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %211

211:                                              ; preds = %265, %210
  %212 = load i32, ptr %14, align 4, !tbaa !5
  %213 = load i32, ptr %6, align 4, !tbaa !5
  %214 = icmp ult i32 %212, %213
  br i1 %214, label %215, label %268

215:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %216 = load ptr, ptr %11, align 8, !tbaa !9
  %217 = load i32, ptr %14, align 4, !tbaa !5
  %218 = zext i32 %217 to i64
  %219 = getelementptr inbounds { float, float }, ptr %216, i64 %218
  %220 = getelementptr inbounds { float, float }, ptr %219, i32 0, i32 0
  %221 = load float, ptr %220, align 4
  %222 = getelementptr inbounds { float, float }, ptr %219, i32 0, i32 1
  %223 = load float, ptr %222, align 4
  %224 = load ptr, ptr %13, align 8, !tbaa !9
  %225 = load i32, ptr %14, align 4, !tbaa !5
  %226 = zext i32 %225 to i64
  %227 = getelementptr inbounds { float, float }, ptr %224, i64 %226
  %228 = getelementptr inbounds { float, float }, ptr %227, i32 0, i32 0
  %229 = load float, ptr %228, align 4
  %230 = getelementptr inbounds { float, float }, ptr %227, i32 0, i32 1
  %231 = load float, ptr %230, align 4
  %232 = fsub float %221, %229
  %233 = fsub float %223, %231
  %234 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %235 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  store float %232, ptr %234, align 4
  store float %233, ptr %235, align 4
  %236 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %237 = load float, ptr %236, align 4
  %238 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  %239 = load float, ptr %238, align 4
  %240 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %241 = load float, ptr %240, align 4
  %242 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  %243 = load float, ptr %242, align 4
  %244 = fneg float %243
  %245 = fmul float %237, %241
  %246 = fmul float %239, %244
  %247 = fmul float %237, %244
  %248 = fmul float %239, %241
  %249 = fsub float %245, %246
  %250 = fadd float %247, %248
  %251 = fcmp uno float %249, %249
  br i1 %251, label %252, label %260, !prof !20

252:                                              ; preds = %215
  %253 = fcmp uno float %250, %250
  br i1 %253, label %254, label %260, !prof !20

254:                                              ; preds = %252
  %255 = call <2 x float> @__mulsc3(float noundef %237, float noundef %239, float noundef %241, float noundef %244) #7
  store <2 x float> %255, ptr %19, align 4
  %256 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %257 = load float, ptr %256, align 4
  %258 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %259 = load float, ptr %258, align 4
  br label %260

260:                                              ; preds = %254, %252, %215
  %261 = phi float [ %249, %215 ], [ %249, %252 ], [ %257, %254 ]
  %262 = phi float [ %250, %215 ], [ %250, %252 ], [ %259, %254 ]
  %263 = load float, ptr %17, align 4, !tbaa !18
  %264 = fadd float %263, %261
  store float %264, ptr %17, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %265

265:                                              ; preds = %260
  %266 = load i32, ptr %14, align 4, !tbaa !5
  %267 = add i32 %266, 1
  store i32 %267, ptr %14, align 4, !tbaa !5
  br label %211, !llvm.loop !21

268:                                              ; preds = %211
  %269 = load float, ptr %17, align 4, !tbaa !18
  %270 = load i32, ptr %6, align 4, !tbaa !5
  %271 = uitofp i32 %270 to float
  %272 = fdiv float %269, %271
  %273 = call float @sqrtf(float noundef %272) #7
  store float %273, ptr %17, align 4, !tbaa !18
  %274 = load float, ptr %17, align 4, !tbaa !18
  %275 = fpext float %274 to double
  %276 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %275)
  %277 = load ptr, ptr %11, align 8, !tbaa !9
  call void @fft_free(ptr noundef %277)
  %278 = load ptr, ptr %12, align 8, !tbaa !9
  call void @fft_free(ptr noundef %278)
  %279 = load ptr, ptr %13, align 8, !tbaa !9
  call void @fft_free(ptr noundef %279)
  %280 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, 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
  br label %281

281:                                              ; preds = %268, %27
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %282 = load i32, ptr %3, align 4
  ret i32 %282
}

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

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #5

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

declare ptr @fft_malloc(i32 noundef) #1

declare ptr @fft_create_plan(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

declare i32 @fft_print_plan(ptr noundef) #1

declare i32 @fft_execute(ptr noundef) #1

declare i32 @fft_destroy_plan(ptr noundef) #1

declare <2 x float> @__mulsc3(float, float, float, float)

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

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #4

declare void @fft_free(ptr noundef) #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { inlinehint nounwind willreturn memory(read) 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = !{!"branch_weights", i32 1, i32 1048575}
!21 = distinct !{!21, !12}


; 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.4 = external hidden unnamed_addr constant [6 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  br label %.outer

.outer:                                           ; preds = %.outer.backedge, %2
  %.075.ph = phi i32 [ 0, %2 ], [ %.075.ph.be, %.outer.backedge ]
  %.074.ph = phi i32 [ 16, %2 ], [ %.074, %.outer.backedge ]
  br label %3

3:                                                ; preds = %.outer, %7
  %.074 = phi i32 [ %9, %7 ], [ %.074.ph, %.outer ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.4) #8
  switch i32 %4, label %10 [
    i32 -1, label %11
    i32 104, label %5
    i32 118, label %.outer.backedge
    i32 113, label %6
    i32 110, label %7
  ], !llvm.loop !5

5:                                                ; preds = %3
  tail call void @usage()
  br label %106

6:                                                ; preds = %3
  br label %.outer.backedge

.outer.backedge:                                  ; preds = %3, %6
  %.075.ph.be = phi i32 [ 0, %6 ], [ 1, %3 ]
  br label %.outer, !llvm.loop !5

7:                                                ; preds = %3
  %8 = load ptr, ptr @optarg, align 8, !tbaa !7
  %9 = tail call i32 @atoi(ptr nocapture noundef %8) #9
  br label %3, !llvm.loop !5

10:                                               ; preds = %3
  tail call void @exit(i32 noundef 1) #10
  unreachable

11:                                               ; preds = %3
  %12 = shl i32 %.074, 3
  %13 = tail call ptr @fft_malloc(i32 noundef %12) #8
  %14 = tail call ptr @fft_malloc(i32 noundef %12) #8
  %15 = tail call ptr @fft_malloc(i32 noundef %12) #8
  %.not = icmp eq i32 %.074, 0
  br i1 %.not, label %._crit_edge89.thread.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %11
  %wide.trip.count = zext i32 %.074 to i64
  %min.iters.check = icmp ult i32 %.074, 4
  br i1 %min.iters.check, label %.lr.ph.preheader163, label %vector.ph

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %16 = uitofp <4 x i32> %vec.ind to <4 x float>
  %17 = fneg <4 x float> %16
  %18 = getelementptr inbounds { float, float }, ptr %13, i64 %index
  %interleaved.vec = shufflevector <4 x float> %16, <4 x float> %17, <8 x i32> <i32 0, i32 4, i32 1, i32 5, i32 2, i32 6, i32 3, i32 7>
  store <8 x float> %interleaved.vec, ptr %18, align 4
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %19 = icmp eq i64 %index.next, %n.vec
  br i1 %19, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader163

.lr.ph.preheader163:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader163, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader163 ]
  %20 = trunc nuw i64 %indvars.iv to i32
  %21 = uitofp i32 %20 to float
  %22 = fneg float %21
  %23 = getelementptr inbounds { float, float }, ptr %13, i64 %indvars.iv
  %24 = getelementptr inbounds i8, ptr %23, i64 4
  store float %21, ptr %23, align 4
  store float %22, ptr %24, align 4
  %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 %.lr.ph, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph, %middle.block
  %25 = tail call ptr @fft_create_plan(i32 noundef %.074, ptr noundef %13, ptr noundef %14, i32 noundef 1, i32 noundef 0) #8
  %26 = tail call ptr @fft_create_plan(i32 noundef %.074, ptr noundef %14, ptr noundef %15, i32 noundef -1, i32 noundef 0) #8
  %27 = tail call i32 @fft_print_plan(ptr noundef %25) #8
  %28 = tail call i32 @fft_execute(ptr noundef %25) #8
  %29 = tail call i32 @fft_execute(ptr noundef %26) #8
  %30 = tail call i32 @fft_destroy_plan(ptr noundef %25) #8
  %31 = tail call i32 @fft_destroy_plan(ptr noundef %26) #8
  br i1 %.not, label %._crit_edge89.thread, label %.lr.ph88

.lr.ph88:                                         ; preds = %._crit_edge
  %32 = uitofp i32 %.074 to float
  %wide.trip.count119 = zext i32 %.074 to i64
  %min.iters.check152 = icmp ult i32 %.074, 4
  br i1 %min.iters.check152, label %scalar.ph151.preheader, label %vector.ph153

vector.ph153:                                     ; preds = %.lr.ph88
  %n.vec155 = and i64 %wide.trip.count, 4294967292
  %broadcast.splatinsert = insertelement <4 x float> poison, float %32, i64 0
  %33 = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <8 x i32> zeroinitializer
  br label %vector.body157

vector.body157:                                   ; preds = %vector.body157, %vector.ph153
  %index158 = phi i64 [ 0, %vector.ph153 ], [ %index.next161, %vector.body157 ]
  %34 = getelementptr inbounds { float, float }, ptr %15, i64 %index158
  %wide.vec = load <8 x float>, ptr %34, align 4
  %interleaved.vec160 = fdiv <8 x float> %wide.vec, %33
  store <8 x float> %interleaved.vec160, ptr %34, align 4
  %index.next161 = add nuw i64 %index158, 4
  %35 = icmp eq i64 %index.next161, %n.vec155
  br i1 %35, label %middle.block150, label %vector.body157, !llvm.loop !15

middle.block150:                                  ; preds = %vector.body157
  %cmp.n162 = icmp eq i64 %n.vec155, %wide.trip.count
  br i1 %cmp.n162, label %._crit_edge89, label %scalar.ph151.preheader

scalar.ph151.preheader:                           ; preds = %middle.block150, %.lr.ph88
  %indvars.iv116.ph = phi i64 [ 0, %.lr.ph88 ], [ %n.vec155, %middle.block150 ]
  %36 = insertelement <2 x float> poison, float %32, i64 0
  %37 = shufflevector <2 x float> %36, <2 x float> poison, <2 x i32> zeroinitializer
  br label %scalar.ph151

scalar.ph151:                                     ; preds = %scalar.ph151.preheader, %scalar.ph151
  %indvars.iv116 = phi i64 [ %indvars.iv.next117, %scalar.ph151 ], [ %indvars.iv116.ph, %scalar.ph151.preheader ]
  %38 = getelementptr inbounds { float, float }, ptr %15, i64 %indvars.iv116
  %39 = load <2 x float>, ptr %38, align 4
  %40 = fdiv <2 x float> %39, %37
  store <2 x float> %40, ptr %38, align 4
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %exitcond120.not = icmp eq i64 %indvars.iv.next117, %wide.trip.count119
  br i1 %exitcond120.not, label %._crit_edge89, label %scalar.ph151, !llvm.loop !16

._crit_edge89:                                    ; preds = %scalar.ph151, %middle.block150
  %.not80 = icmp eq i32 %.075.ph, 0
  br i1 %.not80, label %.loopexit, label %49

._crit_edge89.thread.critedge:                    ; preds = %11
  %41 = tail call ptr @fft_create_plan(i32 noundef %.074, ptr noundef %13, ptr noundef %14, i32 noundef 1, i32 noundef 0) #8
  %42 = tail call ptr @fft_create_plan(i32 noundef %.074, ptr noundef %14, ptr noundef %15, i32 noundef -1, i32 noundef 0) #8
  %43 = tail call i32 @fft_print_plan(ptr noundef %41) #8
  %44 = tail call i32 @fft_execute(ptr noundef %41) #8
  %45 = tail call i32 @fft_execute(ptr noundef %42) #8
  %46 = tail call i32 @fft_destroy_plan(ptr noundef %41) #8
  %47 = tail call i32 @fft_destroy_plan(ptr noundef %42) #8
  br label %._crit_edge89.thread

._crit_edge89.thread:                             ; preds = %._crit_edge89.thread.critedge, %._crit_edge
  %.not80141 = icmp eq i32 %.075.ph, 0
  br i1 %.not80141, label %._crit_edge105, label %.thread

.thread:                                          ; preds = %._crit_edge89.thread
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %._crit_edge93.thread

49:                                               ; preds = %._crit_edge89
  %50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br i1 %.not, label %._crit_edge93.thread, label %.lr.ph92.preheader

.lr.ph92.preheader:                               ; preds = %49
  %wide.trip.count124 = zext i32 %.074 to i64
  br label %.lr.ph92

.lr.ph92:                                         ; preds = %.lr.ph92.preheader, %.lr.ph92
  %indvars.iv121 = phi i64 [ 0, %.lr.ph92.preheader ], [ %indvars.iv.next122, %.lr.ph92 ]
  %51 = getelementptr inbounds { float, float }, ptr %13, i64 %indvars.iv121
  %52 = load float, ptr %51, align 4
  %53 = getelementptr inbounds i8, ptr %51, i64 4
  %54 = fpext float %52 to double
  %55 = load float, ptr %53, align 4
  %56 = fpext float %55 to double
  %57 = trunc nuw i64 %indvars.iv121 to i32
  %58 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %57, double noundef %54, double noundef %56)
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %exitcond125.not = icmp eq i64 %indvars.iv.next122, %wide.trip.count124
  br i1 %exitcond125.not, label %._crit_edge93, label %.lr.ph92, !llvm.loop !17

._crit_edge93.thread:                             ; preds = %.thread, %49
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %._crit_edge97.thread

._crit_edge93:                                    ; preds = %.lr.ph92
  %60 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br i1 %.not, label %._crit_edge97.thread, label %.lr.ph96.preheader

.lr.ph96.preheader:                               ; preds = %._crit_edge93
  %wide.trip.count129 = zext i32 %.074 to i64
  br label %.lr.ph96

.lr.ph96:                                         ; preds = %.lr.ph96.preheader, %.lr.ph96
  %indvars.iv126 = phi i64 [ 0, %.lr.ph96.preheader ], [ %indvars.iv.next127, %.lr.ph96 ]
  %61 = getelementptr inbounds { float, float }, ptr %14, i64 %indvars.iv126
  %62 = load float, ptr %61, align 4
  %63 = getelementptr inbounds i8, ptr %61, i64 4
  %64 = fpext float %62 to double
  %65 = load float, ptr %63, align 4
  %66 = fpext float %65 to double
  %67 = trunc nuw i64 %indvars.iv126 to i32
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %67, double noundef %64, double noundef %66)
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %exitcond130.not = icmp eq i64 %indvars.iv.next127, %wide.trip.count129
  br i1 %exitcond130.not, label %._crit_edge97, label %.lr.ph96, !llvm.loop !18

._crit_edge97.thread:                             ; preds = %._crit_edge93.thread, %._crit_edge93
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br label %._crit_edge105

._crit_edge97:                                    ; preds = %.lr.ph96
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br i1 %.not, label %._crit_edge105, label %.lr.ph100.preheader

.lr.ph100.preheader:                              ; preds = %._crit_edge97
  %wide.trip.count134 = zext i32 %.074 to i64
  br label %.lr.ph100

.lr.ph100:                                        ; preds = %.lr.ph100.preheader, %.lr.ph100
  %indvars.iv131 = phi i64 [ 0, %.lr.ph100.preheader ], [ %indvars.iv.next132, %.lr.ph100 ]
  %71 = getelementptr inbounds { float, float }, ptr %15, i64 %indvars.iv131
  %72 = load float, ptr %71, align 4
  %73 = getelementptr inbounds i8, ptr %71, i64 4
  %74 = fpext float %72 to double
  %75 = load float, ptr %73, align 4
  %76 = fpext float %75 to double
  %77 = trunc nuw i64 %indvars.iv131 to i32
  %78 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %77, double noundef %74, double noundef %76)
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %exitcond135.not = icmp eq i64 %indvars.iv.next132, %wide.trip.count134
  br i1 %exitcond135.not, label %.loopexit, label %.lr.ph100, !llvm.loop !19

.loopexit:                                        ; preds = %.lr.ph100, %._crit_edge89
  br i1 %.not, label %._crit_edge105, label %.lr.ph104.preheader

.lr.ph104.preheader:                              ; preds = %.loopexit
  %wide.trip.count139 = zext i32 %.074 to i64
  br label %.lr.ph104

.lr.ph104:                                        ; preds = %.lr.ph104.preheader, %97
  %indvars.iv136 = phi i64 [ 0, %.lr.ph104.preheader ], [ %indvars.iv.next137, %97 ]
  %.077102 = phi float [ 0.000000e+00, %.lr.ph104.preheader ], [ %99, %97 ]
  %79 = getelementptr inbounds { float, float }, ptr %13, i64 %indvars.iv136
  %80 = getelementptr inbounds { float, float }, ptr %15, i64 %indvars.iv136
  %81 = load <2 x float>, ptr %79, align 4
  %82 = load <2 x float>, ptr %80, align 4
  %83 = fsub <2 x float> %81, %82
  %84 = extractelement <2 x float> %83, i64 1
  %85 = fneg float %84
  %86 = fmul <2 x float> %83, %83
  %shift = shufflevector <2 x float> %86, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %87 = fadd <2 x float> %86, %shift
  %88 = extractelement <2 x float> %87, i64 0
  %89 = fcmp uno float %88, 0.000000e+00
  br i1 %89, label %90, label %97, !prof !20

90:                                               ; preds = %.lr.ph104
  %91 = extractelement <2 x float> %83, i64 0
  %92 = fmul float %91, %84
  %93 = fsub float %92, %92
  %94 = fcmp uno float %93, 0.000000e+00
  br i1 %94, label %95, label %97, !prof !20

95:                                               ; preds = %90
  %96 = tail call <2 x float> @__mulsc3(float noundef %91, float noundef %84, float noundef %91, float noundef %85) #8
  %.sroa.0.0.vec.extract = extractelement <2 x float> %96, i64 0
  br label %97

97:                                               ; preds = %95, %90, %.lr.ph104
  %98 = phi float [ %88, %.lr.ph104 ], [ %88, %90 ], [ %.sroa.0.0.vec.extract, %95 ]
  %99 = fadd float %.077102, %98
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  %exitcond140.not = icmp eq i64 %indvars.iv.next137, %wide.trip.count139
  br i1 %exitcond140.not, label %._crit_edge105, label %.lr.ph104, !llvm.loop !21

._crit_edge105:                                   ; preds = %97, %._crit_edge97, %._crit_edge89.thread, %._crit_edge97.thread, %.loopexit
  %.077.lcssa = phi float [ 0.000000e+00, %.loopexit ], [ 0.000000e+00, %._crit_edge97.thread ], [ 0.000000e+00, %._crit_edge89.thread ], [ 0.000000e+00, %._crit_edge97 ], [ %99, %97 ]
  %100 = uitofp i32 %.074 to float
  %101 = fdiv float %.077.lcssa, %100
  %102 = tail call float @sqrtf(float noundef %101) #8
  %103 = fpext float %102 to double
  %104 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %103)
  tail call void @fft_free(ptr noundef %13) #8
  tail call void @fft_free(ptr noundef %14) #8
  tail call void @fft_free(ptr noundef %15) #8
  %105 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  br label %106

106:                                              ; preds = %._crit_edge105, %5
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #4

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

declare ptr @fft_malloc(i32 noundef) local_unnamed_addr #6

declare ptr @fft_create_plan(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

declare i32 @fft_print_plan(ptr noundef) local_unnamed_addr #6

declare i32 @fft_execute(ptr noundef) local_unnamed_addr #6

declare i32 @fft_destroy_plan(ptr noundef) local_unnamed_addr #6

declare <2 x float> @__mulsc3(float, float, float, float) local_unnamed_addr

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

declare void @fft_free(ptr noundef) local_unnamed_addr #6

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nounwind uwtable "min-legal-vector-width"="64" "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 "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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { 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 #6 = { "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 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !6, !12, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !6, !13, !12}
!15 = distinct !{!15, !6, !12, !13}
!16 = distinct !{!16, !6, !13, !12}
!17 = distinct !{!17, !6}
!18 = distinct !{!18, !6}
!19 = distinct !{!19, !6}
!20 = !{!"branch_weights", i32 1, i32 1048575}
!21 = distinct !{!21, !6}


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