; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/gauss_iir (gauss_iir)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15set_nii_and_diifffffffffPf(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z30set_second_derive_coefficientsfPf(float noundef %0, ptr noundef %1) #0 {
  %3 = alloca float, align 4
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  store float %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store float 0xBFF54BC6A0000000, ptr %5, align 4, !tbaa !5
  store float 0x400D49BA60000000, ptr %6, align 4, !tbaa !5
  store float 0x3FF3D70A40000000, ptr %7, align 4, !tbaa !5
  store float 0x3FF50624E0000000, ptr %8, align 4, !tbaa !5
  store float 0x3FD4A3D700000000, ptr %9, align 4, !tbaa !5
  store float 0xBFFBCED920000000, ptr %10, align 4, !tbaa !5
  store float 0x3FE7EF9DC0000000, ptr %11, align 4, !tbaa !5
  store float 0x400153F7C0000000, ptr %12, align 4, !tbaa !5
  %13 = load float, ptr %3, align 4, !tbaa !5
  %14 = load float, ptr %5, align 4, !tbaa !5
  %15 = load float, ptr %6, align 4, !tbaa !5
  %16 = load float, ptr %7, align 4, !tbaa !5
  %17 = load float, ptr %8, align 4, !tbaa !5
  %18 = load float, ptr %9, align 4, !tbaa !5
  %19 = load float, ptr %10, align 4, !tbaa !5
  %20 = load float, ptr %11, align 4, !tbaa !5
  %21 = load float, ptr %12, align 4, !tbaa !5
  %22 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_Z15set_nii_and_diifffffffffPf(float noundef %13, float noundef %14, float noundef %15, float noundef %16, float noundef %17, float noundef %18, float noundef %19, float noundef %20, float noundef %21, ptr noundef %22)
  %23 = load ptr, ptr %4, align 8, !tbaa !9
  %24 = getelementptr inbounds float, ptr %23, i64 8
  %25 = load float, ptr %24, align 4, !tbaa !5
  %26 = load ptr, ptr %4, align 8, !tbaa !9
  %27 = getelementptr inbounds float, ptr %26, i64 12
  store float %25, ptr %27, align 4, !tbaa !5
  %28 = load ptr, ptr %4, align 8, !tbaa !9
  %29 = getelementptr inbounds float, ptr %28, i64 9
  %30 = load float, ptr %29, align 4, !tbaa !5
  %31 = load ptr, ptr %4, align 8, !tbaa !9
  %32 = getelementptr inbounds float, ptr %31, i64 13
  store float %30, ptr %32, align 4, !tbaa !5
  %33 = load ptr, ptr %4, align 8, !tbaa !9
  %34 = getelementptr inbounds float, ptr %33, i64 10
  %35 = load float, ptr %34, align 4, !tbaa !5
  %36 = load ptr, ptr %4, align 8, !tbaa !9
  %37 = getelementptr inbounds float, ptr %36, i64 14
  store float %35, ptr %37, align 4, !tbaa !5
  %38 = load ptr, ptr %4, align 8, !tbaa !9
  %39 = getelementptr inbounds float, ptr %38, i64 11
  %40 = load float, ptr %39, align 4, !tbaa !5
  %41 = load ptr, ptr %4, align 8, !tbaa !9
  %42 = getelementptr inbounds float, ptr %41, i64 15
  store float %40, ptr %42, align 4, !tbaa !5
  %43 = load ptr, ptr %4, align 8, !tbaa !9
  %44 = getelementptr inbounds float, ptr %43, i64 1
  %45 = load float, ptr %44, align 4, !tbaa !5
  %46 = load ptr, ptr %4, align 8, !tbaa !9
  %47 = getelementptr inbounds float, ptr %46, i64 8
  %48 = load float, ptr %47, align 4, !tbaa !5
  %49 = load ptr, ptr %4, align 8, !tbaa !9
  %50 = getelementptr inbounds float, ptr %49, i64 0
  %51 = load float, ptr %50, align 4, !tbaa !5
  %52 = fneg float %48
  %53 = call float @llvm.fmuladd.f32(float %52, float %51, float %45)
  %54 = load ptr, ptr %4, align 8, !tbaa !9
  %55 = getelementptr inbounds float, ptr %54, i64 4
  store float %53, ptr %55, align 4, !tbaa !5
  %56 = load ptr, ptr %4, align 8, !tbaa !9
  %57 = getelementptr inbounds float, ptr %56, i64 2
  %58 = load float, ptr %57, align 4, !tbaa !5
  %59 = load ptr, ptr %4, align 8, !tbaa !9
  %60 = getelementptr inbounds float, ptr %59, i64 9
  %61 = load float, ptr %60, align 4, !tbaa !5
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  %63 = getelementptr inbounds float, ptr %62, i64 0
  %64 = load float, ptr %63, align 4, !tbaa !5
  %65 = fneg float %61
  %66 = call float @llvm.fmuladd.f32(float %65, float %64, float %58)
  %67 = load ptr, ptr %4, align 8, !tbaa !9
  %68 = getelementptr inbounds float, ptr %67, i64 5
  store float %66, ptr %68, align 4, !tbaa !5
  %69 = load ptr, ptr %4, align 8, !tbaa !9
  %70 = getelementptr inbounds float, ptr %69, i64 3
  %71 = load float, ptr %70, align 4, !tbaa !5
  %72 = load ptr, ptr %4, align 8, !tbaa !9
  %73 = getelementptr inbounds float, ptr %72, i64 10
  %74 = load float, ptr %73, align 4, !tbaa !5
  %75 = load ptr, ptr %4, align 8, !tbaa !9
  %76 = getelementptr inbounds float, ptr %75, i64 0
  %77 = load float, ptr %76, align 4, !tbaa !5
  %78 = fneg float %74
  %79 = call float @llvm.fmuladd.f32(float %78, float %77, float %71)
  %80 = load ptr, ptr %4, align 8, !tbaa !9
  %81 = getelementptr inbounds float, ptr %80, i64 6
  store float %79, ptr %81, align 4, !tbaa !5
  %82 = load ptr, ptr %4, align 8, !tbaa !9
  %83 = getelementptr inbounds float, ptr %82, i64 11
  %84 = load float, ptr %83, align 4, !tbaa !5
  %85 = fneg float %84
  %86 = load ptr, ptr %4, align 8, !tbaa !9
  %87 = getelementptr inbounds float, ptr %86, i64 0
  %88 = load float, ptr %87, align 4, !tbaa !5
  %89 = fmul float %85, %88
  %90 = load ptr, ptr %4, align 8, !tbaa !9
  %91 = getelementptr inbounds float, ptr %90, i64 7
  store float %89, ptr %91, align 4, !tbaa !5
  %92 = call double @sqrt(double noundef 6.282000e+00) #4
  %93 = load float, ptr %3, align 4, !tbaa !5
  %94 = fpext float %93 to double
  %95 = fmul double %92, %94
  %96 = load float, ptr %3, align 4, !tbaa !5
  %97 = fpext float %96 to double
  %98 = fmul double %95, %97
  %99 = load float, ptr %3, align 4, !tbaa !5
  %100 = fpext float %99 to double
  %101 = fmul double %98, %100
  %102 = fdiv double 1.000000e+00, %101
  %103 = fptrunc double %102 to float
  %104 = load ptr, ptr %4, align 8, !tbaa !9
  %105 = getelementptr inbounds float, ptr %104, i64 16
  store float %103, ptr %105, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}


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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15set_nii_and_diifffffffffPf(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z30set_second_derive_coefficientsfPf(float noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  tail call void @_Z15set_nii_and_diifffffffffPf(float noundef %0, float noundef 0xBFF54BC6A0000000, float noundef 0x400D49BA60000000, float noundef 0x3FF3D70A40000000, float noundef 0x3FF50624E0000000, float noundef 0x3FD4A3D700000000, float noundef 0xBFFBCED920000000, float noundef 0x3FE7EF9DC0000000, float noundef 0x400153F7C0000000, ptr noundef %1)
  %3 = getelementptr inbounds i8, ptr %1, i64 32
  %4 = getelementptr inbounds i8, ptr %1, i64 48
  %5 = load <4 x float>, ptr %3, align 4, !tbaa !5
  store <4 x float> %5, ptr %4, align 4, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %1, i64 4
  %7 = load float, ptr %1, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 16
  %9 = load <2 x float>, ptr %6, align 4, !tbaa !5
  %10 = shufflevector <4 x float> %5, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %11 = fneg <2 x float> %10
  %12 = insertelement <2 x float> poison, float %7, i64 0
  %13 = shufflevector <2 x float> %12, <2 x float> poison, <2 x i32> zeroinitializer
  %14 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %11, <2 x float> %13, <2 x float> %9)
  store <2 x float> %14, ptr %8, align 4, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 12
  %16 = load float, ptr %15, align 4, !tbaa !5
  %17 = extractelement <4 x float> %5, i64 2
  %18 = fneg float %17
  %19 = tail call float @llvm.fmuladd.f32(float %18, float %7, float %16)
  %20 = getelementptr inbounds i8, ptr %1, i64 24
  store float %19, ptr %20, align 4, !tbaa !5
  %21 = extractelement <4 x float> %5, i64 3
  %22 = fneg float %21
  %23 = fmul float %7, %22
  %24 = getelementptr inbounds i8, ptr %1, i64 28
  store float %23, ptr %24, align 4, !tbaa !5
  %25 = fpext float %0 to double
  %26 = fmul double %25, 0x40040D1728C0DB59
  %27 = fmul double %26, %25
  %28 = fmul double %27, %25
  %29 = fdiv double 1.000000e+00, %28
  %30 = fptrunc double %29 to float
  %31 = getelementptr inbounds i8, ptr %1, i64 64
  store float %30, ptr %31, align 4, !tbaa !5
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,TailCallElimPass