; LLVM IR from jgaeddert/liquid-dsp :: src/modem/src (modemcf)

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

@.str.69 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [44 x i8], align 1

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

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

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

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

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

19:                                               ; preds = %6
  %20 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.69, i32 noundef 77, ptr noundef @.str.70)
  store ptr %20, ptr %7, align 8
  br label %227

21:                                               ; preds = %6
  %22 = load float, ptr %9, align 4, !tbaa !9
  %23 = fcmp ole float %22, 0.000000e+00
  br i1 %23, label %24, label %26

24:                                               ; preds = %21
  %25 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.69, i32 noundef 79, ptr noundef @.str.71)
  store ptr %25, ptr %7, align 8
  br label %227

26:                                               ; preds = %21
  %27 = load i32, ptr %10, align 4, !tbaa !5
  %28 = icmp ult i32 %27, 2
  br i1 %28, label %33, label %29

29:                                               ; preds = %26
  %30 = load i32, ptr %10, align 4, !tbaa !5
  %31 = urem i32 %30, 2
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %35

33:                                               ; preds = %29, %26
  %34 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.69, i32 noundef 81, ptr noundef @.str.72)
  store ptr %34, ptr %7, align 8
  br label %227

35:                                               ; preds = %29
  %36 = load i32, ptr %11, align 4, !tbaa !5
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %40

38:                                               ; preds = %35
  %39 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.69, i32 noundef 83, ptr noundef @.str.73)
  store ptr %39, ptr %7, align 8
  br label %227

40:                                               ; preds = %35
  %41 = load float, ptr %12, align 4, !tbaa !9
  %42 = fcmp ole float %41, 0.000000e+00
  br i1 %42, label %46, label %43

43:                                               ; preds = %40
  %44 = load float, ptr %12, align 4, !tbaa !9
  %45 = fcmp ogt float %44, 1.000000e+00
  br i1 %45, label %46, label %48

46:                                               ; preds = %43, %40
  %47 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.69, i32 noundef 85, ptr noundef @.str.74)
  store ptr %47, ptr %7, align 8
  br label %227

48:                                               ; preds = %43
  %49 = load i32, ptr %13, align 4, !tbaa !5
  switch i32 %49, label %51 [
    i32 0, label %50
    i32 1, label %50
    i32 2, label %50
    i32 3, label %50
  ]

50:                                               ; preds = %48, %48, %48, %48
  br label %54

51:                                               ; preds = %48
  %52 = load i32, ptr %13, align 4, !tbaa !5
  %53 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.69, i32 noundef 94, ptr noundef @.str.75, i32 noundef %52)
  store ptr %53, ptr %7, align 8
  br label %227

54:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %55 = call noalias ptr @malloc(i64 noundef 88) #5
  store ptr %55, ptr %14, align 8, !tbaa !11
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = load ptr, ptr %14, align 8, !tbaa !11
  %58 = getelementptr inbounds %struct.cpfskmod_s, ptr %57, i32 0, i32 0
  store i32 %56, ptr %58, align 8, !tbaa !13
  %59 = load float, ptr %9, align 4, !tbaa !9
  %60 = load ptr, ptr %14, align 8, !tbaa !11
  %61 = getelementptr inbounds %struct.cpfskmod_s, ptr %60, i32 0, i32 4
  store float %59, ptr %61, align 8, !tbaa !15
  %62 = load i32, ptr %10, align 4, !tbaa !5
  %63 = load ptr, ptr %14, align 8, !tbaa !11
  %64 = getelementptr inbounds %struct.cpfskmod_s, ptr %63, i32 0, i32 1
  store i32 %62, ptr %64, align 4, !tbaa !16
  %65 = load i32, ptr %11, align 4, !tbaa !5
  %66 = load ptr, ptr %14, align 8, !tbaa !11
  %67 = getelementptr inbounds %struct.cpfskmod_s, ptr %66, i32 0, i32 2
  store i32 %65, ptr %67, align 8, !tbaa !17
  %68 = load float, ptr %12, align 4, !tbaa !9
  %69 = load ptr, ptr %14, align 8, !tbaa !11
  %70 = getelementptr inbounds %struct.cpfskmod_s, ptr %69, i32 0, i32 3
  store float %68, ptr %70, align 4, !tbaa !18
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = load ptr, ptr %14, align 8, !tbaa !11
  %73 = getelementptr inbounds %struct.cpfskmod_s, ptr %72, i32 0, i32 5
  store i32 %71, ptr %73, align 4, !tbaa !19
  %74 = load ptr, ptr %14, align 8, !tbaa !11
  %75 = getelementptr inbounds %struct.cpfskmod_s, ptr %74, i32 0, i32 0
  %76 = load i32, ptr %75, align 8, !tbaa !13
  %77 = shl i32 1, %76
  %78 = load ptr, ptr %14, align 8, !tbaa !11
  %79 = getelementptr inbounds %struct.cpfskmod_s, ptr %78, i32 0, i32 6
  store i32 %77, ptr %79, align 8, !tbaa !20
  %80 = load ptr, ptr %14, align 8, !tbaa !11
  %81 = getelementptr inbounds %struct.cpfskmod_s, ptr %80, i32 0, i32 12
  store float 5.000000e-01, ptr %81, align 8, !tbaa !21
  %82 = load ptr, ptr %14, align 8, !tbaa !11
  %83 = getelementptr inbounds %struct.cpfskmod_s, ptr %82, i32 0, i32 13
  store float 5.000000e-01, ptr %83, align 4, !tbaa !22
  %84 = load ptr, ptr %14, align 8, !tbaa !11
  %85 = getelementptr inbounds %struct.cpfskmod_s, ptr %84, i32 0, i32 14
  store float -1.000000e+00, ptr %85, align 8, !tbaa !23
  %86 = load ptr, ptr %14, align 8, !tbaa !11
  %87 = getelementptr inbounds %struct.cpfskmod_s, ptr %86, i32 0, i32 9
  store i32 0, ptr %87, align 8, !tbaa !24
  %88 = load ptr, ptr %14, align 8, !tbaa !11
  %89 = getelementptr inbounds %struct.cpfskmod_s, ptr %88, i32 0, i32 8
  store ptr null, ptr %89, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %90 = load ptr, ptr %14, align 8, !tbaa !11
  %91 = getelementptr inbounds %struct.cpfskmod_s, ptr %90, i32 0, i32 5
  %92 = load i32, ptr %91, align 4, !tbaa !19
  switch i32 %92, label %144 [
    i32 0, label %93
    i32 1, label %105
    i32 2, label %113
    i32 3, label %122
  ]

93:                                               ; preds = %54
  %94 = load ptr, ptr %14, align 8, !tbaa !11
  %95 = getelementptr inbounds %struct.cpfskmod_s, ptr %94, i32 0, i32 1
  %96 = load i32, ptr %95, align 4, !tbaa !16
  %97 = load ptr, ptr %14, align 8, !tbaa !11
  %98 = getelementptr inbounds %struct.cpfskmod_s, ptr %97, i32 0, i32 9
  store i32 %96, ptr %98, align 8, !tbaa !24
  %99 = load ptr, ptr %14, align 8, !tbaa !11
  %100 = getelementptr inbounds %struct.cpfskmod_s, ptr %99, i32 0, i32 7
  store i32 1, ptr %100, align 4, !tbaa !26
  %101 = load ptr, ptr %14, align 8, !tbaa !11
  %102 = getelementptr inbounds %struct.cpfskmod_s, ptr %101, i32 0, i32 12
  store float 0.000000e+00, ptr %102, align 8, !tbaa !21
  %103 = load ptr, ptr %14, align 8, !tbaa !11
  %104 = getelementptr inbounds %struct.cpfskmod_s, ptr %103, i32 0, i32 13
  store float 1.000000e+00, ptr %104, align 4, !tbaa !22
  br label %149

105:                                              ; preds = %54
  %106 = load ptr, ptr %14, align 8, !tbaa !11
  %107 = getelementptr inbounds %struct.cpfskmod_s, ptr %106, i32 0, i32 1
  %108 = load i32, ptr %107, align 4, !tbaa !16
  %109 = load ptr, ptr %14, align 8, !tbaa !11
  %110 = getelementptr inbounds %struct.cpfskmod_s, ptr %109, i32 0, i32 9
  store i32 %108, ptr %110, align 8, !tbaa !24
  %111 = load ptr, ptr %14, align 8, !tbaa !11
  %112 = getelementptr inbounds %struct.cpfskmod_s, ptr %111, i32 0, i32 7
  store i32 1, ptr %112, align 4, !tbaa !26
  br label %149

113:                                              ; preds = %54
  %114 = load ptr, ptr %14, align 8, !tbaa !11
  %115 = getelementptr inbounds %struct.cpfskmod_s, ptr %114, i32 0, i32 1
  %116 = load i32, ptr %115, align 4, !tbaa !16
  %117 = mul i32 3, %116
  %118 = load ptr, ptr %14, align 8, !tbaa !11
  %119 = getelementptr inbounds %struct.cpfskmod_s, ptr %118, i32 0, i32 9
  store i32 %117, ptr %119, align 8, !tbaa !24
  %120 = load ptr, ptr %14, align 8, !tbaa !11
  %121 = getelementptr inbounds %struct.cpfskmod_s, ptr %120, i32 0, i32 7
  store i32 2, ptr %121, align 4, !tbaa !26
  br label %149

122:                                              ; preds = %54
  %123 = load ptr, ptr %14, align 8, !tbaa !11
  %124 = getelementptr inbounds %struct.cpfskmod_s, ptr %123, i32 0, i32 2
  %125 = load i32, ptr %124, align 8, !tbaa !17
  %126 = add i32 %125, 1
  %127 = load ptr, ptr %14, align 8, !tbaa !11
  %128 = getelementptr inbounds %struct.cpfskmod_s, ptr %127, i32 0, i32 7
  store i32 %126, ptr %128, align 4, !tbaa !26
  %129 = load ptr, ptr %14, align 8, !tbaa !11
  %130 = getelementptr inbounds %struct.cpfskmod_s, ptr %129, i32 0, i32 1
  %131 = load i32, ptr %130, align 4, !tbaa !16
  %132 = mul i32 2, %131
  %133 = load ptr, ptr %14, align 8, !tbaa !11
  %134 = getelementptr inbounds %struct.cpfskmod_s, ptr %133, i32 0, i32 2
  %135 = load i32, ptr %134, align 8, !tbaa !17
  %136 = mul i32 %132, %135
  %137 = load ptr, ptr %14, align 8, !tbaa !11
  %138 = getelementptr inbounds %struct.cpfskmod_s, ptr %137, i32 0, i32 1
  %139 = load i32, ptr %138, align 4, !tbaa !16
  %140 = add i32 %136, %139
  %141 = add i32 %140, 1
  %142 = load ptr, ptr %14, align 8, !tbaa !11
  %143 = getelementptr inbounds %struct.cpfskmod_s, ptr %142, i32 0, i32 9
  store i32 %141, ptr %143, align 8, !tbaa !24
  br label %149

144:                                              ; preds = %54
  %145 = load ptr, ptr %14, align 8, !tbaa !11
  %146 = getelementptr inbounds %struct.cpfskmod_s, ptr %145, i32 0, i32 5
  %147 = load i32, ptr %146, align 4, !tbaa !19
  %148 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.69, i32 noundef 140, ptr noundef @.str.75, i32 noundef %147)
  store ptr %148, ptr %7, align 8
  store i32 1, ptr %16, align 4
  br label %226

149:                                              ; preds = %122, %113, %105, %93
  %150 = load ptr, ptr %14, align 8, !tbaa !11
  %151 = getelementptr inbounds %struct.cpfskmod_s, ptr %150, i32 0, i32 9
  %152 = load i32, ptr %151, align 8, !tbaa !24
  %153 = zext i32 %152 to i64
  %154 = mul i64 %153, 4
  %155 = call noalias ptr @malloc(i64 noundef %154) #5
  %156 = load ptr, ptr %14, align 8, !tbaa !11
  %157 = getelementptr inbounds %struct.cpfskmod_s, ptr %156, i32 0, i32 8
  store ptr %155, ptr %157, align 8, !tbaa !25
  %158 = load ptr, ptr %14, align 8, !tbaa !11
  %159 = getelementptr inbounds %struct.cpfskmod_s, ptr %158, i32 0, i32 1
  %160 = load i32, ptr %159, align 4, !tbaa !16
  %161 = load ptr, ptr %14, align 8, !tbaa !11
  %162 = getelementptr inbounds %struct.cpfskmod_s, ptr %161, i32 0, i32 2
  %163 = load i32, ptr %162, align 8, !tbaa !17
  %164 = load ptr, ptr %14, align 8, !tbaa !11
  %165 = getelementptr inbounds %struct.cpfskmod_s, ptr %164, i32 0, i32 3
  %166 = load float, ptr %165, align 4, !tbaa !18
  %167 = load ptr, ptr %14, align 8, !tbaa !11
  %168 = getelementptr inbounds %struct.cpfskmod_s, ptr %167, i32 0, i32 5
  %169 = load i32, ptr %168, align 4, !tbaa !19
  %170 = load ptr, ptr %14, align 8, !tbaa !11
  %171 = getelementptr inbounds %struct.cpfskmod_s, ptr %170, i32 0, i32 8
  %172 = load ptr, ptr %171, align 8, !tbaa !25
  %173 = load ptr, ptr %14, align 8, !tbaa !11
  %174 = getelementptr inbounds %struct.cpfskmod_s, ptr %173, i32 0, i32 9
  %175 = load i32, ptr %174, align 8, !tbaa !24
  %176 = call i32 @cpfskmod_firdes(i32 noundef %160, i32 noundef %163, float noundef %166, i32 noundef %169, ptr noundef %172, i32 noundef %175)
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %177

177:                                              ; preds = %199, %149
  %178 = load i32, ptr %15, align 4, !tbaa !5
  %179 = load ptr, ptr %14, align 8, !tbaa !11
  %180 = getelementptr inbounds %struct.cpfskmod_s, ptr %179, i32 0, i32 9
  %181 = load i32, ptr %180, align 8, !tbaa !24
  %182 = icmp ult i32 %178, %181
  br i1 %182, label %183, label %202

183:                                              ; preds = %177
  %184 = load ptr, ptr %14, align 8, !tbaa !11
  %185 = getelementptr inbounds %struct.cpfskmod_s, ptr %184, i32 0, i32 4
  %186 = load float, ptr %185, align 8, !tbaa !15
  %187 = fpext float %186 to double
  %188 = fmul double 0x400921FB54442D18, %187
  %189 = load ptr, ptr %14, align 8, !tbaa !11
  %190 = getelementptr inbounds %struct.cpfskmod_s, ptr %189, i32 0, i32 8
  %191 = load ptr, ptr %190, align 8, !tbaa !25
  %192 = load i32, ptr %15, align 4, !tbaa !5
  %193 = zext i32 %192 to i64
  %194 = getelementptr inbounds float, ptr %191, i64 %193
  %195 = load float, ptr %194, align 4, !tbaa !9
  %196 = fpext float %195 to double
  %197 = fmul double %196, %188
  %198 = fptrunc double %197 to float
  store float %198, ptr %194, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %183
  %200 = load i32, ptr %15, align 4, !tbaa !5
  %201 = add i32 %200, 1
  store i32 %201, ptr %15, align 4, !tbaa !5
  br label %177, !llvm.loop !27

202:                                              ; preds = %177
  %203 = load ptr, ptr %14, align 8, !tbaa !11
  %204 = getelementptr inbounds %struct.cpfskmod_s, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %204, align 4, !tbaa !16
  %206 = load ptr, ptr %14, align 8, !tbaa !11
  %207 = getelementptr inbounds %struct.cpfskmod_s, ptr %206, i32 0, i32 8
  %208 = load ptr, ptr %207, align 8, !tbaa !25
  %209 = load ptr, ptr %14, align 8, !tbaa !11
  %210 = getelementptr inbounds %struct.cpfskmod_s, ptr %209, i32 0, i32 9
  %211 = load i32, ptr %210, align 8, !tbaa !24
  %212 = call ptr @firinterp_rrrf_create(i32 noundef %205, ptr noundef %208, i32 noundef %211)
  %213 = load ptr, ptr %14, align 8, !tbaa !11
  %214 = getelementptr inbounds %struct.cpfskmod_s, ptr %213, i32 0, i32 10
  store ptr %212, ptr %214, align 8, !tbaa !29
  %215 = load ptr, ptr %14, align 8, !tbaa !11
  %216 = getelementptr inbounds %struct.cpfskmod_s, ptr %215, i32 0, i32 1
  %217 = load i32, ptr %216, align 4, !tbaa !16
  %218 = zext i32 %217 to i64
  %219 = mul i64 %218, 4
  %220 = call noalias ptr @malloc(i64 noundef %219) #5
  %221 = load ptr, ptr %14, align 8, !tbaa !11
  %222 = getelementptr inbounds %struct.cpfskmod_s, ptr %221, i32 0, i32 11
  store ptr %220, ptr %222, align 8, !tbaa !30
  %223 = load ptr, ptr %14, align 8, !tbaa !11
  %224 = call i32 @cpfskmod_reset(ptr noundef %223)
  %225 = load ptr, ptr %14, align 8, !tbaa !11
  store ptr %225, ptr %7, align 8
  store i32 1, ptr %16, align 4
  br label %226

226:                                              ; preds = %202, %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %227

227:                                              ; preds = %226, %51, %46, %38, %33, %24, %19
  %228 = load ptr, ptr %7, align 8
  ret ptr %228
}

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

declare ptr @firinterp_rrrf_create(i32 noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @cpfskmod_reset(ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"cpfskmod_s", !6, i64 0, !6, i64 4, !6, i64 8, !10, i64 12, !10, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !12, i64 32, !6, i64 40, !12, i64 48, !12, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80}
!15 = !{!14, !10, i64 16}
!16 = !{!14, !6, i64 4}
!17 = !{!14, !6, i64 8}
!18 = !{!14, !10, i64 12}
!19 = !{!14, !6, i64 20}
!20 = !{!14, !6, i64 24}
!21 = !{!14, !10, i64 64}
!22 = !{!14, !10, i64 68}
!23 = !{!14, !10, i64 72}
!24 = !{!14, !6, i64 40}
!25 = !{!14, !12, i64 32}
!26 = !{!14, !6, i64 28}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!14, !12, i64 48}
!30 = !{!14, !12, i64 56}


; 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.69 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [44 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
define dso_local ptr @cpfskmod_create(i32 noundef %0, float noundef %1, i32 noundef %2, i32 noundef %3, float noundef %4, i32 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.69, i32 noundef 77, ptr noundef nonnull @.str.70) #3
  br label %86

10:                                               ; preds = %6
  %11 = fcmp ugt float %1, 0.000000e+00
  br i1 %11, label %14, label %12

12:                                               ; preds = %10
  %13 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.69, i32 noundef 79, ptr noundef nonnull @.str.71) #3
  br label %86

14:                                               ; preds = %10
  %15 = icmp ugt i32 %2, 1
  %16 = and i32 %2, 1
  %.not = icmp eq i32 %16, 0
  %or.cond77 = and i1 %15, %.not
  br i1 %or.cond77, label %19, label %17

17:                                               ; preds = %14
  %18 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.69, i32 noundef 81, ptr noundef nonnull @.str.72) #3
  br label %86

19:                                               ; preds = %14
  %20 = icmp eq i32 %3, 0
  br i1 %20, label %21, label %23

21:                                               ; preds = %19
  %22 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.69, i32 noundef 83, ptr noundef nonnull @.str.73) #3
  br label %86

23:                                               ; preds = %19
  %24 = fcmp ole float %4, 0.000000e+00
  %25 = fcmp ogt float %4, 1.000000e+00
  %or.cond = or i1 %24, %25
  br i1 %or.cond, label %26, label %28

26:                                               ; preds = %23
  %27 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.69, i32 noundef 85, ptr noundef nonnull @.str.74) #3
  br label %86

28:                                               ; preds = %23
  %switch = icmp ult i32 %5, 4
  br i1 %switch, label %31, label %29

29:                                               ; preds = %28
  %30 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.69, i32 noundef 94, ptr noundef nonnull @.str.75, i32 noundef %5) #3
  br label %86

31:                                               ; preds = %28
  %32 = tail call noalias dereferenceable_or_null(88) ptr @malloc(i64 noundef 88) #4
  store i32 %0, ptr %32, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  store float %1, ptr %33, align 8, !tbaa !12
  %34 = getelementptr inbounds i8, ptr %32, i64 4
  store i32 %2, ptr %34, align 4, !tbaa !13
  %35 = getelementptr inbounds i8, ptr %32, i64 8
  store i32 %3, ptr %35, align 8, !tbaa !14
  %36 = getelementptr inbounds i8, ptr %32, i64 12
  store float %4, ptr %36, align 4, !tbaa !15
  %37 = getelementptr inbounds i8, ptr %32, i64 20
  store i32 %5, ptr %37, align 4, !tbaa !16
  %38 = shl nuw i32 1, %0
  %39 = getelementptr inbounds i8, ptr %32, i64 24
  store i32 %38, ptr %39, align 8, !tbaa !17
  %40 = getelementptr inbounds i8, ptr %32, i64 64
  store <2 x float> <float 5.000000e-01, float 5.000000e-01>, ptr %40, align 8, !tbaa !18
  %41 = getelementptr inbounds i8, ptr %32, i64 72
  store float -1.000000e+00, ptr %41, align 8, !tbaa !19
  %42 = getelementptr inbounds i8, ptr %32, i64 40
  %43 = getelementptr inbounds i8, ptr %32, i64 32
  switch i32 %5, label %default.unreachable [
    i32 0, label %44
    i32 1, label %46
    i32 2, label %48
    i32 3, label %51
  ]

44:                                               ; preds = %31
  store i32 %2, ptr %42, align 8, !tbaa !20
  %45 = getelementptr inbounds i8, ptr %32, i64 28
  store i32 1, ptr %45, align 4, !tbaa !21
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %40, align 8, !tbaa !18
  br label %.lr.ph

46:                                               ; preds = %31
  store i32 %2, ptr %42, align 8, !tbaa !20
  %47 = getelementptr inbounds i8, ptr %32, i64 28
  store i32 1, ptr %47, align 4, !tbaa !21
  br label %.lr.ph

48:                                               ; preds = %31
  %49 = mul i32 %2, 3
  store i32 %49, ptr %42, align 8, !tbaa !20
  %50 = getelementptr inbounds i8, ptr %32, i64 28
  store i32 2, ptr %50, align 4, !tbaa !21
  br label %.lr.ph

51:                                               ; preds = %31
  %52 = add i32 %3, 1
  %53 = getelementptr inbounds i8, ptr %32, i64 28
  store i32 %52, ptr %53, align 4, !tbaa !21
  %54 = shl i32 %2, 1
  %55 = mul i32 %54, %3
  %56 = add i32 %55, %2
  %57 = or disjoint i32 %56, 1
  store i32 %57, ptr %42, align 8, !tbaa !20
  br label %.lr.ph

default.unreachable:                              ; preds = %31
  unreachable

.lr.ph:                                           ; preds = %44, %46, %48, %51
  %58 = phi i32 [ %57, %51 ], [ %49, %48 ], [ %2, %46 ], [ %2, %44 ]
  %59 = zext i32 %58 to i64
  %60 = shl nuw nsw i64 %59, 2
  %61 = tail call noalias ptr @malloc(i64 noundef %60) #4
  store ptr %61, ptr %43, align 8, !tbaa !22
  %62 = tail call i32 @cpfskmod_firdes(i32 noundef %2, i32 noundef %3, float noundef %4, i32 noundef %5, ptr noundef %61, i32 noundef %58)
  %63 = fpext float %1 to double
  %64 = fmul double %63, 0x400921FB54442D18
  %min.iters.check = icmp ult i32 %58, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %59, 4294967288
  %broadcast.splatinsert = insertelement <4 x double> poison, double %64, i64 0
  %broadcast.splat = shufflevector <4 x double> %broadcast.splatinsert, <4 x double> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %65 = getelementptr inbounds float, ptr %61, i64 %index
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  %wide.load = load <4 x float>, ptr %65, align 4, !tbaa !18
  %wide.load81 = load <4 x float>, ptr %66, align 4, !tbaa !18
  %67 = fpext <4 x float> %wide.load to <4 x double>
  %68 = fpext <4 x float> %wide.load81 to <4 x double>
  %69 = fmul <4 x double> %broadcast.splat, %67
  %70 = fmul <4 x double> %broadcast.splat, %68
  %71 = fptrunc <4 x double> %69 to <4 x float>
  %72 = fptrunc <4 x double> %70 to <4 x float>
  store <4 x float> %71, ptr %65, align 4, !tbaa !18
  store <4 x float> %72, ptr %66, align 4, !tbaa !18
  %index.next = add nuw i64 %index, 8
  %73 = icmp eq i64 %index.next, %n.vec
  br i1 %73, label %middle.block, label %vector.body, !llvm.loop !23

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %59
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

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

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %74 = getelementptr inbounds float, ptr %61, i64 %indvars.iv
  %75 = load float, ptr %74, align 4, !tbaa !18
  %76 = fpext float %75 to double
  %77 = fmul double %64, %76
  %78 = fptrunc double %77 to float
  store float %78, ptr %74, align 4, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %59
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !27

._crit_edge:                                      ; preds = %scalar.ph, %middle.block
  %79 = tail call ptr @firinterp_rrrf_create(i32 noundef %2, ptr noundef nonnull %61, i32 noundef %58) #3
  %80 = getelementptr inbounds i8, ptr %32, i64 48
  store ptr %79, ptr %80, align 8, !tbaa !28
  %81 = zext i32 %2 to i64
  %82 = shl nuw nsw i64 %81, 2
  %83 = tail call noalias ptr @malloc(i64 noundef %82) #4
  %84 = getelementptr inbounds i8, ptr %32, i64 56
  store ptr %83, ptr %84, align 8, !tbaa !29
  %85 = tail call i32 @cpfskmod_reset(ptr noundef nonnull %32)
  br label %86

86:                                               ; preds = %._crit_edge, %29, %26, %21, %17, %12, %8
  %.1 = phi ptr [ %9, %8 ], [ %13, %12 ], [ %18, %17 ], [ %22, %21 ], [ %27, %26 ], [ %30, %29 ], [ %32, %._crit_edge ]
  ret ptr %.1
}

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

declare ptr @firinterp_rrrf_create(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

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 = { nounwind }
attributes #4 = { 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 = !{!"cpfskmod_s", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 12, !10, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !11, i64 32, !7, i64 40, !11, i64 48, !11, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80}
!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, !10, i64 16}
!13 = !{!6, !7, i64 4}
!14 = !{!6, !7, i64 8}
!15 = !{!6, !10, i64 12}
!16 = !{!6, !7, i64 20}
!17 = !{!6, !7, i64 24}
!18 = !{!10, !10, i64 0}
!19 = !{!6, !10, i64 72}
!20 = !{!6, !7, i64 40}
!21 = !{!6, !7, i64 28}
!22 = !{!6, !11, i64 32}
!23 = distinct !{!23, !24, !25, !26}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!"llvm.loop.isvectorized", i32 1}
!26 = !{!"llvm.loop.unroll.runtime.disable"}
!27 = distinct !{!27, !24, !26, !25}
!28 = !{!6, !11, i64 48}
!29 = !{!6, !11, i64 56}


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