; 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::ArrayAccessor" = type { %"class.jet::Size3", ptr }
%"class.jet::Size3" = type { i64, i64, i64 }
%"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.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 @_ZN3jet24IterativeLevelSetSolver314pseudoTimeStepENS_18ConstArrayAccessorIdLm3EEERKNS_6VectorIdLm3EEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3jet24IterativeLevelSetSolver328distanceToNumberOfIterationsEdd(double noundef, double noundef) #2 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) #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 @_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 #1 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)) #1 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)) #3

; 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) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet24IterativeLevelSetSolver311extrapolateERKNS_18ConstArrayAccessorIdLm3EEES4_RKNS_6VectorIdLm3EEEdNS_13ArrayAccessorIdLm3EEE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(24) %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::Size3", 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 24, ptr %13) #5
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK3jet18ConstArrayAccessorIdLm3EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size3") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %26)
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  call void @_ZN3jet13ArrayAccessorIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN3jet18ConstArrayAccessorIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %27)
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = call noundef double @_ZN3jet24IterativeLevelSetSolver314pseudoTimeStepENS_18ConstArrayAccessorIdLm3EEERKNS_6VectorIdLm3EEE(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef %16, ptr noundef nonnull align 8 dereferenceable(24) %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 @_ZN3jet24IterativeLevelSetSolver328distanceToNumberOfIterationsEdd(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::Size3", ptr %13, i32 0, i32 0
  %35 = load i64, ptr %34, align 8, !tbaa !13
  %36 = getelementptr inbounds %"class.jet::Size3", ptr %13, i32 0, i32 1
  %37 = load i64, ptr %36, align 8, !tbaa !16
  %38 = getelementptr inbounds %"class.jet::Size3", ptr %13, i32 0, i32 2
  %39 = load i64, ptr %38, align 8, !tbaa !17
  call void @_ZN3jet10copyRange3INS_18ConstArrayAccessorIdLm3EEENS_13ArrayAccessorIdLm3EEEEEvRKT_mmmPT0_(ptr noundef nonnull align 8 dereferenceable(32) %33, i64 noundef %35, i64 noundef %37, i64 noundef %39, ptr noundef %14)
  call void @llvm.lifetime.start.p0(i64 48, 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 @_ZN3jet5ArrayIdLm3EEC2ERKNS_5Size3ERKd(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(24) %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 32, ptr %20) #5
  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 %40 unwind label %46

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

41:                                               ; preds = %67, %40
  %42 = load i32, ptr %23, align 4, !tbaa !11
  %43 = load i32, ptr %17, align 4, !tbaa !11
  %44 = icmp ult i32 %42, %43
  br i1 %44, label %50, label %45

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

46:                                               ; preds = %79, %6
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %21, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %22, align 4
  br label %87

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

65:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #5
  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) %14)
          to label %66 unwind label %74

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %66
  %68 = load i32, ptr %23, align 4, !tbaa !11
  %69 = add i32 %68, 1
  store i32 %69, ptr %23, align 4, !tbaa !11
  br label %41, !llvm.loop !20

70:                                               ; preds = %50
  %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
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #5
  br label %78

74:                                               ; preds = %65
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %21, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %22, align 4
  br label %78

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

79:                                               ; preds = %45
  %80 = getelementptr inbounds %"class.jet::Size3", ptr %13, i32 0, i32 0
  %81 = load i64, ptr %80, align 8, !tbaa !13
  %82 = getelementptr inbounds %"class.jet::Size3", ptr %13, i32 0, i32 1
  %83 = load i64, ptr %82, align 8, !tbaa !16
  %84 = getelementptr inbounds %"class.jet::Size3", ptr %13, i32 0, i32 2
  %85 = load i64, ptr %84, align 8, !tbaa !17
  invoke void @_ZN3jet10copyRange3INS_13ArrayAccessorIdLm3EEES2_EEvRKT_mmmPT0_(ptr noundef nonnull align 8 dereferenceable(32) %14, i64 noundef %81, i64 noundef %83, i64 noundef %85, ptr noundef %5)
          to label %86 unwind label %46

86:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #5
  call void @_ZN3jet5ArrayIdLm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #5
  call void @llvm.lifetime.end.p0(i64 48, 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 32, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  ret void

87:                                               ; preds = %78, %46
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #5
  call void @_ZN3jet5ArrayIdLm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #5
  call void @llvm.lifetime.end.p0(i64 48, 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 32, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  br label %88

88:                                               ; preds = %87
  %89 = load ptr, ptr %21, align 8
  %90 = load i32, ptr %22, align 4
  %91 = insertvalue { ptr, i32 } poison, ptr %89, 0
  %92 = insertvalue { ptr, i32 } %91, i32 %90, 1
  resume { ptr, i32 } %92
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN3jet11parallelForImZNS_24IterativeLevelSetSolver311extrapolateERKNS_18ConstArrayAccessorIdLm3EEES5_RKNS_6VectorIdLm3EEEdNS_13ArrayAccessorIdLm3EEEE3$_0EEvT_SD_SD_SD_SD_SD_RKT0_NS_15ExecutionPolicyE"(i64 noundef, i64 noundef, 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 = !{!"_ZTSN3jet5Size3E", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!14, !15, i64 16}
!18 = !{!19, !6, i64 16}
!19 = !{!"_ZTSZN3jet24IterativeLevelSetSolver311extrapolateERKNS_18ConstArrayAccessorIdLm3EEES4_RKNS_6VectorIdLm3EEEdNS_13ArrayAccessorIdLm3EEEE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!20 = distinct !{!20, !21}
!21 = !{!"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::Size3", ptr }
%"class.jet::Size3" = type { i64, i64, i64 }
%"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.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 @_ZN3jet24IterativeLevelSetSolver314pseudoTimeStepENS_18ConstArrayAccessorIdLm3EEERKNS_6VectorIdLm3EEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3jet24IterativeLevelSetSolver328distanceToNumberOfIterationsEdd(double noundef, double noundef) local_unnamed_addr #2 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 #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 @_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 #1 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 #1 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 #3

; 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 #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet24IterativeLevelSetSolver311extrapolateERKNS_18ConstArrayAccessorIdLm3EEES4_RKNS_6VectorIdLm3EEEdNS_13ArrayAccessorIdLm3EEE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, double noundef %4, ptr noundef %5) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.jet::Size3", 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 24, ptr nonnull %7) #5
  call void @_ZNK3jet18ConstArrayAccessorIdLm3EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size3") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  call void @_ZN3jet13ArrayAccessorIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @_ZN3jet18ConstArrayAccessorIdLm3EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %2)
  %15 = call noundef double @_ZN3jet24IterativeLevelSetSolver314pseudoTimeStepENS_18ConstArrayAccessorIdLm3EEERKNS_6VectorIdLm3EEE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %10, ptr noundef nonnull align 8 dereferenceable(24) %3)
  store double %15, ptr %9, align 8, !tbaa !5
  %16 = call noundef i32 @_ZN3jet24IterativeLevelSetSolver328distanceToNumberOfIterationsEdd(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
  %20 = getelementptr inbounds i8, ptr %7, i64 16
  %21 = load i64, ptr %20, align 8, !tbaa !13
  call void @_ZN3jet10copyRange3INS_18ConstArrayAccessorIdLm3EEENS_13ArrayAccessorIdLm3EEEEEvRKT_mmmPT0_(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %17, i64 noundef %19, i64 noundef %21, ptr noundef nonnull %8)
  call void @llvm.lifetime.start.p0(i64 48, 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 @_ZN3jet5ArrayIdLm3EEC2ERKNS_5Size3ERKd(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(24) %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 32, ptr nonnull %13) #5
  invoke void @_ZN3jet5ArrayIdLm3EE8accessorEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::ArrayAccessor") align 8 %13, ptr noundef nonnull align 8 dereferenceable(48) %11)
          to label %.preheader unwind label %30

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

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

._crit_edge:                                      ; preds = %37, %.preheader
  %27 = load i64, ptr %7, align 8, !tbaa !9
  %28 = load i64, ptr %18, align 8, !tbaa !12
  %29 = load i64, ptr %20, align 8, !tbaa !13
  invoke void @_ZN3jet10copyRange3INS_13ArrayAccessorIdLm3EEES2_EEvRKT_mmmPT0_(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %27, i64 noundef %28, i64 noundef %29, ptr noundef nonnull %5)
          to label %43 unwind label %30

30:                                               ; preds = %._crit_edge, %6
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %44

32:                                               ; preds = %.lr.ph, %37
  %.017 = phi i32 [ 0, %.lr.ph ], [ %38, %37 ]
  %33 = load i64, ptr %7, align 8, !tbaa !9
  %34 = load i64, ptr %18, align 8, !tbaa !12
  %35 = load i64, ptr %20, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #5
  store ptr %2, ptr %14, align 8, !tbaa !14
  store ptr %3, ptr %22, align 8, !tbaa !14
  store ptr %0, ptr %23, align 8, !tbaa !16
  store ptr %8, ptr %24, align 8, !tbaa !14
  store ptr %13, ptr %25, align 8, !tbaa !14
  store ptr %9, ptr %26, align 8, !tbaa !14
  invoke void @"_ZN3jet11parallelForImZNS_24IterativeLevelSetSolver311extrapolateERKNS_18ConstArrayAccessorIdLm3EEES5_RKNS_6VectorIdLm3EEEdNS_13ArrayAccessorIdLm3EEEE3$_0EEvT_SD_SD_SD_SD_SD_RKT0_NS_15ExecutionPolicyE"(i64 noundef 0, i64 noundef %33, i64 noundef 0, i64 noundef %34, i64 noundef 0, i64 noundef %35, ptr noundef nonnull align 8 dereferenceable(48) %14, i32 noundef 1)
          to label %36 unwind label %39

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #5
  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) %13, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %37 unwind label %41

37:                                               ; preds = %36
  %38 = add nuw i32 %.017, 1
  %exitcond.not = icmp eq i32 %38, %16
  br i1 %exitcond.not, label %._crit_edge, label %32, !llvm.loop !18

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

41:                                               ; preds = %36
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %44

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

44:                                               ; preds = %39, %41, %30
  %.pn.pn = phi { ptr, i32 } [ %31, %30 ], [ %42, %41 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  call void @_ZN3jet5ArrayIdLm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  resume { ptr, i32 } %.pn.pn
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN3jet11parallelForImZNS_24IterativeLevelSetSolver311extrapolateERKNS_18ConstArrayAccessorIdLm3EEES5_RKNS_6VectorIdLm3EEEdNS_13ArrayAccessorIdLm3EEEE3$_0EEvT_SD_SD_SD_SD_SD_RKT0_NS_15ExecutionPolicyE"(i64 noundef, i64 noundef, 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 = !{!"_ZTSN3jet5Size3E", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !11, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!17, !15, i64 16}
!17 = !{!"_ZTSZN3jet24IterativeLevelSetSolver311extrapolateERKNS_18ConstArrayAccessorIdLm3EEES4_RKNS_6VectorIdLm3EEEdNS_13ArrayAccessorIdLm3EEEE3$_0", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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