; 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 @_Z23set_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 0xBFE4B5DCC0000000, ptr %5, align 4, !tbaa !5
  store float 0xC0121FBE80000000, ptr %6, align 4, !tbaa !5
  store float 0x3FF86E9780000000, ptr %7, align 4, !tbaa !5
  store float 0x3FF8418940000000, ptr %8, align 4, !tbaa !5
  store float 0x3FE4C7E280000000, ptr %9, align 4, !tbaa !5
  store float 0x3FEE951820000000, ptr %10, align 4, !tbaa !5
  store float 0x3FE5803460000000, ptr %11, align 4, !tbaa !5
  store float 0x40009374C0000000, 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 = fneg float %53
  %55 = load ptr, ptr %4, align 8, !tbaa !9
  %56 = getelementptr inbounds float, ptr %55, i64 4
  store float %54, ptr %56, align 4, !tbaa !5
  %57 = load ptr, ptr %4, align 8, !tbaa !9
  %58 = getelementptr inbounds float, ptr %57, i64 2
  %59 = load float, ptr %58, align 4, !tbaa !5
  %60 = load ptr, ptr %4, align 8, !tbaa !9
  %61 = getelementptr inbounds float, ptr %60, i64 9
  %62 = load float, ptr %61, align 4, !tbaa !5
  %63 = load ptr, ptr %4, align 8, !tbaa !9
  %64 = getelementptr inbounds float, ptr %63, i64 0
  %65 = load float, ptr %64, align 4, !tbaa !5
  %66 = fneg float %62
  %67 = call float @llvm.fmuladd.f32(float %66, float %65, float %59)
  %68 = fneg float %67
  %69 = load ptr, ptr %4, align 8, !tbaa !9
  %70 = getelementptr inbounds float, ptr %69, i64 5
  store float %68, ptr %70, align 4, !tbaa !5
  %71 = load ptr, ptr %4, align 8, !tbaa !9
  %72 = getelementptr inbounds float, ptr %71, i64 3
  %73 = load float, ptr %72, align 4, !tbaa !5
  %74 = load ptr, ptr %4, align 8, !tbaa !9
  %75 = getelementptr inbounds float, ptr %74, i64 10
  %76 = load float, ptr %75, align 4, !tbaa !5
  %77 = load ptr, ptr %4, align 8, !tbaa !9
  %78 = getelementptr inbounds float, ptr %77, i64 0
  %79 = load float, ptr %78, align 4, !tbaa !5
  %80 = fneg float %76
  %81 = call float @llvm.fmuladd.f32(float %80, float %79, float %73)
  %82 = fneg float %81
  %83 = load ptr, ptr %4, align 8, !tbaa !9
  %84 = getelementptr inbounds float, ptr %83, i64 6
  store float %82, ptr %84, align 4, !tbaa !5
  %85 = load ptr, ptr %4, align 8, !tbaa !9
  %86 = getelementptr inbounds float, ptr %85, i64 11
  %87 = load float, ptr %86, align 4, !tbaa !5
  %88 = load ptr, ptr %4, align 8, !tbaa !9
  %89 = getelementptr inbounds float, ptr %88, i64 0
  %90 = load float, ptr %89, align 4, !tbaa !5
  %91 = fmul float %87, %90
  %92 = load ptr, ptr %4, align 8, !tbaa !9
  %93 = getelementptr inbounds float, ptr %92, i64 7
  store float %91, ptr %93, align 4, !tbaa !5
  %94 = call double @sqrt(double noundef 6.282000e+00) #4
  %95 = load float, ptr %3, align 4, !tbaa !5
  %96 = fpext float %95 to double
  %97 = fmul double %94, %96
  %98 = load float, ptr %3, align 4, !tbaa !5
  %99 = fpext float %98 to double
  %100 = fmul double %97, %99
  %101 = fdiv double -1.000000e+00, %100
  %102 = fptrunc double %101 to float
  %103 = load ptr, ptr %4, align 8, !tbaa !9
  %104 = getelementptr inbounds float, ptr %103, i64 16
  store float %102, ptr %104, 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 @_Z23set_derive_coefficientsfPf(float noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  tail call void @_Z15set_nii_and_diifffffffffPf(float noundef %0, float noundef 0xBFE4B5DCC0000000, float noundef 0xC0121FBE80000000, float noundef 0x3FF86E9780000000, float noundef 0x3FF8418940000000, float noundef 0x3FE4C7E280000000, float noundef 0x3FEE951820000000, float noundef 0x3FE5803460000000, float noundef 0x40009374C0000000, ptr noundef %1)
  %3 = getelementptr inbounds i8, ptr %1, i64 32
  %4 = getelementptr inbounds i8, ptr %1, i64 48
  %5 = getelementptr inbounds i8, ptr %1, i64 40
  %6 = getelementptr inbounds i8, ptr %1, i64 56
  %7 = load <2 x float>, ptr %5, align 4, !tbaa !5
  store <2 x float> %7, ptr %6, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 4
  %9 = load float, ptr %1, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %1, i64 16
  %11 = load <2 x float>, ptr %3, align 4, !tbaa !5
  store <2 x float> %11, ptr %4, align 4, !tbaa !5
  %12 = load <2 x float>, ptr %8, align 4, !tbaa !5
  %13 = fneg <2 x float> %11
  %14 = insertelement <2 x float> poison, float %9, i64 0
  %15 = shufflevector <2 x float> %14, <2 x float> poison, <2 x i32> zeroinitializer
  %16 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %13, <2 x float> %15, <2 x float> %12)
  %17 = fneg <2 x float> %16
  store <2 x float> %17, ptr %10, align 4, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %1, i64 12
  %19 = load float, ptr %18, align 4, !tbaa !5
  %20 = extractelement <2 x float> %7, i64 0
  %21 = fneg float %20
  %22 = tail call float @llvm.fmuladd.f32(float %21, float %9, float %19)
  %23 = fneg float %22
  %24 = getelementptr inbounds i8, ptr %1, i64 24
  store float %23, ptr %24, align 4, !tbaa !5
  %25 = extractelement <2 x float> %7, i64 1
  %26 = fmul float %25, %9
  %27 = getelementptr inbounds i8, ptr %1, i64 28
  store float %26, ptr %27, align 4, !tbaa !5
  %28 = fpext float %0 to double
  %29 = fmul double %28, 0x40040D1728C0DB59
  %30 = fmul double %29, %28
  %31 = fdiv double -1.000000e+00, %30
  %32 = fptrunc double %31 to float
  %33 = getelementptr inbounds i8, ptr %1, i64 64
  store float %32, ptr %33, 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