; LLVM IR from doyubkim/fluid-engine-dev :: src/jet (collocated_vector_grid3)

; 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.std::array" = type { [8 x %"class.jet::Point"] }
%"class.jet::Point" = type { i64, i64, i64 }
%"struct.std::array.0" = type { [8 x double] }
%"class.jet::CollocatedVectorGrid3" = type { %"class.jet::VectorGrid3", %"class.jet::Array", %"class.jet::LinearArraySampler", %"class.std::function" }
%"class.jet::VectorGrid3" = type { %"class.jet::VectorField3", %"class.jet::Grid3" }
%"class.jet::VectorField3" = type { %"class.jet::Field3" }
%"class.jet::Field3" = type { ptr }
%"class.jet::Grid3" = type { %"class.jet::Serializable", %"class.jet::Size3", %"class.jet::Vector", %"class.jet::Vector", %"class.jet::BoundingBox" }
%"class.jet::Serializable" = type { ptr }
%"class.jet::Size3" = type { i64, i64, i64 }
%"class.jet::Vector" = type { double, double, double }
%"class.jet::BoundingBox" = type { %"class.jet::Vector", %"class.jet::Vector" }
%"class.jet::Array" = type { %"class.jet::Size3", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<jet::Vector<double, 3>, std::allocator<jet::Vector<double, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Vector<double, 3>, std::allocator<jet::Vector<double, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Vector<double, 3>, std::allocator<jet::Vector<double, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Vector<double, 3>, std::allocator<jet::Vector<double, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.jet::LinearArraySampler" = type { %"class.jet::Vector", %"class.jet::Vector", %"class.jet::Vector", %"class.jet::ConstArrayAccessor" }
%"class.jet::ConstArrayAccessor" = type { %"class.jet::Size3", ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK3jet21CollocatedVectorGrid321divergenceAtDataPointEmmm(ptr noundef nonnull align 8 dereferenceable(320), i64 noundef, i64 noundef, i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK3jet21CollocatedVectorGrid310divergenceERKNS_6VectorIdLm3EEE(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.std::array", align 8
  %6 = alloca %"struct.std::array.0", align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 192, ptr %5) #5
  call void @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(192) %5)
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #5
  %10 = getelementptr inbounds %"class.jet::CollocatedVectorGrid3", ptr %9, i32 0, i32 2
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3jet18LinearArraySamplerINS_6VectorIdLm3EEEdLm3EE24getCoordinatesAndWeightsERKS2_PSt5arrayINS_5PointImLm3EEELm8EEPS6_IdLm8EE(ptr noundef nonnull align 8 dereferenceable(104) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef %5, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %12

12:                                               ; preds = %39, %2
  %13 = load i32, ptr %8, align 4, !tbaa !11
  %14 = icmp slt i32 %13, 8
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %42

16:                                               ; preds = %12
  %17 = load i32, ptr %8, align 4, !tbaa !11
  %18 = sext i32 %17 to i64
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %6, i64 noundef %18) #5
  %20 = load double, ptr %19, align 8, !tbaa !9
  %21 = load i32, ptr %8, align 4, !tbaa !11
  %22 = sext i32 %21 to i64
  %23 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %5, i64 noundef %22) #5
  %24 = getelementptr inbounds %"class.jet::Point", ptr %23, i32 0, i32 0
  %25 = load i64, ptr %24, align 8, !tbaa !13
  %26 = load i32, ptr %8, align 4, !tbaa !11
  %27 = sext i32 %26 to i64
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %5, i64 noundef %27) #5
  %29 = getelementptr inbounds %"class.jet::Point", ptr %28, i32 0, i32 1
  %30 = load i64, ptr %29, align 8, !tbaa !16
  %31 = load i32, ptr %8, align 4, !tbaa !11
  %32 = sext i32 %31 to i64
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %5, i64 noundef %32) #5
  %34 = getelementptr inbounds %"class.jet::Point", ptr %33, i32 0, i32 2
  %35 = load i64, ptr %34, align 8, !tbaa !17
  %36 = call noundef double @_ZNK3jet21CollocatedVectorGrid321divergenceAtDataPointEmmm(ptr noundef nonnull align 8 dereferenceable(320) %9, i64 noundef %25, i64 noundef %30, i64 noundef %35)
  %37 = load double, ptr %7, align 8, !tbaa !9
  %38 = call double @llvm.fmuladd.f64(double %20, double %36, double %37)
  store double %38, ptr %7, align 8, !tbaa !9
  br label %39

39:                                               ; preds = %16
  %40 = load i32, ptr %8, align 4, !tbaa !11
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %8, align 4, !tbaa !11
  br label %12, !llvm.loop !18

42:                                               ; preds = %15
  %43 = load double, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 192, ptr %5) #5
  ret double %43
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(192)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3jet18LinearArraySamplerINS_6VectorIdLm3EEEdLm3EE24getCoordinatesAndWeightsERKS2_PSt5arrayINS_5PointImLm3EEELm8EEPS6_IdLm8EE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192), i64 noundef) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint 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 #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN3jet5PointImLm3EEE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!14, !15, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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

%"struct.std::array" = type { [8 x %"class.jet::Point"] }
%"class.jet::Point" = type { i64, i64, i64 }
%"struct.std::array.0" = type { [8 x double] }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK3jet21CollocatedVectorGrid321divergenceAtDataPointEmmm(ptr noundef nonnull align 8 dereferenceable(320), i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK3jet21CollocatedVectorGrid310divergenceERKNS_6VectorIdLm3EEE(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) unnamed_addr #1 align 2 {
  %3 = alloca %"struct.std::array", align 8
  %4 = alloca %"struct.std::array.0", align 8
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %3) #5
  call void @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(192) %3)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #5
  %5 = getelementptr inbounds i8, ptr %0, i64 184
  call void @_ZNK3jet18LinearArraySamplerINS_6VectorIdLm3EEEdLm3EE24getCoordinatesAndWeightsERKS2_PSt5arrayINS_5PointImLm3EEELm8EEPS6_IdLm8EE(ptr noundef nonnull align 8 dereferenceable(104) %5, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %6 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 0) #5
  %7 = load double, ptr %6, align 8, !tbaa !5
  %8 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 0) #5
  %9 = load i64, ptr %8, align 8, !tbaa !9
  %10 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 0) #5
  %11 = getelementptr inbounds i8, ptr %10, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !12
  %13 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 0) #5
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  %15 = load i64, ptr %14, align 8, !tbaa !13
  %16 = call noundef double @_ZNK3jet21CollocatedVectorGrid321divergenceAtDataPointEmmm(ptr noundef nonnull align 8 dereferenceable(320) %0, i64 noundef %9, i64 noundef %12, i64 noundef %15)
  %17 = call double @llvm.fmuladd.f64(double %7, double %16, double 0.000000e+00)
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 1) #5
  %19 = load double, ptr %18, align 8, !tbaa !5
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 1) #5
  %21 = load i64, ptr %20, align 8, !tbaa !9
  %22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 1) #5
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  %24 = load i64, ptr %23, align 8, !tbaa !12
  %25 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 1) #5
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %27 = load i64, ptr %26, align 8, !tbaa !13
  %28 = call noundef double @_ZNK3jet21CollocatedVectorGrid321divergenceAtDataPointEmmm(ptr noundef nonnull align 8 dereferenceable(320) %0, i64 noundef %21, i64 noundef %24, i64 noundef %27)
  %29 = call double @llvm.fmuladd.f64(double %19, double %28, double %17)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 2) #5
  %31 = load double, ptr %30, align 8, !tbaa !5
  %32 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 2) #5
  %33 = load i64, ptr %32, align 8, !tbaa !9
  %34 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 2) #5
  %35 = getelementptr inbounds i8, ptr %34, i64 8
  %36 = load i64, ptr %35, align 8, !tbaa !12
  %37 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 2) #5
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  %39 = load i64, ptr %38, align 8, !tbaa !13
  %40 = call noundef double @_ZNK3jet21CollocatedVectorGrid321divergenceAtDataPointEmmm(ptr noundef nonnull align 8 dereferenceable(320) %0, i64 noundef %33, i64 noundef %36, i64 noundef %39)
  %41 = call double @llvm.fmuladd.f64(double %31, double %40, double %29)
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 3) #5
  %43 = load double, ptr %42, align 8, !tbaa !5
  %44 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 3) #5
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 3) #5
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  %48 = load i64, ptr %47, align 8, !tbaa !12
  %49 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 3) #5
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  %51 = load i64, ptr %50, align 8, !tbaa !13
  %52 = call noundef double @_ZNK3jet21CollocatedVectorGrid321divergenceAtDataPointEmmm(ptr noundef nonnull align 8 dereferenceable(320) %0, i64 noundef %45, i64 noundef %48, i64 noundef %51)
  %53 = call double @llvm.fmuladd.f64(double %43, double %52, double %41)
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 4) #5
  %55 = load double, ptr %54, align 8, !tbaa !5
  %56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 4) #5
  %57 = load i64, ptr %56, align 8, !tbaa !9
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 4) #5
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  %60 = load i64, ptr %59, align 8, !tbaa !12
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 4) #5
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %63 = load i64, ptr %62, align 8, !tbaa !13
  %64 = call noundef double @_ZNK3jet21CollocatedVectorGrid321divergenceAtDataPointEmmm(ptr noundef nonnull align 8 dereferenceable(320) %0, i64 noundef %57, i64 noundef %60, i64 noundef %63)
  %65 = call double @llvm.fmuladd.f64(double %55, double %64, double %53)
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 5) #5
  %67 = load double, ptr %66, align 8, !tbaa !5
  %68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 5) #5
  %69 = load i64, ptr %68, align 8, !tbaa !9
  %70 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 5) #5
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  %72 = load i64, ptr %71, align 8, !tbaa !12
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 5) #5
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  %75 = load i64, ptr %74, align 8, !tbaa !13
  %76 = call noundef double @_ZNK3jet21CollocatedVectorGrid321divergenceAtDataPointEmmm(ptr noundef nonnull align 8 dereferenceable(320) %0, i64 noundef %69, i64 noundef %72, i64 noundef %75)
  %77 = call double @llvm.fmuladd.f64(double %67, double %76, double %65)
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 6) #5
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 6) #5
  %81 = load i64, ptr %80, align 8, !tbaa !9
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 6) #5
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  %84 = load i64, ptr %83, align 8, !tbaa !12
  %85 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 6) #5
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  %87 = load i64, ptr %86, align 8, !tbaa !13
  %88 = call noundef double @_ZNK3jet21CollocatedVectorGrid321divergenceAtDataPointEmmm(ptr noundef nonnull align 8 dereferenceable(320) %0, i64 noundef %81, i64 noundef %84, i64 noundef %87)
  %89 = call double @llvm.fmuladd.f64(double %79, double %88, double %77)
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 7) #5
  %91 = load double, ptr %90, align 8, !tbaa !5
  %92 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 7) #5
  %93 = load i64, ptr %92, align 8, !tbaa !9
  %94 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 7) #5
  %95 = getelementptr inbounds i8, ptr %94, i64 8
  %96 = load i64, ptr %95, align 8, !tbaa !12
  %97 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %3, i64 noundef 7) #5
  %98 = getelementptr inbounds i8, ptr %97, i64 16
  %99 = load i64, ptr %98, align 8, !tbaa !13
  %100 = call noundef double @_ZNK3jet21CollocatedVectorGrid321divergenceAtDataPointEmmm(ptr noundef nonnull align 8 dereferenceable(320) %0, i64 noundef %93, i64 noundef %96, i64 noundef %99)
  %101 = call double @llvm.fmuladd.f64(double %91, double %100, double %89)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %3) #5
  ret double %101
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(192)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3jet18LinearArraySamplerINS_6VectorIdLm3EEEdLm3EE24getCoordinatesAndWeightsERKS2_PSt5arrayINS_5PointImLm3EEELm8EEPS6_IdLm8EE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192), i64 noundef) local_unnamed_addr #3 align 2

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,SROAPass,SimplifyCFGPass