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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.jet::Size3" = type { i64, i64, i64 }
%"class.jet::Vector" = type { double, double, double }
%"class.jet::ArrayAccessor" = type { %"class.jet::Size3", ptr }
%"class.jet::ConstArrayAccessor" = type { %"class.jet::Size3", ptr }
%"class.jet::Array" = type { %"class.jet::Size3", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.jet::Logger" = type { i8, %"class.std::__cxx11::basic_stringstream" }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.3 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.3 = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::function.4" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@_ZTISt16invalid_argument = external constant ptr
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@__func__._ZN3jet24IterativeLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_ = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet24IterativeLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(320) %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 %"class.jet::Size3", align 8
  %10 = alloca %"class.jet::Vector", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.jet::ArrayAccessor", align 8
  %14 = alloca double, align 8
  %15 = alloca %"class.jet::ConstArrayAccessor", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.jet::ConstArrayAccessor", align 8
  %18 = alloca %"class.jet::Array", align 8
  %19 = alloca double, align 8
  %20 = alloca %"class.jet::ArrayAccessor", align 8
  %21 = alloca %"class.jet::Logger", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::function.4", align 8
  %26 = alloca %class.anon, align 8
  %27 = alloca %"class.jet::ArrayAccessor", 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
  %28 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = getelementptr inbounds ptr, ptr %30, i64 6
  %32 = load ptr, ptr %31, align 8
  call void %32(ptr dead_on_unwind writable sret(%"class.jet::Size3") align 8 %9, ptr noundef nonnull align 8 dereferenceable(320) %29)
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #7
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  %35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid311gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(128) %34)
  call void @_ZN3jet6VectorIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %35)
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = call noundef zeroext i1 @_ZNK3jet5Grid312hasSameShapeERKS0_(ptr noundef nonnull align 8 dereferenceable(128) %37, ptr noundef nonnull align 8 dereferenceable(128) %39)
  br i1 %40, label %48, label %41

41:                                               ; preds = %4
  %42 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef @.str)
          to label %43 unwind label %44

43:                                               ; preds = %41
  call void @__cxa_throw(ptr %42, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #8
  unreachable

44:                                               ; preds = %41
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %11, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %12, align 4
  call void @__cxa_free_exception(ptr %42) #7
  br label %159

48:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #7
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN3jet11ScalarGrid312dataAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8 %13, ptr noundef nonnull align 8 dereferenceable(320) %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK3jet11ScalarGrid317constDataAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ConstArrayAccessor") align 8 %15, ptr noundef nonnull align 8 dereferenceable(320) %50)
  %51 = call noundef double @_ZN3jet24IterativeLevelSetSolver314pseudoTimeStepENS_18ConstArrayAccessorIdLm3EEERKNS_6VectorIdLm3EEE(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef %15, ptr noundef nonnull align 8 dereferenceable(24) %10)
  store double %51, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %52 = load double, ptr %7, align 8, !tbaa !9
  %53 = load double, ptr %14, align 8, !tbaa !9
  %54 = call noundef i32 @_ZN3jet24IterativeLevelSetSolver328distanceToNumberOfIterationsEdd(double noundef %52, double noundef %53)
  store i32 %54, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #7
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK3jet11ScalarGrid317constDataAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ConstArrayAccessor") align 8 %17, ptr noundef nonnull align 8 dereferenceable(320) %55)
  %56 = getelementptr inbounds %"class.jet::Size3", ptr %9, i32 0, i32 0
  %57 = load i64, ptr %56, align 8, !tbaa !15
  %58 = getelementptr inbounds %"class.jet::Size3", ptr %9, i32 0, i32 1
  %59 = load i64, ptr %58, align 8, !tbaa !18
  %60 = getelementptr inbounds %"class.jet::Size3", ptr %9, i32 0, i32 2
  %61 = load i64, ptr %60, align 8, !tbaa !19
  call void @_ZN3jet10copyRange3INS_18ConstArrayAccessorIdLm3EEENS_13ArrayAccessorIdLm3EEEEEvRKT_mmmPT0_(ptr noundef nonnull align 8 dereferenceable(32) %17, i64 noundef %57, i64 noundef %59, i64 noundef %61, ptr noundef %13)
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  call void @_ZN3jet5ArrayIdLm3EEC2ERKNS_5Size3ERKd(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #7
  invoke void @_ZN3jet5ArrayIdLm3EE8accessorEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8 %20, ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %62 unwind label %94

62:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 400, ptr %21) #7
  invoke void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400) %21, i8 noundef zeroext 2)
          to label %63 unwind label %98

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #7
  invoke void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %22, i8 noundef zeroext 2)
          to label %64 unwind label %102

64:                                               ; preds = %63
  %65 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %21, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %66 unwind label %106

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %65, ptr noundef nonnull align 1 dereferenceable(2) @.str.1)
          to label %68 unwind label %106

68:                                               ; preds = %66
  %69 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA99_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %67, ptr noundef nonnull align 1 dereferenceable(99) @.str.2)
          to label %70 unwind label %106

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %69, ptr noundef nonnull align 1 dereferenceable(2) @.str.3)
          to label %72 unwind label %106

72:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 47, ptr %23, align 4, !tbaa !13
  %73 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIiEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %71, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %74 unwind label %110

74:                                               ; preds = %72
  %75 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %73, ptr noundef nonnull align 1 dereferenceable(3) @.str.4)
          to label %76 unwind label %110

76:                                               ; preds = %74
  %77 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA13_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %75, ptr noundef nonnull align 1 dereferenceable(13) @__func__._ZN3jet24IterativeLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_)
          to label %78 unwind label %110

78:                                               ; preds = %76
  %79 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %77, ptr noundef nonnull align 1 dereferenceable(4) @.str.5)
          to label %80 unwind label %110

80:                                               ; preds = %78
  %81 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA37_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %79, ptr noundef nonnull align 1 dereferenceable(37) @.str.6)
          to label %82 unwind label %110

82:                                               ; preds = %80
  %83 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIdEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %81, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %84 unwind label %110

84:                                               ; preds = %82
  %85 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA22_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %83, ptr noundef nonnull align 1 dereferenceable(22) @.str.7)
          to label %86 unwind label %110

86:                                               ; preds = %84
  %87 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIjEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %85, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %88 unwind label %110

88:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %21) #7
  call void @llvm.lifetime.end.p0(i64 400, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !13
  br label %89

89:                                               ; preds = %127, %88
  %90 = load i32, ptr %24, align 4, !tbaa !13
  %91 = load i32, ptr %16, align 4, !tbaa !13
  %92 = icmp ult i32 %90, %91
  br i1 %92, label %117, label %93

93:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %144

94:                                               ; preds = %48
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %11, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %12, align 4
  br label %158

98:                                               ; preds = %62
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %11, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %12, align 4
  br label %116

102:                                              ; preds = %63
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %11, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %12, align 4
  br label %115

106:                                              ; preds = %70, %68, %66, %64
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %11, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %12, align 4
  br label %114

110:                                              ; preds = %86, %84, %82, %80, %78, %76, %74, %72
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %11, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %114

114:                                              ; preds = %110, %106
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  br label %115

115:                                              ; preds = %114, %102
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %21) #7
  br label %116

116:                                              ; preds = %115, %98
  call void @llvm.lifetime.end.p0(i64 400, ptr %21) #7
  br label %158

117:                                              ; preds = %89
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %26) #7
  %119 = getelementptr inbounds %class.anon, ptr %26, i32 0, i32 0
  store ptr %13, ptr %119, align 8, !tbaa !5
  %120 = getelementptr inbounds %class.anon, ptr %26, i32 0, i32 1
  store ptr %10, ptr %120, align 8, !tbaa !5
  %121 = getelementptr inbounds %class.anon, ptr %26, i32 0, i32 2
  store ptr %28, ptr %121, align 8, !tbaa !20
  %122 = getelementptr inbounds %class.anon, ptr %26, i32 0, i32 3
  store ptr %14, ptr %122, align 8, !tbaa !5
  %123 = getelementptr inbounds %class.anon, ptr %26, i32 0, i32 4
  store ptr %20, ptr %123, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvmmmEEC2IZN3jet24IterativeLevelSetSolver312reinitializeERKNS3_11ScalarGrid3EdPS5_E3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(40) %26)
          to label %124 unwind label %130

124:                                              ; preds = %117
  invoke void @_ZNK3jet11ScalarGrid329parallelForEachDataPointIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(320) %118, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %125 unwind label %134

125:                                              ; preds = %124
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  invoke void @_ZSt4swapIN3jet13ArrayAccessorIdLm3EEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %126 unwind label %139

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %24, align 4, !tbaa !13
  %129 = add i32 %128, 1
  store i32 %129, ptr %24, align 4, !tbaa !13
  br label %89, !llvm.loop !22

130:                                              ; preds = %117
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %11, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %12, align 4
  br label %138

134:                                              ; preds = %124
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %11, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  br label %138

138:                                              ; preds = %134, %130
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  br label %143

139:                                              ; preds = %125
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %11, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %12, align 4
  br label %143

143:                                              ; preds = %139, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %158

144:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #7
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3jet11ScalarGrid312dataAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8 %27, ptr noundef nonnull align 8 dereferenceable(320) %145)
          to label %146 unwind label %154

146:                                              ; preds = %144
  %147 = getelementptr inbounds %"class.jet::Size3", ptr %9, i32 0, i32 0
  %148 = load i64, ptr %147, align 8, !tbaa !15
  %149 = getelementptr inbounds %"class.jet::Size3", ptr %9, i32 0, i32 1
  %150 = load i64, ptr %149, align 8, !tbaa !18
  %151 = getelementptr inbounds %"class.jet::Size3", ptr %9, i32 0, i32 2
  %152 = load i64, ptr %151, align 8, !tbaa !19
  invoke void @_ZN3jet10copyRange3INS_13ArrayAccessorIdLm3EEES2_EEvRKT_mmmPT0_(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 noundef %148, i64 noundef %150, i64 noundef %152, ptr noundef %27)
          to label %153 unwind label %154

153:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  call void @_ZN3jet5ArrayIdLm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  ret void

154:                                              ; preds = %146, %144
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %11, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  br label %158

158:                                              ; preds = %154, %143, %116, %94
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  call void @_ZN3jet5ArrayIdLm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  br label %159

159:                                              ; preds = %158, %44
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  br label %160

160:                                              ; preds = %159
  %161 = load ptr, ptr %11, align 8
  %162 = load i32, ptr %12, align 4
  %163 = insertvalue { ptr, i32 } poison, ptr %161, 0
  %164 = insertvalue { ptr, i32 } %163, i32 %162, 1
  resume { ptr, i32 } %164
}

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

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

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

declare noundef zeroext i1 @_ZNK3jet5Grid312hasSameShapeERKS0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) #2

declare ptr @__cxa_allocate_exception(i64)

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

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 #4

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @_ZN3jet11ScalarGrid312dataAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(320)) #2

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

declare void @_ZNK3jet11ScalarGrid317constDataAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ConstArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(320)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3jet24IterativeLevelSetSolver328distanceToNumberOfIterationsEdd(double noundef, double noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet10copyRange3INS_18ConstArrayAccessorIdLm3EEENS_13ArrayAccessorIdLm3EEEEEvRKT_mmmPT0_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, i64 noundef, ptr noundef) #0

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

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

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

declare void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400), i8 noundef zeroext) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

declare void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i8 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(2)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA99_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(99)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(3)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA13_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(13)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA37_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(37)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIdEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA22_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(22)) #0 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400)) unnamed_addr #4

declare void @_ZNK3jet11ScalarGrid329parallelForEachDataPointIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 8 dereferenceable(32)) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4swapIN3jet13ArrayAccessorIdLm3EEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet10copyRange3INS_13ArrayAccessorIdLm3EEES2_EEvRKT_mmmPT0_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, i64 noundef, ptr noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTSN3jet5Size3E", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"long", !7, i64 0}
!18 = !{!16, !17, i64 8}
!19 = !{!16, !17, i64 16}
!20 = !{!21, !6, i64 16}
!21 = !{!"_ZTSZN3jet24IterativeLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_E3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!22 = distinct !{!22, !23}
!23 = !{!"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::Size3" = type { i64, i64, i64 }
%"class.jet::Vector" = type { double, double, double }
%"class.jet::ArrayAccessor" = type { %"class.jet::Size3", ptr }
%"class.jet::ConstArrayAccessor" = type { %"class.jet::Size3", ptr }
%"class.jet::Array" = type { %"class.jet::Size3", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.jet::Logger" = type { i8, %"class.std::__cxx11::basic_stringstream" }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.3 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.3 = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::function.4" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@_ZTISt16invalid_argument = external constant ptr
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@__func__._ZN3jet24IterativeLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_ = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet24IterativeLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(320) %1, double noundef %2, ptr noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.jet::Size3", align 8
  %6 = alloca %"class.jet::Vector", align 8
  %7 = alloca %"class.jet::ArrayAccessor", align 8
  %8 = alloca double, align 8
  %9 = alloca %"class.jet::ConstArrayAccessor", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.jet::ConstArrayAccessor", align 8
  %12 = alloca %"class.jet::Array", align 8
  %13 = alloca double, align 8
  %14 = alloca %"class.jet::ArrayAccessor", align 8
  %15 = alloca %"class.jet::Logger", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::function.4", align 8
  %19 = alloca %class.anon, align 8
  %20 = alloca %"class.jet::ArrayAccessor", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  %21 = load ptr, ptr %1, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 48
  %23 = load ptr, ptr %22, align 8
  call void %23(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size3") align 8 %5, ptr noundef nonnull align 8 dereferenceable(320) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  %24 = getelementptr inbounds i8, ptr %1, i64 8
  %25 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet5Grid311gridSpacingEv(ptr noundef nonnull align 8 dereferenceable(128) %24)
  call void @_ZN3jet6VectorIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %25)
  %26 = getelementptr inbounds i8, ptr %3, i64 8
  %27 = call noundef zeroext i1 @_ZNK3jet5Grid312hasSameShapeERKS0_(ptr noundef nonnull align 8 dereferenceable(128) %24, ptr noundef nonnull align 8 dereferenceable(128) %26)
  br i1 %27, label %33, label %28

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

30:                                               ; preds = %28
  call void @__cxa_throw(ptr nonnull %29, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #8
  unreachable

31:                                               ; preds = %28
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %29) #7
  br label %108

33:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  call void @_ZN3jet11ScalarGrid312dataAccessorEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ArrayAccessor") align 8 %7, ptr noundef nonnull align 8 dereferenceable(320) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @_ZNK3jet11ScalarGrid317constDataAccessorEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ConstArrayAccessor") align 8 %9, ptr noundef nonnull align 8 dereferenceable(320) %1)
  %34 = call noundef double @_ZN3jet24IterativeLevelSetSolver314pseudoTimeStepENS_18ConstArrayAccessorIdLm3EEERKNS_6VectorIdLm3EEE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %9, ptr noundef nonnull align 8 dereferenceable(24) %6)
  store double %34, ptr %8, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %35 = call noundef i32 @_ZN3jet24IterativeLevelSetSolver328distanceToNumberOfIterationsEdd(double noundef %2, double noundef %34)
  store i32 %35, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  call void @_ZNK3jet11ScalarGrid317constDataAccessorEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ConstArrayAccessor") align 8 %11, ptr noundef nonnull align 8 dereferenceable(320) %1)
  %36 = load i64, ptr %5, align 8, !tbaa !13
  %37 = getelementptr inbounds i8, ptr %5, i64 8
  %38 = load i64, ptr %37, align 8, !tbaa !16
  %39 = getelementptr inbounds i8, ptr %5, i64 16
  %40 = load i64, ptr %39, align 8, !tbaa !17
  call void @_ZN3jet10copyRange3INS_18ConstArrayAccessorIdLm3EEENS_13ArrayAccessorIdLm3EEEEEvRKT_mmmPT0_(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %36, i64 noundef %38, i64 noundef %40, ptr noundef nonnull %7)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  store double 0.000000e+00, ptr %13, align 8, !tbaa !8
  call void @_ZN3jet5ArrayIdLm3EEC2ERKNS_5Size3ERKd(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #7
  invoke void @_ZN3jet5ArrayIdLm3EE8accessorEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ArrayAccessor") align 8 %14, ptr noundef nonnull align 8 dereferenceable(48) %12)
          to label %41 unwind label %73

41:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %15) #7
  invoke void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400) %15, i8 noundef zeroext 2)
          to label %42 unwind label %75

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #7
  invoke void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %16, i8 noundef zeroext 2)
          to label %43 unwind label %77

43:                                               ; preds = %42
  %44 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %15, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %45 unwind label %79

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %44, ptr noundef nonnull align 1 dereferenceable(2) @.str.1)
          to label %47 unwind label %79

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA99_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %46, ptr noundef nonnull align 1 dereferenceable(99) @.str.2)
          to label %49 unwind label %79

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %48, ptr noundef nonnull align 1 dereferenceable(2) @.str.3)
          to label %51 unwind label %79

51:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  store i32 47, ptr %17, align 4, !tbaa !11
  %52 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIiEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %50, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %53 unwind label %81

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %52, ptr noundef nonnull align 1 dereferenceable(3) @.str.4)
          to label %55 unwind label %81

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA13_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %54, ptr noundef nonnull align 1 dereferenceable(13) @__func__._ZN3jet24IterativeLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_)
          to label %57 unwind label %81

57:                                               ; preds = %55
  %58 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %56, ptr noundef nonnull align 1 dereferenceable(4) @.str.5)
          to label %59 unwind label %81

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA37_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %58, ptr noundef nonnull align 1 dereferenceable(37) @.str.6)
          to label %61 unwind label %81

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIdEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %60, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %63 unwind label %81

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA22_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %62, ptr noundef nonnull align 1 dereferenceable(22) @.str.7)
          to label %65 unwind label %81

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIjEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400) %64, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %67 unwind label %81

67:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %15) #7
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %15) #7
  %68 = load i32, ptr %10, align 4, !tbaa !11
  %.not = icmp eq i32 %68, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %67
  %69 = getelementptr inbounds i8, ptr %19, i64 8
  %70 = getelementptr inbounds i8, ptr %19, i64 16
  %71 = getelementptr inbounds i8, ptr %19, i64 24
  %72 = getelementptr inbounds i8, ptr %19, i64 32
  br label %86

._crit_edge:                                      ; preds = %89, %67
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #7
  invoke void @_ZN3jet11ScalarGrid312dataAccessorEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ArrayAccessor") align 8 %20, ptr noundef nonnull align 8 dereferenceable(320) %3)
          to label %100 unwind label %105

73:                                               ; preds = %33
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %107

75:                                               ; preds = %41
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %85

77:                                               ; preds = %42
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %84

79:                                               ; preds = %49, %47, %45, %43
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %83

81:                                               ; preds = %65, %63, %61, %59, %57, %55, %53, %51
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  br label %83

83:                                               ; preds = %81, %79
  %.pn = phi { ptr, i32 } [ %82, %81 ], [ %80, %79 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  br label %84

84:                                               ; preds = %83, %77
  %.pn.pn = phi { ptr, i32 } [ %.pn, %83 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  call void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400) %15) #7
  br label %85

85:                                               ; preds = %84, %75
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %84 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %15) #7
  br label %107

86:                                               ; preds = %.lr.ph, %89
  %.031 = phi i32 [ 0, %.lr.ph ], [ %90, %89 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %19) #7
  store ptr %7, ptr %19, align 8, !tbaa !18
  store ptr %6, ptr %69, align 8, !tbaa !18
  store ptr %0, ptr %70, align 8, !tbaa !20
  store ptr %8, ptr %71, align 8, !tbaa !18
  store ptr %14, ptr %72, align 8, !tbaa !18
  invoke void @"_ZNSt8functionIFvmmmEEC2IZN3jet24IterativeLevelSetSolver312reinitializeERKNS3_11ScalarGrid3EdPS5_E3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %87 unwind label %93

87:                                               ; preds = %86
  invoke void @_ZNK3jet11ScalarGrid329parallelForEachDataPointIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(320) %1, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %88 unwind label %95

88:                                               ; preds = %87
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #7
  invoke void @_ZSt4swapIN3jet13ArrayAccessorIdLm3EEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %89 unwind label %98

89:                                               ; preds = %88
  %90 = add nuw i32 %.031, 1
  %91 = load i32, ptr %10, align 4, !tbaa !11
  %92 = icmp ult i32 %90, %91
  br i1 %92, label %86, label %._crit_edge, !llvm.loop !22

93:                                               ; preds = %86
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %97

95:                                               ; preds = %87
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  br label %97

97:                                               ; preds = %95, %93
  %.pn25 = phi { ptr, i32 } [ %96, %95 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #7
  br label %107

98:                                               ; preds = %88
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %107

100:                                              ; preds = %._crit_edge
  %101 = load i64, ptr %5, align 8, !tbaa !13
  %102 = load i64, ptr %37, align 8, !tbaa !16
  %103 = load i64, ptr %39, align 8, !tbaa !17
  invoke void @_ZN3jet10copyRange3INS_13ArrayAccessorIdLm3EEES2_EEvRKT_mmmPT0_(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %101, i64 noundef %102, i64 noundef %103, ptr noundef nonnull %20)
          to label %104 unwind label %105

104:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  call void @_ZN3jet5ArrayIdLm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  ret void

105:                                              ; preds = %100, %._crit_edge
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #7
  br label %107

107:                                              ; preds = %97, %98, %105, %85, %73
  %.pn27.pn = phi { ptr, i32 } [ %106, %105 ], [ %.pn.pn.pn, %85 ], [ %74, %73 ], [ %99, %98 ], [ %.pn25, %97 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  call void @_ZN3jet5ArrayIdLm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  br label %108

108:                                              ; preds = %107, %31
  %.pn27.pn.pn = phi { ptr, i32 } [ %.pn27.pn, %107 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn27.pn.pn
}

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

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

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

declare noundef zeroext i1 @_ZNK3jet5Grid312hasSameShapeERKS0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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 #4

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

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

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

declare void @_ZNK3jet11ScalarGrid317constDataAccessorEv(ptr dead_on_unwind writable sret(%"class.jet::ConstArrayAccessor") align 8, ptr noundef nonnull align 8 dereferenceable(320)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3jet24IterativeLevelSetSolver328distanceToNumberOfIterationsEdd(double noundef, double noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet10copyRange3INS_18ConstArrayAccessorIdLm3EEENS_13ArrayAccessorIdLm3EEEEEvRKT_mmmPT0_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

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

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

declare void @_ZN3jet6LoggerC1ENS_12LoggingLevelE(ptr noundef nonnull align 8 dereferenceable(400), i8 noundef zeroext) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

declare void @_ZN3jet7Logging9getHeaderB5cxx11ENS_12LoggingLevelE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i8 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA2_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(2)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA99_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(99)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA3_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(3)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA13_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(13)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA4_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA37_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(37)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIdEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3jet6LoggerlsIA22_cEERKS0_RKT_(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 1 dereferenceable(22)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN3jet6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(400)) unnamed_addr #4

declare void @_ZNK3jet11ScalarGrid329parallelForEachDataPointIndexERKSt8functionIFvmmmEE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4swapIN3jet13ArrayAccessorIdLm3EEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet10copyRange3INS_13ArrayAccessorIdLm3EEES2_EEvRKT_mmmPT0_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN3jet5Size3E", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"long", !10, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!14, !15, i64 16}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !10, i64 0}
!20 = !{!21, !19, i64 16}
!21 = !{!"_ZTSZN3jet24IterativeLevelSetSolver312reinitializeERKNS_11ScalarGrid3EdPS1_E3$_0", !19, i64 0, !19, i64 8, !19, i64 16, !19, i64 24, !19, i64 32}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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