; LLVM IR from doyubkim/fluid-engine-dev :: src/jet (iterative_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::ArrayAccessor" = type { %"class.jet::Size2", ptr }
%"class.jet::Size2" = type { i64, i64 }
%"class.jet::ConstArrayAccessor" = type { %"class.jet::Size2", ptr }
%"class.jet::Array" = type { %"class.jet::Size2", %"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.anon.26 = type { ptr, ptr, ptr, ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet10copyRange2INS_18ConstArrayAccessorIdLm2EEENS_13ArrayAccessorIdLm2EEEEEvRKT_mmPT0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef, ptr noundef) #1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4swapIN3jet13ArrayAccessorIdLm2EEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet10copyRange2INS_13ArrayAccessorIdLm2EEES2_EEvRKT_mmPT0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet24IterativeLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES4_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(16) %3, double noundef %4, ptr noundef %5) #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.jet::Size2", align 8
  %14 = alloca %"class.jet::ArrayAccessor", align 8
  %15 = alloca double, align 8
  %16 = alloca %"class.jet::ConstArrayAccessor", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.jet::Array", align 8
  %19 = alloca double, align 8
  %20 = alloca %"class.jet::ArrayAccessor", align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %class.anon.26, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store double %4, ptr %11, align 8, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  %25 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK3jet18ConstArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %26)
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  call void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN3jet18ConstArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %27)
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = call noundef double @_ZN3jet24IterativeLevelSetSolver214pseudoTimeStepENS_18ConstArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef %16, ptr noundef nonnull align 8 dereferenceable(16) %28)
  store double %29, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %30 = load double, ptr %11, align 8, !tbaa !9
  %31 = load double, ptr %15, align 8, !tbaa !9
  %32 = call noundef i32 @_ZN3jet24IterativeLevelSetSolver228distanceToNumberOfIterationsEdd(double noundef %30, double noundef %31)
  store i32 %32, ptr %17, align 4, !tbaa !11
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds %"class.jet::Size2", ptr %13, i32 0, i32 0
  %35 = load i64, ptr %34, align 8, !tbaa !13
  %36 = getelementptr inbounds %"class.jet::Size2", ptr %13, i32 0, i32 1
  %37 = load i64, ptr %36, align 8, !tbaa !16
  call void @_ZN3jet10copyRange2INS_18ConstArrayAccessorIdLm2EEENS_13ArrayAccessorIdLm2EEEEEvRKT_mmPT0_(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %35, i64 noundef %37, ptr noundef %14)
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  call void @_ZN3jet5ArrayIdLm2EEC2ERKNS_5Size2ERKd(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #5
  invoke void @_ZN3jet5ArrayIdLm2EE8accessorEv(ptr dead_on_unwind writable sret(%"class.jet::ArrayAccessor") align 8 %20, ptr noundef nonnull align 8 dereferenceable(40) %18)
          to label %38 unwind label %44

38:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !11
  br label %39

39:                                               ; preds = %63, %38
  %40 = load i32, ptr %23, align 4, !tbaa !11
  %41 = load i32, ptr %17, align 4, !tbaa !11
  %42 = icmp ult i32 %40, %41
  br i1 %42, label %48, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %75

44:                                               ; preds = %75, %6
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %21, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %22, align 4
  br label %81

48:                                               ; preds = %39
  %49 = getelementptr inbounds %"class.jet::Size2", ptr %13, i32 0, i32 0
  %50 = load i64, ptr %49, align 8, !tbaa !13
  %51 = getelementptr inbounds %"class.jet::Size2", ptr %13, i32 0, i32 1
  %52 = load i64, ptr %51, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 48, ptr %24) #5
  %53 = getelementptr inbounds %class.anon.26, ptr %24, i32 0, i32 0
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %54, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds %class.anon.26, ptr %24, i32 0, i32 1
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %56, ptr %55, align 8, !tbaa !5
  %57 = getelementptr inbounds %class.anon.26, ptr %24, i32 0, i32 2
  store ptr %25, ptr %57, align 8, !tbaa !17
  %58 = getelementptr inbounds %class.anon.26, ptr %24, i32 0, i32 3
  store ptr %14, ptr %58, align 8, !tbaa !5
  %59 = getelementptr inbounds %class.anon.26, ptr %24, i32 0, i32 4
  store ptr %20, ptr %59, align 8, !tbaa !5
  %60 = getelementptr inbounds %class.anon.26, ptr %24, i32 0, i32 5
  store ptr %15, ptr %60, align 8, !tbaa !5
  invoke void @"_ZN3jet11parallelForImZNS_24IterativeLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES5_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEEE3$_0EEvT_SD_SD_SD_RKT0_NS_15ExecutionPolicyE"(i64 noundef 0, i64 noundef %50, i64 noundef 0, i64 noundef %52, ptr noundef nonnull align 8 dereferenceable(48) %24, i32 noundef 1)
          to label %61 unwind label %66

61:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #5
  invoke void @_ZSt4swapIN3jet13ArrayAccessorIdLm2EEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %62 unwind label %70

62:                                               ; preds = %61
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %23, align 4, !tbaa !11
  %65 = add i32 %64, 1
  store i32 %65, ptr %23, align 4, !tbaa !11
  br label %39, !llvm.loop !19

66:                                               ; preds = %48
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %21, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #5
  br label %74

70:                                               ; preds = %61
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %21, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %22, align 4
  br label %74

74:                                               ; preds = %70, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %81

75:                                               ; preds = %43
  %76 = getelementptr inbounds %"class.jet::Size2", ptr %13, i32 0, i32 0
  %77 = load i64, ptr %76, align 8, !tbaa !13
  %78 = getelementptr inbounds %"class.jet::Size2", ptr %13, i32 0, i32 1
  %79 = load i64, ptr %78, align 8, !tbaa !16
  invoke void @_ZN3jet10copyRange2INS_13ArrayAccessorIdLm2EEES2_EEvRKT_mmPT0_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %77, i64 noundef %79, ptr noundef %5)
          to label %80 unwind label %44

80:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @_ZN3jet5ArrayIdLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  ret void

81:                                               ; preds = %74, %44
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @_ZN3jet5ArrayIdLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %82

82:                                               ; preds = %81
  %83 = load ptr, ptr %21, align 8
  %84 = load i32, ptr %22, align 4
  %85 = insertvalue { ptr, i32 } poison, ptr %83, 0
  %86 = insertvalue { ptr, i32 } %85, i32 %84, 1
  resume { ptr, i32 } %86
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN3jet11parallelForImZNS_24IterativeLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES5_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEEE3$_0EEvT_SD_SD_SD_RKT0_NS_15ExecutionPolicyE"(i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #1

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN3jet5Size2E", !15, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!18, !6, i64 16}
!18 = !{!"_ZTSZN3jet24IterativeLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES4_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEEE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!19 = distinct !{!19, !20}
!20 = !{!"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::ArrayAccessor" = type { %"class.jet::Size2", ptr }
%"class.jet::Size2" = type { i64, i64 }
%"class.jet::ConstArrayAccessor" = type { %"class.jet::Size2", ptr }
%"class.jet::Array" = type { %"class.jet::Size2", %"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.anon.26 = type { ptr, ptr, ptr, ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet10copyRange2INS_18ConstArrayAccessorIdLm2EEENS_13ArrayAccessorIdLm2EEEEEvRKT_mmPT0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4swapIN3jet13ArrayAccessorIdLm2EEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet10copyRange2INS_13ArrayAccessorIdLm2EEES2_EEvRKT_mmPT0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet24IterativeLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES4_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(16) %3, double noundef %4, ptr noundef %5) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.jet::Size2", align 8
  %8 = alloca %"class.jet::ArrayAccessor", align 8
  %9 = alloca double, align 8
  %10 = alloca %"class.jet::ConstArrayAccessor", align 8
  %11 = alloca %"class.jet::Array", align 8
  %12 = alloca double, align 8
  %13 = alloca %"class.jet::ArrayAccessor", align 8
  %14 = alloca %class.anon.26, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZNK3jet18ConstArrayAccessorIdLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  call void @_ZN3jet13ArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @_ZN3jet18ConstArrayAccessorIdLm2EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %2)
  %15 = call noundef double @_ZN3jet24IterativeLevelSetSolver214pseudoTimeStepENS_18ConstArrayAccessorIdLm2EEERKNS_6VectorIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %10, ptr noundef nonnull align 8 dereferenceable(16) %3)
  store double %15, ptr %9, align 8, !tbaa !5
  %16 = call noundef i32 @_ZN3jet24IterativeLevelSetSolver228distanceToNumberOfIterationsEdd(double noundef %4, double noundef %15)
  %17 = load i64, ptr %7, align 8, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %7, i64 8
  %19 = load i64, ptr %18, align 8, !tbaa !12
  call void @_ZN3jet10copyRange2INS_18ConstArrayAccessorIdLm2EEENS_13ArrayAccessorIdLm2EEEEEvRKT_mmPT0_(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %17, i64 noundef %19, ptr noundef nonnull %8)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  store double 0.000000e+00, ptr %12, align 8, !tbaa !5
  call void @_ZN3jet5ArrayIdLm2EEC2ERKNS_5Size2ERKd(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  invoke void @_ZN3jet5ArrayIdLm2EE8accessorEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ArrayAccessor") align 8 %13, ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %.preheader unwind label %27

.preheader:                                       ; preds = %6
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %20 = getelementptr inbounds i8, ptr %14, i64 8
  %21 = getelementptr inbounds i8, ptr %14, i64 16
  %22 = getelementptr inbounds i8, ptr %14, i64 24
  %23 = getelementptr inbounds i8, ptr %14, i64 32
  %24 = getelementptr inbounds i8, ptr %14, i64 40
  br label %29

._crit_edge:                                      ; preds = %33, %.preheader
  %25 = load i64, ptr %7, align 8, !tbaa !9
  %26 = load i64, ptr %18, align 8, !tbaa !12
  invoke void @_ZN3jet10copyRange2INS_13ArrayAccessorIdLm2EEES2_EEvRKT_mmPT0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %25, i64 noundef %26, ptr noundef nonnull %5)
          to label %39 unwind label %27

27:                                               ; preds = %._crit_edge, %6
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %40

29:                                               ; preds = %.lr.ph, %33
  %.017 = phi i32 [ 0, %.lr.ph ], [ %34, %33 ]
  %30 = load i64, ptr %7, align 8, !tbaa !9
  %31 = load i64, ptr %18, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #5
  store ptr %2, ptr %14, align 8, !tbaa !13
  store ptr %3, ptr %20, align 8, !tbaa !13
  store ptr %0, ptr %21, align 8, !tbaa !15
  store ptr %8, ptr %22, align 8, !tbaa !13
  store ptr %13, ptr %23, align 8, !tbaa !13
  store ptr %9, ptr %24, align 8, !tbaa !13
  invoke void @"_ZN3jet11parallelForImZNS_24IterativeLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES5_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEEE3$_0EEvT_SD_SD_SD_RKT0_NS_15ExecutionPolicyE"(i64 noundef 0, i64 noundef %30, i64 noundef 0, i64 noundef %31, ptr noundef nonnull align 8 dereferenceable(48) %14, i32 noundef 1)
          to label %32 unwind label %35

32:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #5
  invoke void @_ZSt4swapIN3jet13ArrayAccessorIdLm2EEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %33 unwind label %37

33:                                               ; preds = %32
  %34 = add nuw i32 %.017, 1
  %exitcond.not = icmp eq i32 %34, %16
  br i1 %exitcond.not, label %._crit_edge, label %29, !llvm.loop !17

35:                                               ; preds = %29
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #5
  br label %40

37:                                               ; preds = %32
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %40

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

40:                                               ; preds = %35, %37, %27
  %.pn.pn = phi { ptr, i32 } [ %28, %27 ], [ %38, %37 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  call void @_ZN3jet5ArrayIdLm2EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  resume { ptr, i32 } %.pn.pn
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN3jet11parallelForImZNS_24IterativeLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES5_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEEE3$_0EEvT_SD_SD_SD_RKT0_NS_15ExecutionPolicyE"(i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #1

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN3jet5Size2E", !11, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !14, i64 16}
!16 = !{!"_ZTSZN3jet24IterativeLevelSetSolver211extrapolateERKNS_18ConstArrayAccessorIdLm2EEES4_RKNS_6VectorIdLm2EEEdNS_13ArrayAccessorIdLm2EEEE3$_0", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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