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

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

@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [72 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @dds_cccf_create(i32 noundef %0, float noundef %1, float noundef %2, float noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store float %1, ptr %7, align 4, !tbaa !9
  store float %2, ptr %8, align 4, !tbaa !9
  store float %3, ptr %9, align 4, !tbaa !9
  %14 = load i32, ptr %6, align 4, !tbaa !5
  %15 = icmp ugt i32 %14, 20
  br i1 %15, label %16, label %19

16:                                               ; preds = %4
  %17 = load i32, ptr %6, align 4, !tbaa !5
  %18 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.1, i32 noundef 74, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef %17)
  store ptr %18, ptr %5, align 8
  br label %327

19:                                               ; preds = %4
  %20 = load float, ptr %7, align 4, !tbaa !9
  %21 = fcmp ogt float %20, 5.000000e-01
  br i1 %21, label %25, label %22

22:                                               ; preds = %19
  %23 = load float, ptr %7, align 4, !tbaa !9
  %24 = fcmp olt float %23, -5.000000e-01
  br i1 %24, label %25, label %29

25:                                               ; preds = %22, %19
  %26 = load float, ptr %7, align 4, !tbaa !9
  %27 = fpext float %26 to double
  %28 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.1, i32 noundef 76, ptr noundef @.str.4, ptr noundef @.str.3, double noundef %27)
  store ptr %28, ptr %5, align 8
  br label %327

29:                                               ; preds = %22
  %30 = load float, ptr %8, align 4, !tbaa !9
  %31 = fcmp ole float %30, 0.000000e+00
  br i1 %31, label %35, label %32

32:                                               ; preds = %29
  %33 = load float, ptr %8, align 4, !tbaa !9
  %34 = fcmp oge float %33, 1.000000e+00
  br i1 %34, label %35, label %39

35:                                               ; preds = %32, %29
  %36 = load float, ptr %8, align 4, !tbaa !9
  %37 = fpext float %36 to double
  %38 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.1, i32 noundef 78, ptr noundef @.str.5, ptr noundef @.str.3, double noundef %37)
  store ptr %38, ptr %5, align 8
  br label %327

39:                                               ; preds = %32
  %40 = load float, ptr %9, align 4, !tbaa !9
  %41 = fcmp olt float %40, 0.000000e+00
  br i1 %41, label %42, label %46

42:                                               ; preds = %39
  %43 = load float, ptr %9, align 4, !tbaa !9
  %44 = fpext float %43 to double
  %45 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.1, i32 noundef 80, ptr noundef @.str.6, ptr noundef @.str.3, double noundef %44)
  store ptr %45, ptr %5, align 8
  br label %327

46:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %47 = call noalias ptr @malloc(i64 noundef 112) #6
  store ptr %47, ptr %10, align 8, !tbaa !11
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = load ptr, ptr %10, align 8, !tbaa !11
  %50 = getelementptr inbounds %struct.dds_cccf_s, ptr %49, i32 0, i32 0
  store i32 %48, ptr %50, align 8, !tbaa !13
  %51 = load ptr, ptr %10, align 8, !tbaa !11
  %52 = getelementptr inbounds %struct.dds_cccf_s, ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !13
  %54 = shl i32 1, %53
  %55 = load ptr, ptr %10, align 8, !tbaa !11
  %56 = getelementptr inbounds %struct.dds_cccf_s, ptr %55, i32 0, i32 4
  store i32 %54, ptr %56, align 8, !tbaa !15
  %57 = load float, ptr %7, align 4, !tbaa !9
  %58 = load ptr, ptr %10, align 8, !tbaa !11
  %59 = getelementptr inbounds %struct.dds_cccf_s, ptr %58, i32 0, i32 1
  store float %57, ptr %59, align 4, !tbaa !16
  %60 = load float, ptr %8, align 4, !tbaa !9
  %61 = load ptr, ptr %10, align 8, !tbaa !11
  %62 = getelementptr inbounds %struct.dds_cccf_s, ptr %61, i32 0, i32 2
  store float %60, ptr %62, align 8, !tbaa !17
  %63 = load float, ptr %9, align 4, !tbaa !9
  %64 = load ptr, ptr %10, align 8, !tbaa !11
  %65 = getelementptr inbounds %struct.dds_cccf_s, ptr %64, i32 0, i32 3
  store float %63, ptr %65, align 4, !tbaa !18
  %66 = load ptr, ptr %10, align 8, !tbaa !11
  %67 = getelementptr inbounds %struct.dds_cccf_s, ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !13
  %69 = zext i32 %68 to i64
  %70 = mul i64 %69, 4
  %71 = call noalias ptr @malloc(i64 noundef %70) #6
  %72 = load ptr, ptr %10, align 8, !tbaa !11
  %73 = getelementptr inbounds %struct.dds_cccf_s, ptr %72, i32 0, i32 6
  store ptr %71, ptr %73, align 8, !tbaa !19
  %74 = load ptr, ptr %10, align 8, !tbaa !11
  %75 = getelementptr inbounds %struct.dds_cccf_s, ptr %74, i32 0, i32 0
  %76 = load i32, ptr %75, align 8, !tbaa !13
  %77 = zext i32 %76 to i64
  %78 = mul i64 %77, 4
  %79 = call noalias ptr @malloc(i64 noundef %78) #6
  %80 = load ptr, ptr %10, align 8, !tbaa !11
  %81 = getelementptr inbounds %struct.dds_cccf_s, ptr %80, i32 0, i32 7
  store ptr %79, ptr %81, align 8, !tbaa !20
  %82 = load ptr, ptr %10, align 8, !tbaa !11
  %83 = getelementptr inbounds %struct.dds_cccf_s, ptr %82, i32 0, i32 0
  %84 = load i32, ptr %83, align 8, !tbaa !13
  %85 = zext i32 %84 to i64
  %86 = mul i64 %85, 4
  %87 = call noalias ptr @malloc(i64 noundef %86) #6
  %88 = load ptr, ptr %10, align 8, !tbaa !11
  %89 = getelementptr inbounds %struct.dds_cccf_s, ptr %88, i32 0, i32 8
  store ptr %87, ptr %89, align 8, !tbaa !21
  %90 = load ptr, ptr %10, align 8, !tbaa !11
  %91 = getelementptr inbounds %struct.dds_cccf_s, ptr %90, i32 0, i32 0
  %92 = load i32, ptr %91, align 8, !tbaa !13
  %93 = zext i32 %92 to i64
  %94 = mul i64 %93, 4
  %95 = call noalias ptr @malloc(i64 noundef %94) #6
  %96 = load ptr, ptr %10, align 8, !tbaa !11
  %97 = getelementptr inbounds %struct.dds_cccf_s, ptr %96, i32 0, i32 9
  store ptr %95, ptr %97, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %98 = load ptr, ptr %10, align 8, !tbaa !11
  %99 = getelementptr inbounds %struct.dds_cccf_s, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 8, !tbaa !13
  %101 = shl i32 1, %100
  %102 = sitofp i32 %101 to double
  %103 = fmul double 5.000000e-01, %102
  %104 = load ptr, ptr %10, align 8, !tbaa !11
  %105 = getelementptr inbounds %struct.dds_cccf_s, ptr %104, i32 0, i32 1
  %106 = load float, ptr %105, align 4, !tbaa !16
  %107 = fpext float %106 to double
  %108 = fmul double %103, %107
  %109 = fptrunc double %108 to float
  store float %109, ptr %12, align 4, !tbaa !9
  %110 = load ptr, ptr %10, align 8, !tbaa !11
  %111 = getelementptr inbounds %struct.dds_cccf_s, ptr %110, i32 0, i32 2
  %112 = load float, ptr %111, align 8, !tbaa !17
  store float %112, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %225, %46
  %114 = load i32, ptr %11, align 4, !tbaa !5
  %115 = load ptr, ptr %10, align 8, !tbaa !11
  %116 = getelementptr inbounds %struct.dds_cccf_s, ptr %115, i32 0, i32 0
  %117 = load i32, ptr %116, align 8, !tbaa !13
  %118 = icmp ult i32 %114, %117
  br i1 %118, label %119, label %228

119:                                              ; preds = %113
  %120 = load float, ptr %12, align 4, !tbaa !9
  %121 = load ptr, ptr %10, align 8, !tbaa !11
  %122 = getelementptr inbounds %struct.dds_cccf_s, ptr %121, i32 0, i32 6
  %123 = load ptr, ptr %122, align 8, !tbaa !19
  %124 = load i32, ptr %11, align 4, !tbaa !5
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds float, ptr %123, i64 %125
  store float %120, ptr %126, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %136, %119
  %128 = load ptr, ptr %10, align 8, !tbaa !11
  %129 = getelementptr inbounds %struct.dds_cccf_s, ptr %128, i32 0, i32 6
  %130 = load ptr, ptr %129, align 8, !tbaa !19
  %131 = load i32, ptr %11, align 4, !tbaa !5
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds float, ptr %130, i64 %132
  %134 = load float, ptr %133, align 4, !tbaa !9
  %135 = fcmp ogt float %134, 5.000000e-01
  br i1 %135, label %136, label %145

136:                                              ; preds = %127
  %137 = load ptr, ptr %10, align 8, !tbaa !11
  %138 = getelementptr inbounds %struct.dds_cccf_s, ptr %137, i32 0, i32 6
  %139 = load ptr, ptr %138, align 8, !tbaa !19
  %140 = load i32, ptr %11, align 4, !tbaa !5
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds float, ptr %139, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !9
  %144 = fsub float %143, 1.000000e+00
  store float %144, ptr %142, align 4, !tbaa !9
  br label %127, !llvm.loop !23

145:                                              ; preds = %127
  br label %146

146:                                              ; preds = %155, %145
  %147 = load ptr, ptr %10, align 8, !tbaa !11
  %148 = getelementptr inbounds %struct.dds_cccf_s, ptr %147, i32 0, i32 6
  %149 = load ptr, ptr %148, align 8, !tbaa !19
  %150 = load i32, ptr %11, align 4, !tbaa !5
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds float, ptr %149, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !9
  %154 = fcmp olt float %153, -5.000000e-01
  br i1 %154, label %155, label %164

155:                                              ; preds = %146
  %156 = load ptr, ptr %10, align 8, !tbaa !11
  %157 = getelementptr inbounds %struct.dds_cccf_s, ptr %156, i32 0, i32 6
  %158 = load ptr, ptr %157, align 8, !tbaa !19
  %159 = load i32, ptr %11, align 4, !tbaa !5
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds float, ptr %158, i64 %160
  %162 = load float, ptr %161, align 4, !tbaa !9
  %163 = fadd float %162, 1.000000e+00
  store float %163, ptr %161, align 4, !tbaa !9
  br label %146, !llvm.loop !25

164:                                              ; preds = %146
  %165 = load float, ptr %13, align 4, !tbaa !9
  %166 = fsub float 1.000000e+00, %165
  %167 = fmul float 5.000000e-01, %166
  %168 = load ptr, ptr %10, align 8, !tbaa !11
  %169 = getelementptr inbounds %struct.dds_cccf_s, ptr %168, i32 0, i32 7
  %170 = load ptr, ptr %169, align 8, !tbaa !20
  %171 = load i32, ptr %11, align 4, !tbaa !5
  %172 = zext i32 %171 to i64
  %173 = getelementptr inbounds float, ptr %170, i64 %172
  store float %167, ptr %173, align 4, !tbaa !9
  %174 = load ptr, ptr %10, align 8, !tbaa !11
  %175 = getelementptr inbounds %struct.dds_cccf_s, ptr %174, i32 0, i32 7
  %176 = load ptr, ptr %175, align 8, !tbaa !20
  %177 = load i32, ptr %11, align 4, !tbaa !5
  %178 = zext i32 %177 to i64
  %179 = getelementptr inbounds float, ptr %176, i64 %178
  %180 = load float, ptr %179, align 4, !tbaa !9
  %181 = fpext float %180 to double
  %182 = fcmp ogt double %181, 4.500000e-01
  br i1 %182, label %183, label %190

183:                                              ; preds = %164
  %184 = load ptr, ptr %10, align 8, !tbaa !11
  %185 = getelementptr inbounds %struct.dds_cccf_s, ptr %184, i32 0, i32 7
  %186 = load ptr, ptr %185, align 8, !tbaa !20
  %187 = load i32, ptr %11, align 4, !tbaa !5
  %188 = zext i32 %187 to i64
  %189 = getelementptr inbounds float, ptr %186, i64 %188
  store float 0x3FDCCCCCC0000000, ptr %189, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %183, %164
  %191 = load ptr, ptr %10, align 8, !tbaa !11
  %192 = getelementptr inbounds %struct.dds_cccf_s, ptr %191, i32 0, i32 3
  %193 = load float, ptr %192, align 4, !tbaa !18
  %194 = load ptr, ptr %10, align 8, !tbaa !11
  %195 = getelementptr inbounds %struct.dds_cccf_s, ptr %194, i32 0, i32 8
  %196 = load ptr, ptr %195, align 8, !tbaa !21
  %197 = load i32, ptr %11, align 4, !tbaa !5
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds float, ptr %196, i64 %198
  store float %193, ptr %199, align 4, !tbaa !9
  %200 = load ptr, ptr %10, align 8, !tbaa !11
  %201 = getelementptr inbounds %struct.dds_cccf_s, ptr %200, i32 0, i32 7
  %202 = load ptr, ptr %201, align 8, !tbaa !20
  %203 = load i32, ptr %11, align 4, !tbaa !5
  %204 = zext i32 %203 to i64
  %205 = getelementptr inbounds float, ptr %202, i64 %204
  %206 = load float, ptr %205, align 4, !tbaa !9
  %207 = load ptr, ptr %10, align 8, !tbaa !11
  %208 = getelementptr inbounds %struct.dds_cccf_s, ptr %207, i32 0, i32 8
  %209 = load ptr, ptr %208, align 8, !tbaa !21
  %210 = load i32, ptr %11, align 4, !tbaa !5
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds float, ptr %209, i64 %211
  %213 = load float, ptr %212, align 4, !tbaa !9
  %214 = call i32 @estimate_req_filter_len(float noundef %206, float noundef %213)
  %215 = load ptr, ptr %10, align 8, !tbaa !11
  %216 = getelementptr inbounds %struct.dds_cccf_s, ptr %215, i32 0, i32 9
  %217 = load ptr, ptr %216, align 8, !tbaa !22
  %218 = load i32, ptr %11, align 4, !tbaa !5
  %219 = zext i32 %218 to i64
  %220 = getelementptr inbounds i32, ptr %217, i64 %219
  store i32 %214, ptr %220, align 4, !tbaa !5
  %221 = load float, ptr %12, align 4, !tbaa !9
  %222 = fmul float %221, 5.000000e-01
  store float %222, ptr %12, align 4, !tbaa !9
  %223 = load float, ptr %13, align 4, !tbaa !9
  %224 = fmul float %223, 5.000000e-01
  store float %224, ptr %13, align 4, !tbaa !9
  br label %225

225:                                              ; preds = %190
  %226 = load i32, ptr %11, align 4, !tbaa !5
  %227 = add i32 %226, 1
  store i32 %227, ptr %11, align 4, !tbaa !5
  br label %113, !llvm.loop !26

228:                                              ; preds = %113
  %229 = load ptr, ptr %10, align 8, !tbaa !11
  %230 = getelementptr inbounds %struct.dds_cccf_s, ptr %229, i32 0, i32 4
  %231 = load i32, ptr %230, align 8, !tbaa !15
  %232 = load ptr, ptr %10, align 8, !tbaa !11
  %233 = getelementptr inbounds %struct.dds_cccf_s, ptr %232, i32 0, i32 10
  store i32 %231, ptr %233, align 8, !tbaa !27
  %234 = load ptr, ptr %10, align 8, !tbaa !11
  %235 = getelementptr inbounds %struct.dds_cccf_s, ptr %234, i32 0, i32 10
  %236 = load i32, ptr %235, align 8, !tbaa !27
  %237 = zext i32 %236 to i64
  %238 = mul i64 %237, 8
  %239 = call noalias ptr @malloc(i64 noundef %238) #6
  %240 = load ptr, ptr %10, align 8, !tbaa !11
  %241 = getelementptr inbounds %struct.dds_cccf_s, ptr %240, i32 0, i32 11
  store ptr %239, ptr %241, align 8, !tbaa !28
  %242 = load ptr, ptr %10, align 8, !tbaa !11
  %243 = getelementptr inbounds %struct.dds_cccf_s, ptr %242, i32 0, i32 10
  %244 = load i32, ptr %243, align 8, !tbaa !27
  %245 = zext i32 %244 to i64
  %246 = mul i64 %245, 8
  %247 = call noalias ptr @malloc(i64 noundef %246) #6
  %248 = load ptr, ptr %10, align 8, !tbaa !11
  %249 = getelementptr inbounds %struct.dds_cccf_s, ptr %248, i32 0, i32 12
  store ptr %247, ptr %249, align 8, !tbaa !29
  %250 = load ptr, ptr %10, align 8, !tbaa !11
  %251 = getelementptr inbounds %struct.dds_cccf_s, ptr %250, i32 0, i32 0
  %252 = load i32, ptr %251, align 8, !tbaa !13
  %253 = zext i32 %252 to i64
  %254 = mul i64 %253, 8
  %255 = call noalias ptr @malloc(i64 noundef %254) #6
  %256 = load ptr, ptr %10, align 8, !tbaa !11
  %257 = getelementptr inbounds %struct.dds_cccf_s, ptr %256, i32 0, i32 5
  store ptr %255, ptr %257, align 8, !tbaa !30
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %258

258:                                              ; preds = %293, %228
  %259 = load i32, ptr %11, align 4, !tbaa !5
  %260 = load ptr, ptr %10, align 8, !tbaa !11
  %261 = getelementptr inbounds %struct.dds_cccf_s, ptr %260, i32 0, i32 0
  %262 = load i32, ptr %261, align 8, !tbaa !13
  %263 = icmp ult i32 %259, %262
  br i1 %263, label %264, label %296

264:                                              ; preds = %258
  %265 = load ptr, ptr %10, align 8, !tbaa !11
  %266 = getelementptr inbounds %struct.dds_cccf_s, ptr %265, i32 0, i32 9
  %267 = load ptr, ptr %266, align 8, !tbaa !22
  %268 = load i32, ptr %11, align 4, !tbaa !5
  %269 = zext i32 %268 to i64
  %270 = getelementptr inbounds i32, ptr %267, i64 %269
  %271 = load i32, ptr %270, align 4, !tbaa !5
  %272 = load ptr, ptr %10, align 8, !tbaa !11
  %273 = getelementptr inbounds %struct.dds_cccf_s, ptr %272, i32 0, i32 6
  %274 = load ptr, ptr %273, align 8, !tbaa !19
  %275 = load i32, ptr %11, align 4, !tbaa !5
  %276 = zext i32 %275 to i64
  %277 = getelementptr inbounds float, ptr %274, i64 %276
  %278 = load float, ptr %277, align 4, !tbaa !9
  %279 = load ptr, ptr %10, align 8, !tbaa !11
  %280 = getelementptr inbounds %struct.dds_cccf_s, ptr %279, i32 0, i32 8
  %281 = load ptr, ptr %280, align 8, !tbaa !21
  %282 = load i32, ptr %11, align 4, !tbaa !5
  %283 = zext i32 %282 to i64
  %284 = getelementptr inbounds float, ptr %281, i64 %283
  %285 = load float, ptr %284, align 4, !tbaa !9
  %286 = call ptr @resamp2_cccf_create(i32 noundef %271, float noundef %278, float noundef %285)
  %287 = load ptr, ptr %10, align 8, !tbaa !11
  %288 = getelementptr inbounds %struct.dds_cccf_s, ptr %287, i32 0, i32 5
  %289 = load ptr, ptr %288, align 8, !tbaa !30
  %290 = load i32, ptr %11, align 4, !tbaa !5
  %291 = zext i32 %290 to i64
  %292 = getelementptr inbounds ptr, ptr %289, i64 %291
  store ptr %286, ptr %292, align 8, !tbaa !11
  br label %293

293:                                              ; preds = %264
  %294 = load i32, ptr %11, align 4, !tbaa !5
  %295 = add i32 %294, 1
  store i32 %295, ptr %11, align 4, !tbaa !5
  br label %258, !llvm.loop !31

296:                                              ; preds = %258
  %297 = load ptr, ptr %10, align 8, !tbaa !11
  %298 = getelementptr inbounds %struct.dds_cccf_s, ptr %297, i32 0, i32 4
  %299 = load i32, ptr %298, align 8, !tbaa !15
  %300 = uitofp i32 %299 to float
  %301 = fdiv float 1.000000e+00, %300
  %302 = load ptr, ptr %10, align 8, !tbaa !11
  %303 = getelementptr inbounds %struct.dds_cccf_s, ptr %302, i32 0, i32 14
  store float %301, ptr %303, align 8, !tbaa !32
  %304 = load ptr, ptr %10, align 8, !tbaa !11
  %305 = getelementptr inbounds %struct.dds_cccf_s, ptr %304, i32 0, i32 15
  %306 = getelementptr inbounds { float, float }, ptr %305, i32 0, i32 0
  %307 = getelementptr inbounds { float, float }, ptr %305, i32 0, i32 1
  store float 1.000000e+00, ptr %306, align 4
  store float 0.000000e+00, ptr %307, align 4
  %308 = call ptr @nco_crcf_create(i32 noundef 1)
  %309 = load ptr, ptr %10, align 8, !tbaa !11
  %310 = getelementptr inbounds %struct.dds_cccf_s, ptr %309, i32 0, i32 13
  store ptr %308, ptr %310, align 8, !tbaa !33
  %311 = load ptr, ptr %10, align 8, !tbaa !11
  %312 = getelementptr inbounds %struct.dds_cccf_s, ptr %311, i32 0, i32 13
  %313 = load ptr, ptr %312, align 8, !tbaa !33
  %314 = load ptr, ptr %10, align 8, !tbaa !11
  %315 = getelementptr inbounds %struct.dds_cccf_s, ptr %314, i32 0, i32 4
  %316 = load i32, ptr %315, align 8, !tbaa !15
  %317 = uitofp i32 %316 to double
  %318 = fmul double 0x401921FB54442D18, %317
  %319 = load ptr, ptr %10, align 8, !tbaa !11
  %320 = getelementptr inbounds %struct.dds_cccf_s, ptr %319, i32 0, i32 1
  %321 = load float, ptr %320, align 4, !tbaa !16
  %322 = fpext float %321 to double
  %323 = fmul double %318, %322
  %324 = fptrunc double %323 to float
  %325 = call i32 @nco_crcf_set_frequency(ptr noundef %313, float noundef %324)
  %326 = load ptr, ptr %10, align 8, !tbaa !11
  store ptr %326, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %327

327:                                              ; preds = %296, %42, %35, %25, %16
  %328 = load ptr, ptr %5, align 8
  ret ptr %328
}

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

declare i32 @estimate_req_filter_len(float noundef, float noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @resamp2_cccf_create(i32 noundef, float noundef, float noundef) #4

declare ptr @nco_crcf_create(i32 noundef) #3

declare i32 @nco_crcf_set_frequency(ptr noundef, float noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"dds_cccf_s", !6, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !6, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !10, i64 96, !7, i64 100}
!15 = !{!14, !6, i64 16}
!16 = !{!14, !10, i64 4}
!17 = !{!14, !10, i64 8}
!18 = !{!14, !10, i64 12}
!19 = !{!14, !12, i64 32}
!20 = !{!14, !12, i64 40}
!21 = !{!14, !12, i64 48}
!22 = !{!14, !12, i64 56}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}
!27 = !{!14, !6, i64 64}
!28 = !{!14, !12, i64 72}
!29 = !{!14, !12, i64 80}
!30 = !{!14, !12, i64 24}
!31 = distinct !{!31, !24}
!32 = !{!14, !10, i64 96}
!33 = !{!14, !12, 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.1 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [72 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local ptr @dds_cccf_create(i32 noundef %0, float noundef %1, float noundef %2, float noundef %3) local_unnamed_addr #1 {
  %5 = icmp ugt i32 %0, 20
  br i1 %5, label %6, label %8

6:                                                ; preds = %4
  %7 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.1, i32 noundef 74, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef %0) #5
  br label %93

8:                                                ; preds = %4
  %9 = tail call float @llvm.fabs.f32(float %1)
  %or.cond = fcmp ogt float %9, 5.000000e-01
  br i1 %or.cond, label %10, label %13

10:                                               ; preds = %8
  %11 = fpext float %1 to double
  %12 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.1, i32 noundef 76, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, double noundef %11) #5
  br label %93

13:                                               ; preds = %8
  %14 = fcmp ole float %2, 0.000000e+00
  %15 = fcmp oge float %2, 1.000000e+00
  %or.cond3 = or i1 %14, %15
  br i1 %or.cond3, label %16, label %19

16:                                               ; preds = %13
  %17 = fpext float %2 to double
  %18 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.1, i32 noundef 78, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, double noundef %17) #5
  br label %93

19:                                               ; preds = %13
  %20 = fcmp olt float %3, 0.000000e+00
  br i1 %20, label %21, label %24

21:                                               ; preds = %19
  %22 = fpext float %3 to double
  %23 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.1, i32 noundef 80, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.3, double noundef %22) #5
  br label %93

24:                                               ; preds = %19
  %25 = tail call noalias dereferenceable_or_null(112) ptr @malloc(i64 noundef 112) #6
  store i32 %0, ptr %25, align 8, !tbaa !5
  %26 = shl nuw nsw i32 1, %0
  %27 = getelementptr inbounds i8, ptr %25, i64 16
  store i32 %26, ptr %27, align 8, !tbaa !12
  %28 = getelementptr inbounds i8, ptr %25, i64 4
  store float %1, ptr %28, align 4, !tbaa !13
  %29 = getelementptr inbounds i8, ptr %25, i64 8
  store float %2, ptr %29, align 8, !tbaa !14
  %30 = getelementptr inbounds i8, ptr %25, i64 12
  store float %3, ptr %30, align 4, !tbaa !15
  %31 = zext nneg i32 %0 to i64
  %32 = shl nuw nsw i64 %31, 2
  %33 = tail call noalias ptr @malloc(i64 noundef %32) #6
  %34 = getelementptr inbounds i8, ptr %25, i64 32
  store ptr %33, ptr %34, align 8, !tbaa !16
  %35 = tail call noalias ptr @malloc(i64 noundef %32) #6
  %36 = getelementptr inbounds i8, ptr %25, i64 40
  store ptr %35, ptr %36, align 8, !tbaa !17
  %37 = tail call noalias ptr @malloc(i64 noundef %32) #6
  %38 = getelementptr inbounds i8, ptr %25, i64 48
  store ptr %37, ptr %38, align 8, !tbaa !18
  %39 = tail call noalias ptr @malloc(i64 noundef %32) #6
  %40 = getelementptr inbounds i8, ptr %25, i64 56
  store ptr %39, ptr %40, align 8, !tbaa !19
  %41 = uitofp nneg i32 %26 to double
  %42 = fpext float %1 to double
  %.not = icmp eq i32 %0, 0
  br i1 %.not, label %._crit_edge112, label %.lr.ph111.preheader

.lr.ph111.preheader:                              ; preds = %24
  %43 = fmul double %41, 5.000000e-01
  %44 = fmul double %43, %42
  %45 = fptrunc double %44 to float
  br label %.lr.ph111

.lr.ph111:                                        ; preds = %.lr.ph111.preheader, %54
  %indvars.iv = phi i64 [ 0, %.lr.ph111.preheader ], [ %indvars.iv.next, %54 ]
  %.0109 = phi float [ %2, %.lr.ph111.preheader ], [ %64, %54 ]
  %.093108 = phi float [ %45, %.lr.ph111.preheader ], [ %63, %54 ]
  %46 = getelementptr inbounds float, ptr %33, i64 %indvars.iv
  %47 = fcmp ogt float %.093108, 5.000000e-01
  br i1 %47, label %.lr.ph, label %thread-pre-split

.lr.ph:                                           ; preds = %.lr.ph111, %.lr.ph
  %storemerge105 = phi float [ %48, %.lr.ph ], [ %.093108, %.lr.ph111 ]
  %48 = fadd float %storemerge105, -1.000000e+00
  %49 = fcmp ogt float %48, 5.000000e-01
  br i1 %49, label %.lr.ph, label %thread-pre-split, !llvm.loop !20

thread-pre-split:                                 ; preds = %.lr.ph, %.lr.ph111
  %storemerge.lcssa = phi float [ %.093108, %.lr.ph111 ], [ %48, %.lr.ph ]
  store float %storemerge.lcssa, ptr %46, align 4, !tbaa !22
  %50 = fcmp olt float %storemerge.lcssa, -5.000000e-01
  br i1 %50, label %.lr.ph106, label %54

.lr.ph106:                                        ; preds = %thread-pre-split, %.lr.ph106
  %51 = phi float [ %52, %.lr.ph106 ], [ %storemerge.lcssa, %thread-pre-split ]
  %52 = fadd float %51, 1.000000e+00
  %53 = fcmp olt float %52, -5.000000e-01
  br i1 %53, label %.lr.ph106, label %._crit_edge, !llvm.loop !23

._crit_edge:                                      ; preds = %.lr.ph106
  store float %52, ptr %46, align 4, !tbaa !22
  br label %54

54:                                               ; preds = %._crit_edge, %thread-pre-split
  %55 = fsub float 1.000000e+00, %.0109
  %56 = fmul float %55, 5.000000e-01
  %57 = getelementptr inbounds float, ptr %35, i64 %indvars.iv
  %58 = fpext float %56 to double
  %59 = fcmp ogt double %58, 4.500000e-01
  %storemerge104 = select i1 %59, float 0x3FDCCCCCC0000000, float %56
  store float %storemerge104, ptr %57, align 4, !tbaa !22
  %60 = getelementptr inbounds float, ptr %37, i64 %indvars.iv
  store float %3, ptr %60, align 4, !tbaa !22
  %61 = tail call i32 @estimate_req_filter_len(float noundef %storemerge104, float noundef %3) #5
  %62 = getelementptr inbounds i32, ptr %39, i64 %indvars.iv
  store i32 %61, ptr %62, align 4, !tbaa !24
  %63 = fmul float %.093108, 5.000000e-01
  %64 = fmul float %.0109, 5.000000e-01
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %31
  br i1 %exitcond.not, label %._crit_edge112, label %.lr.ph111, !llvm.loop !25

._crit_edge112:                                   ; preds = %54, %24
  %65 = getelementptr inbounds i8, ptr %25, i64 64
  store i32 %26, ptr %65, align 8, !tbaa !26
  %66 = zext nneg i32 %26 to i64
  %67 = shl nuw nsw i64 %66, 3
  %68 = tail call noalias ptr @malloc(i64 noundef %67) #6
  %69 = getelementptr inbounds i8, ptr %25, i64 72
  store ptr %68, ptr %69, align 8, !tbaa !27
  %70 = tail call noalias ptr @malloc(i64 noundef %67) #6
  %71 = getelementptr inbounds i8, ptr %25, i64 80
  store ptr %70, ptr %71, align 8, !tbaa !28
  %72 = shl nuw nsw i64 %31, 3
  %73 = tail call noalias ptr @malloc(i64 noundef %72) #6
  %74 = getelementptr inbounds i8, ptr %25, i64 24
  store ptr %73, ptr %74, align 8, !tbaa !29
  br i1 %.not, label %._crit_edge116, label %.lr.ph115

.lr.ph115:                                        ; preds = %._crit_edge112, %.lr.ph115
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %.lr.ph115 ], [ 0, %._crit_edge112 ]
  %75 = getelementptr inbounds i32, ptr %39, i64 %indvars.iv120
  %76 = load i32, ptr %75, align 4, !tbaa !24
  %77 = getelementptr inbounds float, ptr %33, i64 %indvars.iv120
  %78 = load float, ptr %77, align 4, !tbaa !22
  %79 = getelementptr inbounds float, ptr %37, i64 %indvars.iv120
  %80 = load float, ptr %79, align 4, !tbaa !22
  %81 = tail call ptr @resamp2_cccf_create(i32 noundef %76, float noundef %78, float noundef %80)
  %82 = getelementptr inbounds ptr, ptr %73, i64 %indvars.iv120
  store ptr %81, ptr %82, align 8, !tbaa !30
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %exitcond124.not = icmp eq i64 %indvars.iv.next121, %31
  br i1 %exitcond124.not, label %._crit_edge116, label %.lr.ph115, !llvm.loop !31

._crit_edge116:                                   ; preds = %.lr.ph115, %._crit_edge112
  %83 = uitofp nneg i32 %26 to float
  %84 = fdiv float 1.000000e+00, %83
  %85 = getelementptr inbounds i8, ptr %25, i64 96
  store float %84, ptr %85, align 8, !tbaa !32
  %86 = getelementptr inbounds i8, ptr %25, i64 100
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %86, align 4
  %87 = tail call ptr @nco_crcf_create(i32 noundef 1) #5
  %88 = getelementptr inbounds i8, ptr %25, i64 88
  store ptr %87, ptr %88, align 8, !tbaa !33
  %89 = fmul double %41, 0x401921FB54442D18
  %90 = fmul double %89, %42
  %91 = fptrunc double %90 to float
  %92 = tail call i32 @nco_crcf_set_frequency(ptr noundef %87, float noundef %91) #5
  br label %93

93:                                               ; preds = %._crit_edge116, %21, %16, %10, %6
  %.095 = phi ptr [ %7, %6 ], [ %12, %10 ], [ %18, %16 ], [ %23, %21 ], [ %25, %._crit_edge116 ]
  ret ptr %.095
}

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

declare i32 @estimate_req_filter_len(float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @resamp2_cccf_create(i32 noundef, float noundef, float noundef) local_unnamed_addr #3

declare ptr @nco_crcf_create(i32 noundef) local_unnamed_addr #2

declare i32 @nco_crcf_set_frequency(ptr noundef, float noundef) local_unnamed_addr #2

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

attributes #0 = { 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 #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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"="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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 0}
!6 = !{!"dds_cccf_s", !7, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !7, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !7, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !10, i64 96, !8, i64 100}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !10, i64 4}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !10, i64 12}
!16 = !{!6, !11, i64 32}
!17 = !{!6, !11, i64 40}
!18 = !{!6, !11, i64 48}
!19 = !{!6, !11, i64 56}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!10, !10, i64 0}
!23 = distinct !{!23, !21}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !21}
!26 = !{!6, !7, i64 64}
!27 = !{!6, !11, i64 72}
!28 = !{!6, !11, i64 80}
!29 = !{!6, !11, i64 24}
!30 = !{!11, !11, i64 0}
!31 = distinct !{!31, !21}
!32 = !{!6, !10, i64 96}
!33 = !{!6, !11, i64 88}


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