; LLVM IR from rdguez-mariano/fast_imas_IPOL :: libNumerics (computeH)

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

%"class.libNumerics::ComputeH::Normalization" = type { double, double, double }

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11libNumerics8ComputeH12de_normalizeERKNS0_13NormalizationERNS_6vectorIdEES3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #3 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %11 = load ptr, ptr %7, align 8, !tbaa !5
  %12 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %11, i32 0, i32 0
  %13 = load double, ptr %12, align 8, !tbaa !9
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 0)
  %16 = load double, ptr %15, align 8, !tbaa !12
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %17, i32 0, i32 1
  %19 = load double, ptr %18, align 8, !tbaa !13
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %20, i32 noundef 1)
  %22 = load double, ptr %21, align 8, !tbaa !12
  %23 = fmul double %19, %22
  %24 = call double @llvm.fmuladd.f64(double %13, double %16, double %23)
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %25, i32 noundef 4)
  %27 = load double, ptr %26, align 8, !tbaa !12
  %28 = fadd double %27, %24
  store double %28, ptr %26, align 8, !tbaa !12
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %29, i32 0, i32 2
  %31 = load double, ptr %30, align 8, !tbaa !14
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %32, i32 noundef 0)
  %34 = load double, ptr %33, align 8, !tbaa !12
  %35 = fmul double %34, %31
  store double %35, ptr %33, align 8, !tbaa !12
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %36, i32 0, i32 2
  %38 = load double, ptr %37, align 8, !tbaa !14
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %39, i32 noundef 1)
  %41 = load double, ptr %40, align 8, !tbaa !12
  %42 = fmul double %41, %38
  store double %42, ptr %40, align 8, !tbaa !12
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %43, i32 0, i32 0
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %46, i32 noundef 2)
  %48 = load double, ptr %47, align 8, !tbaa !12
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %49, i32 0, i32 1
  %51 = load double, ptr %50, align 8, !tbaa !13
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %52, i32 noundef 3)
  %54 = load double, ptr %53, align 8, !tbaa !12
  %55 = fmul double %51, %54
  %56 = call double @llvm.fmuladd.f64(double %45, double %48, double %55)
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %57, i32 noundef 5)
  %59 = load double, ptr %58, align 8, !tbaa !12
  %60 = fadd double %59, %56
  store double %60, ptr %58, align 8, !tbaa !12
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %61, i32 0, i32 2
  %63 = load double, ptr %62, align 8, !tbaa !14
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %64, i32 noundef 2)
  %66 = load double, ptr %65, align 8, !tbaa !12
  %67 = fmul double %66, %63
  store double %67, ptr %65, align 8, !tbaa !12
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %68, i32 0, i32 2
  %70 = load double, ptr %69, align 8, !tbaa !14
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %71, i32 noundef 3)
  %73 = load double, ptr %72, align 8, !tbaa !12
  %74 = fmul double %73, %70
  store double %74, ptr %72, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %75, i32 0, i32 0
  %77 = load double, ptr %76, align 8, !tbaa !9
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %78, i32 noundef 6)
  %80 = load double, ptr %79, align 8, !tbaa !12
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %81, i32 0, i32 1
  %83 = load double, ptr %82, align 8, !tbaa !13
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %84, i32 noundef 7)
  %86 = load double, ptr %85, align 8, !tbaa !12
  %87 = fmul double %83, %86
  %88 = call double @llvm.fmuladd.f64(double %77, double %80, double %87)
  %89 = fadd double %88, 1.000000e+00
  store double %89, ptr %8, align 8, !tbaa !12
  %90 = load double, ptr %8, align 8, !tbaa !12
  %91 = fcmp olt double 0xBF50624DE0000000, %90
  br i1 %91, label %92, label %96

92:                                               ; preds = %3
  %93 = load double, ptr %8, align 8, !tbaa !12
  %94 = fcmp olt double %93, 0x3F50624DE0000000
  br i1 %94, label %95, label %96

95:                                               ; preds = %92
  store i1 false, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %213

96:                                               ; preds = %92, %3
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %97, i32 0, i32 2
  %99 = load double, ptr %98, align 8, !tbaa !14
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %100, i32 noundef 6)
  %102 = load double, ptr %101, align 8, !tbaa !12
  %103 = fmul double %102, %99
  store double %103, ptr %101, align 8, !tbaa !12
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %104, i32 0, i32 2
  %106 = load double, ptr %105, align 8, !tbaa !14
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %107, i32 noundef 7)
  %109 = load double, ptr %108, align 8, !tbaa !12
  %110 = fmul double %109, %106
  store double %110, ptr %108, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %111, i32 0, i32 2
  %113 = load double, ptr %112, align 8, !tbaa !14
  %114 = load double, ptr %8, align 8, !tbaa !12
  %115 = fmul double %113, %114
  %116 = fdiv double 1.000000e+00, %115
  store double %116, ptr %10, align 8, !tbaa !12
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %117, i32 noundef 0)
  %119 = load double, ptr %118, align 8, !tbaa !12
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %120, i32 0, i32 0
  %122 = load double, ptr %121, align 8, !tbaa !9
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %123, i32 noundef 6)
  %125 = load double, ptr %124, align 8, !tbaa !12
  %126 = fneg double %122
  %127 = call double @llvm.fmuladd.f64(double %126, double %125, double %119)
  %128 = load double, ptr %10, align 8, !tbaa !12
  %129 = fmul double %127, %128
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %130, i32 noundef 0)
  store double %129, ptr %131, align 8, !tbaa !12
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %132, i32 noundef 1)
  %134 = load double, ptr %133, align 8, !tbaa !12
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %135, i32 0, i32 0
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %138, i32 noundef 7)
  %140 = load double, ptr %139, align 8, !tbaa !12
  %141 = fneg double %137
  %142 = call double @llvm.fmuladd.f64(double %141, double %140, double %134)
  %143 = load double, ptr %10, align 8, !tbaa !12
  %144 = fmul double %142, %143
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %145, i32 noundef 1)
  store double %144, ptr %146, align 8, !tbaa !12
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %147, i32 noundef 4)
  %149 = load double, ptr %148, align 8, !tbaa !12
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %150, i32 0, i32 0
  %152 = load double, ptr %151, align 8, !tbaa !9
  %153 = load double, ptr %8, align 8, !tbaa !12
  %154 = fneg double %152
  %155 = call double @llvm.fmuladd.f64(double %154, double %153, double %149)
  %156 = load double, ptr %10, align 8, !tbaa !12
  %157 = fmul double %155, %156
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %158, i32 noundef 4)
  store double %157, ptr %159, align 8, !tbaa !12
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %160, i32 noundef 2)
  %162 = load double, ptr %161, align 8, !tbaa !12
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %163, i32 0, i32 1
  %165 = load double, ptr %164, align 8, !tbaa !13
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %166, i32 noundef 6)
  %168 = load double, ptr %167, align 8, !tbaa !12
  %169 = fneg double %165
  %170 = call double @llvm.fmuladd.f64(double %169, double %168, double %162)
  %171 = load double, ptr %10, align 8, !tbaa !12
  %172 = fmul double %170, %171
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %173, i32 noundef 2)
  store double %172, ptr %174, align 8, !tbaa !12
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %175, i32 noundef 3)
  %177 = load double, ptr %176, align 8, !tbaa !12
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %178, i32 0, i32 1
  %180 = load double, ptr %179, align 8, !tbaa !13
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %181, i32 noundef 7)
  %183 = load double, ptr %182, align 8, !tbaa !12
  %184 = fneg double %180
  %185 = call double @llvm.fmuladd.f64(double %184, double %183, double %177)
  %186 = load double, ptr %10, align 8, !tbaa !12
  %187 = fmul double %185, %186
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %188, i32 noundef 3)
  store double %187, ptr %189, align 8, !tbaa !12
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %190, i32 noundef 5)
  %192 = load double, ptr %191, align 8, !tbaa !12
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %"class.libNumerics::ComputeH::Normalization", ptr %193, i32 0, i32 1
  %195 = load double, ptr %194, align 8, !tbaa !13
  %196 = load double, ptr %8, align 8, !tbaa !12
  %197 = fneg double %195
  %198 = call double @llvm.fmuladd.f64(double %197, double %196, double %192)
  %199 = load double, ptr %10, align 8, !tbaa !12
  %200 = fmul double %198, %199
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %201, i32 noundef 5)
  store double %200, ptr %202, align 8, !tbaa !12
  %203 = load double, ptr %8, align 8, !tbaa !12
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %204, i32 noundef 6)
  %206 = load double, ptr %205, align 8, !tbaa !12
  %207 = fdiv double %206, %203
  store double %207, ptr %205, align 8, !tbaa !12
  %208 = load double, ptr %8, align 8, !tbaa !12
  %209 = load ptr, ptr %6, align 8, !tbaa !5
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %209, i32 noundef 7)
  %211 = load double, ptr %210, align 8, !tbaa !12
  %212 = fdiv double %211, %208
  store double %212, ptr %210, align 8, !tbaa !12
  store i1 true, ptr %4, align 1
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %213

213:                                              ; preds = %96, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %214 = load i1, ptr %4, align 1
  ret i1 %214
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint mustprogress 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 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN11libNumerics8ComputeH13NormalizationE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"double", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!10, !11, i64 16}


; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN11libNumerics8ComputeH12de_normalizeERKNS0_13NormalizationERNS_6vectorIdEES3_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %2) local_unnamed_addr #2 align 2 {
  %4 = load double, ptr %2, align 8, !tbaa !5
  %5 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
  %6 = load double, ptr %5, align 8, !tbaa !10
  %7 = getelementptr inbounds i8, ptr %2, i64 8
  %8 = load double, ptr %7, align 8, !tbaa !11
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1)
  %10 = load double, ptr %9, align 8, !tbaa !10
  %11 = fmul double %8, %10
  %12 = tail call double @llvm.fmuladd.f64(double %4, double %6, double %11)
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 4)
  %14 = load double, ptr %13, align 8, !tbaa !10
  %15 = fadd double %14, %12
  store double %15, ptr %13, align 8, !tbaa !10
  %16 = getelementptr inbounds i8, ptr %2, i64 16
  %17 = load double, ptr %16, align 8, !tbaa !12
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
  %19 = load double, ptr %18, align 8, !tbaa !10
  %20 = fmul double %17, %19
  store double %20, ptr %18, align 8, !tbaa !10
  %21 = load double, ptr %16, align 8, !tbaa !12
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1)
  %23 = load double, ptr %22, align 8, !tbaa !10
  %24 = fmul double %21, %23
  store double %24, ptr %22, align 8, !tbaa !10
  %25 = load double, ptr %2, align 8, !tbaa !5
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 2)
  %27 = load double, ptr %26, align 8, !tbaa !10
  %28 = load double, ptr %7, align 8, !tbaa !11
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 3)
  %30 = load double, ptr %29, align 8, !tbaa !10
  %31 = fmul double %28, %30
  %32 = tail call double @llvm.fmuladd.f64(double %25, double %27, double %31)
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 5)
  %34 = load double, ptr %33, align 8, !tbaa !10
  %35 = fadd double %34, %32
  store double %35, ptr %33, align 8, !tbaa !10
  %36 = load double, ptr %16, align 8, !tbaa !12
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 2)
  %38 = load double, ptr %37, align 8, !tbaa !10
  %39 = fmul double %36, %38
  store double %39, ptr %37, align 8, !tbaa !10
  %40 = load double, ptr %16, align 8, !tbaa !12
  %41 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 3)
  %42 = load double, ptr %41, align 8, !tbaa !10
  %43 = fmul double %40, %42
  store double %43, ptr %41, align 8, !tbaa !10
  %44 = load double, ptr %2, align 8, !tbaa !5
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 6)
  %46 = load double, ptr %45, align 8, !tbaa !10
  %47 = load double, ptr %7, align 8, !tbaa !11
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 7)
  %49 = load double, ptr %48, align 8, !tbaa !10
  %50 = fmul double %47, %49
  %51 = tail call double @llvm.fmuladd.f64(double %44, double %46, double %50)
  %52 = fadd double %51, 1.000000e+00
  %53 = tail call double @llvm.fabs.f64(double %52)
  %or.cond = fcmp uge double %53, 0x3F50624DE0000000
  br i1 %or.cond, label %54, label %124

54:                                               ; preds = %3
  %55 = load double, ptr %16, align 8, !tbaa !12
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 6)
  %57 = load double, ptr %56, align 8, !tbaa !10
  %58 = fmul double %55, %57
  store double %58, ptr %56, align 8, !tbaa !10
  %59 = load double, ptr %16, align 8, !tbaa !12
  %60 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 7)
  %61 = load double, ptr %60, align 8, !tbaa !10
  %62 = fmul double %59, %61
  store double %62, ptr %60, align 8, !tbaa !10
  %63 = getelementptr inbounds i8, ptr %0, i64 16
  %64 = load double, ptr %63, align 8, !tbaa !12
  %65 = fmul double %52, %64
  %66 = fdiv double 1.000000e+00, %65
  %67 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
  %68 = load double, ptr %67, align 8, !tbaa !10
  %69 = load double, ptr %0, align 8, !tbaa !5
  %70 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 6)
  %71 = load double, ptr %70, align 8, !tbaa !10
  %72 = fneg double %69
  %73 = tail call double @llvm.fmuladd.f64(double %72, double %71, double %68)
  %74 = fmul double %66, %73
  %75 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
  store double %74, ptr %75, align 8, !tbaa !10
  %76 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1)
  %77 = load double, ptr %76, align 8, !tbaa !10
  %78 = load double, ptr %0, align 8, !tbaa !5
  %79 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 7)
  %80 = load double, ptr %79, align 8, !tbaa !10
  %81 = fneg double %78
  %82 = tail call double @llvm.fmuladd.f64(double %81, double %80, double %77)
  %83 = fmul double %66, %82
  %84 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1)
  store double %83, ptr %84, align 8, !tbaa !10
  %85 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 4)
  %86 = load double, ptr %85, align 8, !tbaa !10
  %87 = load double, ptr %0, align 8, !tbaa !5
  %88 = fneg double %87
  %89 = tail call double @llvm.fmuladd.f64(double %88, double %52, double %86)
  %90 = fmul double %66, %89
  %91 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 4)
  store double %90, ptr %91, align 8, !tbaa !10
  %92 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 2)
  %93 = load double, ptr %92, align 8, !tbaa !10
  %94 = getelementptr inbounds i8, ptr %0, i64 8
  %95 = load double, ptr %94, align 8, !tbaa !11
  %96 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 6)
  %97 = load double, ptr %96, align 8, !tbaa !10
  %98 = fneg double %95
  %99 = tail call double @llvm.fmuladd.f64(double %98, double %97, double %93)
  %100 = fmul double %66, %99
  %101 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 2)
  store double %100, ptr %101, align 8, !tbaa !10
  %102 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 3)
  %103 = load double, ptr %102, align 8, !tbaa !10
  %104 = load double, ptr %94, align 8, !tbaa !11
  %105 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 7)
  %106 = load double, ptr %105, align 8, !tbaa !10
  %107 = fneg double %104
  %108 = tail call double @llvm.fmuladd.f64(double %107, double %106, double %103)
  %109 = fmul double %66, %108
  %110 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 3)
  store double %109, ptr %110, align 8, !tbaa !10
  %111 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 5)
  %112 = load double, ptr %111, align 8, !tbaa !10
  %113 = load double, ptr %94, align 8, !tbaa !11
  %114 = fneg double %113
  %115 = tail call double @llvm.fmuladd.f64(double %114, double %52, double %112)
  %116 = fmul double %66, %115
  %117 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 5)
  store double %116, ptr %117, align 8, !tbaa !10
  %118 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 6)
  %119 = load double, ptr %118, align 8, !tbaa !10
  %120 = fdiv double %119, %52
  store double %120, ptr %118, align 8, !tbaa !10
  %121 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 7)
  %122 = load double, ptr %121, align 8, !tbaa !10
  %123 = fdiv double %122, %52
  store double %123, ptr %121, align 8, !tbaa !10
  br label %124

124:                                              ; preds = %3, %54
  ret i1 %or.cond
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #3

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

!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 = !{!"_ZTSN11libNumerics8ComputeH13NormalizationE", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !7, i64 16}


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