; LLVM IR from jgaeddert/liquid-dsp :: src/filter/src (firdespm)

; 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.firdespm_s = type { i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, ptr, i32, ptr, ptr }

@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [56 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @firdespm_init_grid(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local ptr @firdespm_create_callback(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  store i32 %0, ptr %8, align 4, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !9
  %21 = load i32, ptr %8, align 4, !tbaa !5
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %25

23:                                               ; preds = %6
  %24 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 329, ptr noundef @.str.8)
  store ptr %24, ptr %7, align 8
  br label %345

25:                                               ; preds = %6
  %26 = load i32, ptr %9, align 4, !tbaa !5
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %30

28:                                               ; preds = %25
  %29 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 331, ptr noundef @.str.9)
  store ptr %29, ptr %7, align 8
  br label %345

30:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 1, ptr %15, align 4, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %57, %30
  %32 = load i32, ptr %14, align 4, !tbaa !5
  %33 = load i32, ptr %9, align 4, !tbaa !5
  %34 = mul i32 2, %33
  %35 = icmp ult i32 %32, %34
  br i1 %35, label %36, label %60

36:                                               ; preds = %31
  %37 = load ptr, ptr %10, align 8, !tbaa !9
  %38 = load i32, ptr %14, align 4, !tbaa !5
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds float, ptr %37, i64 %39
  %41 = load float, ptr %40, align 4, !tbaa !11
  %42 = fpext float %41 to double
  %43 = fcmp oge double %42, 0.000000e+00
  br i1 %43, label %44, label %52

44:                                               ; preds = %36
  %45 = load ptr, ptr %10, align 8, !tbaa !9
  %46 = load i32, ptr %14, align 4, !tbaa !5
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds float, ptr %45, i64 %47
  %49 = load float, ptr %48, align 4, !tbaa !11
  %50 = fpext float %49 to double
  %51 = fcmp ole double %50, 5.000000e-01
  br label %52

52:                                               ; preds = %44, %36
  %53 = phi i1 [ false, %36 ], [ %51, %44 ]
  %54 = zext i1 %53 to i32
  %55 = load i32, ptr %15, align 4, !tbaa !5
  %56 = and i32 %55, %54
  store i32 %56, ptr %15, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %52
  %58 = load i32, ptr %14, align 4, !tbaa !5
  %59 = add i32 %58, 1
  store i32 %59, ptr %14, align 4, !tbaa !5
  br label %31, !llvm.loop !13

60:                                               ; preds = %31
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %82, %60
  %62 = load i32, ptr %14, align 4, !tbaa !5
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = mul i32 2, %63
  %65 = icmp ult i32 %62, %64
  br i1 %65, label %66, label %85

66:                                               ; preds = %61
  %67 = load ptr, ptr %10, align 8, !tbaa !9
  %68 = load i32, ptr %14, align 4, !tbaa !5
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds float, ptr %67, i64 %69
  %71 = load float, ptr %70, align 4, !tbaa !11
  %72 = load ptr, ptr %10, align 8, !tbaa !9
  %73 = load i32, ptr %14, align 4, !tbaa !5
  %74 = sub i32 %73, 1
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds float, ptr %72, i64 %75
  %77 = load float, ptr %76, align 4, !tbaa !11
  %78 = fcmp oge float %71, %77
  %79 = zext i1 %78 to i32
  %80 = load i32, ptr %15, align 4, !tbaa !5
  %81 = and i32 %80, %79
  store i32 %81, ptr %15, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %66
  %83 = load i32, ptr %14, align 4, !tbaa !5
  %84 = add i32 %83, 1
  store i32 %84, ptr %14, align 4, !tbaa !5
  br label %61, !llvm.loop !15

85:                                               ; preds = %61
  %86 = load i32, ptr %15, align 4, !tbaa !5
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %90, label %88

88:                                               ; preds = %85
  %89 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 345, ptr noundef @.str.6)
  store ptr %89, ptr %7, align 8
  store i32 1, ptr %16, align 4
  br label %344

90:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %91 = call noalias ptr @malloc(i64 noundef 160) #5
  store ptr %91, ptr %17, align 8, !tbaa !9
  %92 = load i32, ptr %8, align 4, !tbaa !5
  %93 = load ptr, ptr %17, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct.firdespm_s, ptr %93, i32 0, i32 0
  store i32 %92, ptr %94, align 8, !tbaa !16
  %95 = load ptr, ptr %17, align 8, !tbaa !9
  %96 = getelementptr inbounds %struct.firdespm_s, ptr %95, i32 0, i32 0
  %97 = load i32, ptr %96, align 8, !tbaa !16
  %98 = urem i32 %97, 2
  %99 = load ptr, ptr %17, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.firdespm_s, ptr %99, i32 0, i32 1
  store i32 %98, ptr %100, align 4, !tbaa !19
  %101 = load ptr, ptr %17, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.firdespm_s, ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !16
  %104 = load ptr, ptr %17, align 8, !tbaa !9
  %105 = getelementptr inbounds %struct.firdespm_s, ptr %104, i32 0, i32 1
  %106 = load i32, ptr %105, align 4, !tbaa !19
  %107 = sub i32 %103, %106
  %108 = udiv i32 %107, 2
  %109 = load ptr, ptr %17, align 8, !tbaa !9
  %110 = getelementptr inbounds %struct.firdespm_s, ptr %109, i32 0, i32 2
  store i32 %108, ptr %110, align 8, !tbaa !20
  %111 = load ptr, ptr %17, align 8, !tbaa !9
  %112 = getelementptr inbounds %struct.firdespm_s, ptr %111, i32 0, i32 2
  %113 = load i32, ptr %112, align 8, !tbaa !20
  %114 = load ptr, ptr %17, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct.firdespm_s, ptr %114, i32 0, i32 1
  %116 = load i32, ptr %115, align 4, !tbaa !19
  %117 = add i32 %113, %116
  %118 = load ptr, ptr %17, align 8, !tbaa !9
  %119 = getelementptr inbounds %struct.firdespm_s, ptr %118, i32 0, i32 3
  store i32 %117, ptr %119, align 4, !tbaa !21
  %120 = load i32, ptr %11, align 4, !tbaa !5
  %121 = load ptr, ptr %17, align 8, !tbaa !9
  %122 = getelementptr inbounds %struct.firdespm_s, ptr %121, i32 0, i32 7
  store i32 %120, ptr %122, align 4, !tbaa !22
  %123 = load ptr, ptr %12, align 8, !tbaa !9
  %124 = load ptr, ptr %17, align 8, !tbaa !9
  %125 = getelementptr inbounds %struct.firdespm_s, ptr %124, i32 0, i32 22
  store ptr %123, ptr %125, align 8, !tbaa !23
  %126 = load ptr, ptr %13, align 8, !tbaa !9
  %127 = load ptr, ptr %17, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct.firdespm_s, ptr %127, i32 0, i32 23
  store ptr %126, ptr %128, align 8, !tbaa !24
  %129 = load ptr, ptr %17, align 8, !tbaa !9
  %130 = getelementptr inbounds %struct.firdespm_s, ptr %129, i32 0, i32 3
  %131 = load i32, ptr %130, align 4, !tbaa !21
  %132 = add i32 %131, 1
  %133 = zext i32 %132 to i64
  %134 = mul i64 %133, 4
  %135 = call noalias ptr @malloc(i64 noundef %134) #5
  %136 = load ptr, ptr %17, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.firdespm_s, ptr %136, i32 0, i32 20
  store ptr %135, ptr %137, align 8, !tbaa !25
  %138 = load ptr, ptr %17, align 8, !tbaa !9
  %139 = getelementptr inbounds %struct.firdespm_s, ptr %138, i32 0, i32 3
  %140 = load i32, ptr %139, align 4, !tbaa !21
  %141 = add i32 %140, 1
  %142 = zext i32 %141 to i64
  %143 = mul i64 %142, 8
  %144 = call noalias ptr @malloc(i64 noundef %143) #5
  %145 = load ptr, ptr %17, align 8, !tbaa !9
  %146 = getelementptr inbounds %struct.firdespm_s, ptr %145, i32 0, i32 16
  store ptr %144, ptr %146, align 8, !tbaa !26
  %147 = load ptr, ptr %17, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.firdespm_s, ptr %147, i32 0, i32 3
  %149 = load i32, ptr %148, align 4, !tbaa !21
  %150 = add i32 %149, 1
  %151 = zext i32 %150 to i64
  %152 = mul i64 %151, 8
  %153 = call noalias ptr @malloc(i64 noundef %152) #5
  %154 = load ptr, ptr %17, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct.firdespm_s, ptr %154, i32 0, i32 17
  store ptr %153, ptr %155, align 8, !tbaa !27
  %156 = load ptr, ptr %17, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.firdespm_s, ptr %156, i32 0, i32 3
  %158 = load i32, ptr %157, align 4, !tbaa !21
  %159 = add i32 %158, 1
  %160 = zext i32 %159 to i64
  %161 = mul i64 %160, 8
  %162 = call noalias ptr @malloc(i64 noundef %161) #5
  %163 = load ptr, ptr %17, align 8, !tbaa !9
  %164 = getelementptr inbounds %struct.firdespm_s, ptr %163, i32 0, i32 18
  store ptr %162, ptr %164, align 8, !tbaa !28
  %165 = load i32, ptr %9, align 4, !tbaa !5
  %166 = load ptr, ptr %17, align 8, !tbaa !9
  %167 = getelementptr inbounds %struct.firdespm_s, ptr %166, i32 0, i32 4
  store i32 %165, ptr %167, align 8, !tbaa !29
  %168 = load ptr, ptr %17, align 8, !tbaa !9
  %169 = getelementptr inbounds %struct.firdespm_s, ptr %168, i32 0, i32 4
  %170 = load i32, ptr %169, align 8, !tbaa !29
  %171 = mul i32 2, %170
  %172 = zext i32 %171 to i64
  %173 = mul i64 %172, 8
  %174 = call noalias ptr @malloc(i64 noundef %173) #5
  %175 = load ptr, ptr %17, align 8, !tbaa !9
  %176 = getelementptr inbounds %struct.firdespm_s, ptr %175, i32 0, i32 8
  store ptr %174, ptr %176, align 8, !tbaa !30
  %177 = load ptr, ptr %17, align 8, !tbaa !9
  %178 = getelementptr inbounds %struct.firdespm_s, ptr %177, i32 0, i32 4
  %179 = load i32, ptr %178, align 8, !tbaa !29
  %180 = zext i32 %179 to i64
  %181 = mul i64 %180, 8
  %182 = call noalias ptr @malloc(i64 noundef %181) #5
  %183 = load ptr, ptr %17, align 8, !tbaa !9
  %184 = getelementptr inbounds %struct.firdespm_s, ptr %183, i32 0, i32 9
  store ptr %182, ptr %184, align 8, !tbaa !31
  %185 = load ptr, ptr %17, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.firdespm_s, ptr %185, i32 0, i32 4
  %187 = load i32, ptr %186, align 8, !tbaa !29
  %188 = zext i32 %187 to i64
  %189 = mul i64 %188, 8
  %190 = call noalias ptr @malloc(i64 noundef %189) #5
  %191 = load ptr, ptr %17, align 8, !tbaa !9
  %192 = getelementptr inbounds %struct.firdespm_s, ptr %191, i32 0, i32 10
  store ptr %190, ptr %192, align 8, !tbaa !32
  %193 = load ptr, ptr %17, align 8, !tbaa !9
  %194 = getelementptr inbounds %struct.firdespm_s, ptr %193, i32 0, i32 4
  %195 = load i32, ptr %194, align 8, !tbaa !29
  %196 = zext i32 %195 to i64
  %197 = mul i64 %196, 4
  %198 = call noalias ptr @malloc(i64 noundef %197) #5
  %199 = load ptr, ptr %17, align 8, !tbaa !9
  %200 = getelementptr inbounds %struct.firdespm_s, ptr %199, i32 0, i32 11
  store ptr %198, ptr %200, align 8, !tbaa !33
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %201

201:                                              ; preds = %252, %90
  %202 = load i32, ptr %14, align 4, !tbaa !5
  %203 = load ptr, ptr %17, align 8, !tbaa !9
  %204 = getelementptr inbounds %struct.firdespm_s, ptr %203, i32 0, i32 4
  %205 = load i32, ptr %204, align 8, !tbaa !29
  %206 = icmp ult i32 %202, %205
  br i1 %206, label %207, label %255

207:                                              ; preds = %201
  %208 = load ptr, ptr %10, align 8, !tbaa !9
  %209 = load i32, ptr %14, align 4, !tbaa !5
  %210 = mul i32 2, %209
  %211 = add i32 %210, 0
  %212 = zext i32 %211 to i64
  %213 = getelementptr inbounds float, ptr %208, i64 %212
  %214 = load float, ptr %213, align 4, !tbaa !11
  %215 = fpext float %214 to double
  %216 = load ptr, ptr %17, align 8, !tbaa !9
  %217 = getelementptr inbounds %struct.firdespm_s, ptr %216, i32 0, i32 8
  %218 = load ptr, ptr %217, align 8, !tbaa !30
  %219 = load i32, ptr %14, align 4, !tbaa !5
  %220 = mul i32 2, %219
  %221 = add i32 %220, 0
  %222 = zext i32 %221 to i64
  %223 = getelementptr inbounds double, ptr %218, i64 %222
  store double %215, ptr %223, align 8, !tbaa !34
  %224 = load ptr, ptr %10, align 8, !tbaa !9
  %225 = load i32, ptr %14, align 4, !tbaa !5
  %226 = mul i32 2, %225
  %227 = add i32 %226, 1
  %228 = zext i32 %227 to i64
  %229 = getelementptr inbounds float, ptr %224, i64 %228
  %230 = load float, ptr %229, align 4, !tbaa !11
  %231 = fpext float %230 to double
  %232 = load ptr, ptr %17, align 8, !tbaa !9
  %233 = getelementptr inbounds %struct.firdespm_s, ptr %232, i32 0, i32 8
  %234 = load ptr, ptr %233, align 8, !tbaa !30
  %235 = load i32, ptr %14, align 4, !tbaa !5
  %236 = mul i32 2, %235
  %237 = add i32 %236, 1
  %238 = zext i32 %237 to i64
  %239 = getelementptr inbounds double, ptr %234, i64 %238
  store double %231, ptr %239, align 8, !tbaa !34
  %240 = load ptr, ptr %17, align 8, !tbaa !9
  %241 = getelementptr inbounds %struct.firdespm_s, ptr %240, i32 0, i32 9
  %242 = load ptr, ptr %241, align 8, !tbaa !31
  %243 = load i32, ptr %14, align 4, !tbaa !5
  %244 = zext i32 %243 to i64
  %245 = getelementptr inbounds double, ptr %242, i64 %244
  store double 0.000000e+00, ptr %245, align 8, !tbaa !34
  %246 = load ptr, ptr %17, align 8, !tbaa !9
  %247 = getelementptr inbounds %struct.firdespm_s, ptr %246, i32 0, i32 10
  %248 = load ptr, ptr %247, align 8, !tbaa !32
  %249 = load i32, ptr %14, align 4, !tbaa !5
  %250 = zext i32 %249 to i64
  %251 = getelementptr inbounds double, ptr %248, i64 %250
  store double 0.000000e+00, ptr %251, align 8, !tbaa !34
  br label %252

252:                                              ; preds = %207
  %253 = load i32, ptr %14, align 4, !tbaa !5
  %254 = add i32 %253, 1
  store i32 %254, ptr %14, align 4, !tbaa !5
  br label %201, !llvm.loop !35

255:                                              ; preds = %201
  %256 = load ptr, ptr %17, align 8, !tbaa !9
  %257 = getelementptr inbounds %struct.firdespm_s, ptr %256, i32 0, i32 6
  store i32 20, ptr %257, align 8, !tbaa !36
  %258 = load ptr, ptr %17, align 8, !tbaa !9
  %259 = getelementptr inbounds %struct.firdespm_s, ptr %258, i32 0, i32 5
  store i32 0, ptr %259, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %260 = load ptr, ptr %17, align 8, !tbaa !9
  %261 = getelementptr inbounds %struct.firdespm_s, ptr %260, i32 0, i32 6
  %262 = load i32, ptr %261, align 8, !tbaa !36
  %263 = load ptr, ptr %17, align 8, !tbaa !9
  %264 = getelementptr inbounds %struct.firdespm_s, ptr %263, i32 0, i32 3
  %265 = load i32, ptr %264, align 4, !tbaa !21
  %266 = mul i32 %262, %265
  %267 = uitofp i32 %266 to double
  %268 = fdiv double 5.000000e-01, %267
  store double %268, ptr %18, align 8, !tbaa !34
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %269

269:                                              ; preds = %305, %255
  %270 = load i32, ptr %14, align 4, !tbaa !5
  %271 = load ptr, ptr %17, align 8, !tbaa !9
  %272 = getelementptr inbounds %struct.firdespm_s, ptr %271, i32 0, i32 4
  %273 = load i32, ptr %272, align 8, !tbaa !29
  %274 = icmp ult i32 %270, %273
  br i1 %274, label %275, label %308

275:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %276 = load ptr, ptr %17, align 8, !tbaa !9
  %277 = getelementptr inbounds %struct.firdespm_s, ptr %276, i32 0, i32 8
  %278 = load ptr, ptr %277, align 8, !tbaa !30
  %279 = load i32, ptr %14, align 4, !tbaa !5
  %280 = mul i32 2, %279
  %281 = add i32 %280, 0
  %282 = zext i32 %281 to i64
  %283 = getelementptr inbounds double, ptr %278, i64 %282
  %284 = load double, ptr %283, align 8, !tbaa !34
  store double %284, ptr %19, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %285 = load ptr, ptr %17, align 8, !tbaa !9
  %286 = getelementptr inbounds %struct.firdespm_s, ptr %285, i32 0, i32 8
  %287 = load ptr, ptr %286, align 8, !tbaa !30
  %288 = load i32, ptr %14, align 4, !tbaa !5
  %289 = mul i32 2, %288
  %290 = add i32 %289, 1
  %291 = zext i32 %290 to i64
  %292 = getelementptr inbounds double, ptr %287, i64 %291
  %293 = load double, ptr %292, align 8, !tbaa !34
  store double %293, ptr %20, align 8, !tbaa !34
  %294 = load double, ptr %20, align 8, !tbaa !34
  %295 = load double, ptr %19, align 8, !tbaa !34
  %296 = fsub double %294, %295
  %297 = load double, ptr %18, align 8, !tbaa !34
  %298 = fdiv double %296, %297
  %299 = fadd double %298, 1.000000e+00
  %300 = fptoui double %299 to i32
  %301 = load ptr, ptr %17, align 8, !tbaa !9
  %302 = getelementptr inbounds %struct.firdespm_s, ptr %301, i32 0, i32 5
  %303 = load i32, ptr %302, align 4, !tbaa !37
  %304 = add i32 %303, %300
  store i32 %304, ptr %302, align 4, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %305

305:                                              ; preds = %275
  %306 = load i32, ptr %14, align 4, !tbaa !5
  %307 = add i32 %306, 1
  store i32 %307, ptr %14, align 4, !tbaa !5
  br label %269, !llvm.loop !38

308:                                              ; preds = %269
  %309 = load ptr, ptr %17, align 8, !tbaa !9
  %310 = getelementptr inbounds %struct.firdespm_s, ptr %309, i32 0, i32 5
  %311 = load i32, ptr %310, align 4, !tbaa !37
  %312 = zext i32 %311 to i64
  %313 = mul i64 %312, 8
  %314 = call noalias ptr @malloc(i64 noundef %313) #5
  %315 = load ptr, ptr %17, align 8, !tbaa !9
  %316 = getelementptr inbounds %struct.firdespm_s, ptr %315, i32 0, i32 12
  store ptr %314, ptr %316, align 8, !tbaa !39
  %317 = load ptr, ptr %17, align 8, !tbaa !9
  %318 = getelementptr inbounds %struct.firdespm_s, ptr %317, i32 0, i32 5
  %319 = load i32, ptr %318, align 4, !tbaa !37
  %320 = zext i32 %319 to i64
  %321 = mul i64 %320, 8
  %322 = call noalias ptr @malloc(i64 noundef %321) #5
  %323 = load ptr, ptr %17, align 8, !tbaa !9
  %324 = getelementptr inbounds %struct.firdespm_s, ptr %323, i32 0, i32 13
  store ptr %322, ptr %324, align 8, !tbaa !40
  %325 = load ptr, ptr %17, align 8, !tbaa !9
  %326 = getelementptr inbounds %struct.firdespm_s, ptr %325, i32 0, i32 5
  %327 = load i32, ptr %326, align 4, !tbaa !37
  %328 = zext i32 %327 to i64
  %329 = mul i64 %328, 8
  %330 = call noalias ptr @malloc(i64 noundef %329) #5
  %331 = load ptr, ptr %17, align 8, !tbaa !9
  %332 = getelementptr inbounds %struct.firdespm_s, ptr %331, i32 0, i32 14
  store ptr %330, ptr %332, align 8, !tbaa !41
  %333 = load ptr, ptr %17, align 8, !tbaa !9
  %334 = getelementptr inbounds %struct.firdespm_s, ptr %333, i32 0, i32 5
  %335 = load i32, ptr %334, align 4, !tbaa !37
  %336 = zext i32 %335 to i64
  %337 = mul i64 %336, 8
  %338 = call noalias ptr @malloc(i64 noundef %337) #5
  %339 = load ptr, ptr %17, align 8, !tbaa !9
  %340 = getelementptr inbounds %struct.firdespm_s, ptr %339, i32 0, i32 15
  store ptr %338, ptr %340, align 8, !tbaa !42
  %341 = load ptr, ptr %17, align 8, !tbaa !9
  %342 = call i32 @firdespm_init_grid(ptr noundef %341)
  %343 = load ptr, ptr %17, align 8, !tbaa !9
  store ptr %343, ptr %7, align 8
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %344

344:                                              ; preds = %308, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %345

345:                                              ; preds = %344, %28, %23
  %346 = load ptr, ptr %7, align 8
  ret ptr %346
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #3 = { 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 #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

!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 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !6, i64 0}
!17 = !{!"firdespm_s", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !18, i64 120, !10, i64 128, !6, i64 136, !10, i64 144, !10, i64 152}
!18 = !{!"double", !7, i64 0}
!19 = !{!17, !6, i64 4}
!20 = !{!17, !6, i64 8}
!21 = !{!17, !6, i64 12}
!22 = !{!17, !6, i64 28}
!23 = !{!17, !10, i64 144}
!24 = !{!17, !10, i64 152}
!25 = !{!17, !10, i64 128}
!26 = !{!17, !10, i64 96}
!27 = !{!17, !10, i64 104}
!28 = !{!17, !10, i64 112}
!29 = !{!17, !6, i64 16}
!30 = !{!17, !10, i64 32}
!31 = !{!17, !10, i64 40}
!32 = !{!17, !10, i64 48}
!33 = !{!17, !10, i64 56}
!34 = !{!18, !18, i64 0}
!35 = distinct !{!35, !14}
!36 = !{!17, !6, i64 24}
!37 = !{!17, !6, i64 20}
!38 = distinct !{!38, !14}
!39 = !{!17, !10, i64 64}
!40 = !{!17, !10, i64 72}
!41 = !{!17, !10, i64 80}
!42 = !{!17, !10, i64 88}


; 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 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [56 x i8], align 1

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @firdespm_init_grid(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local ptr @firdespm_create_callback(i32 noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #2 {
  %7 = icmp eq i32 %0, 0
  br i1 %7, label %8, label %10

8:                                                ; preds = %6
  %9 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 329, ptr noundef nonnull @.str.8) #5
  br label %220

10:                                               ; preds = %6
  %11 = icmp eq i32 %1, 0
  br i1 %11, label %14, label %.preheader101

.preheader101:                                    ; preds = %10
  %12 = shl i32 %1, 1
  %.not112 = icmp eq i32 %12, 0
  br i1 %.not112, label %._crit_edge.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader101
  %wide.trip.count = zext i32 %12 to i64
  %xtraiter = and i64 %wide.trip.count, 2
  %13 = icmp ult i32 %12, 4
  br i1 %13, label %.preheader.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %.lr.ph

14:                                               ; preds = %10
  %15 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 331, ptr noundef nonnull @.str.9) #5
  br label %220

.preheader.unr-lcssa:                             ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa190.ph = phi i32 [ poison, %.lr.ph.preheader ], [ %57, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %.095102.unr = phi i32 [ 1, %.lr.ph.preheader ], [ %57, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.preheader.unr-lcssa ]
  %.095102.epil = phi i32 [ %21, %.lr.ph.epil ], [ %.095102.unr, %.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader.unr-lcssa ]
  %16 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.epil
  %17 = load float, ptr %16, align 4, !tbaa !5
  %18 = fcmp oge float %17, 0.000000e+00
  %19 = fcmp ole float %17, 5.000000e-01
  %20 = and i1 %18, %19
  %21 = select i1 %20, i32 %.095102.epil, i32 0
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader, label %.lr.ph.epil, !llvm.loop !9

.preheader:                                       ; preds = %.lr.ph.epil, %.preheader.unr-lcssa
  %.lcssa190 = phi i32 [ %.lcssa190.ph, %.preheader.unr-lcssa ], [ %21, %.lr.ph.epil ]
  br i1 %.not112, label %._crit_edge, label %.lr.ph107.preheader

.lr.ph107.preheader:                              ; preds = %.preheader
  %wide.trip.count120 = zext i32 %12 to i64
  %.pre = load float, ptr %2, align 4, !tbaa !5
  %22 = and i32 %.lcssa190, 1
  %min.iters.check = icmp ult i32 %12, 9
  br i1 %min.iters.check, label %.lr.ph107.preheader185, label %vector.ph

.lr.ph107.preheader185:                           ; preds = %middle.block, %.lr.ph107.preheader
  %.ph186 = phi float [ %.pre, %.lr.ph107.preheader ], [ %vector.recur.extract, %middle.block ]
  %indvars.iv117.ph = phi i64 [ 1, %.lr.ph107.preheader ], [ %ind.end, %middle.block ]
  %.196105.ph = phi i32 [ %22, %.lr.ph107.preheader ], [ %rdx.select, %middle.block ]
  br label %.lr.ph107

vector.ph:                                        ; preds = %.lr.ph107.preheader
  %23 = add nsw i64 %wide.trip.count, -1
  %n.vec = and i64 %23, -8
  %ind.end = or disjoint i64 %n.vec, 1
  %vector.recur.init = insertelement <4 x float> poison, float %.pre, i64 3
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vector.recur = phi <4 x float> [ %vector.recur.init, %vector.ph ], [ %wide.load142, %vector.body ]
  %vec.phi = phi <4 x i1> [ zeroinitializer, %vector.ph ], [ %30, %vector.body ]
  %vec.phi141 = phi <4 x i1> [ zeroinitializer, %vector.ph ], [ %31, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %24 = getelementptr inbounds float, ptr %2, i64 %offset.idx
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %wide.load = load <4 x float>, ptr %24, align 4, !tbaa !5
  %wide.load142 = load <4 x float>, ptr %25, align 4, !tbaa !5
  %26 = shufflevector <4 x float> %vector.recur, <4 x float> %wide.load, <4 x i32> <i32 3, i32 4, i32 5, i32 6>
  %27 = shufflevector <4 x float> %wide.load, <4 x float> %wide.load142, <4 x i32> <i32 3, i32 4, i32 5, i32 6>
  %28 = fcmp ult <4 x float> %wide.load, %26
  %29 = fcmp ult <4 x float> %wide.load142, %27
  %30 = or <4 x i1> %vec.phi, %28
  %31 = or <4 x i1> %vec.phi141, %29
  %index.next = add nuw i64 %index, 8
  %32 = icmp eq i64 %index.next, %n.vec
  br i1 %32, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %bin.rdx = or <4 x i1> %31, %30
  %bin.rdx.fr = freeze <4 x i1> %bin.rdx
  %33 = bitcast <4 x i1> %bin.rdx.fr to i4
  %.not181 = icmp eq i4 %33, 0
  %rdx.select = select i1 %.not181, i32 %22, i32 0
  %vector.recur.extract = extractelement <4 x float> %wide.load142, i64 3
  br label %.lr.ph107.preheader185

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %.095102 = phi i32 [ 1, %.lr.ph.preheader.new ], [ %57, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %34 = getelementptr inbounds float, ptr %2, i64 %indvars.iv
  %35 = load float, ptr %34, align 4, !tbaa !5
  %36 = fcmp oge float %35, 0.000000e+00
  %37 = fcmp ole float %35, 5.000000e-01
  %38 = and i1 %36, %37
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %39 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next
  %40 = load float, ptr %39, align 4, !tbaa !5
  %41 = fcmp oge float %40, 0.000000e+00
  %42 = fcmp ole float %40, 5.000000e-01
  %43 = and i1 %41, %42
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %44 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next.1
  %45 = load float, ptr %44, align 4, !tbaa !5
  %46 = fcmp oge float %45, 0.000000e+00
  %47 = fcmp ole float %45, 5.000000e-01
  %48 = and i1 %46, %47
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %49 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next.2
  %50 = load float, ptr %49, align 4, !tbaa !5
  %51 = fcmp oge float %50, 0.000000e+00
  %52 = fcmp ole float %50, 5.000000e-01
  %53 = and i1 %51, %52
  %54 = select i1 %53, i1 %48, i1 false
  %55 = select i1 %54, i1 %43, i1 false
  %56 = select i1 %55, i1 %38, i1 false
  %57 = select i1 %56, i32 %.095102, i32 0
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader.unr-lcssa, label %.lr.ph, !llvm.loop !15

.lr.ph107:                                        ; preds = %.lr.ph107.preheader185, %.lr.ph107
  %58 = phi float [ %60, %.lr.ph107 ], [ %.ph186, %.lr.ph107.preheader185 ]
  %indvars.iv117 = phi i64 [ %indvars.iv.next118, %.lr.ph107 ], [ %indvars.iv117.ph, %.lr.ph107.preheader185 ]
  %.196105 = phi i32 [ %62, %.lr.ph107 ], [ %.196105.ph, %.lr.ph107.preheader185 ]
  %59 = getelementptr inbounds float, ptr %2, i64 %indvars.iv117
  %60 = load float, ptr %59, align 4, !tbaa !5
  %61 = fcmp oge float %60, %58
  %62 = select i1 %61, i32 %.196105, i32 0
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %exitcond121.not = icmp eq i64 %indvars.iv.next118, %wide.trip.count120
  br i1 %exitcond121.not, label %._crit_edge, label %.lr.ph107, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph107, %.preheader
  %.196.lcssa = phi i32 [ %.lcssa190, %.preheader ], [ %62, %.lr.ph107 ]
  %.not = icmp eq i32 %.196.lcssa, 0
  br i1 %.not, label %63, label %._crit_edge.thread

63:                                               ; preds = %._crit_edge
  %64 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 345, ptr noundef nonnull @.str.6) #5
  br label %220

._crit_edge.thread:                               ; preds = %.preheader101, %._crit_edge
  %65 = tail call noalias dereferenceable_or_null(160) ptr @malloc(i64 noundef 160) #6
  store i32 %0, ptr %65, align 8, !tbaa !17
  %66 = and i32 %0, 1
  %67 = getelementptr inbounds i8, ptr %65, i64 4
  store i32 %66, ptr %67, align 4, !tbaa !22
  %68 = lshr i32 %0, 1
  %69 = getelementptr inbounds i8, ptr %65, i64 8
  store i32 %68, ptr %69, align 8, !tbaa !23
  %70 = add nuw i32 %68, %66
  %71 = getelementptr inbounds i8, ptr %65, i64 12
  store i32 %70, ptr %71, align 4, !tbaa !24
  %72 = getelementptr inbounds i8, ptr %65, i64 28
  store i32 %3, ptr %72, align 4, !tbaa !25
  %73 = getelementptr inbounds i8, ptr %65, i64 144
  store ptr %4, ptr %73, align 8, !tbaa !26
  %74 = getelementptr inbounds i8, ptr %65, i64 152
  store ptr %5, ptr %74, align 8, !tbaa !27
  %75 = add nuw i32 %70, 1
  %76 = zext i32 %75 to i64
  %77 = shl nuw nsw i64 %76, 2
  %78 = tail call noalias ptr @malloc(i64 noundef %77) #6
  %79 = getelementptr inbounds i8, ptr %65, i64 128
  store ptr %78, ptr %79, align 8, !tbaa !28
  %80 = shl nuw nsw i64 %76, 3
  %81 = tail call noalias ptr @malloc(i64 noundef %80) #6
  %82 = getelementptr inbounds i8, ptr %65, i64 96
  store ptr %81, ptr %82, align 8, !tbaa !29
  %83 = tail call noalias ptr @malloc(i64 noundef %80) #6
  %84 = getelementptr inbounds i8, ptr %65, i64 104
  store ptr %83, ptr %84, align 8, !tbaa !30
  %85 = tail call noalias ptr @malloc(i64 noundef %80) #6
  %86 = getelementptr inbounds i8, ptr %65, i64 112
  store ptr %85, ptr %86, align 8, !tbaa !31
  %87 = getelementptr inbounds i8, ptr %65, i64 16
  store i32 %1, ptr %87, align 8, !tbaa !32
  %88 = zext i32 %12 to i64
  %89 = shl nuw nsw i64 %88, 3
  %90 = tail call noalias ptr @malloc(i64 noundef %89) #6
  %91 = getelementptr inbounds i8, ptr %65, i64 32
  store ptr %90, ptr %91, align 8, !tbaa !33
  %92 = zext i32 %1 to i64
  %93 = shl nuw nsw i64 %92, 3
  %94 = tail call noalias ptr @malloc(i64 noundef %93) #6
  %95 = getelementptr inbounds i8, ptr %65, i64 40
  store ptr %94, ptr %95, align 8, !tbaa !34
  %96 = tail call noalias ptr @malloc(i64 noundef %93) #6
  %97 = getelementptr inbounds i8, ptr %65, i64 48
  store ptr %96, ptr %97, align 8, !tbaa !35
  %98 = shl nuw nsw i64 %92, 2
  %99 = tail call noalias ptr @malloc(i64 noundef %98) #6
  %100 = getelementptr inbounds i8, ptr %65, i64 56
  store ptr %99, ptr %100, align 8, !tbaa !36
  %umax = tail call i64 @llvm.umax.i64(i64 %92, i64 1)
  %101 = shl nuw nsw i64 %umax, 3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %94, i8 0, i64 %101, i1 false), !tbaa !37
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %96, i8 0, i64 %101, i1 false), !tbaa !37
  %umax126 = tail call i32 @llvm.umax.i32(i32 %1, i32 1)
  %wide.trip.count127 = zext i32 %umax126 to i64
  %min.iters.check148 = icmp ult i32 %1, 14
  br i1 %min.iters.check148, label %scalar.ph147.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %._crit_edge.thread
  %102 = add nsw i64 %wide.trip.count127, -1
  %103 = icmp ugt i64 %102, 4294967295
  %mul.result = shl nsw i64 %102, 4
  %104 = getelementptr i8, ptr %90, i64 %mul.result
  %105 = icmp ult ptr %104, %90
  %scevgep = getelementptr i8, ptr %90, i64 8
  %mul.result144 = shl nsw i64 %102, 4
  %106 = getelementptr i8, ptr %scevgep, i64 %mul.result144
  %107 = icmp ult ptr %106, %scevgep
  %108 = or i1 %105, %103
  %109 = or i1 %107, %108
  br i1 %109, label %scalar.ph147.preheader, label %vector.ph149

vector.ph149:                                     ; preds = %vector.scevcheck
  %n.vec151 = and i64 %wide.trip.count127, 4294967294
  %invariant.gep = getelementptr i8, ptr %90, i64 -8
  br label %vector.body153

vector.body153:                                   ; preds = %vector.body153, %vector.ph149
  %index154 = phi i64 [ 0, %vector.ph149 ], [ %index.next156, %vector.body153 ]
  %110 = trunc i64 %index154 to i32
  %111 = shl i32 %110, 1
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds float, ptr %2, i64 %112
  %wide.vec = load <4 x float>, ptr %113, align 4, !tbaa !5
  %strided.vec = shufflevector <4 x float> %wide.vec, <4 x float> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec155 = shufflevector <4 x float> %wide.vec, <4 x float> poison, <2 x i32> <i32 1, i32 3>
  %114 = fpext <2 x float> %strided.vec to <2 x double>
  %115 = or disjoint i32 %111, 1
  %116 = zext i32 %115 to i64
  %117 = fpext <2 x float> %strided.vec155 to <2 x double>
  %gep = getelementptr double, ptr %invariant.gep, i64 %116
  %interleaved.vec = shufflevector <2 x double> %114, <2 x double> %117, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec, ptr %gep, align 8, !tbaa !37
  %index.next156 = add nuw i64 %index154, 2
  %118 = icmp eq i64 %index.next156, %n.vec151
  br i1 %118, label %middle.block146, label %vector.body153, !llvm.loop !38

middle.block146:                                  ; preds = %vector.body153
  %cmp.n157 = icmp eq i64 %n.vec151, %wide.trip.count127
  br i1 %cmp.n157, label %.loopexit180, label %scalar.ph147.preheader

scalar.ph147.preheader:                           ; preds = %middle.block146, %vector.scevcheck, %._crit_edge.thread
  %indvars.iv123.ph = phi i64 [ 0, %vector.scevcheck ], [ 0, %._crit_edge.thread ], [ %n.vec151, %middle.block146 ]
  %xtraiter192 = and i64 %wide.trip.count127, 1
  %lcmp.mod193.not = icmp eq i64 %xtraiter192, 0
  br i1 %lcmp.mod193.not, label %scalar.ph147.prol.loopexit, label %scalar.ph147.prol

scalar.ph147.prol:                                ; preds = %scalar.ph147.preheader
  %119 = shl nuw nsw i64 %indvars.iv123.ph, 1
  %120 = and i64 %119, 4294967292
  %121 = getelementptr inbounds float, ptr %2, i64 %120
  %122 = getelementptr inbounds double, ptr %90, i64 %120
  %123 = load <2 x float>, ptr %121, align 4, !tbaa !5
  %124 = fpext <2 x float> %123 to <2 x double>
  store <2 x double> %124, ptr %122, align 8, !tbaa !37
  %indvars.iv.next124.prol = or disjoint i64 %indvars.iv123.ph, 1
  br label %scalar.ph147.prol.loopexit

scalar.ph147.prol.loopexit:                       ; preds = %scalar.ph147.prol, %scalar.ph147.preheader
  %indvars.iv123.unr = phi i64 [ %indvars.iv123.ph, %scalar.ph147.preheader ], [ %indvars.iv.next124.prol, %scalar.ph147.prol ]
  %125 = add nsw i64 %wide.trip.count127, -1
  %126 = icmp eq i64 %indvars.iv123.ph, %125
  br i1 %126, label %.loopexit180, label %scalar.ph147

scalar.ph147:                                     ; preds = %scalar.ph147.prol.loopexit, %scalar.ph147
  %indvars.iv123 = phi i64 [ %indvars.iv.next124.1, %scalar.ph147 ], [ %indvars.iv123.unr, %scalar.ph147.prol.loopexit ]
  %127 = shl i64 %indvars.iv123, 1
  %128 = and i64 %127, 4294967294
  %129 = getelementptr inbounds float, ptr %2, i64 %128
  %130 = getelementptr inbounds double, ptr %90, i64 %128
  %131 = load <2 x float>, ptr %129, align 4, !tbaa !5
  %132 = fpext <2 x float> %131 to <2 x double>
  store <2 x double> %132, ptr %130, align 8, !tbaa !37
  %indvars.iv.next124 = shl i64 %indvars.iv123, 1
  %133 = add i64 %indvars.iv.next124, 2
  %134 = and i64 %133, 4294967294
  %135 = getelementptr inbounds float, ptr %2, i64 %134
  %136 = getelementptr inbounds double, ptr %90, i64 %134
  %137 = load <2 x float>, ptr %135, align 4, !tbaa !5
  %138 = fpext <2 x float> %137 to <2 x double>
  store <2 x double> %138, ptr %136, align 8, !tbaa !37
  %indvars.iv.next124.1 = add nuw nsw i64 %indvars.iv123, 2
  %exitcond128.not.1 = icmp eq i64 %indvars.iv.next124.1, %wide.trip.count127
  br i1 %exitcond128.not.1, label %.loopexit180, label %scalar.ph147, !llvm.loop !39

.loopexit180:                                     ; preds = %scalar.ph147.prol.loopexit, %scalar.ph147, %middle.block146
  %139 = getelementptr inbounds i8, ptr %65, i64 24
  store i32 20, ptr %139, align 8, !tbaa !40
  %140 = getelementptr inbounds i8, ptr %65, i64 20
  %141 = mul i32 %70, 20
  %142 = uitofp i32 %141 to double
  %143 = fdiv double 5.000000e-01, %142
  %min.iters.check161 = icmp ult i32 %1, 4
  br i1 %min.iters.check161, label %scalar.ph160.preheader, label %vector.ph162

vector.ph162:                                     ; preds = %.loopexit180
  %n.vec164 = and i64 %wide.trip.count127, 4294967292
  %broadcast.splatinsert = insertelement <2 x double> poison, double %143, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body166

vector.body166:                                   ; preds = %vector.body166, %vector.ph162
  %index167 = phi i64 [ 0, %vector.ph162 ], [ %index.next176, %vector.body166 ]
  %vec.phi168 = phi <2 x i32> [ zeroinitializer, %vector.ph162 ], [ %159, %vector.body166 ]
  %vec.phi169 = phi <2 x i32> [ zeroinitializer, %vector.ph162 ], [ %160, %vector.body166 ]
  %144 = shl i64 %index167, 1
  %145 = shl i64 %index167, 1
  %146 = and i64 %144, 4294967288
  %147 = and i64 %145, 4294967288
  %148 = or disjoint i64 %147, 4
  %149 = getelementptr inbounds double, ptr %90, i64 %146
  %150 = getelementptr inbounds double, ptr %90, i64 %148
  %wide.vec170 = load <4 x double>, ptr %149, align 8, !tbaa !37
  %wide.vec171 = load <4 x double>, ptr %150, align 8, !tbaa !37
  %strided.vec172 = shufflevector <4 x double> %wide.vec170, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec173 = shufflevector <4 x double> %wide.vec171, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec174 = shufflevector <4 x double> %wide.vec170, <4 x double> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec175 = shufflevector <4 x double> %wide.vec171, <4 x double> poison, <2 x i32> <i32 1, i32 3>
  %151 = fsub <2 x double> %strided.vec174, %strided.vec172
  %152 = fsub <2 x double> %strided.vec175, %strided.vec173
  %153 = fdiv <2 x double> %151, %broadcast.splat
  %154 = fdiv <2 x double> %152, %broadcast.splat
  %155 = fadd <2 x double> %153, <double 1.000000e+00, double 1.000000e+00>
  %156 = fadd <2 x double> %154, <double 1.000000e+00, double 1.000000e+00>
  %157 = fptoui <2 x double> %155 to <2 x i32>
  %158 = fptoui <2 x double> %156 to <2 x i32>
  %159 = add <2 x i32> %vec.phi168, %157
  %160 = add <2 x i32> %vec.phi169, %158
  %index.next176 = add nuw i64 %index167, 4
  %161 = icmp eq i64 %index.next176, %n.vec164
  br i1 %161, label %middle.block159, label %vector.body166, !llvm.loop !41

middle.block159:                                  ; preds = %vector.body166
  %bin.rdx177 = add <2 x i32> %160, %159
  %162 = tail call i32 @llvm.vector.reduce.add.v2i32(<2 x i32> %bin.rdx177)
  %cmp.n178 = icmp eq i64 %n.vec164, %wide.trip.count127
  br i1 %cmp.n178, label %.loopexit, label %scalar.ph160.preheader

scalar.ph160.preheader:                           ; preds = %middle.block159, %.loopexit180
  %indvars.iv129.ph = phi i64 [ 0, %.loopexit180 ], [ %n.vec164, %middle.block159 ]
  %.ph = phi i32 [ 0, %.loopexit180 ], [ %162, %middle.block159 ]
  %xtraiter194 = and i64 %wide.trip.count127, 1
  %lcmp.mod195.not = icmp eq i64 %xtraiter194, 0
  br i1 %lcmp.mod195.not, label %scalar.ph160.prol.loopexit, label %scalar.ph160.prol

scalar.ph160.prol:                                ; preds = %scalar.ph160.preheader
  %163 = trunc nuw i64 %indvars.iv129.ph to i32
  %164 = shl i32 %163, 1
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds double, ptr %90, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !37
  %168 = or disjoint i32 %164, 1
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds double, ptr %90, i64 %169
  %171 = load double, ptr %170, align 8, !tbaa !37
  %172 = fsub double %171, %167
  %173 = fdiv double %172, %143
  %174 = fadd double %173, 1.000000e+00
  %175 = fptoui double %174 to i32
  %176 = add i32 %.ph, %175
  %indvars.iv.next130.prol = or disjoint i64 %indvars.iv129.ph, 1
  br label %scalar.ph160.prol.loopexit

scalar.ph160.prol.loopexit:                       ; preds = %scalar.ph160.prol, %scalar.ph160.preheader
  %.lcssa182.unr = phi i32 [ poison, %scalar.ph160.preheader ], [ %176, %scalar.ph160.prol ]
  %indvars.iv129.unr = phi i64 [ %indvars.iv129.ph, %scalar.ph160.preheader ], [ %indvars.iv.next130.prol, %scalar.ph160.prol ]
  %.unr = phi i32 [ %.ph, %scalar.ph160.preheader ], [ %176, %scalar.ph160.prol ]
  %177 = add nsw i64 %wide.trip.count127, -1
  %178 = icmp eq i64 %indvars.iv129.ph, %177
  br i1 %178, label %.loopexit, label %scalar.ph160

scalar.ph160:                                     ; preds = %scalar.ph160.prol.loopexit, %scalar.ph160
  %indvars.iv129 = phi i64 [ %indvars.iv.next130.1, %scalar.ph160 ], [ %indvars.iv129.unr, %scalar.ph160.prol.loopexit ]
  %179 = phi i32 [ %208, %scalar.ph160 ], [ %.unr, %scalar.ph160.prol.loopexit ]
  %180 = trunc nuw i64 %indvars.iv129 to i32
  %181 = shl i32 %180, 1
  %182 = zext i32 %181 to i64
  %183 = getelementptr inbounds double, ptr %90, i64 %182
  %184 = load double, ptr %183, align 8, !tbaa !37
  %185 = or disjoint i32 %181, 1
  %186 = zext i32 %185 to i64
  %187 = getelementptr inbounds double, ptr %90, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !37
  %189 = fsub double %188, %184
  %190 = fdiv double %189, %143
  %191 = fadd double %190, 1.000000e+00
  %192 = fptoui double %191 to i32
  %193 = add i32 %179, %192
  %194 = trunc i64 %indvars.iv129 to i32
  %195 = shl i32 %194, 1
  %196 = add i32 %195, 2
  %197 = zext i32 %196 to i64
  %198 = getelementptr inbounds double, ptr %90, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !37
  %200 = or disjoint i32 %196, 1
  %201 = zext i32 %200 to i64
  %202 = getelementptr inbounds double, ptr %90, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !37
  %204 = fsub double %203, %199
  %205 = fdiv double %204, %143
  %206 = fadd double %205, 1.000000e+00
  %207 = fptoui double %206 to i32
  %208 = add i32 %193, %207
  %indvars.iv.next130.1 = add nuw nsw i64 %indvars.iv129, 2
  %exitcond133.not.1 = icmp eq i64 %indvars.iv.next130.1, %wide.trip.count127
  br i1 %exitcond133.not.1, label %.loopexit, label %scalar.ph160, !llvm.loop !42

.loopexit:                                        ; preds = %scalar.ph160.prol.loopexit, %scalar.ph160, %middle.block159
  %.lcssa = phi i32 [ %162, %middle.block159 ], [ %.lcssa182.unr, %scalar.ph160.prol.loopexit ], [ %208, %scalar.ph160 ]
  store i32 %.lcssa, ptr %140, align 4, !tbaa !43
  %209 = zext i32 %.lcssa to i64
  %210 = shl nuw nsw i64 %209, 3
  %211 = tail call noalias ptr @malloc(i64 noundef %210) #6
  %212 = getelementptr inbounds i8, ptr %65, i64 64
  store ptr %211, ptr %212, align 8, !tbaa !44
  %213 = tail call noalias ptr @malloc(i64 noundef %210) #6
  %214 = getelementptr inbounds i8, ptr %65, i64 72
  store ptr %213, ptr %214, align 8, !tbaa !45
  %215 = tail call noalias ptr @malloc(i64 noundef %210) #6
  %216 = getelementptr inbounds i8, ptr %65, i64 80
  store ptr %215, ptr %216, align 8, !tbaa !46
  %217 = tail call noalias ptr @malloc(i64 noundef %210) #6
  %218 = getelementptr inbounds i8, ptr %65, i64 88
  store ptr %217, ptr %218, align 8, !tbaa !47
  %219 = tail call i32 @firdespm_init_grid(ptr noundef nonnull %65)
  br label %220

220:                                              ; preds = %63, %.loopexit, %14, %8
  %.1 = phi ptr [ %9, %8 ], [ %15, %14 ], [ %65, %.loopexit ], [ %64, %63 ]
  ret ptr %.1
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v2i32(<2 x i32>) #3

attributes #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 = { 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 #2 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12, !14, !13}
!17 = !{!18, !19, i64 0}
!18 = !{!"firdespm_s", !19, i64 0, !19, i64 4, !19, i64 8, !19, i64 12, !19, i64 16, !19, i64 20, !19, i64 24, !19, i64 28, !20, i64 32, !20, i64 40, !20, i64 48, !20, i64 56, !20, i64 64, !20, i64 72, !20, i64 80, !20, i64 88, !20, i64 96, !20, i64 104, !20, i64 112, !21, i64 120, !20, i64 128, !19, i64 136, !20, i64 144, !20, i64 152}
!19 = !{!"int", !7, i64 0}
!20 = !{!"any pointer", !7, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = !{!18, !19, i64 4}
!23 = !{!18, !19, i64 8}
!24 = !{!18, !19, i64 12}
!25 = !{!18, !19, i64 28}
!26 = !{!18, !20, i64 144}
!27 = !{!18, !20, i64 152}
!28 = !{!18, !20, i64 128}
!29 = !{!18, !20, i64 96}
!30 = !{!18, !20, i64 104}
!31 = !{!18, !20, i64 112}
!32 = !{!18, !19, i64 16}
!33 = !{!18, !20, i64 32}
!34 = !{!18, !20, i64 40}
!35 = !{!18, !20, i64 48}
!36 = !{!18, !20, i64 56}
!37 = !{!21, !21, i64 0}
!38 = distinct !{!38, !12, !13, !14}
!39 = distinct !{!39, !12, !13}
!40 = !{!18, !19, i64 24}
!41 = distinct !{!41, !12, !13, !14}
!42 = distinct !{!42, !12, !13}
!43 = !{!18, !19, i64 20}
!44 = !{!18, !20, i64 64}
!45 = !{!18, !20, i64 72}
!46 = !{!18, !20, i64 80}
!47 = !{!18, !20, i64 88}


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