; LLVM IR from doyubkim/fluid-engine-dev :: src/jet/face_centered_grid3.ll (ZNK3jet17FaceCenteredGrid316curlAtCellCenterEmmm)

; 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 }
%"class.jet::Size3" = type { i64, i64, i64 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3jet17FaceCenteredGrid316curlAtCellCenterEmmm(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(696) %1, i64 noundef %2, i64 noundef %3, i64 noundef %4) #2 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.jet::Vector", align 8
  %14 = alloca %"class.jet::Vector", align 8
  %15 = alloca %"class.jet::Vector", align 8
  %16 = alloca %"class.jet::Vector", align 8
  %17 = alloca %"class.jet::Vector", align 8
  %18 = alloca %"class.jet::Vector", align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store i64 %3, ptr %9, align 8, !tbaa !9
  store i64 %4, ptr %10, align 8, !tbaa !9
  %31 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid310resolutionEv(ptr noundef nonnull align 8 dereferenceable(128) %32)
  store ptr %33, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %34 = getelementptr inbounds i8, ptr %31, i64 8
  %35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid311gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(128) %34)
  store ptr %35, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #4
  %36 = load i64, ptr %8, align 8, !tbaa !9
  %37 = icmp ugt i64 %36, 0
  br i1 %37, label %38, label %41

38:                                               ; preds = %5
  %39 = load i64, ptr %8, align 8, !tbaa !9
  %40 = sub i64 %39, 1
  br label %43

41:                                               ; preds = %5
  %42 = load i64, ptr %8, align 8, !tbaa !9
  br label %43

43:                                               ; preds = %41, %38
  %44 = phi i64 [ %40, %38 ], [ %42, %41 ]
  %45 = load i64, ptr %9, align 8, !tbaa !9
  %46 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZNK3jet17FaceCenteredGrid317valueAtCellCenterEmmm(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %13, ptr noundef nonnull align 8 dereferenceable(696) %31, i64 noundef %44, i64 noundef %45, i64 noundef %46)
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #4
  %47 = load i64, ptr %8, align 8, !tbaa !9
  %48 = add i64 %47, 1
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds %"class.jet::Size3", ptr %49, i32 0, i32 0
  %51 = load i64, ptr %50, align 8, !tbaa !11
  %52 = icmp ult i64 %48, %51
  br i1 %52, label %53, label %56

53:                                               ; preds = %43
  %54 = load i64, ptr %8, align 8, !tbaa !9
  %55 = add i64 %54, 1
  br label %58

56:                                               ; preds = %43
  %57 = load i64, ptr %8, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %56, %53
  %59 = phi i64 [ %55, %53 ], [ %57, %56 ]
  %60 = load i64, ptr %9, align 8, !tbaa !9
  %61 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZNK3jet17FaceCenteredGrid317valueAtCellCenterEmmm(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %14, ptr noundef nonnull align 8 dereferenceable(696) %31, i64 noundef %59, i64 noundef %60, i64 noundef %61)
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #4
  %62 = load i64, ptr %8, align 8, !tbaa !9
  %63 = load i64, ptr %9, align 8, !tbaa !9
  %64 = icmp ugt i64 %63, 0
  br i1 %64, label %65, label %68

65:                                               ; preds = %58
  %66 = load i64, ptr %9, align 8, !tbaa !9
  %67 = sub i64 %66, 1
  br label %70

68:                                               ; preds = %58
  %69 = load i64, ptr %9, align 8, !tbaa !9
  br label %70

70:                                               ; preds = %68, %65
  %71 = phi i64 [ %67, %65 ], [ %69, %68 ]
  %72 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZNK3jet17FaceCenteredGrid317valueAtCellCenterEmmm(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %15, ptr noundef nonnull align 8 dereferenceable(696) %31, i64 noundef %62, i64 noundef %71, i64 noundef %72)
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #4
  %73 = load i64, ptr %8, align 8, !tbaa !9
  %74 = load i64, ptr %9, align 8, !tbaa !9
  %75 = add i64 %74, 1
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.jet::Size3", ptr %76, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !13
  %79 = icmp ult i64 %75, %78
  br i1 %79, label %80, label %83

80:                                               ; preds = %70
  %81 = load i64, ptr %9, align 8, !tbaa !9
  %82 = add i64 %81, 1
  br label %85

83:                                               ; preds = %70
  %84 = load i64, ptr %9, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %83, %80
  %86 = phi i64 [ %82, %80 ], [ %84, %83 ]
  %87 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZNK3jet17FaceCenteredGrid317valueAtCellCenterEmmm(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %16, ptr noundef nonnull align 8 dereferenceable(696) %31, i64 noundef %73, i64 noundef %86, i64 noundef %87)
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #4
  %88 = load i64, ptr %8, align 8, !tbaa !9
  %89 = load i64, ptr %9, align 8, !tbaa !9
  %90 = load i64, ptr %10, align 8, !tbaa !9
  %91 = icmp ugt i64 %90, 0
  br i1 %91, label %92, label %95

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

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

97:                                               ; preds = %95, %92
  %98 = phi i64 [ %94, %92 ], [ %96, %95 ]
  call void @_ZNK3jet17FaceCenteredGrid317valueAtCellCenterEmmm(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %17, ptr noundef nonnull align 8 dereferenceable(696) %31, i64 noundef %88, i64 noundef %89, i64 noundef %98)
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #4
  %99 = load i64, ptr %8, align 8, !tbaa !9
  %100 = load i64, ptr %9, align 8, !tbaa !9
  %101 = load i64, ptr %10, align 8, !tbaa !9
  %102 = add i64 %101, 1
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.jet::Size3", ptr %103, i32 0, i32 2
  %105 = load i64, ptr %104, align 8, !tbaa !14
  %106 = icmp ult i64 %102, %105
  br i1 %106, label %107, label %110

107:                                              ; preds = %97
  %108 = load i64, ptr %10, align 8, !tbaa !9
  %109 = add i64 %108, 1
  br label %112

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

112:                                              ; preds = %110, %107
  %113 = phi i64 [ %109, %107 ], [ %111, %110 ]
  call void @_ZNK3jet17FaceCenteredGrid317valueAtCellCenterEmmm(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %18, ptr noundef nonnull align 8 dereferenceable(696) %31, i64 noundef %99, i64 noundef %100, i64 noundef %113)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %114 = getelementptr inbounds %"class.jet::Vector", ptr %15, i32 0, i32 0
  %115 = load double, ptr %114, align 8, !tbaa !15
  store double %115, ptr %19, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %116 = getelementptr inbounds %"class.jet::Vector", ptr %16, i32 0, i32 0
  %117 = load double, ptr %116, align 8, !tbaa !15
  store double %117, ptr %20, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %118 = getelementptr inbounds %"class.jet::Vector", ptr %17, i32 0, i32 0
  %119 = load double, ptr %118, align 8, !tbaa !15
  store double %119, ptr %21, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %120 = getelementptr inbounds %"class.jet::Vector", ptr %18, i32 0, i32 0
  %121 = load double, ptr %120, align 8, !tbaa !15
  store double %121, ptr %22, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %122 = getelementptr inbounds %"class.jet::Vector", ptr %13, i32 0, i32 1
  %123 = load double, ptr %122, align 8, !tbaa !19
  store double %123, ptr %23, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %124 = getelementptr inbounds %"class.jet::Vector", ptr %14, i32 0, i32 1
  %125 = load double, ptr %124, align 8, !tbaa !19
  store double %125, ptr %24, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %126 = getelementptr inbounds %"class.jet::Vector", ptr %17, i32 0, i32 1
  %127 = load double, ptr %126, align 8, !tbaa !19
  store double %127, ptr %25, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %128 = getelementptr inbounds %"class.jet::Vector", ptr %18, i32 0, i32 1
  %129 = load double, ptr %128, align 8, !tbaa !19
  store double %129, ptr %26, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %130 = getelementptr inbounds %"class.jet::Vector", ptr %13, i32 0, i32 2
  %131 = load double, ptr %130, align 8, !tbaa !20
  store double %131, ptr %27, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %132 = getelementptr inbounds %"class.jet::Vector", ptr %14, i32 0, i32 2
  %133 = load double, ptr %132, align 8, !tbaa !20
  store double %133, ptr %28, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %134 = getelementptr inbounds %"class.jet::Vector", ptr %15, i32 0, i32 2
  %135 = load double, ptr %134, align 8, !tbaa !20
  store double %135, ptr %29, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %136 = getelementptr inbounds %"class.jet::Vector", ptr %16, i32 0, i32 2
  %137 = load double, ptr %136, align 8, !tbaa !20
  store double %137, ptr %30, align 8, !tbaa !18
  %138 = load double, ptr %30, align 8, !tbaa !18
  %139 = load double, ptr %29, align 8, !tbaa !18
  %140 = fsub double %138, %139
  %141 = fmul double 5.000000e-01, %140
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = getelementptr inbounds %"class.jet::Vector", ptr %142, i32 0, i32 1
  %144 = load double, ptr %143, align 8, !tbaa !19
  %145 = fdiv double %141, %144
  %146 = load double, ptr %26, align 8, !tbaa !18
  %147 = load double, ptr %25, align 8, !tbaa !18
  %148 = fsub double %146, %147
  %149 = fmul double 5.000000e-01, %148
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  %151 = getelementptr inbounds %"class.jet::Vector", ptr %150, i32 0, i32 2
  %152 = load double, ptr %151, align 8, !tbaa !20
  %153 = fdiv double %149, %152
  %154 = fsub double %145, %153
  %155 = load double, ptr %22, align 8, !tbaa !18
  %156 = load double, ptr %21, align 8, !tbaa !18
  %157 = fsub double %155, %156
  %158 = fmul double 5.000000e-01, %157
  %159 = load ptr, ptr %12, align 8, !tbaa !5
  %160 = getelementptr inbounds %"class.jet::Vector", ptr %159, i32 0, i32 2
  %161 = load double, ptr %160, align 8, !tbaa !20
  %162 = fdiv double %158, %161
  %163 = load double, ptr %28, align 8, !tbaa !18
  %164 = load double, ptr %27, align 8, !tbaa !18
  %165 = fsub double %163, %164
  %166 = fmul double 5.000000e-01, %165
  %167 = load ptr, ptr %12, align 8, !tbaa !5
  %168 = getelementptr inbounds %"class.jet::Vector", ptr %167, i32 0, i32 0
  %169 = load double, ptr %168, align 8, !tbaa !15
  %170 = fdiv double %166, %169
  %171 = fsub double %162, %170
  %172 = load double, ptr %24, align 8, !tbaa !18
  %173 = load double, ptr %23, align 8, !tbaa !18
  %174 = fsub double %172, %173
  %175 = fmul double 5.000000e-01, %174
  %176 = load ptr, ptr %12, align 8, !tbaa !5
  %177 = getelementptr inbounds %"class.jet::Vector", ptr %176, i32 0, i32 0
  %178 = load double, ptr %177, align 8, !tbaa !15
  %179 = fdiv double %175, %178
  %180 = load double, ptr %20, align 8, !tbaa !18
  %181 = load double, ptr %19, align 8, !tbaa !18
  %182 = fsub double %180, %181
  %183 = fmul double 5.000000e-01, %182
  %184 = load ptr, ptr %12, align 8, !tbaa !5
  %185 = getelementptr inbounds %"class.jet::Vector", ptr %184, i32 0, i32 1
  %186 = load double, ptr %185, align 8, !tbaa !19
  %187 = fdiv double %183, %186
  %188 = fsub double %179, %187
  call void @_ZN3jet6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %0, double noundef %154, double noundef %171, double noundef %188)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 24, 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
  ret void
}

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 0}
!12 = !{!"_ZTSN3jet5Size3E", !10, i64 0, !10, i64 8, !10, i64 16}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 16}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTSN3jet6VectorIdLm3EEE", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!16, !17, i64 8}
!20 = !{!16, !17, 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::Vector" = type { double, double, double }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3jet17FaceCenteredGrid317valueAtCellCenterEmmm(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(696), i64 noundef, i64 noundef, i64 noundef) 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: mustprogress uwtable
define dso_local void @_ZNK3jet17FaceCenteredGrid316curlAtCellCenterEmmm(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(696) %1, i64 noundef %2, i64 noundef %3, i64 noundef %4) local_unnamed_addr #2 align 2 {
  %6 = alloca %"class.jet::Vector", align 8
  %7 = alloca %"class.jet::Vector", align 8
  %8 = alloca %"class.jet::Vector", align 8
  %9 = alloca %"class.jet::Vector", align 8
  %10 = alloca %"class.jet::Vector", align 16
  %11 = alloca %"class.jet::Vector", align 16
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid310resolutionEv(ptr noundef nonnull align 8 dereferenceable(128) %12)
  %14 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid311gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(128) %12)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  %15 = tail call i64 @llvm.usub.sat.i64(i64 %2, i64 1)
  call void @_ZNK3jet17FaceCenteredGrid317valueAtCellCenterEmmm(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %6, ptr noundef nonnull align 8 dereferenceable(696) %1, i64 noundef %15, i64 noundef %3, i64 noundef %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  %16 = add i64 %2, 1
  %17 = load i64, ptr %13, align 8, !tbaa !5
  %18 = icmp ult i64 %16, %17
  %19 = select i1 %18, i64 %16, i64 %2
  call void @_ZNK3jet17FaceCenteredGrid317valueAtCellCenterEmmm(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(696) %1, i64 noundef %19, i64 noundef %3, i64 noundef %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  %20 = call i64 @llvm.usub.sat.i64(i64 %3, i64 1)
  call void @_ZNK3jet17FaceCenteredGrid317valueAtCellCenterEmmm(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %8, ptr noundef nonnull align 8 dereferenceable(696) %1, i64 noundef %2, i64 noundef %20, i64 noundef %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  %21 = add i64 %3, 1
  %22 = getelementptr inbounds i8, ptr %13, i64 8
  %23 = load i64, ptr %22, align 8, !tbaa !10
  %24 = icmp ult i64 %21, %23
  %25 = select i1 %24, i64 %21, i64 %3
  call void @_ZNK3jet17FaceCenteredGrid317valueAtCellCenterEmmm(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %9, ptr noundef nonnull align 8 dereferenceable(696) %1, i64 noundef %2, i64 noundef %25, i64 noundef %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  %26 = call i64 @llvm.usub.sat.i64(i64 %4, i64 1)
  call void @_ZNK3jet17FaceCenteredGrid317valueAtCellCenterEmmm(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %10, ptr noundef nonnull align 8 dereferenceable(696) %1, i64 noundef %2, i64 noundef %3, i64 noundef %26)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  %27 = add i64 %4, 1
  %28 = getelementptr inbounds i8, ptr %13, i64 16
  %29 = load i64, ptr %28, align 8, !tbaa !11
  %30 = icmp ult i64 %27, %29
  %31 = select i1 %30, i64 %27, i64 %4
  call void @_ZNK3jet17FaceCenteredGrid317valueAtCellCenterEmmm(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %11, ptr noundef nonnull align 8 dereferenceable(696) %1, i64 noundef %2, i64 noundef %3, i64 noundef %31)
  %32 = load double, ptr %8, align 8, !tbaa !12
  %33 = load double, ptr %9, align 8, !tbaa !12
  %34 = load <2 x double>, ptr %10, align 16
  %35 = load <2 x double>, ptr %11, align 16
  %36 = getelementptr inbounds i8, ptr %6, i64 8
  %37 = load <2 x double>, ptr %36, align 8
  %38 = getelementptr inbounds i8, ptr %7, i64 8
  %39 = load <2 x double>, ptr %38, align 8
  %40 = getelementptr inbounds i8, ptr %10, i64 8
  %41 = load double, ptr %40, align 8, !tbaa !15
  %42 = getelementptr inbounds i8, ptr %11, i64 8
  %43 = load double, ptr %42, align 8, !tbaa !15
  %44 = getelementptr inbounds i8, ptr %6, i64 16
  %45 = load double, ptr %44, align 8, !tbaa !16
  %46 = getelementptr inbounds i8, ptr %7, i64 16
  %47 = load double, ptr %46, align 8, !tbaa !16
  %48 = getelementptr inbounds i8, ptr %8, i64 16
  %49 = load double, ptr %48, align 8, !tbaa !16
  %50 = getelementptr inbounds i8, ptr %9, i64 16
  %51 = load double, ptr %50, align 8, !tbaa !16
  %52 = getelementptr inbounds i8, ptr %14, i64 8
  %53 = insertelement <2 x double> poison, double %51, i64 0
  %54 = insertelement <2 x double> %53, double %43, i64 1
  %55 = insertelement <2 x double> poison, double %49, i64 0
  %56 = insertelement <2 x double> %55, double %41, i64 1
  %57 = fsub <2 x double> %54, %56
  %58 = fmul <2 x double> %57, <double 5.000000e-01, double 5.000000e-01>
  %59 = load <2 x double>, ptr %52, align 8, !tbaa !17
  %60 = fdiv <2 x double> %58, %59
  %shift = shufflevector <2 x double> %60, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %61 = fsub <2 x double> %60, %shift
  %62 = extractelement <2 x double> %61, i64 0
  %63 = load double, ptr %14, align 8, !tbaa !12
  %64 = insertelement <2 x double> %35, double %47, i64 1
  %65 = insertelement <2 x double> %34, double %45, i64 1
  %66 = fsub <2 x double> %64, %65
  %67 = fmul <2 x double> %66, <double 5.000000e-01, double 5.000000e-01>
  %68 = shufflevector <2 x double> %59, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %69 = insertelement <2 x double> %68, double %63, i64 1
  %70 = fdiv <2 x double> %67, %69
  %shift51 = shufflevector <2 x double> %70, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %71 = fsub <2 x double> %70, %shift51
  %72 = extractelement <2 x double> %71, i64 0
  %73 = insertelement <2 x double> %39, double %33, i64 1
  %74 = insertelement <2 x double> %37, double %32, i64 1
  %75 = fsub <2 x double> %73, %74
  %76 = fmul <2 x double> %75, <double 5.000000e-01, double 5.000000e-01>
  %77 = insertelement <2 x double> %68, double %63, i64 0
  %78 = fdiv <2 x double> %76, %77
  %shift52 = shufflevector <2 x double> %78, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %79 = fsub <2 x double> %78, %shift52
  %80 = extractelement <2 x double> %79, i64 0
  call void @_ZN3jet6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %0, double noundef %62, double noundef %72, double noundef %80)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  ret void
}

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid310resolutionEv(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 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"_ZTSN3jet5Size3E", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 16}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSN3jet6VectorIdLm3EEE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"double", !8, i64 0}
!15 = !{!13, !14, i64 8}
!16 = !{!13, !14, i64 16}
!17 = !{!14, !14, i64 0}


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