; 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::Size2" = type { i64, i64 }
%"class.jet::Vector" = type { double, double }
%"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.jet::ArrayAccessor" = type { %"class.jet::Size2", ptr }
%class.anon = type { ptr, ptr }
%class.anon.6 = type { ptr, ptr, ptr, ptr, ptr }
%class.anon.7 = type { ptr, ptr }
%class.anon.8 = type { ptr }
%"class.std::priority_queue" = type { %"class.std::vector.9", %class.anon.8 }
%"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.14 = type { ptr, ptr, ptr }
%"class.jet::Point" = type { i64, i64 }
%class.anon.15 = type { ptr }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@_ZTISt16invalid_argument = external constant ptr

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS1_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(240) %1, double noundef %2, ptr noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.jet::Size2", align 8
  %12 = alloca %"class.jet::Vector", align 8
  %13 = alloca %"class.jet::Vector", align 8
  %14 = alloca %"class.jet::Vector", align 8
  %15 = alloca %"class.jet::Array.0", align 8
  %16 = alloca i8, align 1
  %17 = alloca %"class.jet::ArrayAccessor", align 8
  %18 = alloca %class.anon, align 8
  %19 = alloca %class.anon.6, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %class.anon.7, align 8
  %23 = alloca %class.anon.8, align 8
  %24 = alloca %"class.std::priority_queue", align 8
  %25 = alloca %"class.std::vector.9", align 8
  %26 = alloca %class.anon.14, align 8
  %27 = alloca %"class.jet::Point", align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca %"class.jet::ArrayAccessor", align 8
  %31 = alloca %"class.jet::ArrayAccessor", align 8
  %32 = alloca %"class.jet::Point", align 8
  %33 = alloca %"class.jet::ArrayAccessor", align 8
  %34 = alloca %"class.jet::Point", align 8
  %35 = alloca %"class.jet::ArrayAccessor", align 8
  %36 = alloca %"class.jet::Point", align 8
  %37 = alloca %"class.jet::ArrayAccessor", align 8
  %38 = alloca %"class.jet::Point", align 8
  %39 = alloca %class.anon.15, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store double %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %40 = load ptr, ptr %5, align 8
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 8
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 8
  %45 = call noundef zeroext i1 @_ZNK3jet5Grid212hasSameShapeERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %42, ptr noundef nonnull align 8 dereferenceable(88) %44)
  br i1 %45, label %53, label %46

46:                                               ; preds = %4
  %47 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef @.str)
          to label %48 unwind label %49

48:                                               ; preds = %46
  call void @__cxa_throw(ptr %47, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #9
  unreachable

49:                                               ; preds = %46
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %9, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %10, align 4
  call void @__cxa_free_exception(ptr %47) #8
  br label %334

53:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  %56 = getelementptr inbounds ptr, ptr %55, i64 6
  %57 = load ptr, ptr %56, align 8
  call void %57(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %11, ptr noundef nonnull align 8 dereferenceable(240) %54)
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  %60 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88) %59)
  call void @_ZN3jet6VectorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %60)
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  call void @_ZN3jetdvIdEENS_6VectorIT_Lm2EEES2_RKS3_(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %13, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  call void @_ZN3jetmlIdEENS_6VectorIT_Lm2EEERKS3_S5_(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %13)
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #8
  store i8 0, ptr %16, align 1, !tbaa !13
  call void @_ZN3jet5ArrayIcLm2EEC2ERKNS_5Size2ERKc(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 1 dereferenceable(1) %16)
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #8
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3jet11ScalarGrid212dataAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8 %17, ptr noundef nonnull align 8 dereferenceable(240) %61)
          to label %62 unwind label %81

62:                                               ; preds = %53
  %63 = getelementptr inbounds %class.anon, ptr %18, i32 0, i32 0
  store ptr %17, ptr %63, align 8, !tbaa !5
  %64 = getelementptr inbounds %class.anon, ptr %18, i32 0, i32 1
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %65, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds { ptr, ptr }, ptr %18, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8
  %68 = getelementptr inbounds { ptr, ptr }, ptr %18, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8
  invoke void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr %67, ptr %69)
          to label %70 unwind label %81

70:                                               ; preds = %62
  %71 = getelementptr inbounds %class.anon.6, ptr %19, i32 0, i32 0
  store ptr %17, ptr %71, align 8, !tbaa !5
  %72 = getelementptr inbounds %class.anon.6, ptr %19, i32 0, i32 1
  store ptr %11, ptr %72, align 8, !tbaa !5
  %73 = getelementptr inbounds %class.anon.6, ptr %19, i32 0, i32 2
  store ptr %15, ptr %73, align 8, !tbaa !5
  %74 = getelementptr inbounds %class.anon.6, ptr %19, i32 0, i32 3
  store ptr %12, ptr %74, align 8, !tbaa !5
  %75 = getelementptr inbounds %class.anon.6, ptr %19, i32 0, i32 4
  store ptr %14, ptr %75, align 8, !tbaa !5
  invoke void @"_ZNK3jet5ArrayIcLm2EE12forEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_1EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef byval(%class.anon.6) align 8 %19)
          to label %76 unwind label %81

76:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !14
  br label %77

77:                                               ; preds = %326, %76
  %78 = load i32, ptr %20, align 4, !tbaa !14
  %79 = icmp slt i32 %78, 2
  br i1 %79, label %85, label %80

80:                                               ; preds = %77
  store i32 2, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %332

81:                                               ; preds = %70, %62, %53
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %9, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %10, align 4
  br label %333

85:                                               ; preds = %77
  %86 = getelementptr inbounds %class.anon.7, ptr %22, i32 0, i32 0
  store ptr %17, ptr %86, align 8, !tbaa !5
  %87 = getelementptr inbounds %class.anon.7, ptr %22, i32 0, i32 1
  store ptr %15, ptr %87, align 8, !tbaa !5
  %88 = getelementptr inbounds { ptr, ptr }, ptr %22, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8
  %90 = getelementptr inbounds { ptr, ptr }, ptr %22, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8
  invoke void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr %89, ptr %91)
          to label %92 unwind label %133

92:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %93 = getelementptr inbounds %class.anon.8, ptr %23, i32 0, i32 0
  store ptr %17, ptr %93, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #8
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3jet5PointImLm2EEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3EC2ERKSB_OS5_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %94 unwind label %137

94:                                               ; preds = %92
  call void @_ZNSt6vectorIN3jet5PointImLm2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  %95 = getelementptr inbounds %class.anon.14, ptr %26, i32 0, i32 0
  store ptr %15, ptr %95, align 8, !tbaa !5
  %96 = getelementptr inbounds %class.anon.14, ptr %26, i32 0, i32 1
  store ptr %11, ptr %96, align 8, !tbaa !5
  %97 = getelementptr inbounds %class.anon.14, ptr %26, i32 0, i32 2
  store ptr %24, ptr %97, align 8, !tbaa !5
  invoke void @"_ZNK3jet5ArrayIcLm2EE12forEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_4EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef byval(%class.anon.14) align 8 %26)
          to label %98 unwind label %141

98:                                               ; preds = %94
  br label %99

99:                                               ; preds = %318, %98
  %100 = invoke noundef zeroext i1 @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E5emptyEv"(ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %101 unwind label %141

101:                                              ; preds = %99
  %102 = xor i1 %100, true
  br i1 %102, label %103, label %321

103:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #8
  %104 = invoke noundef nonnull align 8 dereferenceable(16) ptr @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E3topEv"(ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %105 unwind label %145

105:                                              ; preds = %103
  invoke void @_ZN3jet5PointImLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %104)
          to label %106 unwind label %145

106:                                              ; preds = %105
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E3popEv"(ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %107 unwind label %145

107:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %108 = getelementptr inbounds %"class.jet::Point", ptr %27, i32 0, i32 0
  %109 = load i64, ptr %108, align 8, !tbaa !16
  store i64 %109, ptr %28, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %110 = getelementptr inbounds %"class.jet::Point", ptr %27, i32 0, i32 1
  %111 = load i64, ptr %110, align 8, !tbaa !20
  store i64 %111, ptr %29, align 8, !tbaa !19
  %112 = load i64, ptr %28, align 8, !tbaa !19
  %113 = load i64, ptr %29, align 8, !tbaa !19
  %114 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %112, i64 noundef %113)
          to label %115 unwind label %149

115:                                              ; preds = %107
  store i8 1, ptr %114, align 1, !tbaa !13
  invoke void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %116 unwind label %149

116:                                              ; preds = %115
  %117 = load i64, ptr %28, align 8, !tbaa !19
  %118 = load i64, ptr %29, align 8, !tbaa !19
  %119 = invoke noundef double @_Z9solveQuadRKN3jet5ArrayIcLm2EEENS_13ArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEES9_mm(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef %30, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %117, i64 noundef %118)
          to label %120 unwind label %149

120:                                              ; preds = %116
  %121 = load i64, ptr %28, align 8, !tbaa !19
  %122 = load i64, ptr %29, align 8, !tbaa !19
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %121, i64 noundef %122)
          to label %124 unwind label %149

124:                                              ; preds = %120
  store double %119, ptr %123, align 8, !tbaa !9
  %125 = load i64, ptr %28, align 8, !tbaa !19
  %126 = load i64, ptr %29, align 8, !tbaa !19
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %125, i64 noundef %126)
          to label %128 unwind label %149

128:                                              ; preds = %124
  %129 = load double, ptr %127, align 8, !tbaa !9
  %130 = load double, ptr %7, align 8, !tbaa !9
  %131 = fcmp ogt double %129, %130
  br i1 %131, label %132, label %153

132:                                              ; preds = %128
  store i32 6, ptr %21, align 4
  br label %316

133:                                              ; preds = %85
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %9, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %10, align 4
  br label %331

137:                                              ; preds = %92
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %9, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %10, align 4
  call void @_ZNSt6vectorIN3jet5PointImLm2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  br label %330

141:                                              ; preds = %321, %99, %94
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %9, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %10, align 4
  br label %329

145:                                              ; preds = %106, %105, %103
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %9, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %10, align 4
  br label %320

149:                                              ; preds = %299, %294, %293, %288, %279, %257, %252, %251, %246, %237, %218, %213, %212, %207, %198, %176, %171, %170, %165, %156, %124, %120, %116, %115, %107
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %9, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %10, align 4
  br label %319

153:                                              ; preds = %128
  %154 = load i64, ptr %28, align 8, !tbaa !19
  %155 = icmp ugt i64 %154, 0
  br i1 %155, label %156, label %192

156:                                              ; preds = %153
  %157 = load i64, ptr %28, align 8, !tbaa !19
  %158 = sub i64 %157, 1
  %159 = load i64, ptr %29, align 8, !tbaa !19
  %160 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %158, i64 noundef %159)
          to label %161 unwind label %149

161:                                              ; preds = %156
  %162 = load i8, ptr %160, align 1, !tbaa !13
  %163 = sext i8 %162 to i32
  %164 = icmp eq i32 %163, 0
  br i1 %164, label %165, label %191

165:                                              ; preds = %161
  %166 = load i64, ptr %28, align 8, !tbaa !19
  %167 = sub i64 %166, 1
  %168 = load i64, ptr %29, align 8, !tbaa !19
  %169 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %167, i64 noundef %168)
          to label %170 unwind label %149

170:                                              ; preds = %165
  store i8 2, ptr %169, align 1, !tbaa !13
  invoke void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %171 unwind label %149

171:                                              ; preds = %170
  %172 = load i64, ptr %28, align 8, !tbaa !19
  %173 = sub i64 %172, 1
  %174 = load i64, ptr %29, align 8, !tbaa !19
  %175 = invoke noundef double @_Z9solveQuadRKN3jet5ArrayIcLm2EEENS_13ArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEES9_mm(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef %31, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %173, i64 noundef %174)
          to label %176 unwind label %149

176:                                              ; preds = %171
  %177 = load i64, ptr %28, align 8, !tbaa !19
  %178 = sub i64 %177, 1
  %179 = load i64, ptr %29, align 8, !tbaa !19
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %178, i64 noundef %179)
          to label %181 unwind label %149

181:                                              ; preds = %176
  store double %175, ptr %180, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  %182 = load i64, ptr %28, align 8, !tbaa !19
  %183 = sub i64 %182, 1
  %184 = load i64, ptr %29, align 8, !tbaa !19
  invoke void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %32, i64 noundef %183, i64 noundef %184)
          to label %185 unwind label %187

185:                                              ; preds = %181
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %186 unwind label %187

186:                                              ; preds = %185
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  br label %191

187:                                              ; preds = %185, %181
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %9, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  br label %319

191:                                              ; preds = %186, %161
  br label %192

192:                                              ; preds = %191, %153
  %193 = load i64, ptr %28, align 8, !tbaa !19
  %194 = add i64 %193, 1
  %195 = getelementptr inbounds %"class.jet::Size2", ptr %11, i32 0, i32 0
  %196 = load i64, ptr %195, align 8, !tbaa !21
  %197 = icmp ult i64 %194, %196
  br i1 %197, label %198, label %234

198:                                              ; preds = %192
  %199 = load i64, ptr %28, align 8, !tbaa !19
  %200 = add i64 %199, 1
  %201 = load i64, ptr %29, align 8, !tbaa !19
  %202 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %200, i64 noundef %201)
          to label %203 unwind label %149

203:                                              ; preds = %198
  %204 = load i8, ptr %202, align 1, !tbaa !13
  %205 = sext i8 %204 to i32
  %206 = icmp eq i32 %205, 0
  br i1 %206, label %207, label %233

207:                                              ; preds = %203
  %208 = load i64, ptr %28, align 8, !tbaa !19
  %209 = add i64 %208, 1
  %210 = load i64, ptr %29, align 8, !tbaa !19
  %211 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %209, i64 noundef %210)
          to label %212 unwind label %149

212:                                              ; preds = %207
  store i8 2, ptr %211, align 1, !tbaa !13
  invoke void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %213 unwind label %149

213:                                              ; preds = %212
  %214 = load i64, ptr %28, align 8, !tbaa !19
  %215 = add i64 %214, 1
  %216 = load i64, ptr %29, align 8, !tbaa !19
  %217 = invoke noundef double @_Z9solveQuadRKN3jet5ArrayIcLm2EEENS_13ArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEES9_mm(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef %33, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %215, i64 noundef %216)
          to label %218 unwind label %149

218:                                              ; preds = %213
  %219 = load i64, ptr %28, align 8, !tbaa !19
  %220 = add i64 %219, 1
  %221 = load i64, ptr %29, align 8, !tbaa !19
  %222 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %220, i64 noundef %221)
          to label %223 unwind label %149

223:                                              ; preds = %218
  store double %217, ptr %222, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  %224 = load i64, ptr %28, align 8, !tbaa !19
  %225 = add i64 %224, 1
  %226 = load i64, ptr %29, align 8, !tbaa !19
  invoke void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %34, i64 noundef %225, i64 noundef %226)
          to label %227 unwind label %229

227:                                              ; preds = %223
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %228 unwind label %229

228:                                              ; preds = %227
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  br label %233

229:                                              ; preds = %227, %223
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %9, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  br label %319

233:                                              ; preds = %228, %203
  br label %234

234:                                              ; preds = %233, %192
  %235 = load i64, ptr %29, align 8, !tbaa !19
  %236 = icmp ugt i64 %235, 0
  br i1 %236, label %237, label %273

237:                                              ; preds = %234
  %238 = load i64, ptr %28, align 8, !tbaa !19
  %239 = load i64, ptr %29, align 8, !tbaa !19
  %240 = sub i64 %239, 1
  %241 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %238, i64 noundef %240)
          to label %242 unwind label %149

242:                                              ; preds = %237
  %243 = load i8, ptr %241, align 1, !tbaa !13
  %244 = sext i8 %243 to i32
  %245 = icmp eq i32 %244, 0
  br i1 %245, label %246, label %272

246:                                              ; preds = %242
  %247 = load i64, ptr %28, align 8, !tbaa !19
  %248 = load i64, ptr %29, align 8, !tbaa !19
  %249 = sub i64 %248, 1
  %250 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %247, i64 noundef %249)
          to label %251 unwind label %149

251:                                              ; preds = %246
  store i8 2, ptr %250, align 1, !tbaa !13
  invoke void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %252 unwind label %149

252:                                              ; preds = %251
  %253 = load i64, ptr %28, align 8, !tbaa !19
  %254 = load i64, ptr %29, align 8, !tbaa !19
  %255 = sub i64 %254, 1
  %256 = invoke noundef double @_Z9solveQuadRKN3jet5ArrayIcLm2EEENS_13ArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEES9_mm(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef %35, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %253, i64 noundef %255)
          to label %257 unwind label %149

257:                                              ; preds = %252
  %258 = load i64, ptr %28, align 8, !tbaa !19
  %259 = load i64, ptr %29, align 8, !tbaa !19
  %260 = sub i64 %259, 1
  %261 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %258, i64 noundef %260)
          to label %262 unwind label %149

262:                                              ; preds = %257
  store double %256, ptr %261, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #8
  %263 = load i64, ptr %28, align 8, !tbaa !19
  %264 = load i64, ptr %29, align 8, !tbaa !19
  %265 = sub i64 %264, 1
  invoke void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %36, i64 noundef %263, i64 noundef %265)
          to label %266 unwind label %268

266:                                              ; preds = %262
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(16) %36)
          to label %267 unwind label %268

267:                                              ; preds = %266
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  br label %272

268:                                              ; preds = %266, %262
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %9, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  br label %319

272:                                              ; preds = %267, %242
  br label %273

273:                                              ; preds = %272, %234
  %274 = load i64, ptr %29, align 8, !tbaa !19
  %275 = add i64 %274, 1
  %276 = getelementptr inbounds %"class.jet::Size2", ptr %11, i32 0, i32 1
  %277 = load i64, ptr %276, align 8, !tbaa !23
  %278 = icmp ult i64 %275, %277
  br i1 %278, label %279, label %315

279:                                              ; preds = %273
  %280 = load i64, ptr %28, align 8, !tbaa !19
  %281 = load i64, ptr %29, align 8, !tbaa !19
  %282 = add i64 %281, 1
  %283 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %280, i64 noundef %282)
          to label %284 unwind label %149

284:                                              ; preds = %279
  %285 = load i8, ptr %283, align 1, !tbaa !13
  %286 = sext i8 %285 to i32
  %287 = icmp eq i32 %286, 0
  br i1 %287, label %288, label %314

288:                                              ; preds = %284
  %289 = load i64, ptr %28, align 8, !tbaa !19
  %290 = load i64, ptr %29, align 8, !tbaa !19
  %291 = add i64 %290, 1
  %292 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %289, i64 noundef %291)
          to label %293 unwind label %149

293:                                              ; preds = %288
  store i8 2, ptr %292, align 1, !tbaa !13
  invoke void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %294 unwind label %149

294:                                              ; preds = %293
  %295 = load i64, ptr %28, align 8, !tbaa !19
  %296 = load i64, ptr %29, align 8, !tbaa !19
  %297 = add i64 %296, 1
  %298 = invoke noundef double @_Z9solveQuadRKN3jet5ArrayIcLm2EEENS_13ArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEES9_mm(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef %37, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %295, i64 noundef %297)
          to label %299 unwind label %149

299:                                              ; preds = %294
  %300 = load i64, ptr %28, align 8, !tbaa !19
  %301 = load i64, ptr %29, align 8, !tbaa !19
  %302 = add i64 %301, 1
  %303 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %300, i64 noundef %302)
          to label %304 unwind label %149

304:                                              ; preds = %299
  store double %298, ptr %303, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #8
  %305 = load i64, ptr %28, align 8, !tbaa !19
  %306 = load i64, ptr %29, align 8, !tbaa !19
  %307 = add i64 %306, 1
  invoke void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %38, i64 noundef %305, i64 noundef %307)
          to label %308 unwind label %310

308:                                              ; preds = %304
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(16) %38)
          to label %309 unwind label %310

309:                                              ; preds = %308
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #8
  br label %314

310:                                              ; preds = %308, %304
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %9, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #8
  br label %319

314:                                              ; preds = %309, %284
  br label %315

315:                                              ; preds = %314, %273
  store i32 0, ptr %21, align 4
  br label %316

316:                                              ; preds = %315, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  %317 = load i32, ptr %21, align 4
  switch i32 %317, label %339 [
    i32 0, label %318
    i32 6, label %321
  ]

318:                                              ; preds = %316
  br label %99, !llvm.loop !24

319:                                              ; preds = %310, %268, %229, %187, %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %320

320:                                              ; preds = %319, %145
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  br label %329

321:                                              ; preds = %316, %101
  %322 = getelementptr inbounds %class.anon.15, ptr %39, i32 0, i32 0
  store ptr %17, ptr %322, align 8, !tbaa !5
  %323 = getelementptr inbounds %class.anon.15, ptr %39, i32 0, i32 0
  %324 = load ptr, ptr %323, align 8
  invoke void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_5EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr %324)
          to label %325 unwind label %141

325:                                              ; preds = %321
  call void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3ED2Ev"(ptr noundef nonnull align 8 dereferenceable(32) %24) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %326

326:                                              ; preds = %325
  %327 = load i32, ptr %20, align 4, !tbaa !14
  %328 = add nsw i32 %327, 1
  store i32 %328, ptr %20, align 4, !tbaa !14
  br label %77, !llvm.loop !26

329:                                              ; preds = %320, %141
  call void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3ED2Ev"(ptr noundef nonnull align 8 dereferenceable(32) %24) #8
  br label %330

330:                                              ; preds = %329, %137
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %331

331:                                              ; preds = %330, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %333

332:                                              ; preds = %80
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  ret void

333:                                              ; preds = %331, %81
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  br label %334

334:                                              ; preds = %333, %49
  %335 = load ptr, ptr %9, align 8
  %336 = load i32, ptr %10, align 4
  %337 = insertvalue { ptr, i32 } poison, ptr %335, 0
  %338 = insertvalue { ptr, i32 } %337, i32 %336, 1
  resume { ptr, i32 } %338

339:                                              ; preds = %316
  unreachable
}

declare noundef zeroext i1 @_ZNK3jet5Grid212hasSameShapeERKS0_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) #1

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt16invalid_argumentD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @__cxa_throw(ptr, ptr, ptr)

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet6VectorIdLm2EEC2ERKS1_(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 @_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)) #0

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

; 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 #0 align 2

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

declare void @_ZN3jet11ScalarGrid212dataAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(240)) #1

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr, ptr) #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIcLm2EE12forEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_1EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.anon.6) align 8) #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr, ptr) #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIcLm2EE12forEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_4EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.anon.14) align 8) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(16) ptr @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E3topEv"(ptr noundef nonnull align 8 dereferenceable(32)) #4 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 #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E3popEv"(ptr noundef nonnull align 8 dereferenceable(32)) #0 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) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_Z9solveQuadRKN3jet5ArrayIcLm2EEENS_13ArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEES9_mm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 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) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #0 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 #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_5EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr) #0 align 2

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

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

attributes #0 = { 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 #1 = { "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 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }

!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 = !{!"vtable pointer", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTSN3jet5PointImLm2EEE", !18, i64 0, !18, i64 8}
!18 = !{!"long", !7, i64 0}
!19 = !{!18, !18, i64 0}
!20 = !{!17, !18, i64 8}
!21 = !{!22, !18, i64 0}
!22 = !{!"_ZTSN3jet5Size2E", !18, i64 0, !18, i64 8}
!23 = !{!22, !18, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


; 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::Size2" = type { i64, i64 }
%"class.jet::Vector" = type { double, double }
%"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.jet::ArrayAccessor" = type { %"class.jet::Size2", ptr }
%class.anon.6 = type { ptr, ptr, ptr, ptr, ptr }
%class.anon.8 = type { ptr }
%"class.std::priority_queue" = type { %"class.std::vector.9", %class.anon.8 }
%"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.14 = type { ptr, ptr, ptr }
%"class.jet::Point" = type { i64, i64 }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@_ZTISt16invalid_argument = external constant ptr

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS1_(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(240) %1, double noundef %2, ptr noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.jet::Size2", align 8
  %6 = alloca %"class.jet::Vector", align 8
  %7 = alloca %"class.jet::Vector", align 8
  %8 = alloca %"class.jet::Vector", align 8
  %9 = alloca %"class.jet::Array.0", align 8
  %10 = alloca i8, align 1
  %11 = alloca %"class.jet::ArrayAccessor", align 8
  %12 = alloca %class.anon.6, align 8
  %13 = alloca %class.anon.8, align 8
  %14 = alloca %"class.std::priority_queue", align 8
  %15 = alloca %"class.std::vector.9", align 8
  %16 = alloca %class.anon.14, align 8
  %17 = alloca %"class.jet::Point", align 8
  %18 = alloca %"class.jet::ArrayAccessor", align 8
  %19 = alloca %"class.jet::ArrayAccessor", align 8
  %20 = alloca %"class.jet::Point", align 8
  %21 = alloca %"class.jet::ArrayAccessor", align 8
  %22 = alloca %"class.jet::Point", align 8
  %23 = alloca %"class.jet::ArrayAccessor", align 8
  %24 = alloca %"class.jet::Point", align 8
  %25 = alloca %"class.jet::ArrayAccessor", align 8
  %26 = alloca %"class.jet::Point", align 8
  %27 = getelementptr inbounds i8, ptr %1, i64 8
  %28 = getelementptr inbounds i8, ptr %3, i64 8
  %29 = tail call noundef zeroext i1 @_ZNK3jet5Grid212hasSameShapeERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %27, ptr noundef nonnull align 8 dereferenceable(88) %28)
  br i1 %29, label %35, label %30

30:                                               ; preds = %4
  %31 = tail call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull @.str)
          to label %32 unwind label %33

32:                                               ; preds = %30
  tail call void @__cxa_throw(ptr nonnull %31, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #9
  unreachable

33:                                               ; preds = %30
  %34 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %31) #8
  br label %151

35:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  %36 = load ptr, ptr %1, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %36, i64 48
  %38 = load ptr, ptr %37, align 8
  call void %38(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %5, ptr noundef nonnull align 8 dereferenceable(240) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88) %27)
  call void @_ZN3jet6VectorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %39)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  call void @_ZN3jetdvIdEENS_6VectorIT_Lm2EEES2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %7, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  call void @_ZN3jetmlIdEENS_6VectorIT_Lm2EEERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #8
  store i8 0, ptr %10, align 1, !tbaa !8
  call void @_ZN3jet5ArrayIcLm2EEC2ERKNS_5Size2ERKc(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 1 dereferenceable(1) %10)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  invoke void @_ZN3jet11ScalarGrid212dataAccessorEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ArrayAccessor") align 8 %11, ptr noundef nonnull align 8 dereferenceable(240) %3)
          to label %40 unwind label %51

40:                                               ; preds = %35
  invoke void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr nonnull %11, ptr nonnull %1)
          to label %41 unwind label %51

41:                                               ; preds = %40
  store ptr %11, ptr %12, align 8, !tbaa !10
  %42 = getelementptr inbounds i8, ptr %12, i64 8
  store ptr %5, ptr %42, align 8, !tbaa !10
  %43 = getelementptr inbounds i8, ptr %12, i64 16
  store ptr %9, ptr %43, align 8, !tbaa !10
  %44 = getelementptr inbounds i8, ptr %12, i64 24
  store ptr %6, ptr %44, align 8, !tbaa !10
  %45 = getelementptr inbounds i8, ptr %12, i64 32
  store ptr %8, ptr %45, align 8, !tbaa !10
  invoke void @"_ZNK3jet5ArrayIcLm2EE12forEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_1EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull byval(%class.anon.6) align 8 %12)
          to label %.preheader91 unwind label %51

.preheader91:                                     ; preds = %41
  %46 = getelementptr inbounds i8, ptr %16, i64 8
  %47 = getelementptr inbounds i8, ptr %16, i64 16
  %48 = getelementptr inbounds i8, ptr %17, i64 8
  %49 = getelementptr inbounds i8, ptr %5, i64 8
  br label %53

50:                                               ; preds = %147
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  ret void

51:                                               ; preds = %41, %40, %35
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %150

53:                                               ; preds = %.preheader91, %147
  %54 = phi i1 [ true, %.preheader91 ], [ false, %147 ]
  invoke void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr nonnull %11, ptr nonnull %9)
          to label %55 unwind label %70

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  store ptr %11, ptr %13, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %15, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3jet5PointImLm2EEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3EC2ERKSB_OS5_"(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %56 unwind label %72

56:                                               ; preds = %55
  call void @_ZNSt6vectorIN3jet5PointImLm2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  store ptr %9, ptr %16, align 8, !tbaa !10
  store ptr %5, ptr %46, align 8, !tbaa !10
  store ptr %14, ptr %47, align 8, !tbaa !10
  invoke void @"_ZNK3jet5ArrayIcLm2EE12forEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_4EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull byval(%class.anon.14) align 8 %16)
          to label %.preheader unwind label %74

.preheader:                                       ; preds = %56
  %57 = call noundef zeroext i1 @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E5emptyEv"(ptr noundef nonnull align 8 dereferenceable(32) %14)
  br i1 %57, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %144
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #8
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E3topEv"(ptr noundef nonnull align 8 dereferenceable(32) %14)
  call void @_ZN3jet5PointImLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %58)
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E3popEv"(ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %59 unwind label %76

59:                                               ; preds = %.lr.ph
  %60 = load i64, ptr %17, align 8, !tbaa !12
  %61 = load i64, ptr %48, align 8, !tbaa !15
  %62 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %60, i64 noundef %61)
  store i8 1, ptr %62, align 1, !tbaa !8
  invoke void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %63 unwind label %78

63:                                               ; preds = %59
  %64 = invoke noundef double @_Z9solveQuadRKN3jet5ArrayIcLm2EEENS_13ArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEES9_mm(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull %18, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %60, i64 noundef %61)
          to label %65 unwind label %78

65:                                               ; preds = %63
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %60, i64 noundef %61)
  store double %64, ptr %66, align 8, !tbaa !16
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %60, i64 noundef %61)
  %68 = load double, ptr %67, align 8, !tbaa !16
  %69 = fcmp ogt double %68, %2
  br i1 %69, label %.thread, label %80

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

70:                                               ; preds = %53
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %150

72:                                               ; preds = %55
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3jet5PointImLm2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  br label %149

74:                                               ; preds = %.loopexit, %56
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %148

76:                                               ; preds = %.lr.ph
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %146

78:                                               ; preds = %137, %135, %120, %118, %105, %103, %88, %86, %63, %59
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %146

80:                                               ; preds = %65
  %.not = icmp eq i64 %60, 0
  br i1 %.not, label %95, label %81

81:                                               ; preds = %80
  %82 = add i64 %60, -1
  %83 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %82, i64 noundef %61)
  %84 = load i8, ptr %83, align 1, !tbaa !8
  %85 = icmp eq i8 %84, 0
  br i1 %85, label %86, label %95

86:                                               ; preds = %81
  %87 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %82, i64 noundef %61)
  store i8 2, ptr %87, align 1, !tbaa !8
  invoke void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %88 unwind label %78

88:                                               ; preds = %86
  %89 = invoke noundef double @_Z9solveQuadRKN3jet5ArrayIcLm2EEENS_13ArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEES9_mm(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull %19, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %82, i64 noundef %61)
          to label %90 unwind label %78

90:                                               ; preds = %88
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %82, i64 noundef %61)
  store double %89, ptr %91, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #8
  call void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %20, i64 noundef %82, i64 noundef %61)
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %92 unwind label %93

92:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #8
  br label %95

93:                                               ; preds = %90
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #8
  br label %146

95:                                               ; preds = %81, %92, %80
  %96 = add i64 %60, 1
  %97 = load i64, ptr %5, align 8, !tbaa !18
  %98 = icmp ult i64 %96, %97
  br i1 %98, label %99, label %112

99:                                               ; preds = %95
  %100 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %96, i64 noundef %61)
  %101 = load i8, ptr %100, align 1, !tbaa !8
  %102 = icmp eq i8 %101, 0
  br i1 %102, label %103, label %112

103:                                              ; preds = %99
  %104 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %96, i64 noundef %61)
  store i8 2, ptr %104, align 1, !tbaa !8
  invoke void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %105 unwind label %78

105:                                              ; preds = %103
  %106 = invoke noundef double @_Z9solveQuadRKN3jet5ArrayIcLm2EEENS_13ArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEES9_mm(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull %21, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %96, i64 noundef %61)
          to label %107 unwind label %78

107:                                              ; preds = %105
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %96, i64 noundef %61)
  store double %106, ptr %108, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #8
  call void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef %96, i64 noundef %61)
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %109 unwind label %110

109:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #8
  br label %112

110:                                              ; preds = %107
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #8
  br label %146

112:                                              ; preds = %99, %109, %95
  %.not80 = icmp eq i64 %61, 0
  br i1 %.not80, label %127, label %113

113:                                              ; preds = %112
  %114 = add i64 %61, -1
  %115 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %60, i64 noundef %114)
  %116 = load i8, ptr %115, align 1, !tbaa !8
  %117 = icmp eq i8 %116, 0
  br i1 %117, label %118, label %127

118:                                              ; preds = %113
  %119 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %60, i64 noundef %114)
  store i8 2, ptr %119, align 1, !tbaa !8
  invoke void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %120 unwind label %78

120:                                              ; preds = %118
  %121 = invoke noundef double @_Z9solveQuadRKN3jet5ArrayIcLm2EEENS_13ArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEES9_mm(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull %23, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %60, i64 noundef %114)
          to label %122 unwind label %78

122:                                              ; preds = %120
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %60, i64 noundef %114)
  store double %121, ptr %123, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #8
  call void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %60, i64 noundef %114)
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %124 unwind label %125

124:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #8
  br label %127

125:                                              ; preds = %122
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #8
  br label %146

127:                                              ; preds = %113, %124, %112
  %128 = add i64 %61, 1
  %129 = load i64, ptr %49, align 8, !tbaa !20
  %130 = icmp ult i64 %128, %129
  br i1 %130, label %131, label %144

131:                                              ; preds = %127
  %132 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %60, i64 noundef %128)
  %133 = load i8, ptr %132, align 1, !tbaa !8
  %134 = icmp eq i8 %133, 0
  br i1 %134, label %135, label %144

135:                                              ; preds = %131
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3jet5ArrayIcLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %60, i64 noundef %128)
  store i8 2, ptr %136, align 1, !tbaa !8
  invoke void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %137 unwind label %78

137:                                              ; preds = %135
  %138 = invoke noundef double @_Z9solveQuadRKN3jet5ArrayIcLm2EEENS_13ArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEES9_mm(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull %25, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %60, i64 noundef %128)
          to label %139 unwind label %78

139:                                              ; preds = %137
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet13ArrayAccessorIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %60, i64 noundef %128)
  store double %138, ptr %140, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #8
  call void @_ZN3jet5PointImLm2EEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %26, i64 noundef %60, i64 noundef %128)
  invoke void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %141 unwind label %142

141:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #8
  br label %144

142:                                              ; preds = %139
  %143 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #8
  br label %146

144:                                              ; preds = %127, %141, %131
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #8
  %145 = call noundef zeroext i1 @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E5emptyEv"(ptr noundef nonnull align 8 dereferenceable(32) %14)
  br i1 %145, label %.loopexit, label %.lr.ph

146:                                              ; preds = %78, %93, %110, %125, %142, %76
  %.pn.pn = phi { ptr, i32 } [ %77, %76 ], [ %143, %142 ], [ %79, %78 ], [ %126, %125 ], [ %111, %110 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #8
  br label %148

.loopexit:                                        ; preds = %144, %.preheader, %.thread
  invoke void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_5EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr nonnull %11)
          to label %147 unwind label %74

147:                                              ; preds = %.loopexit
  call void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3ED2Ev"(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br i1 %54, label %53, label %50, !llvm.loop !21

148:                                              ; preds = %146, %74
  %.pn83 = phi { ptr, i32 } [ %75, %74 ], [ %.pn.pn, %146 ]
  call void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3ED2Ev"(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  br label %149

149:                                              ; preds = %148, %72
  %.pn83.pn = phi { ptr, i32 } [ %.pn83, %148 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %150

150:                                              ; preds = %70, %149, %51
  %.pn83.pn.pn.pn = phi { ptr, i32 } [ %52, %51 ], [ %.pn83.pn, %149 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @_ZN3jet5ArrayIcLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  br label %151

151:                                              ; preds = %150, %33
  %.pn83.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn83.pn.pn.pn, %150 ], [ %34, %33 ]
  resume { ptr, i32 } %.pn83.pn.pn.pn.pn
}

declare noundef zeroext i1 @_ZNK3jet5Grid212hasSameShapeERKS0_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt16invalid_argumentD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet5Grid211gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet6VectorIdLm2EEC2ERKS1_(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 @_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 #0

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

; 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 #0 align 2

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

declare void @_ZN3jet11ScalarGrid212dataAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr, ptr) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIcLm2EE12forEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_1EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.anon.6) align 8) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_2EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr, ptr) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIcLm2EE12forEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_4EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.anon.14) align 8) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(16) ptr @"_ZNKSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E3topEv"(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 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 #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E3popEv"(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 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 #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_Z9solveQuadRKN3jet5ArrayIcLm2EEENS_13ArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEES9_mm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 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 #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt14priority_queueIN3jet5PointImLm2EEESt6vectorIS2_SaIS2_EEZNS0_18FmmLevelSetSolver212reinitializeERKNS0_11ScalarGrid2EdPS7_E3$_3E4pushEOS2_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 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 #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIcLm2EE20parallelForEachIndexIZNS_18FmmLevelSetSolver212reinitializeERKNS_11ScalarGrid2EdPS4_E3$_5EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr) local_unnamed_addr #0 align 2

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

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

attributes #0 = { 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 #1 = { "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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"omnipotent char", !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSN3jet5PointImLm2EEE", !14, i64 0, !14, i64 8}
!14 = !{!"long", !9, i64 0}
!15 = !{!13, !14, i64 8}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !9, i64 0}
!18 = !{!19, !14, i64 0}
!19 = !{!"_ZTSN3jet5Size2E", !14, i64 0, !14, i64 8}
!20 = !{!19, !14, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass