; 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::Size3" = type { i64, i64, i64 }
%"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::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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef, i64 noundef, i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK3jet21CollocatedVectorGrid321divergenceAtDataPointEmmm(ptr noundef nonnull align 8 dereferenceable(320) %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #2 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"class.jet::Size3", align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store i64 %2, ptr %7, align 8, !tbaa !9
  store i64 %3, ptr %8, align 8, !tbaa !9
  %17 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #4
  %18 = getelementptr inbounds %"class.jet::CollocatedVectorGrid3", ptr %17, i32 0, i32 1
  call void @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size3") align 8 %9, ptr noundef nonnull align 8 dereferenceable(48) %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %19 = getelementptr inbounds i8, ptr %17, i64 8
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid311gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(128) %19)
  store ptr %20, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %21 = getelementptr inbounds %"class.jet::CollocatedVectorGrid3", ptr %17, i32 0, i32 1
  %22 = load i64, ptr %6, align 8, !tbaa !9
  %23 = icmp ugt i64 %22, 0
  br i1 %23, label %24, label %27

24:                                               ; preds = %4
  %25 = load i64, ptr %6, align 8, !tbaa !9
  %26 = sub i64 %25, 1
  br label %29

27:                                               ; preds = %4
  %28 = load i64, ptr %6, align 8, !tbaa !9
  br label %29

29:                                               ; preds = %27, %24
  %30 = phi i64 [ %26, %24 ], [ %28, %27 ]
  %31 = load i64, ptr %7, align 8, !tbaa !9
  %32 = load i64, ptr %8, align 8, !tbaa !9
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %21, i64 noundef %30, i64 noundef %31, i64 noundef %32)
  %34 = getelementptr inbounds %"class.jet::Vector", ptr %33, i32 0, i32 0
  %35 = load double, ptr %34, align 8, !tbaa !11
  store double %35, ptr %11, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %36 = getelementptr inbounds %"class.jet::CollocatedVectorGrid3", ptr %17, i32 0, i32 1
  %37 = load i64, ptr %6, align 8, !tbaa !9
  %38 = add i64 %37, 1
  %39 = getelementptr inbounds %"class.jet::Size3", ptr %9, i32 0, i32 0
  %40 = load i64, ptr %39, align 8, !tbaa !15
  %41 = icmp ult i64 %38, %40
  br i1 %41, label %42, label %45

42:                                               ; preds = %29
  %43 = load i64, ptr %6, align 8, !tbaa !9
  %44 = add i64 %43, 1
  br label %47

45:                                               ; preds = %29
  %46 = load i64, ptr %6, align 8, !tbaa !9
  br label %47

47:                                               ; preds = %45, %42
  %48 = phi i64 [ %44, %42 ], [ %46, %45 ]
  %49 = load i64, ptr %7, align 8, !tbaa !9
  %50 = load i64, ptr %8, align 8, !tbaa !9
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %36, i64 noundef %48, i64 noundef %49, i64 noundef %50)
  %52 = getelementptr inbounds %"class.jet::Vector", ptr %51, i32 0, i32 0
  %53 = load double, ptr %52, align 8, !tbaa !11
  store double %53, ptr %12, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %54 = getelementptr inbounds %"class.jet::CollocatedVectorGrid3", ptr %17, i32 0, i32 1
  %55 = load i64, ptr %6, align 8, !tbaa !9
  %56 = load i64, ptr %7, align 8, !tbaa !9
  %57 = icmp ugt i64 %56, 0
  br i1 %57, label %58, label %61

58:                                               ; preds = %47
  %59 = load i64, ptr %7, align 8, !tbaa !9
  %60 = sub i64 %59, 1
  br label %63

61:                                               ; preds = %47
  %62 = load i64, ptr %7, align 8, !tbaa !9
  br label %63

63:                                               ; preds = %61, %58
  %64 = phi i64 [ %60, %58 ], [ %62, %61 ]
  %65 = load i64, ptr %8, align 8, !tbaa !9
  %66 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %54, i64 noundef %55, i64 noundef %64, i64 noundef %65)
  %67 = getelementptr inbounds %"class.jet::Vector", ptr %66, i32 0, i32 1
  %68 = load double, ptr %67, align 8, !tbaa !17
  store double %68, ptr %13, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %69 = getelementptr inbounds %"class.jet::CollocatedVectorGrid3", ptr %17, i32 0, i32 1
  %70 = load i64, ptr %6, align 8, !tbaa !9
  %71 = load i64, ptr %7, align 8, !tbaa !9
  %72 = add i64 %71, 1
  %73 = getelementptr inbounds %"class.jet::Size3", ptr %9, i32 0, i32 1
  %74 = load i64, ptr %73, align 8, !tbaa !18
  %75 = icmp ult i64 %72, %74
  br i1 %75, label %76, label %79

76:                                               ; preds = %63
  %77 = load i64, ptr %7, align 8, !tbaa !9
  %78 = add i64 %77, 1
  br label %81

79:                                               ; preds = %63
  %80 = load i64, ptr %7, align 8, !tbaa !9
  br label %81

81:                                               ; preds = %79, %76
  %82 = phi i64 [ %78, %76 ], [ %80, %79 ]
  %83 = load i64, ptr %8, align 8, !tbaa !9
  %84 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %69, i64 noundef %70, i64 noundef %82, i64 noundef %83)
  %85 = getelementptr inbounds %"class.jet::Vector", ptr %84, i32 0, i32 1
  %86 = load double, ptr %85, align 8, !tbaa !17
  store double %86, ptr %14, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %87 = getelementptr inbounds %"class.jet::CollocatedVectorGrid3", ptr %17, i32 0, i32 1
  %88 = load i64, ptr %6, align 8, !tbaa !9
  %89 = load i64, ptr %7, align 8, !tbaa !9
  %90 = load i64, ptr %8, align 8, !tbaa !9
  %91 = icmp ugt i64 %90, 0
  br i1 %91, label %92, label %95

92:                                               ; preds = %81
  %93 = load i64, ptr %8, align 8, !tbaa !9
  %94 = sub i64 %93, 1
  br label %97

95:                                               ; preds = %81
  %96 = load i64, ptr %8, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %95, %92
  %98 = phi i64 [ %94, %92 ], [ %96, %95 ]
  %99 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %87, i64 noundef %88, i64 noundef %89, i64 noundef %98)
  %100 = getelementptr inbounds %"class.jet::Vector", ptr %99, i32 0, i32 2
  %101 = load double, ptr %100, align 8, !tbaa !19
  store double %101, ptr %15, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %102 = getelementptr inbounds %"class.jet::CollocatedVectorGrid3", ptr %17, i32 0, i32 1
  %103 = load i64, ptr %6, align 8, !tbaa !9
  %104 = load i64, ptr %7, align 8, !tbaa !9
  %105 = load i64, ptr %8, align 8, !tbaa !9
  %106 = add i64 %105, 1
  %107 = getelementptr inbounds %"class.jet::Size3", ptr %9, i32 0, i32 2
  %108 = load i64, ptr %107, align 8, !tbaa !20
  %109 = icmp ult i64 %106, %108
  br i1 %109, label %110, label %113

110:                                              ; preds = %97
  %111 = load i64, ptr %8, align 8, !tbaa !9
  %112 = add i64 %111, 1
  br label %115

113:                                              ; preds = %97
  %114 = load i64, ptr %8, align 8, !tbaa !9
  br label %115

115:                                              ; preds = %113, %110
  %116 = phi i64 [ %112, %110 ], [ %114, %113 ]
  %117 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %102, i64 noundef %103, i64 noundef %104, i64 noundef %116)
  %118 = getelementptr inbounds %"class.jet::Vector", ptr %117, i32 0, i32 2
  %119 = load double, ptr %118, align 8, !tbaa !19
  store double %119, ptr %16, align 8, !tbaa !14
  %120 = load double, ptr %12, align 8, !tbaa !14
  %121 = load double, ptr %11, align 8, !tbaa !14
  %122 = fsub double %120, %121
  %123 = fmul double 5.000000e-01, %122
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = getelementptr inbounds %"class.jet::Vector", ptr %124, i32 0, i32 0
  %126 = load double, ptr %125, align 8, !tbaa !11
  %127 = fdiv double %123, %126
  %128 = load double, ptr %14, align 8, !tbaa !14
  %129 = load double, ptr %13, align 8, !tbaa !14
  %130 = fsub double %128, %129
  %131 = fmul double 5.000000e-01, %130
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds %"class.jet::Vector", ptr %132, i32 0, i32 1
  %134 = load double, ptr %133, align 8, !tbaa !17
  %135 = fdiv double %131, %134
  %136 = fadd double %127, %135
  %137 = load double, ptr %16, align 8, !tbaa !14
  %138 = load double, ptr %15, align 8, !tbaa !14
  %139 = fsub double %137, %138
  %140 = fmul double 5.000000e-01, %139
  %141 = load ptr, ptr %10, align 8, !tbaa !5
  %142 = getelementptr inbounds %"class.jet::Vector", ptr %141, i32 0, i32 2
  %143 = load double, ptr %142, align 8, !tbaa !19
  %144 = fdiv double %140, %143
  %145 = fadd double %136, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  ret double %145
}

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid311gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(128)) #3

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 = { "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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN3jet6VectorIdLm3EEE", !13, i64 0, !13, i64 8, !13, i64 16}
!13 = !{!"double", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTSN3jet5Size3E", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!12, !13, i64 8}
!18 = !{!16, !10, i64 8}
!19 = !{!12, !13, i64 16}
!20 = !{!16, !10, 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"

%"class.jet::Size3" = type { i64, i64, i64 }

; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK3jet21CollocatedVectorGrid321divergenceAtDataPointEmmm(ptr noundef nonnull align 8 dereferenceable(320) %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) local_unnamed_addr #2 align 2 {
  %5 = alloca %"class.jet::Size3", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  %6 = getelementptr inbounds i8, ptr %0, i64 136
  call void @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size3") align 8 %5, ptr noundef nonnull align 8 dereferenceable(48) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid311gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(128) %7)
  %9 = call i64 @llvm.usub.sat.i64(i64 %1, i64 1)
  %10 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %6, i64 noundef %9, i64 noundef %2, i64 noundef %3)
  %11 = load double, ptr %10, align 8, !tbaa !5
  %12 = add i64 %1, 1
  %13 = load i64, ptr %5, align 8, !tbaa !10
  %14 = icmp ult i64 %12, %13
  %15 = select i1 %14, i64 %12, i64 %1
  %16 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %6, i64 noundef %15, i64 noundef %2, i64 noundef %3)
  %17 = load double, ptr %16, align 8, !tbaa !5
  %18 = call i64 @llvm.usub.sat.i64(i64 %2, i64 1)
  %19 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %6, i64 noundef %1, i64 noundef %18, i64 noundef %3)
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  %21 = load <2 x double>, ptr %20, align 8
  %22 = add i64 %2, 1
  %23 = getelementptr inbounds i8, ptr %5, i64 8
  %24 = load i64, ptr %23, align 8, !tbaa !13
  %25 = icmp ult i64 %22, %24
  %26 = select i1 %25, i64 %22, i64 %2
  %27 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %6, i64 noundef %1, i64 noundef %26, i64 noundef %3)
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load <2 x double>, ptr %28, align 8
  %30 = call i64 @llvm.usub.sat.i64(i64 %3, i64 1)
  %31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %6, i64 noundef %1, i64 noundef %2, i64 noundef %30)
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %33 = load double, ptr %32, align 8, !tbaa !14
  %34 = add i64 %3, 1
  %35 = getelementptr inbounds i8, ptr %5, i64 16
  %36 = load i64, ptr %35, align 8, !tbaa !15
  %37 = icmp ult i64 %34, %36
  %38 = select i1 %37, i64 %34, i64 %3
  %39 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5ArrayINS_6VectorIdLm3EEELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %6, i64 noundef %1, i64 noundef %2, i64 noundef %38)
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  %41 = load double, ptr %40, align 8, !tbaa !14
  %42 = fsub double %17, %11
  %43 = fmul double %42, 5.000000e-01
  %44 = load double, ptr %8, align 8, !tbaa !5
  %45 = fdiv double %43, %44
  %46 = getelementptr inbounds i8, ptr %8, i64 8
  %47 = insertelement <2 x double> %29, double %41, i64 1
  %48 = insertelement <2 x double> %21, double %33, i64 1
  %49 = fsub <2 x double> %47, %48
  %50 = fmul <2 x double> %49, <double 5.000000e-01, double 5.000000e-01>
  %51 = load <2 x double>, ptr %46, align 8, !tbaa !16
  %52 = fdiv <2 x double> %50, %51
  %53 = extractelement <2 x double> %52, i64 0
  %54 = fadd double %45, %53
  %55 = extractelement <2 x double> %52, i64 1
  %56 = fadd double %54, %55
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  ret double %56
}

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid311gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.usub.sat.i64(i64, i64) #4

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 = { "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, !7, i64 0}
!6 = !{!"_ZTSN3jet6VectorIdLm3EEE", !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 = !{!11, !12, i64 0}
!11 = !{!"_ZTSN3jet5Size3E", !12, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !12, i64 8}
!14 = !{!6, !7, i64 16}
!15 = !{!11, !12, i64 16}
!16 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass