; LLVM IR from yangfengzzz/DigitalVox3 :: vox.geometry/fdm_solvers (fdm_iccg_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.vox::geometry::Matrix" = type { i64, i64 }
%class.anon.8 = type { ptr, ptr }
%"struct.vox::geometry::FdmIccgSolver2::Preconditioner" = type { %"class.vox::geometry::ArrayView", %"class.vox::geometry::Array.1", %"class.vox::geometry::Array.1" }
%"class.vox::geometry::ArrayView" = type { %"class.vox::geometry::ArrayBase.0" }
%"class.vox::geometry::ArrayBase.0" = type { ptr, ptr, %"class.vox::geometry::Matrix" }
%"class.vox::geometry::Array.1" = type { %"class.vox::geometry::ArrayBase.2", %"class.std::vector.3" }
%"class.vox::geometry::ArrayBase.2" = type { ptr, ptr, %"class.vox::geometry::Matrix" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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 }
%"struct.vox::geometry::FdmMatrixRow2" = type { double, double, double }

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox8geometry14FdmIccgSolver214Preconditioner5solveERKNS0_5ArrayIdLm2EEEPS4_(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.vox::geometry::Matrix", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %class.anon.8, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #3
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %15)
  call void @_ZN3vox8geometry6MatrixImLm2ELm1EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %17 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %7, i32 0, i32 0
  %18 = load i64, ptr %17, align 8, !tbaa !9
  store i64 %18, ptr %8, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %19 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %7, i32 0, i32 1
  %20 = load i64, ptr %19, align 8, !tbaa !13
  store i64 %20, ptr %9, align 8, !tbaa !12
  %21 = getelementptr inbounds %class.anon.8, ptr %10, i32 0, i32 0
  store ptr %14, ptr %21, align 8, !tbaa !14
  %22 = getelementptr inbounds %class.anon.8, ptr %10, i32 0, i32 1
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %23, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8
  %26 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8
  call void @"_ZN3vox8geometry12forEachIndexImLm2EZNS0_14FdmIccgSolver214Preconditioner5solveERKNS0_5ArrayIdLm2EEEPS5_E3$_0EEvRKNS0_6MatrixIT_XT0_ELm1EEET1_"(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr %25, ptr %27)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %28 = load i64, ptr %9, align 8, !tbaa !12
  %29 = sub nsw i64 %28, 1
  store i64 %29, ptr %11, align 8, !tbaa !12
  br label %30

30:                                               ; preds = %105, %3
  %31 = load i64, ptr %11, align 8, !tbaa !12
  %32 = icmp sge i64 %31, 0
  br i1 %32, label %34, label %33

33:                                               ; preds = %30
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %108

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %35 = load i64, ptr %8, align 8, !tbaa !12
  %36 = sub nsw i64 %35, 1
  store i64 %36, ptr %13, align 8, !tbaa !12
  br label %37

37:                                               ; preds = %101, %34
  %38 = load i64, ptr %13, align 8, !tbaa !12
  %39 = icmp sge i64 %38, 0
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %104

41:                                               ; preds = %37
  %42 = getelementptr inbounds %"struct.vox::geometry::FdmIccgSolver2::Preconditioner", ptr %14, i32 0, i32 2
  %43 = load i64, ptr %13, align 8, !tbaa !12
  %44 = load i64, ptr %11, align 8, !tbaa !12
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEclIJlEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(32) %42, i64 noundef %43, i64 noundef %44)
  %46 = load double, ptr %45, align 8, !tbaa !16
  %47 = load i64, ptr %13, align 8, !tbaa !12
  %48 = add nsw i64 %47, 1
  %49 = load i64, ptr %8, align 8, !tbaa !12
  %50 = icmp slt i64 %48, %49
  br i1 %50, label %51, label %65

51:                                               ; preds = %41
  %52 = getelementptr inbounds %"struct.vox::geometry::FdmIccgSolver2::Preconditioner", ptr %14, i32 0, i32 0
  %53 = load i64, ptr %13, align 8, !tbaa !12
  %54 = load i64, ptr %11, align 8, !tbaa !12
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vox8geometry9ArrayBaseIKNS0_13FdmMatrixRow2ELm2ENS0_9ArrayViewIS3_Lm2EEEEclIJlEEERS3_mDpT_(ptr noundef nonnull align 8 dereferenceable(32) %52, i64 noundef %53, i64 noundef %54)
  %56 = getelementptr inbounds %"struct.vox::geometry::FdmMatrixRow2", ptr %55, i32 0, i32 1
  %57 = load double, ptr %56, align 8, !tbaa !18
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load i64, ptr %13, align 8, !tbaa !12
  %60 = add nsw i64 %59, 1
  %61 = load i64, ptr %11, align 8, !tbaa !12
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEclIJlEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(32) %58, i64 noundef %60, i64 noundef %61)
  %63 = load double, ptr %62, align 8, !tbaa !16
  %64 = fmul double %57, %63
  br label %66

65:                                               ; preds = %41
  br label %66

66:                                               ; preds = %65, %51
  %67 = phi double [ %64, %51 ], [ 0.000000e+00, %65 ]
  %68 = fsub double %46, %67
  %69 = load i64, ptr %11, align 8, !tbaa !12
  %70 = add nsw i64 %69, 1
  %71 = load i64, ptr %9, align 8, !tbaa !12
  %72 = icmp slt i64 %70, %71
  br i1 %72, label %73, label %87

73:                                               ; preds = %66
  %74 = getelementptr inbounds %"struct.vox::geometry::FdmIccgSolver2::Preconditioner", ptr %14, i32 0, i32 0
  %75 = load i64, ptr %13, align 8, !tbaa !12
  %76 = load i64, ptr %11, align 8, !tbaa !12
  %77 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vox8geometry9ArrayBaseIKNS0_13FdmMatrixRow2ELm2ENS0_9ArrayViewIS3_Lm2EEEEclIJlEEERS3_mDpT_(ptr noundef nonnull align 8 dereferenceable(32) %74, i64 noundef %75, i64 noundef %76)
  %78 = getelementptr inbounds %"struct.vox::geometry::FdmMatrixRow2", ptr %77, i32 0, i32 2
  %79 = load double, ptr %78, align 8, !tbaa !20
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = load i64, ptr %13, align 8, !tbaa !12
  %82 = load i64, ptr %11, align 8, !tbaa !12
  %83 = add nsw i64 %82, 1
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEclIJlEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(32) %80, i64 noundef %81, i64 noundef %83)
  %85 = load double, ptr %84, align 8, !tbaa !16
  %86 = fmul double %79, %85
  br label %88

87:                                               ; preds = %66
  br label %88

88:                                               ; preds = %87, %73
  %89 = phi double [ %86, %73 ], [ 0.000000e+00, %87 ]
  %90 = fsub double %68, %89
  %91 = getelementptr inbounds %"struct.vox::geometry::FdmIccgSolver2::Preconditioner", ptr %14, i32 0, i32 1
  %92 = load i64, ptr %13, align 8, !tbaa !12
  %93 = load i64, ptr %11, align 8, !tbaa !12
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEclIJlEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(32) %91, i64 noundef %92, i64 noundef %93)
  %95 = load double, ptr %94, align 8, !tbaa !16
  %96 = fmul double %90, %95
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load i64, ptr %13, align 8, !tbaa !12
  %99 = load i64, ptr %11, align 8, !tbaa !12
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEclIJlEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(32) %97, i64 noundef %98, i64 noundef %99)
  store double %96, ptr %100, align 8, !tbaa !16
  br label %101

101:                                              ; preds = %88
  %102 = load i64, ptr %13, align 8, !tbaa !12
  %103 = add nsw i64 %102, -1
  store i64 %103, ptr %13, align 8, !tbaa !12
  br label %37, !llvm.loop !21

104:                                              ; preds = %40
  br label %105

105:                                              ; preds = %104
  %106 = load i64, ptr %11, align 8, !tbaa !12
  %107 = add nsw i64 %106, -1
  store i64 %107, ptr %11, align 8, !tbaa !12
  br label %30, !llvm.loop !23

108:                                              ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #3
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nounwind }

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

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


; 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.vox::geometry::Matrix" = type { i64, i64 }

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox8geometry14FdmIccgSolver214Preconditioner5solveERKNS0_5ArrayIdLm2EEEPS4_(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef %2) local_unnamed_addr #2 align 2 {
  %4 = alloca %"class.vox::geometry::Matrix", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  %5 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  call void @_ZN3vox8geometry6MatrixImLm2ELm1EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %6 = load i64, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %4, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !10
  call void @"_ZN3vox8geometry12forEachIndexImLm2EZNS0_14FdmIccgSolver214Preconditioner5solveERKNS0_5ArrayIdLm2EEEPS5_E3$_0EEvRKNS0_6MatrixIT_XT0_ELm1EEET1_"(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr nonnull %0, ptr nonnull %1)
  %9 = icmp sgt i64 %8, 0
  br i1 %9, label %.preheader.lr.ph, label %._crit_edge

.preheader.lr.ph:                                 ; preds = %3
  %.032 = add nsw i64 %6, -1
  %10 = icmp sgt i64 %6, 0
  %11 = getelementptr inbounds i8, ptr %0, i64 88
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  br i1 %10, label %.preheader.us, label %._crit_edge

.preheader.us:                                    ; preds = %.preheader.lr.ph, %..loopexit_crit_edge.us
  %.029.in36.us = phi i64 [ %.02937.us, %..loopexit_crit_edge.us ], [ %8, %.preheader.lr.ph ]
  %.02937.us = add nsw i64 %.029.in36.us, -1
  %13 = icmp slt i64 %.029.in36.us, %8
  %.fr.us = freeze i1 %13
  br i1 %.fr.us, label %.lr.ph.split.us.us, label %.lr.ph.split.us42

.lr.ph.split.us42:                                ; preds = %.preheader.us, %24
  %.034.us38 = phi i64 [ %.0.us40, %24 ], [ %.032, %.preheader.us ]
  %.0.in33.us39 = phi i64 [ %.034.us38, %24 ], [ %6, %.preheader.us ]
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEclIJlEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %.034.us38, i64 noundef %.02937.us)
  %15 = load double, ptr %14, align 8, !tbaa !11
  %16 = icmp slt i64 %.0.in33.us39, %6
  br i1 %16, label %17, label %24

17:                                               ; preds = %.lr.ph.split.us42
  %18 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vox8geometry9ArrayBaseIKNS0_13FdmMatrixRow2ELm2ENS0_9ArrayViewIS3_Lm2EEEEclIJlEEERS3_mDpT_(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %.034.us38, i64 noundef %.02937.us)
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = load double, ptr %19, align 8, !tbaa !13
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEclIJlEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.0.in33.us39, i64 noundef %.02937.us)
  %22 = load double, ptr %21, align 8, !tbaa !11
  %23 = fmul double %20, %22
  br label %24

24:                                               ; preds = %17, %.lr.ph.split.us42
  %25 = phi double [ %23, %17 ], [ 0.000000e+00, %.lr.ph.split.us42 ]
  %26 = fsub double %15, %25
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEclIJlEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef %.034.us38, i64 noundef %.02937.us)
  %28 = load double, ptr %27, align 8, !tbaa !11
  %29 = fmul double %26, %28
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEclIJlEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.034.us38, i64 noundef %.02937.us)
  store double %29, ptr %30, align 8, !tbaa !11
  %.0.us40 = add nsw i64 %.034.us38, -1
  %31 = icmp sgt i64 %.034.us38, 0
  br i1 %31, label %.lr.ph.split.us42, label %..loopexit_crit_edge.us, !llvm.loop !15

..loopexit_crit_edge.us:                          ; preds = %24, %43
  %32 = icmp sgt i64 %.029.in36.us, 1
  br i1 %32, label %.preheader.us, label %._crit_edge, !llvm.loop !17

.lr.ph.split.us.us:                               ; preds = %.preheader.us, %43
  %.034.us.us = phi i64 [ %.0.us.us, %43 ], [ %.032, %.preheader.us ]
  %.0.in33.us.us = phi i64 [ %.034.us.us, %43 ], [ %6, %.preheader.us ]
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEclIJlEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %.034.us.us, i64 noundef %.02937.us)
  %34 = load double, ptr %33, align 8, !tbaa !11
  %35 = icmp slt i64 %.0.in33.us.us, %6
  br i1 %35, label %36, label %43

36:                                               ; preds = %.lr.ph.split.us.us
  %37 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vox8geometry9ArrayBaseIKNS0_13FdmMatrixRow2ELm2ENS0_9ArrayViewIS3_Lm2EEEEclIJlEEERS3_mDpT_(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %.034.us.us, i64 noundef %.02937.us)
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load double, ptr %38, align 8, !tbaa !13
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEclIJlEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.0.in33.us.us, i64 noundef %.02937.us)
  %41 = load double, ptr %40, align 8, !tbaa !11
  %42 = fmul double %39, %41
  br label %43

43:                                               ; preds = %36, %.lr.ph.split.us.us
  %44 = phi double [ %42, %36 ], [ 0.000000e+00, %.lr.ph.split.us.us ]
  %45 = fsub double %34, %44
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vox8geometry9ArrayBaseIKNS0_13FdmMatrixRow2ELm2ENS0_9ArrayViewIS3_Lm2EEEEclIJlEEERS3_mDpT_(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %.034.us.us, i64 noundef %.02937.us)
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %48 = load double, ptr %47, align 8, !tbaa !18
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEclIJlEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.034.us.us, i64 noundef %.029.in36.us)
  %50 = load double, ptr %49, align 8, !tbaa !11
  %51 = fmul double %48, %50
  %52 = fsub double %45, %51
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEclIJlEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef %.034.us.us, i64 noundef %.02937.us)
  %54 = load double, ptr %53, align 8, !tbaa !11
  %55 = fmul double %52, %54
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEclIJlEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.034.us.us, i64 noundef %.02937.us)
  store double %55, ptr %56, align 8, !tbaa !11
  %.0.us.us = add nsw i64 %.034.us.us, -1
  %57 = icmp sgt i64 %.034.us.us, 0
  br i1 %57, label %.lr.ph.split.us.us, label %..loopexit_crit_edge.us, !llvm.loop !15

._crit_edge:                                      ; preds = %..loopexit_crit_edge.us, %.preheader.lr.ph, %3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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, !7, i64 0}
!6 = !{!"_ZTSN3vox8geometry6MatrixImLm2ELm1EEE", !7, i64 0, !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !8, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"_ZTSN3vox8geometry13FdmMatrixRow2E", !12, i64 0, !12, i64 8, !12, i64 16}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!14, !12, i64 16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass