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

; 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.std::shared_ptr.15" = type { %"class.std::__shared_ptr.16" }
%"class.std::__shared_ptr.16" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.jet::Array" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.jet::TrianglePointGenerator" = type { %"class.jet::PointGenerator2" }
%"class.jet::PointGenerator2" = type { ptr }
%"class.jet::Vector" = type { double, double }
%"class.jet::BoundingBox" = type { %"class.jet::Vector", %"class.jet::Vector" }
%"struct.jet::SphSpikyKernel2" = type { double, double, double, double, double }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3jet5ArrayINS_6VectorIdLm2EEELm1EED2Ev(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.start.p0(i64 immarg, ptr nocapture) #2

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

declare void @_ZNK3jet10SphSolver213sphSystemDataEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.15") align 8, ptr noundef nonnull align 8 dereferenceable(232)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN3jet13PciSphSolver212computeDeltaEd(ptr noundef nonnull align 8 dereferenceable(344) %0, double noundef %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca %"class.std::shared_ptr.15", align 8
  %6 = alloca double, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.jet::Array", align 8
  %10 = alloca %"class.jet::TrianglePointGenerator", align 8
  %11 = alloca %"class.jet::Vector", align 8
  %12 = alloca %"class.jet::BoundingBox", align 8
  %13 = alloca %"struct.jet::SphSpikyKernel2", align 8
  %14 = alloca double, align 8
  %15 = alloca %"class.jet::Vector", align 8
  %16 = alloca double, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca %"class.jet::Vector", align 8
  %22 = alloca %"class.jet::Vector", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !9
  %23 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #8
  call void @_ZNK3jet10SphSolver213sphSystemDataEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.15") align 8 %5, ptr noundef nonnull align 8 dereferenceable(232) %23)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %24 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  %25 = invoke noundef double @_ZNK3jet14SphSystemData212kernelRadiusEv(ptr noundef nonnull align 8 dereferenceable(192) %24)
          to label %26 unwind label %47

26:                                               ; preds = %2
  store double %25, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #8
  invoke void @_ZN3jet5ArrayINS_6VectorIdLm2EEELm1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %27 unwind label %51

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  invoke void @_ZN3jet22TrianglePointGeneratorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %28 unwind label %55

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  invoke void @_ZN3jet6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %29 unwind label %59

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  invoke void @_ZN3jet11BoundingBoxIdLm2EEC2ERKNS_6VectorIdLm2EEES5_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %30 unwind label %63

30:                                               ; preds = %29
  %31 = load double, ptr %6, align 8, !tbaa !9
  %32 = fmul double 1.500000e+00, %31
  invoke void @_ZN3jet11BoundingBoxIdLm2EE6expandEd(ptr noundef nonnull align 8 dereferenceable(32) %12, double noundef %32)
          to label %33 unwind label %63

33:                                               ; preds = %30
  %34 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  %35 = invoke noundef double @_ZNK3jet14SphSystemData213targetSpacingEv(ptr noundef nonnull align 8 dereferenceable(192) %34)
          to label %36 unwind label %63

36:                                               ; preds = %33
  invoke void @_ZNK3jet15PointGenerator28generateERKNS_11BoundingBoxIdLm2EEEdPNS_5ArrayINS_6VectorIdLm2EEELm1EEE(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(32) %12, double noundef %35, ptr noundef %9)
          to label %37 unwind label %63

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #8
  %38 = load double, ptr %6, align 8, !tbaa !9
  invoke void @_ZN3jet15SphSpikyKernel2C2Ed(ptr noundef nonnull align 8 dereferenceable(40) %13, double noundef %38)
          to label %39 unwind label %67

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  invoke void @_ZN3jet6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %40 unwind label %71

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %41

41:                                               ; preds = %129, %40
  %42 = load i64, ptr %17, align 8, !tbaa !11
  %43 = invoke noundef i64 @_ZNK3jet5ArrayINS_6VectorIdLm2EEELm1EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %44 unwind label %75

44:                                               ; preds = %41
  %45 = icmp ult i64 %42, %43
  br i1 %45, label %79, label %46

46:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %135

47:                                               ; preds = %2
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %7, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %8, align 4
  br label %167

51:                                               ; preds = %26
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %7, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %8, align 4
  br label %166

55:                                               ; preds = %27
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %7, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %8, align 4
  br label %165

59:                                               ; preds = %28
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %7, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %8, align 4
  br label %164

63:                                               ; preds = %36, %33, %30, %29
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %7, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %8, align 4
  br label %163

67:                                               ; preds = %37
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %7, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %8, align 4
  br label %162

71:                                               ; preds = %39
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %7, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %8, align 4
  br label %161

75:                                               ; preds = %41
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %7, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %8, align 4
  br label %134

79:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %80 = load i64, ptr %17, align 8, !tbaa !11
  %81 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet5ArrayINS_6VectorIdLm2EEELm1EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %80)
          to label %82 unwind label %111

82:                                               ; preds = %79
  store ptr %81, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %83 = load ptr, ptr %18, align 8, !tbaa !5
  %84 = invoke noundef double @_ZNK3jet6VectorIdLm2EE13lengthSquaredEv(ptr noundef nonnull align 8 dereferenceable(16) %83)
          to label %85 unwind label %115

85:                                               ; preds = %82
  store double %84, ptr %19, align 8, !tbaa !9
  %86 = load double, ptr %19, align 8, !tbaa !9
  %87 = load double, ptr %6, align 8, !tbaa !9
  %88 = load double, ptr %6, align 8, !tbaa !9
  %89 = fmul double %87, %88
  %90 = fcmp olt double %86, %89
  br i1 %90, label %91, label %128

91:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %92 = load double, ptr %19, align 8, !tbaa !9
  %93 = call double @sqrt(double noundef %92) #8
  store double %93, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %94 = load double, ptr %20, align 8, !tbaa !9
  %95 = fcmp ogt double %94, 0.000000e+00
  br i1 %95, label %96, label %100

96:                                               ; preds = %91
  %97 = load ptr, ptr %18, align 8, !tbaa !5
  %98 = load double, ptr %20, align 8, !tbaa !9
  invoke void @_ZN3jetdvIdEENS_6VectorIT_Lm2EEERKS3_S2_(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %97, double noundef %98)
          to label %99 unwind label %119

99:                                               ; preds = %96
  br label %102

100:                                              ; preds = %91
  invoke void @_ZN3jet6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %101 unwind label %119

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101, %99
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  %103 = load double, ptr %20, align 8, !tbaa !9
  invoke void @_ZNK3jet15SphSpikyKernel28gradientEdRKNS_6VectorIdLm2EEE(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %22, ptr noundef nonnull align 8 dereferenceable(40) %13, double noundef %103, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %104 unwind label %123

104:                                              ; preds = %102
  %105 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %106 unwind label %123

106:                                              ; preds = %104
  %107 = invoke noundef double @_ZNK3jet6VectorIdLm2EE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %108 unwind label %123

108:                                              ; preds = %106
  %109 = load double, ptr %16, align 8, !tbaa !9
  %110 = fadd double %109, %107
  store double %110, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %128

111:                                              ; preds = %79
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %7, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %8, align 4
  br label %133

115:                                              ; preds = %82
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %7, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %8, align 4
  br label %132

119:                                              ; preds = %100, %96
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %7, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %8, align 4
  br label %127

123:                                              ; preds = %106, %104, %102
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %7, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  br label %127

127:                                              ; preds = %123, %119
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %132

128:                                              ; preds = %108, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %129

129:                                              ; preds = %128
  %130 = load i64, ptr %17, align 8, !tbaa !11
  %131 = add i64 %130, 1
  store i64 %131, ptr %17, align 8, !tbaa !11
  br label %41, !llvm.loop !13

132:                                              ; preds = %127, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %133

133:                                              ; preds = %132, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %134

134:                                              ; preds = %133, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %160

135:                                              ; preds = %46
  %136 = invoke noundef double @_ZNK3jet6VectorIdLm2EE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %137 unwind label %156

137:                                              ; preds = %135
  %138 = fneg double %136
  %139 = load double, ptr %16, align 8, !tbaa !9
  %140 = fsub double %138, %139
  %141 = load double, ptr %14, align 8, !tbaa !9
  %142 = fadd double %141, %140
  store double %142, ptr %14, align 8, !tbaa !9
  %143 = load double, ptr %14, align 8, !tbaa !9
  %144 = call double @llvm.fabs.f64(double %143)
  %145 = fcmp ogt double %144, 0.000000e+00
  br i1 %145, label %146, label %153

146:                                              ; preds = %137
  %147 = load double, ptr %4, align 8, !tbaa !9
  %148 = invoke noundef double @_ZN3jet13PciSphSolver211computeBetaEd(ptr noundef nonnull align 8 dereferenceable(344) %23, double noundef %147)
          to label %149 unwind label %156

149:                                              ; preds = %146
  %150 = load double, ptr %14, align 8, !tbaa !9
  %151 = fmul double %148, %150
  %152 = fdiv double -1.000000e+00, %151
  br label %154

153:                                              ; preds = %137
  br label %154

154:                                              ; preds = %153, %149
  %155 = phi double [ %152, %149 ], [ 0.000000e+00, %153 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @_ZN3jet15PointGenerator2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @_ZN3jet5ArrayINS_6VectorIdLm2EEELm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @_ZNSt12__shared_ptrIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #8
  ret double %155

156:                                              ; preds = %146, %135
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %7, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %8, align 4
  br label %160

160:                                              ; preds = %156, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %161

161:                                              ; preds = %160, %71
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %162

162:                                              ; preds = %161, %67
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #8
  br label %163

163:                                              ; preds = %162, %63
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  br label %164

164:                                              ; preds = %163, %59
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @_ZN3jet15PointGenerator2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br label %165

165:                                              ; preds = %164, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @_ZN3jet5ArrayINS_6VectorIdLm2EEELm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  br label %166

166:                                              ; preds = %165, %51
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  br label %167

167:                                              ; preds = %166, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @_ZNSt12__shared_ptrIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #8
  br label %168

168:                                              ; preds = %167
  %169 = load ptr, ptr %7, align 8
  %170 = load i32, ptr %8, align 4
  %171 = insertvalue { ptr, i32 } poison, ptr %169, 0
  %172 = insertvalue { ptr, i32 } %171, i32 %170, 1
  resume { ptr, i32 } %172
}

declare noundef double @_ZNK3jet14SphSystemData212kernelRadiusEv(ptr noundef nonnull align 8 dereferenceable(192)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet11BoundingBoxIdLm2EEC2ERKNS_6VectorIdLm2EEES5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet11BoundingBoxIdLm2EE6expandEd(ptr noundef nonnull align 8 dereferenceable(32), double noundef) #4 align 2

declare void @_ZNK3jet15PointGenerator28generateERKNS_11BoundingBoxIdLm2EEEdPNS_5ArrayINS_6VectorIdLm2EEELm1EEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), double noundef, ptr noundef) #3

declare noundef double @_ZNK3jet14SphSystemData213targetSpacingEv(ptr noundef nonnull align 8 dereferenceable(192)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3jet15SphSpikyKernel2C2Ed(ptr noundef nonnull align 8 dereferenceable(40), double noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3jet5ArrayINS_6VectorIdLm2EEELm1EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet5ArrayINS_6VectorIdLm2EEELm1EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK3jet6VectorIdLm2EE13lengthSquaredEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #7

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK3jet6VectorIdLm2EE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN3jet13PciSphSolver211computeBetaEd(ptr noundef nonnull align 8 dereferenceable(344), double noundef) #4 align 2

; Function Attrs: nounwind
declare void @_ZN3jet15PointGenerator2D2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { nounwind "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 #8 = { 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 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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.std::shared_ptr.15" = type { %"class.std::__shared_ptr.16" }
%"class.std::__shared_ptr.16" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.jet::Array" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Vector<double, 2>, std::allocator<jet::Vector<double, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.jet::TrianglePointGenerator" = type { %"class.jet::PointGenerator2" }
%"class.jet::PointGenerator2" = type { ptr }
%"class.jet::Vector" = type { double, double }
%"class.jet::BoundingBox" = type { %"class.jet::Vector", %"class.jet::Vector" }
%"struct.jet::SphSpikyKernel2" = type { double, double, double, double, double }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3jet5ArrayINS_6VectorIdLm2EEELm1EED2Ev(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.start.p0(i64 immarg, ptr nocapture) #2

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

declare void @_ZNK3jet10SphSolver213sphSystemDataEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.15") align 8, ptr noundef nonnull align 8 dereferenceable(232)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN3jet13PciSphSolver212computeDeltaEd(ptr noundef nonnull align 8 dereferenceable(344) %0, double noundef %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::shared_ptr.15", align 8
  %4 = alloca %"class.jet::Array", align 8
  %5 = alloca %"class.jet::TrianglePointGenerator", align 8
  %6 = alloca %"class.jet::Vector", align 8
  %7 = alloca %"class.jet::BoundingBox", align 8
  %8 = alloca %"struct.jet::SphSpikyKernel2", align 8
  %9 = alloca %"class.jet::Vector", align 8
  %10 = alloca %"class.jet::Vector", align 8
  %11 = alloca %"class.jet::Vector", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  call void @_ZNK3jet10SphSolver213sphSystemDataEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.15") align 8 %3, ptr noundef nonnull align 8 dereferenceable(232) %0)
  %12 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  %13 = invoke noundef double @_ZNK3jet14SphSystemData212kernelRadiusEv(ptr noundef nonnull align 8 dereferenceable(192) %12)
          to label %14 unwind label %30

14:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @_ZN3jet5ArrayINS_6VectorIdLm2EEELm1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  invoke void @_ZN3jet22TrianglePointGeneratorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %15 unwind label %32

15:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  call void @_ZN3jet6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  invoke void @_ZN3jet11BoundingBoxIdLm2EEC2ERKNS_6VectorIdLm2EEES5_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %16 unwind label %34

16:                                               ; preds = %15
  %17 = fmul double %13, 1.500000e+00
  invoke void @_ZN3jet11BoundingBoxIdLm2EE6expandEd(ptr noundef nonnull align 8 dereferenceable(32) %7, double noundef %17)
          to label %18 unwind label %34

18:                                               ; preds = %16
  %19 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  %20 = invoke noundef double @_ZNK3jet14SphSystemData213targetSpacingEv(ptr noundef nonnull align 8 dereferenceable(192) %19)
          to label %21 unwind label %34

21:                                               ; preds = %18
  invoke void @_ZNK3jet15PointGenerator28generateERKNS_11BoundingBoxIdLm2EEEdPNS_5ArrayINS_6VectorIdLm2EEELm1EEE(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(32) %7, double noundef %20, ptr noundef nonnull %4)
          to label %22 unwind label %34

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #8
  call void @_ZN3jet15SphSpikyKernel2C2Ed(ptr noundef nonnull align 8 dereferenceable(40) %8, double noundef %13)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @_ZN3jet6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %23 = call noundef i64 @_ZNK3jet5ArrayINS_6VectorIdLm2EEELm1EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %.not = icmp eq i64 %23, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %22
  %24 = fmul double %13, %13
  br label %36

._crit_edge:                                      ; preds = %56, %22
  %.028.lcssa = phi double [ 0.000000e+00, %22 ], [ %.129, %56 ]
  %25 = call noundef double @_ZNK3jet6VectorIdLm2EE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %26 = fneg double %25
  %27 = fsub double %26, %.028.lcssa
  %28 = fadd double %27, 0.000000e+00
  %29 = fcmp ueq double %27, 0.000000e+00
  br i1 %29, label %65, label %60

30:                                               ; preds = %2
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %72

32:                                               ; preds = %14
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %71

34:                                               ; preds = %21, %18, %16, %15
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %70

36:                                               ; preds = %.lr.ph, %56
  %.02740 = phi i64 [ 0, %.lr.ph ], [ %57, %56 ]
  %.02839 = phi double [ 0.000000e+00, %.lr.ph ], [ %.129, %56 ]
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet5ArrayINS_6VectorIdLm2EEELm1EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.02740)
  %38 = call noundef double @_ZNK3jet6VectorIdLm2EE13lengthSquaredEv(ptr noundef nonnull align 8 dereferenceable(16) %37)
  %39 = fcmp olt double %38, %24
  br i1 %39, label %40, label %56

40:                                               ; preds = %36
  %41 = call double @sqrt(double noundef %38) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %42 = fcmp ogt double %41, 0.000000e+00
  br i1 %42, label %43, label %44

43:                                               ; preds = %40
  invoke void @_ZN3jetdvIdEENS_6VectorIT_Lm2EEERKS3_S2_(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %37, double noundef %41)
          to label %45 unwind label %51

44:                                               ; preds = %40
  call void @_ZN3jet6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
  br label %45

45:                                               ; preds = %43, %44
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  invoke void @_ZNK3jet15SphSpikyKernel28gradientEdRKNS_6VectorIdLm2EEE(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %11, ptr noundef nonnull align 8 dereferenceable(40) %8, double noundef %41, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %46 unwind label %53

46:                                               ; preds = %45
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %48 unwind label %53

48:                                               ; preds = %46
  %49 = call noundef double @_ZNK3jet6VectorIdLm2EE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %50 = fadd double %.02839, %49
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %56

51:                                               ; preds = %43
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %55

53:                                               ; preds = %46, %45
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  br label %55

55:                                               ; preds = %53, %51
  %.pn = phi { ptr, i32 } [ %54, %53 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %69

56:                                               ; preds = %48, %36
  %.129 = phi double [ %50, %48 ], [ %.02839, %36 ]
  %57 = add nuw i64 %.02740, 1
  %58 = call noundef i64 @_ZNK3jet5ArrayINS_6VectorIdLm2EEELm1EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %59 = icmp ult i64 %57, %58
  br i1 %59, label %36, label %._crit_edge, !llvm.loop !5

60:                                               ; preds = %._crit_edge
  %61 = invoke noundef double @_ZN3jet13PciSphSolver211computeBetaEd(ptr noundef nonnull align 8 dereferenceable(344) %0, double noundef %1)
          to label %62 unwind label %67

62:                                               ; preds = %60
  %63 = fmul double %28, %61
  %64 = fdiv double -1.000000e+00, %63
  br label %65

65:                                               ; preds = %._crit_edge, %62
  %66 = phi double [ %64, %62 ], [ 0.000000e+00, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  call void @_ZN3jet15PointGenerator2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @_ZN3jet5ArrayINS_6VectorIdLm2EEELm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt12__shared_ptrIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  ret double %66

67:                                               ; preds = %60
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %69

69:                                               ; preds = %67, %55
  %.pn.pn = phi { ptr, i32 } [ %.pn, %55 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #8
  br label %70

70:                                               ; preds = %69, %34
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %69 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  call void @_ZN3jet15PointGenerator2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br label %71

71:                                               ; preds = %70, %32
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %70 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @_ZN3jet5ArrayINS_6VectorIdLm2EEELm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  br label %72

72:                                               ; preds = %71, %30
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %71 ], [ %31, %30 ]
  call void @_ZNSt12__shared_ptrIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

declare noundef double @_ZNK3jet14SphSystemData212kernelRadiusEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3jet14SphSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet11BoundingBoxIdLm2EEC2ERKNS_6VectorIdLm2EEES5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet11BoundingBoxIdLm2EE6expandEd(ptr noundef nonnull align 8 dereferenceable(32), double noundef) local_unnamed_addr #4 align 2

declare void @_ZNK3jet15PointGenerator28generateERKNS_11BoundingBoxIdLm2EEEdPNS_5ArrayINS_6VectorIdLm2EEELm1EEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), double noundef, ptr noundef) local_unnamed_addr #3

declare noundef double @_ZNK3jet14SphSystemData213targetSpacingEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3jet15SphSpikyKernel2C2Ed(ptr noundef nonnull align 8 dereferenceable(40), double noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3jet5ArrayINS_6VectorIdLm2EEELm1EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK3jet6VectorIdLm2EE13lengthSquaredEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #6

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK3jet6VectorIdLm2EE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN3jet13PciSphSolver211computeBetaEd(ptr noundef nonnull align 8 dereferenceable(344), double noundef) local_unnamed_addr #4 align 2

; Function Attrs: nounwind
declare void @_ZN3jet15PointGenerator2D2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { 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 #6 = { mustprogress nofree nounwind willreturn memory(write) "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 #7 = { nounwind "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 #8 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass