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

%"class.jet::Vector" = type { double, double, double }
%"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::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: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet6VectorIdLm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; 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 void @_ZNK3jet21CollocatedVectorGrid315curlAtDataPointEmmm(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(320), i64 noundef, i64 noundef, i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(192)) unnamed_addr #3 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) #2 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) #1 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) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3jet21CollocatedVectorGrid34curlERKNS_6VectorIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(320) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) unnamed_addr #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.std::array", align 8
  %8 = alloca %"struct.std::array.0", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.jet::Vector", align 8
  %11 = alloca %"class.jet::Vector", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 192, ptr %7) #4
  call void @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(192) %7)
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #4
  %13 = getelementptr inbounds %"class.jet::CollocatedVectorGrid3", ptr %12, i32 0, i32 2
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK3jet18LinearArraySamplerINS_6VectorIdLm3EEEdLm3EE24getCoordinatesAndWeightsERKS2_PSt5arrayINS_5PointImLm3EEELm8EEPS6_IdLm8EE(ptr noundef nonnull align 8 dereferenceable(104) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef %7, ptr noundef %8)
  call void @_ZN3jet6VectorIdLm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %40, %3
  %16 = load i32, ptr %9, align 4, !tbaa !9
  %17 = icmp slt i32 %16, 8
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %43

19:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  %20 = load i32, ptr %9, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %8, i64 noundef %21) #4
  %23 = load double, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #4
  %24 = load i32, ptr %9, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %7, i64 noundef %25) #4
  %27 = getelementptr inbounds %"class.jet::Point", ptr %26, i32 0, i32 0
  %28 = load i64, ptr %27, align 8, !tbaa !13
  %29 = load i32, ptr %9, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %7, i64 noundef %30) #4
  %32 = getelementptr inbounds %"class.jet::Point", ptr %31, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !16
  %34 = load i32, ptr %9, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %7, i64 noundef %35) #4
  %37 = getelementptr inbounds %"class.jet::Point", ptr %36, i32 0, i32 2
  %38 = load i64, ptr %37, align 8, !tbaa !17
  call void @_ZNK3jet21CollocatedVectorGrid315curlAtDataPointEmmm(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %11, ptr noundef nonnull align 8 dereferenceable(320) %12, i64 noundef %28, i64 noundef %33, i64 noundef %38)
  call void @_ZN3jetmlIdEENS_6VectorIT_Lm3EEES2_RKS3_(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %10, double noundef %23, ptr noundef nonnull align 8 dereferenceable(24) %11)
  %39 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3jet6VectorIdLm3EEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  br label %40

40:                                               ; preds = %19
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %9, align 4, !tbaa !9
  br label %15, !llvm.loop !18

43:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 192, ptr %7) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jetmlIdEENS_6VectorIT_Lm3EEES2_RKS3_(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(24)) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 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 = { 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !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"

%"class.jet::Vector" = type { double, double, double }
%"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 nounwind uwtable
declare dso_local void @_ZN3jet6VectorIdLm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; 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 void @_ZNK3jet21CollocatedVectorGrid315curlAtDataPointEmmm(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(320), i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt5arrayIN3jet5PointImLm3EEELm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(192)) unnamed_addr #3 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 #2 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 #1 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 #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jetmlIdEENS_6VectorIT_Lm3EEES2_RKS3_(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 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 = { 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 #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 = !{!"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,LoopRotatePass,SROAPass,SimplifyCFGPass