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

; 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 }
%"class.jet::Size2" = type { i64, i64 }
%"class.jet::Array.0" = type { %"class.jet::Size2", %"class.std::vector.1" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.38 = type { ptr, ptr, ptr, ptr }
%class.anon.39 = type { ptr }
%"class.std::priority_queue.40" = type { %"class.std::vector.9", %class.anon.39 }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<jet::Point<unsigned long, 2>, std::allocator<jet::Point<unsigned long, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Point<unsigned long, 2>, std::allocator<jet::Point<unsigned long, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Point<unsigned long, 2>, std::allocator<jet::Point<unsigned long, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Point<unsigned long, 2>, std::allocator<jet::Point<unsigned long, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.41 = type { ptr, ptr, ptr }
%"class.jet::Point" = type { i64, i64 }

@_ZL8kUnknown = external hidden constant i8, align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet18FmmLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES4_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(16) %3, double noundef %4, ptr noundef %5) #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.jet::Size2", align 8
  %14 = alloca %"class.jet::Vector", align 8
  %15 = alloca %"class.jet::Array.0", align 8
  %16 = alloca %class.anon.38, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %class.anon.39, align 8
  %20 = alloca %"class.std::priority_queue.40", align 8
  %21 = alloca %"class.std::vector.9", align 8
  %22 = alloca %class.anon.41, align 8
  %23 = alloca %"class.jet::Point", align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.jet::Vector", align 8
  %28 = alloca %"class.jet::Vector", align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca %"class.jet::Point", align 8
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca %"class.jet::Point", align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca %"class.jet::Point", align 8
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  %42 = alloca %"class.jet::Point", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store double %4, ptr %11, align 8, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  %43 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK3jet18ConstArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %44)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN3jetdvIdEENS_6VectorIT_Lm2EEES2_RKS3_(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %14, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(16) %45)
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #7
  call void @_ZN3jet5ArrayIcLm2EEC2ERKNS_5Size2ERKc(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 1 dereferenceable(1) @_ZL8kUnknown)
  %46 = getelementptr inbounds %class.anon.38, ptr %16, i32 0, i32 0
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %47, ptr %46, align 8, !tbaa !5
  %48 = getelementptr inbounds %class.anon.38, ptr %16, i32 0, i32 1
  store ptr %15, ptr %48, align 8, !tbaa !5
  %49 = getelementptr inbounds %class.anon.38, ptr %16, i32 0, i32 2
  store ptr %5, ptr %49, align 8, !tbaa !5
  %50 = getelementptr inbounds %class.anon.38, ptr %16, i32 0, i32 3
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %51, ptr %50, align 8, !tbaa !5
  invoke void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES7_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEEE3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef byval(%class.anon.38) align 8 %16)
          to label %52 unwind label %82

52:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %53 = getelementptr inbounds %class.anon.39, ptr %19, i32 0, i32 0
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %54, ptr %53, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3jet5PointImLm2EEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1EC2ERKSH_OS5_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %55 unwind label %86

55:                                               ; preds = %52
  call void @_ZNSt6vectorIN3jet5PointImLm2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  %56 = getelementptr inbounds %class.anon.41, ptr %22, i32 0, i32 0
  store ptr %15, ptr %56, align 8, !tbaa !5
  %57 = getelementptr inbounds %class.anon.41, ptr %22, i32 0, i32 1
  store ptr %20, ptr %57, align 8, !tbaa !5
  %58 = getelementptr inbounds %class.anon.41, ptr %22, i32 0, i32 2
  store ptr %13, ptr %58, align 8, !tbaa !5
  invoke void @"_ZNK3jet5ArrayIcLm2EE12forEachIndexIZNS_18FmmLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES7_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEEE3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef byval(%class.anon.41) align 8 %22)
          to label %59 unwind label %90

59:                                               ; preds = %55
  br label %60

60:                                               ; preds = %422, %59
  %61 = invoke noundef zeroext i1 @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E5emptyEv"(ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %62 unwind label %90

62:                                               ; preds = %60
  %63 = xor i1 %61, true
  br i1 %63, label %64, label %427

64:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  %65 = invoke noundef nonnull align 8 dereferenceable(16) ptr @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E3topEv"(ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %66 unwind label %94

66:                                               ; preds = %64
  invoke void @_ZN3jet5PointImLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %65)
          to label %67 unwind label %94

67:                                               ; preds = %66
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E3popEv"(ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %68 unwind label %94

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %69 = getelementptr inbounds %"class.jet::Point", ptr %23, i32 0, i32 0
  %70 = load i64, ptr %69, align 8, !tbaa !11
  store i64 %70, ptr %24, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %71 = getelementptr inbounds %"class.jet::Point", ptr %23, i32 0, i32 1
  %72 = load i64, ptr %71, align 8, !tbaa !15
  store i64 %72, ptr %25, align 8, !tbaa !14
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = load i64, ptr %24, align 8, !tbaa !14
  %75 = load i64, ptr %25, align 8, !tbaa !14
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3jet18ConstArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %74, i64 noundef %75)
          to label %77 unwind label %98

77:                                               ; preds = %68
  %78 = load double, ptr %76, align 8, !tbaa !9
  %79 = load double, ptr %11, align 8, !tbaa !9
  %80 = fcmp ogt double %78, %79
  br i1 %80, label %81, label %102

81:                                               ; preds = %77
  store i32 3, ptr %26, align 4
  br label %420

82:                                               ; preds = %6
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %17, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %18, align 4
  br label %430

86:                                               ; preds = %52
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %17, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %18, align 4
  call void @_ZNSt6vectorIN3jet5PointImLm2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  br label %429

90:                                               ; preds = %60, %55
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %17, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %18, align 4
  br label %428

94:                                               ; preds = %67, %66, %64
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %17, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %18, align 4
  br label %426

98:                                               ; preds = %68
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %17, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %18, align 4
  br label %425

102:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = load i64, ptr %24, align 8, !tbaa !14
  %106 = load i64, ptr %25, align 8, !tbaa !14
  invoke void @_ZN3jet9gradient2ERKNS_18ConstArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEEmm(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %103, ptr noundef nonnull align 8 dereferenceable(16) %104, i64 noundef %105, i64 noundef %106)
          to label %107 unwind label %131

107:                                              ; preds = %102
  invoke void @_ZNK3jet6VectorIdLm2EE10normalizedEv(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %27, ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %108 unwind label %131

108:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  store double 0.000000e+00, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  store double 0.000000e+00, ptr %30, align 8, !tbaa !9
  %109 = load i64, ptr %24, align 8, !tbaa !14
  %110 = icmp ugt i64 %109, 0
  br i1 %110, label %111, label %187

111:                                              ; preds = %108
  %112 = load i64, ptr %24, align 8, !tbaa !14
  %113 = sub i64 %112, 1
  %114 = load i64, ptr %25, align 8, !tbaa !14
  %115 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %113, i64 noundef %114)
          to label %116 unwind label %135

116:                                              ; preds = %111
  %117 = load i8, ptr %115, align 1, !tbaa !16
  %118 = sext i8 %117 to i32
  %119 = icmp eq i32 %118, 1
  br i1 %119, label %120, label %161

120:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %121 = getelementptr inbounds %"class.jet::Vector", ptr %27, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  store double 0.000000e+00, ptr %32, align 8, !tbaa !9
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %123 unwind label %139

123:                                              ; preds = %120
  %124 = load double, ptr %122, align 8, !tbaa !9
  %125 = getelementptr inbounds %"class.jet::Vector", ptr %14, i32 0, i32 0
  %126 = load double, ptr %125, align 8, !tbaa !17
  %127 = fmul double %124, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  store double %127, ptr %31, align 8, !tbaa !9
  %128 = load double, ptr %31, align 8, !tbaa !9
  %129 = fcmp olt double %128, 0x3CB0000000000000
  br i1 %129, label %130, label %143

130:                                              ; preds = %123
  store double 1.000000e+00, ptr %31, align 8, !tbaa !9
  br label %143

131:                                              ; preds = %107, %102
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %17, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  br label %424

135:                                              ; preds = %415, %408, %391, %382, %339, %316, %307, %265, %245, %236, %193, %170, %161, %111
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %17, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %18, align 4
  br label %423

139:                                              ; preds = %120
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %17, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %160

143:                                              ; preds = %130, %123
  %144 = load double, ptr %31, align 8, !tbaa !9
  %145 = load i64, ptr %24, align 8, !tbaa !14
  %146 = sub i64 %145, 1
  %147 = load i64, ptr %25, align 8, !tbaa !14
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %146, i64 noundef %147)
          to label %149 unwind label %156

149:                                              ; preds = %143
  %150 = load double, ptr %148, align 8, !tbaa !9
  %151 = load double, ptr %29, align 8, !tbaa !9
  %152 = call double @llvm.fmuladd.f64(double %144, double %150, double %151)
  store double %152, ptr %29, align 8, !tbaa !9
  %153 = load double, ptr %31, align 8, !tbaa !9
  %154 = load double, ptr %30, align 8, !tbaa !9
  %155 = fadd double %154, %153
  store double %155, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %186

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

160:                                              ; preds = %156, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %423

161:                                              ; preds = %116
  %162 = load i64, ptr %24, align 8, !tbaa !14
  %163 = sub i64 %162, 1
  %164 = load i64, ptr %25, align 8, !tbaa !14
  %165 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %163, i64 noundef %164)
          to label %166 unwind label %135

166:                                              ; preds = %161
  %167 = load i8, ptr %165, align 1, !tbaa !16
  %168 = sext i8 %167 to i32
  %169 = icmp eq i32 %168, 0
  br i1 %169, label %170, label %185

170:                                              ; preds = %166
  %171 = load i64, ptr %24, align 8, !tbaa !14
  %172 = sub i64 %171, 1
  %173 = load i64, ptr %25, align 8, !tbaa !14
  %174 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %172, i64 noundef %173)
          to label %175 unwind label %135

175:                                              ; preds = %170
  store i8 2, ptr %174, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  %176 = load i64, ptr %24, align 8, !tbaa !14
  %177 = sub i64 %176, 1
  %178 = load i64, ptr %25, align 8, !tbaa !14
  invoke void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %33, i64 noundef %177, i64 noundef %178)
          to label %179 unwind label %181

179:                                              ; preds = %175
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(16) %33)
          to label %180 unwind label %181

180:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  br label %185

181:                                              ; preds = %179, %175
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %17, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  br label %423

185:                                              ; preds = %180, %166
  br label %186

186:                                              ; preds = %185, %149
  br label %187

187:                                              ; preds = %186, %108
  %188 = load i64, ptr %24, align 8, !tbaa !14
  %189 = add i64 %188, 1
  %190 = getelementptr inbounds %"class.jet::Size2", ptr %13, i32 0, i32 0
  %191 = load i64, ptr %190, align 8, !tbaa !19
  %192 = icmp ult i64 %189, %191
  br i1 %192, label %193, label %262

193:                                              ; preds = %187
  %194 = load i64, ptr %24, align 8, !tbaa !14
  %195 = add i64 %194, 1
  %196 = load i64, ptr %25, align 8, !tbaa !14
  %197 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %195, i64 noundef %196)
          to label %198 unwind label %135

198:                                              ; preds = %193
  %199 = load i8, ptr %197, align 1, !tbaa !16
  %200 = sext i8 %199 to i32
  %201 = icmp eq i32 %200, 1
  br i1 %201, label %202, label %236

202:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %203 = getelementptr inbounds %"class.jet::Vector", ptr %27, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  store double 0.000000e+00, ptr %35, align 8, !tbaa !9
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %205 unwind label %214

205:                                              ; preds = %202
  %206 = load double, ptr %204, align 8, !tbaa !9
  %207 = fneg double %206
  %208 = getelementptr inbounds %"class.jet::Vector", ptr %14, i32 0, i32 0
  %209 = load double, ptr %208, align 8, !tbaa !17
  %210 = fmul double %207, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  store double %210, ptr %34, align 8, !tbaa !9
  %211 = load double, ptr %34, align 8, !tbaa !9
  %212 = fcmp olt double %211, 0x3CB0000000000000
  br i1 %212, label %213, label %218

213:                                              ; preds = %205
  store double 1.000000e+00, ptr %34, align 8, !tbaa !9
  br label %218

214:                                              ; preds = %202
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %17, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  br label %235

218:                                              ; preds = %213, %205
  %219 = load double, ptr %34, align 8, !tbaa !9
  %220 = load i64, ptr %24, align 8, !tbaa !14
  %221 = add i64 %220, 1
  %222 = load i64, ptr %25, align 8, !tbaa !14
  %223 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %221, i64 noundef %222)
          to label %224 unwind label %231

224:                                              ; preds = %218
  %225 = load double, ptr %223, align 8, !tbaa !9
  %226 = load double, ptr %29, align 8, !tbaa !9
  %227 = call double @llvm.fmuladd.f64(double %219, double %225, double %226)
  store double %227, ptr %29, align 8, !tbaa !9
  %228 = load double, ptr %34, align 8, !tbaa !9
  %229 = load double, ptr %30, align 8, !tbaa !9
  %230 = fadd double %229, %228
  store double %230, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %261

231:                                              ; preds = %218
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %17, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %18, align 4
  br label %235

235:                                              ; preds = %231, %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %423

236:                                              ; preds = %198
  %237 = load i64, ptr %24, align 8, !tbaa !14
  %238 = add i64 %237, 1
  %239 = load i64, ptr %25, align 8, !tbaa !14
  %240 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %238, i64 noundef %239)
          to label %241 unwind label %135

241:                                              ; preds = %236
  %242 = load i8, ptr %240, align 1, !tbaa !16
  %243 = sext i8 %242 to i32
  %244 = icmp eq i32 %243, 0
  br i1 %244, label %245, label %260

245:                                              ; preds = %241
  %246 = load i64, ptr %24, align 8, !tbaa !14
  %247 = add i64 %246, 1
  %248 = load i64, ptr %25, align 8, !tbaa !14
  %249 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %247, i64 noundef %248)
          to label %250 unwind label %135

250:                                              ; preds = %245
  store i8 2, ptr %249, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #7
  %251 = load i64, ptr %24, align 8, !tbaa !14
  %252 = add i64 %251, 1
  %253 = load i64, ptr %25, align 8, !tbaa !14
  invoke void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %36, i64 noundef %252, i64 noundef %253)
          to label %254 unwind label %256

254:                                              ; preds = %250
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(16) %36)
          to label %255 unwind label %256

255:                                              ; preds = %254
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #7
  br label %260

256:                                              ; preds = %254, %250
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %17, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #7
  br label %423

260:                                              ; preds = %255, %241
  br label %261

261:                                              ; preds = %260, %224
  br label %262

262:                                              ; preds = %261, %187
  %263 = load i64, ptr %25, align 8, !tbaa !14
  %264 = icmp ugt i64 %263, 0
  br i1 %264, label %265, label %333

265:                                              ; preds = %262
  %266 = load i64, ptr %24, align 8, !tbaa !14
  %267 = load i64, ptr %25, align 8, !tbaa !14
  %268 = sub i64 %267, 1
  %269 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %266, i64 noundef %268)
          to label %270 unwind label %135

270:                                              ; preds = %265
  %271 = load i8, ptr %269, align 1, !tbaa !16
  %272 = sext i8 %271 to i32
  %273 = icmp eq i32 %272, 1
  br i1 %273, label %274, label %307

274:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %275 = getelementptr inbounds %"class.jet::Vector", ptr %27, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  store double 0.000000e+00, ptr %38, align 8, !tbaa !9
  %276 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %275, ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %277 unwind label %285

277:                                              ; preds = %274
  %278 = load double, ptr %276, align 8, !tbaa !9
  %279 = getelementptr inbounds %"class.jet::Vector", ptr %14, i32 0, i32 1
  %280 = load double, ptr %279, align 8, !tbaa !21
  %281 = fmul double %278, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  store double %281, ptr %37, align 8, !tbaa !9
  %282 = load double, ptr %37, align 8, !tbaa !9
  %283 = fcmp olt double %282, 0x3CB0000000000000
  br i1 %283, label %284, label %289

284:                                              ; preds = %277
  store double 1.000000e+00, ptr %37, align 8, !tbaa !9
  br label %289

285:                                              ; preds = %274
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %17, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %306

289:                                              ; preds = %284, %277
  %290 = load double, ptr %37, align 8, !tbaa !9
  %291 = load i64, ptr %24, align 8, !tbaa !14
  %292 = load i64, ptr %25, align 8, !tbaa !14
  %293 = sub i64 %292, 1
  %294 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %291, i64 noundef %293)
          to label %295 unwind label %302

295:                                              ; preds = %289
  %296 = load double, ptr %294, align 8, !tbaa !9
  %297 = load double, ptr %29, align 8, !tbaa !9
  %298 = call double @llvm.fmuladd.f64(double %290, double %296, double %297)
  store double %298, ptr %29, align 8, !tbaa !9
  %299 = load double, ptr %37, align 8, !tbaa !9
  %300 = load double, ptr %30, align 8, !tbaa !9
  %301 = fadd double %300, %299
  store double %301, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  br label %332

302:                                              ; preds = %289
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %17, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %18, align 4
  br label %306

306:                                              ; preds = %302, %285
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  br label %423

307:                                              ; preds = %270
  %308 = load i64, ptr %24, align 8, !tbaa !14
  %309 = load i64, ptr %25, align 8, !tbaa !14
  %310 = sub i64 %309, 1
  %311 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %308, i64 noundef %310)
          to label %312 unwind label %135

312:                                              ; preds = %307
  %313 = load i8, ptr %311, align 1, !tbaa !16
  %314 = sext i8 %313 to i32
  %315 = icmp eq i32 %314, 0
  br i1 %315, label %316, label %331

316:                                              ; preds = %312
  %317 = load i64, ptr %24, align 8, !tbaa !14
  %318 = load i64, ptr %25, align 8, !tbaa !14
  %319 = sub i64 %318, 1
  %320 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %317, i64 noundef %319)
          to label %321 unwind label %135

321:                                              ; preds = %316
  store i8 2, ptr %320, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #7
  %322 = load i64, ptr %24, align 8, !tbaa !14
  %323 = load i64, ptr %25, align 8, !tbaa !14
  %324 = sub i64 %323, 1
  invoke void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %39, i64 noundef %322, i64 noundef %324)
          to label %325 unwind label %327

325:                                              ; preds = %321
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(16) %39)
          to label %326 unwind label %327

326:                                              ; preds = %325
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #7
  br label %331

327:                                              ; preds = %325, %321
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %17, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #7
  br label %423

331:                                              ; preds = %326, %312
  br label %332

332:                                              ; preds = %331, %295
  br label %333

333:                                              ; preds = %332, %262
  %334 = load i64, ptr %25, align 8, !tbaa !14
  %335 = add i64 %334, 1
  %336 = getelementptr inbounds %"class.jet::Size2", ptr %13, i32 0, i32 1
  %337 = load i64, ptr %336, align 8, !tbaa !22
  %338 = icmp ult i64 %335, %337
  br i1 %338, label %339, label %408

339:                                              ; preds = %333
  %340 = load i64, ptr %24, align 8, !tbaa !14
  %341 = load i64, ptr %25, align 8, !tbaa !14
  %342 = add i64 %341, 1
  %343 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %340, i64 noundef %342)
          to label %344 unwind label %135

344:                                              ; preds = %339
  %345 = load i8, ptr %343, align 1, !tbaa !16
  %346 = sext i8 %345 to i32
  %347 = icmp eq i32 %346, 1
  br i1 %347, label %348, label %382

348:                                              ; preds = %344
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %349 = getelementptr inbounds %"class.jet::Vector", ptr %27, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  store double 0.000000e+00, ptr %41, align 8, !tbaa !9
  %350 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %349, ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %351 unwind label %360

351:                                              ; preds = %348
  %352 = load double, ptr %350, align 8, !tbaa !9
  %353 = fneg double %352
  %354 = getelementptr inbounds %"class.jet::Vector", ptr %14, i32 0, i32 1
  %355 = load double, ptr %354, align 8, !tbaa !21
  %356 = fmul double %353, %355
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  store double %356, ptr %40, align 8, !tbaa !9
  %357 = load double, ptr %40, align 8, !tbaa !9
  %358 = fcmp olt double %357, 0x3CB0000000000000
  br i1 %358, label %359, label %364

359:                                              ; preds = %351
  store double 1.000000e+00, ptr %40, align 8, !tbaa !9
  br label %364

360:                                              ; preds = %348
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %17, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  br label %381

364:                                              ; preds = %359, %351
  %365 = load double, ptr %40, align 8, !tbaa !9
  %366 = load i64, ptr %24, align 8, !tbaa !14
  %367 = load i64, ptr %25, align 8, !tbaa !14
  %368 = add i64 %367, 1
  %369 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %366, i64 noundef %368)
          to label %370 unwind label %377

370:                                              ; preds = %364
  %371 = load double, ptr %369, align 8, !tbaa !9
  %372 = load double, ptr %29, align 8, !tbaa !9
  %373 = call double @llvm.fmuladd.f64(double %365, double %371, double %372)
  store double %373, ptr %29, align 8, !tbaa !9
  %374 = load double, ptr %40, align 8, !tbaa !9
  %375 = load double, ptr %30, align 8, !tbaa !9
  %376 = fadd double %375, %374
  store double %376, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  br label %407

377:                                              ; preds = %364
  %378 = landingpad { ptr, i32 }
          cleanup
  %379 = extractvalue { ptr, i32 } %378, 0
  store ptr %379, ptr %17, align 8
  %380 = extractvalue { ptr, i32 } %378, 1
  store i32 %380, ptr %18, align 4
  br label %381

381:                                              ; preds = %377, %360
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  br label %423

382:                                              ; preds = %344
  %383 = load i64, ptr %24, align 8, !tbaa !14
  %384 = load i64, ptr %25, align 8, !tbaa !14
  %385 = add i64 %384, 1
  %386 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %383, i64 noundef %385)
          to label %387 unwind label %135

387:                                              ; preds = %382
  %388 = load i8, ptr %386, align 1, !tbaa !16
  %389 = sext i8 %388 to i32
  %390 = icmp eq i32 %389, 0
  br i1 %390, label %391, label %406

391:                                              ; preds = %387
  %392 = load i64, ptr %24, align 8, !tbaa !14
  %393 = load i64, ptr %25, align 8, !tbaa !14
  %394 = add i64 %393, 1
  %395 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %392, i64 noundef %394)
          to label %396 unwind label %135

396:                                              ; preds = %391
  store i8 2, ptr %395, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #7
  %397 = load i64, ptr %24, align 8, !tbaa !14
  %398 = load i64, ptr %25, align 8, !tbaa !14
  %399 = add i64 %398, 1
  invoke void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %42, i64 noundef %397, i64 noundef %399)
          to label %400 unwind label %402

400:                                              ; preds = %396
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(16) %42)
          to label %401 unwind label %402

401:                                              ; preds = %400
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #7
  br label %406

402:                                              ; preds = %400, %396
  %403 = landingpad { ptr, i32 }
          cleanup
  %404 = extractvalue { ptr, i32 } %403, 0
  store ptr %404, ptr %17, align 8
  %405 = extractvalue { ptr, i32 } %403, 1
  store i32 %405, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #7
  br label %423

406:                                              ; preds = %401, %387
  br label %407

407:                                              ; preds = %406, %370
  br label %408

408:                                              ; preds = %407, %333
  %409 = load double, ptr %29, align 8, !tbaa !9
  %410 = load double, ptr %30, align 8, !tbaa !9
  %411 = fdiv double %409, %410
  %412 = load i64, ptr %24, align 8, !tbaa !14
  %413 = load i64, ptr %25, align 8, !tbaa !14
  %414 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %412, i64 noundef %413)
          to label %415 unwind label %135

415:                                              ; preds = %408
  store double %411, ptr %414, align 8, !tbaa !9
  %416 = load i64, ptr %24, align 8, !tbaa !14
  %417 = load i64, ptr %25, align 8, !tbaa !14
  %418 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %416, i64 noundef %417)
          to label %419 unwind label %135

419:                                              ; preds = %415
  store i8 1, ptr %418, align 1, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  store i32 0, ptr %26, align 4
  br label %420

420:                                              ; preds = %419, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  %421 = load i32, ptr %26, align 4
  switch i32 %421, label %436 [
    i32 0, label %422
    i32 3, label %427
  ]

422:                                              ; preds = %420
  br label %60, !llvm.loop !23

423:                                              ; preds = %402, %381, %327, %306, %256, %235, %181, %160, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %424

424:                                              ; preds = %423, %131
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  br label %425

425:                                              ; preds = %424, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %426

426:                                              ; preds = %425, %94
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  br label %428

427:                                              ; preds = %420, %62
  call void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1ED2Ev"(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  ret void

428:                                              ; preds = %426, %90
  call void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1ED2Ev"(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  br label %429

429:                                              ; preds = %428, %86
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %430

430:                                              ; preds = %429, %82
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br label %431

431:                                              ; preds = %430
  %432 = load ptr, ptr %17, align 8
  %433 = load i32, ptr %18, align 4
  %434 = insertvalue { ptr, i32 } poison, ptr %432, 0
  %435 = insertvalue { ptr, i32 } %434, i32 %433, 1
  resume { ptr, i32 } %435

436:                                              ; preds = %420
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES7_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEEE3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.anon.38) align 8) #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1EC2ERKSH_OS5_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIcLm2EE12forEachIndexIZNS_18FmmLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES7_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEEE3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.anon.41) align 8) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E5emptyEv"(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(16) ptr @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E3topEv"(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E3popEv"(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

declare void @_ZN3jet9gradient2ERKNS_18ConstArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEEmm(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1ED2Ev"(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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, !13, i64 0}
!12 = !{!"_ZTSN3jet5PointImLm2EEE", !13, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !13, i64 8}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSN3jet6VectorIdLm2EEE", !10, i64 0, !10, i64 8}
!19 = !{!20, !13, i64 0}
!20 = !{!"_ZTSN3jet5Size2E", !13, i64 0, !13, i64 8}
!21 = !{!18, !10, i64 8}
!22 = !{!20, !13, i64 8}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.jet::Vector" = type { double, double }
%"class.jet::Size2" = type { i64, i64 }
%"class.jet::Array.0" = type { %"class.jet::Size2", %"class.std::vector.1" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.38 = type { ptr, ptr, ptr, ptr }
%class.anon.39 = type { ptr }
%"class.std::priority_queue.40" = type { %"class.std::vector.9", %class.anon.39 }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<jet::Point<unsigned long, 2>, std::allocator<jet::Point<unsigned long, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Point<unsigned long, 2>, std::allocator<jet::Point<unsigned long, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Point<unsigned long, 2>, std::allocator<jet::Point<unsigned long, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Point<unsigned long, 2>, std::allocator<jet::Point<unsigned long, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.41 = type { ptr, ptr, ptr }
%"class.jet::Point" = type { i64, i64 }

@_ZL8kUnknown = external hidden constant i8, align 1

declare i32 @__gxx_personality_v0(...)

; 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 uwtable
declare dso_local void @_ZN3jetdvIdEENS_6VectorIT_Lm2EEES2_RKS3_(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet18FmmLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES4_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(16) %3, double noundef %4, ptr noundef %5) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.jet::Size2", align 8
  %8 = alloca %"class.jet::Vector", align 8
  %9 = alloca %"class.jet::Array.0", align 8
  %10 = alloca %class.anon.38, align 8
  %11 = alloca %class.anon.39, align 8
  %12 = alloca %"class.std::priority_queue.40", align 8
  %13 = alloca %"class.std::vector.9", align 8
  %14 = alloca %class.anon.41, align 8
  %15 = alloca %"class.jet::Point", align 8
  %16 = alloca %"class.jet::Vector", align 8
  %17 = alloca %"class.jet::Vector", align 8
  %18 = alloca double, align 8
  %19 = alloca %"class.jet::Point", align 8
  %20 = alloca double, align 8
  %21 = alloca %"class.jet::Point", align 8
  %22 = alloca double, align 8
  %23 = alloca %"class.jet::Point", align 8
  %24 = alloca double, align 8
  %25 = alloca %"class.jet::Point", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @_ZNK3jet18ConstArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @_ZN3jetdvIdEENS_6VectorIT_Lm2EEES2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %8, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #7
  call void @_ZN3jet5ArrayIcLm2EEC2ERKNS_5Size2ERKc(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 1 dereferenceable(1) @_ZL8kUnknown)
  store ptr %2, ptr %10, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %10, i64 8
  store ptr %9, ptr %26, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %10, i64 16
  store ptr %5, ptr %27, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %10, i64 24
  store ptr %1, ptr %28, align 8, !tbaa !5
  invoke void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES7_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEEE3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull byval(%class.anon.38) align 8 %10)
          to label %29 unwind label %46

29:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  store ptr %2, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %13, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3jet5PointImLm2EEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1EC2ERKSH_OS5_"(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %30 unwind label %48

30:                                               ; preds = %29
  call void @_ZNSt6vectorIN3jet5PointImLm2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  store ptr %9, ptr %14, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %14, i64 8
  store ptr %12, ptr %31, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %14, i64 16
  store ptr %7, ptr %32, align 8, !tbaa !5
  invoke void @"_ZNK3jet5ArrayIcLm2EE12forEachIndexIZNS_18FmmLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES7_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEEE3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull byval(%class.anon.41) align 8 %14)
          to label %.preheader unwind label %50

.preheader:                                       ; preds = %30
  %33 = call noundef zeroext i1 @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E5emptyEv"(ptr noundef nonnull align 8 dereferenceable(32) %12)
  br i1 %33, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %34 = getelementptr inbounds i8, ptr %15, i64 8
  %35 = getelementptr inbounds i8, ptr %16, i64 8
  %36 = getelementptr inbounds i8, ptr %8, i64 8
  %37 = getelementptr inbounds i8, ptr %7, i64 8
  br label %38

38:                                               ; preds = %.lr.ph, %163
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E3topEv"(ptr noundef nonnull align 8 dereferenceable(32) %12)
  call void @_ZN3jet5PointImLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %39)
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E3popEv"(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %40 unwind label %52

40:                                               ; preds = %38
  %41 = load i64, ptr %15, align 8, !tbaa !9
  %42 = load i64, ptr %34, align 8, !tbaa !12
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3jet18ConstArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %41, i64 noundef %42)
  %44 = load double, ptr %43, align 8, !tbaa !13
  %45 = fcmp ogt double %44, %4
  br i1 %45, label %.thread, label %54

.thread:                                          ; preds = %40
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  br label %.loopexit

46:                                               ; preds = %6
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %172

48:                                               ; preds = %29
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3jet5PointImLm2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  br label %171

50:                                               ; preds = %30
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %170

52:                                               ; preds = %38
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %169

54:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  invoke void @_ZN3jet9gradient2ERKNS_18ConstArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEEmm(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %41, i64 noundef %42)
          to label %55 unwind label %71

55:                                               ; preds = %54
  invoke void @_ZNK3jet6VectorIdLm2EE10normalizedEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %56 unwind label %71

56:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  %.not = icmp eq i64 %41, 0
  br i1 %.not, label %82, label %57

57:                                               ; preds = %56
  %58 = add i64 %41, -1
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %58, i64 noundef %42)
  %60 = load i8, ptr %59, align 1, !tbaa !15
  %61 = icmp eq i8 %60, 1
  br i1 %61, label %62, label %73

62:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  store double 0.000000e+00, ptr %18, align 8, !tbaa !13
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %64 = load double, ptr %63, align 8, !tbaa !13
  %65 = load double, ptr %8, align 8, !tbaa !16
  %66 = fmul double %64, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  %67 = fcmp olt double %66, 0x3CB0000000000000
  %.088 = select i1 %67, double 1.000000e+00, double %66
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %58, i64 noundef %42)
  %69 = load double, ptr %68, align 8, !tbaa !13
  %70 = call double @llvm.fmuladd.f64(double %.088, double %69, double 0.000000e+00)
  br label %82

71:                                               ; preds = %55, %54
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  br label %168

73:                                               ; preds = %57
  %74 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %58, i64 noundef %42)
  %75 = load i8, ptr %74, align 1, !tbaa !15
  %76 = icmp eq i8 %75, 0
  br i1 %76, label %77, label %82

77:                                               ; preds = %73
  %78 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %58, i64 noundef %42)
  store i8 2, ptr %78, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  call void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %58, i64 noundef %42)
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %79 unwind label %80

79:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  br label %82

80:                                               ; preds = %77
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  br label %168

82:                                               ; preds = %62, %79, %73, %56
  %.090 = phi double [ %70, %62 ], [ 0.000000e+00, %79 ], [ 0.000000e+00, %73 ], [ 0.000000e+00, %56 ]
  %.089 = phi double [ %.088, %62 ], [ 0.000000e+00, %79 ], [ 0.000000e+00, %73 ], [ 0.000000e+00, %56 ]
  %83 = add i64 %41, 1
  %84 = load i64, ptr %7, align 8, !tbaa !18
  %85 = icmp ult i64 %83, %84
  br i1 %85, label %86, label %110

86:                                               ; preds = %82
  %87 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %83, i64 noundef %42)
  %88 = load i8, ptr %87, align 1, !tbaa !15
  %89 = icmp eq i8 %88, 1
  br i1 %89, label %90, label %101

90:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  store double 0.000000e+00, ptr %20, align 8, !tbaa !13
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %92 = load double, ptr %91, align 8, !tbaa !13
  %93 = fneg double %92
  %94 = load double, ptr %8, align 8, !tbaa !16
  %95 = fmul double %94, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  %96 = fcmp olt double %95, 0x3CB0000000000000
  %.087 = select i1 %96, double 1.000000e+00, double %95
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %83, i64 noundef %42)
  %98 = load double, ptr %97, align 8, !tbaa !13
  %99 = call double @llvm.fmuladd.f64(double %.087, double %98, double %.090)
  %100 = fadd double %.089, %.087
  br label %110

101:                                              ; preds = %86
  %102 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %83, i64 noundef %42)
  %103 = load i8, ptr %102, align 1, !tbaa !15
  %104 = icmp eq i8 %103, 0
  br i1 %104, label %105, label %110

105:                                              ; preds = %101
  %106 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %83, i64 noundef %42)
  store i8 2, ptr %106, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #7
  call void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %21, i64 noundef %83, i64 noundef %42)
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %107 unwind label %108

107:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  br label %110

108:                                              ; preds = %105
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  br label %168

110:                                              ; preds = %90, %107, %101, %82
  %.191 = phi double [ %99, %90 ], [ %.090, %107 ], [ %.090, %101 ], [ %.090, %82 ]
  %.1 = phi double [ %100, %90 ], [ %.089, %107 ], [ %.089, %101 ], [ %.089, %82 ]
  %.not113 = icmp eq i64 %42, 0
  br i1 %.not113, label %135, label %111

111:                                              ; preds = %110
  %112 = add i64 %42, -1
  %113 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %41, i64 noundef %112)
  %114 = load i8, ptr %113, align 1, !tbaa !15
  %115 = icmp eq i8 %114, 1
  br i1 %115, label %116, label %126

116:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  store double 0.000000e+00, ptr %22, align 8, !tbaa !13
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %118 = load double, ptr %117, align 8, !tbaa !13
  %119 = load double, ptr %36, align 8, !tbaa !20
  %120 = fmul double %118, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  %121 = fcmp olt double %120, 0x3CB0000000000000
  %.086 = select i1 %121, double 1.000000e+00, double %120
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %41, i64 noundef %112)
  %123 = load double, ptr %122, align 8, !tbaa !13
  %124 = call double @llvm.fmuladd.f64(double %.086, double %123, double %.191)
  %125 = fadd double %.1, %.086
  br label %135

126:                                              ; preds = %111
  %127 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %41, i64 noundef %112)
  %128 = load i8, ptr %127, align 1, !tbaa !15
  %129 = icmp eq i8 %128, 0
  br i1 %129, label %130, label %135

130:                                              ; preds = %126
  %131 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %41, i64 noundef %112)
  store i8 2, ptr %131, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  call void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %41, i64 noundef %112)
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %132 unwind label %133

132:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  br label %135

133:                                              ; preds = %130
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  br label %168

135:                                              ; preds = %116, %132, %126, %110
  %.292 = phi double [ %124, %116 ], [ %.191, %132 ], [ %.191, %126 ], [ %.191, %110 ]
  %.2 = phi double [ %125, %116 ], [ %.1, %132 ], [ %.1, %126 ], [ %.1, %110 ]
  %136 = add i64 %42, 1
  %137 = load i64, ptr %37, align 8, !tbaa !21
  %138 = icmp ult i64 %136, %137
  br i1 %138, label %139, label %163

139:                                              ; preds = %135
  %140 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %41, i64 noundef %136)
  %141 = load i8, ptr %140, align 1, !tbaa !15
  %142 = icmp eq i8 %141, 1
  br i1 %142, label %143, label %154

143:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  store double 0.000000e+00, ptr %24, align 8, !tbaa !13
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %145 = load double, ptr %144, align 8, !tbaa !13
  %146 = fneg double %145
  %147 = load double, ptr %36, align 8, !tbaa !20
  %148 = fmul double %147, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  %149 = fcmp olt double %148, 0x3CB0000000000000
  %.0 = select i1 %149, double 1.000000e+00, double %148
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %41, i64 noundef %136)
  %151 = load double, ptr %150, align 8, !tbaa !13
  %152 = call double @llvm.fmuladd.f64(double %.0, double %151, double %.292)
  %153 = fadd double %.2, %.0
  br label %163

154:                                              ; preds = %139
  %155 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %41, i64 noundef %136)
  %156 = load i8, ptr %155, align 1, !tbaa !15
  %157 = icmp eq i8 %156, 0
  br i1 %157, label %158, label %163

158:                                              ; preds = %154
  %159 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %41, i64 noundef %136)
  store i8 2, ptr %159, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #7
  call void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %25, i64 noundef %41, i64 noundef %136)
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %160 unwind label %161

160:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  br label %163

161:                                              ; preds = %158
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  br label %168

163:                                              ; preds = %135, %154, %160, %143
  %.393 = phi double [ %152, %143 ], [ %.292, %160 ], [ %.292, %154 ], [ %.292, %135 ]
  %.3 = phi double [ %153, %143 ], [ %.2, %160 ], [ %.2, %154 ], [ %.2, %135 ]
  %164 = fdiv double %.393, %.3
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %41, i64 noundef %42)
  store double %164, ptr %165, align 8, !tbaa !13
  %166 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %41, i64 noundef %42)
  store i8 1, ptr %166, align 1, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  %167 = call noundef zeroext i1 @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E5emptyEv"(ptr noundef nonnull align 8 dereferenceable(32) %12)
  br i1 %167, label %.loopexit, label %38

168:                                              ; preds = %80, %108, %133, %161, %71
  %.pn.pn = phi { ptr, i32 } [ %72, %71 ], [ %162, %161 ], [ %134, %133 ], [ %109, %108 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  br label %169

169:                                              ; preds = %168, %52
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %168 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  br label %170

.loopexit:                                        ; preds = %163, %.preheader, %.thread
  call void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1ED2Ev"(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  ret void

170:                                              ; preds = %169, %50
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %169 ], [ %51, %50 ]
  call void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1ED2Ev"(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %171

171:                                              ; preds = %170, %48
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %170 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %172

172:                                              ; preds = %171, %46
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %171 ], [ %47, %46 ]
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES7_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEEE3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.anon.38) align 8) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1EC2ERKSH_OS5_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIcLm2EE12forEachIndexIZNS_18FmmLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES7_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEEE3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.anon.41) align 8) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E5emptyEv"(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(16) ptr @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E3topEv"(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E3popEv"(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

declare void @_ZN3jet9gradient2ERKNS_18ConstArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEEmm(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver211extrapolateERKNS0_18ConstArrayAccessorIdLm2EEESA_RKNS0_6VectorIdLm2EEEdNS0_13ArrayAccessorIdLm2EEEE3$_1ED2Ev"(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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, !11, i64 0}
!10 = !{!"_ZTSN3jet5PointImLm2EEE", !11, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !14, i64 0}
!17 = !{!"_ZTSN3jet6VectorIdLm2EEE", !14, i64 0, !14, i64 8}
!18 = !{!19, !11, i64 0}
!19 = !{!"_ZTSN3jet5Size2E", !11, i64 0, !11, i64 8}
!20 = !{!17, !14, i64 8}
!21 = !{!19, !11, i64 8}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass