; LLVM IR from yangfengzzz/DigitalVox3 :: vox.geometry/fdm_solvers (fdm_iccg_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.vox::geometry::Matrix" = type { i64, i64, i64 }
%class.anon.8 = type { ptr, ptr }
%"struct.vox::geometry::FdmIccgSolver3::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::FdmMatrixRow3" = type { double, 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 @_ZN3vox8geometry6MatrixImLm3ELm1EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) 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 @_ZN3vox8geometry14FdmIccgSolver314Preconditioner5solveERKNS0_5ArrayIdLm3EEEPS4_(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(64) %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 i64, align 8
  %11 = alloca %class.anon.8, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = 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
  %16 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #3
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %17)
  call void @_ZN3vox8geometry6MatrixImLm3ELm1EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %19 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %7, i32 0, i32 0
  %20 = load i64, ptr %19, align 8, !tbaa !9
  store i64 %20, ptr %8, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %21 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %7, i32 0, i32 1
  %22 = load i64, ptr %21, align 8, !tbaa !13
  store i64 %22, ptr %9, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %23 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %7, i32 0, i32 2
  %24 = load i64, ptr %23, align 8, !tbaa !14
  store i64 %24, ptr %10, align 8, !tbaa !12
  %25 = getelementptr inbounds %class.anon.8, ptr %11, i32 0, i32 0
  store ptr %16, ptr %25, align 8, !tbaa !15
  %26 = getelementptr inbounds %class.anon.8, ptr %11, i32 0, i32 1
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %27, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8
  %30 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8
  call void @"_ZN3vox8geometry12forEachIndexImLm3EZNS0_14FdmIccgSolver314Preconditioner5solveERKNS0_5ArrayIdLm3EEEPS5_E3$_0EEvRKNS0_6MatrixIT_XT0_ELm1EEET1_"(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr %29, ptr %31)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %32 = load i64, ptr %10, align 8, !tbaa !12
  %33 = sub nsw i64 %32, 1
  store i64 %33, ptr %12, align 8, !tbaa !12
  br label %34

34:                                               ; preds = %151, %3
  %35 = load i64, ptr %12, align 8, !tbaa !12
  %36 = icmp sge i64 %35, 0
  br i1 %36, label %38, label %37

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

38:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %39 = load i64, ptr %9, align 8, !tbaa !12
  %40 = sub nsw i64 %39, 1
  store i64 %40, ptr %14, align 8, !tbaa !12
  br label %41

41:                                               ; preds = %147, %38
  %42 = load i64, ptr %14, align 8, !tbaa !12
  %43 = icmp sge i64 %42, 0
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %150

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %46 = load i64, ptr %8, align 8, !tbaa !12
  %47 = sub nsw i64 %46, 1
  store i64 %47, ptr %15, align 8, !tbaa !12
  br label %48

48:                                               ; preds = %143, %45
  %49 = load i64, ptr %15, align 8, !tbaa !12
  %50 = icmp sge i64 %49, 0
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %146

52:                                               ; preds = %48
  %53 = getelementptr inbounds %"struct.vox::geometry::FdmIccgSolver3::Preconditioner", ptr %16, i32 0, i32 2
  %54 = load i64, ptr %15, align 8, !tbaa !12
  %55 = load i64, ptr %14, align 8, !tbaa !12
  %56 = load i64, ptr %12, align 8, !tbaa !12
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEEclIJllEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(40) %53, i64 noundef %54, i64 noundef %55, i64 noundef %56)
  %58 = load double, ptr %57, align 8, !tbaa !17
  %59 = load i64, ptr %15, align 8, !tbaa !12
  %60 = add nsw i64 %59, 1
  %61 = load i64, ptr %8, align 8, !tbaa !12
  %62 = icmp slt i64 %60, %61
  br i1 %62, label %63, label %79

63:                                               ; preds = %52
  %64 = getelementptr inbounds %"struct.vox::geometry::FdmIccgSolver3::Preconditioner", ptr %16, i32 0, i32 0
  %65 = load i64, ptr %15, align 8, !tbaa !12
  %66 = load i64, ptr %14, align 8, !tbaa !12
  %67 = load i64, ptr %12, align 8, !tbaa !12
  %68 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN3vox8geometry9ArrayBaseIKNS0_13FdmMatrixRow3ELm3ENS0_9ArrayViewIS3_Lm3EEEEclIJllEEERS3_mDpT_(ptr noundef nonnull align 8 dereferenceable(40) %64, i64 noundef %65, i64 noundef %66, i64 noundef %67)
  %69 = getelementptr inbounds %"struct.vox::geometry::FdmMatrixRow3", ptr %68, i32 0, i32 1
  %70 = load double, ptr %69, align 8, !tbaa !19
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = load i64, ptr %15, align 8, !tbaa !12
  %73 = add nsw i64 %72, 1
  %74 = load i64, ptr %14, align 8, !tbaa !12
  %75 = load i64, ptr %12, align 8, !tbaa !12
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEEclIJllEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(40) %71, i64 noundef %73, i64 noundef %74, i64 noundef %75)
  %77 = load double, ptr %76, align 8, !tbaa !17
  %78 = fmul double %70, %77
  br label %80

79:                                               ; preds = %52
  br label %80

80:                                               ; preds = %79, %63
  %81 = phi double [ %78, %63 ], [ 0.000000e+00, %79 ]
  %82 = fsub double %58, %81
  %83 = load i64, ptr %14, align 8, !tbaa !12
  %84 = add nsw i64 %83, 1
  %85 = load i64, ptr %9, align 8, !tbaa !12
  %86 = icmp slt i64 %84, %85
  br i1 %86, label %87, label %103

87:                                               ; preds = %80
  %88 = getelementptr inbounds %"struct.vox::geometry::FdmIccgSolver3::Preconditioner", ptr %16, i32 0, i32 0
  %89 = load i64, ptr %15, align 8, !tbaa !12
  %90 = load i64, ptr %14, align 8, !tbaa !12
  %91 = load i64, ptr %12, align 8, !tbaa !12
  %92 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN3vox8geometry9ArrayBaseIKNS0_13FdmMatrixRow3ELm3ENS0_9ArrayViewIS3_Lm3EEEEclIJllEEERS3_mDpT_(ptr noundef nonnull align 8 dereferenceable(40) %88, i64 noundef %89, i64 noundef %90, i64 noundef %91)
  %93 = getelementptr inbounds %"struct.vox::geometry::FdmMatrixRow3", ptr %92, i32 0, i32 2
  %94 = load double, ptr %93, align 8, !tbaa !21
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = load i64, ptr %15, align 8, !tbaa !12
  %97 = load i64, ptr %14, align 8, !tbaa !12
  %98 = add nsw i64 %97, 1
  %99 = load i64, ptr %12, align 8, !tbaa !12
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEEclIJllEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(40) %95, i64 noundef %96, i64 noundef %98, i64 noundef %99)
  %101 = load double, ptr %100, align 8, !tbaa !17
  %102 = fmul double %94, %101
  br label %104

103:                                              ; preds = %80
  br label %104

104:                                              ; preds = %103, %87
  %105 = phi double [ %102, %87 ], [ 0.000000e+00, %103 ]
  %106 = fsub double %82, %105
  %107 = load i64, ptr %12, align 8, !tbaa !12
  %108 = add nsw i64 %107, 1
  %109 = load i64, ptr %10, align 8, !tbaa !12
  %110 = icmp slt i64 %108, %109
  br i1 %110, label %111, label %127

111:                                              ; preds = %104
  %112 = getelementptr inbounds %"struct.vox::geometry::FdmIccgSolver3::Preconditioner", ptr %16, i32 0, i32 0
  %113 = load i64, ptr %15, align 8, !tbaa !12
  %114 = load i64, ptr %14, align 8, !tbaa !12
  %115 = load i64, ptr %12, align 8, !tbaa !12
  %116 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN3vox8geometry9ArrayBaseIKNS0_13FdmMatrixRow3ELm3ENS0_9ArrayViewIS3_Lm3EEEEclIJllEEERS3_mDpT_(ptr noundef nonnull align 8 dereferenceable(40) %112, i64 noundef %113, i64 noundef %114, i64 noundef %115)
  %117 = getelementptr inbounds %"struct.vox::geometry::FdmMatrixRow3", ptr %116, i32 0, i32 3
  %118 = load double, ptr %117, align 8, !tbaa !22
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = load i64, ptr %15, align 8, !tbaa !12
  %121 = load i64, ptr %14, align 8, !tbaa !12
  %122 = load i64, ptr %12, align 8, !tbaa !12
  %123 = add nsw i64 %122, 1
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEEclIJllEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(40) %119, i64 noundef %120, i64 noundef %121, i64 noundef %123)
  %125 = load double, ptr %124, align 8, !tbaa !17
  %126 = fmul double %118, %125
  br label %128

127:                                              ; preds = %104
  br label %128

128:                                              ; preds = %127, %111
  %129 = phi double [ %126, %111 ], [ 0.000000e+00, %127 ]
  %130 = fsub double %106, %129
  %131 = getelementptr inbounds %"struct.vox::geometry::FdmIccgSolver3::Preconditioner", ptr %16, i32 0, i32 1
  %132 = load i64, ptr %15, align 8, !tbaa !12
  %133 = load i64, ptr %14, align 8, !tbaa !12
  %134 = load i64, ptr %12, align 8, !tbaa !12
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEEclIJllEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(40) %131, i64 noundef %132, i64 noundef %133, i64 noundef %134)
  %136 = load double, ptr %135, align 8, !tbaa !17
  %137 = fmul double %130, %136
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = load i64, ptr %15, align 8, !tbaa !12
  %140 = load i64, ptr %14, align 8, !tbaa !12
  %141 = load i64, ptr %12, align 8, !tbaa !12
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEEclIJllEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(40) %138, i64 noundef %139, i64 noundef %140, i64 noundef %141)
  store double %137, ptr %142, align 8, !tbaa !17
  br label %143

143:                                              ; preds = %128
  %144 = load i64, ptr %15, align 8, !tbaa !12
  %145 = add nsw i64 %144, -1
  store i64 %145, ptr %15, align 8, !tbaa !12
  br label %48, !llvm.loop !23

146:                                              ; preds = %51
  br label %147

147:                                              ; preds = %146
  %148 = load i64, ptr %14, align 8, !tbaa !12
  %149 = add nsw i64 %148, -1
  store i64 %149, ptr %14, align 8, !tbaa !12
  br label %41, !llvm.loop !25

150:                                              ; preds = %44
  br label %151

151:                                              ; preds = %150
  %152 = load i64, ptr %12, align 8, !tbaa !12
  %153 = add nsw i64 %152, -1
  store i64 %153, ptr %12, align 8, !tbaa !12
  br label %34, !llvm.loop !26

154:                                              ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  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 24, ptr %7) #3
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN3vox8geometry9ArrayBaseIKNS0_13FdmMatrixRow3ELm3ENS0_9ArrayViewIS3_Lm3EEEEclIJllEEERS3_mDpT_(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, 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 = !{!"_ZTSN3vox8geometry6MatrixImLm3ELm1EEE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!10, !11, i64 16}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSZN3vox8geometry14FdmIccgSolver314Preconditioner5solveERKNS0_5ArrayIdLm3EEEPS4_E3$_0", !6, i64 0, !6, i64 8}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{!20, !18, i64 8}
!20 = !{!"_ZTSN3vox8geometry13FdmMatrixRow3E", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!21 = !{!20, !18, i64 16}
!22 = !{!20, !18, i64 24}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}


; 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, 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 @_ZN3vox8geometry6MatrixImLm3ELm1EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) 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 @_ZN3vox8geometry14FdmIccgSolver314Preconditioner5solveERKNS0_5ArrayIdLm3EEEPS4_(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(64) %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 24, ptr nonnull %4) #3
  %5 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  call void @_ZN3vox8geometry6MatrixImLm3ELm1EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %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
  %9 = getelementptr inbounds i8, ptr %4, i64 16
  %10 = load i64, ptr %9, align 8, !tbaa !11
  call void @"_ZN3vox8geometry12forEachIndexImLm3EZNS0_14FdmIccgSolver314Preconditioner5solveERKNS0_5ArrayIdLm3EEEPS5_E3$_0EEvRKNS0_6MatrixIT_XT0_ELm1EEET1_"(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr nonnull %0, ptr nonnull %1)
  %11 = icmp sgt i64 %10, 0
  br i1 %11, label %.preheader53.lr.ph, label %._crit_edge

.preheader53.lr.ph:                               ; preds = %3
  %12 = icmp sgt i64 %8, 0
  %13 = getelementptr inbounds i8, ptr %0, i64 104
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  %15 = icmp sgt i64 %6, 0
  %or.cond = select i1 %12, i1 %15, i1 false
  br i1 %or.cond, label %.preheader53.us.us, label %._crit_edge

.preheader53.us.us:                               ; preds = %.preheader53.lr.ph, %..loopexit54_crit_edge.split.us.us.us
  %.049.in62.us.us = phi i64 [ %.04963.us.us, %..loopexit54_crit_edge.split.us.us.us ], [ %10, %.preheader53.lr.ph ]
  %.04963.us.us = add nsw i64 %.049.in62.us.us, -1
  %16 = icmp slt i64 %.049.in62.us.us, %10
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %..loopexit_crit_edge.us.us.us, %.preheader53.us.us
  %.048.in59.us.us.us = phi i64 [ %8, %.preheader53.us.us ], [ %.04860.us.us.us, %..loopexit_crit_edge.us.us.us ]
  %.04860.us.us.us = add nsw i64 %.048.in59.us.us.us, -1
  %17 = icmp slt i64 %.048.in59.us.us.us, %8
  br label %18

18:                                               ; preds = %49, %.preheader.us.us.us
  %.0.in56.us.us.us = phi i64 [ %6, %.preheader.us.us.us ], [ %.057.us.us.us, %49 ]
  %.057.us.us.us = add nsw i64 %.0.in56.us.us.us, -1
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEEclIJllEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(40) %13, i64 noundef %.057.us.us.us, i64 noundef %.04860.us.us.us, i64 noundef %.04963.us.us)
  %20 = load double, ptr %19, align 8, !tbaa !12
  %21 = icmp slt i64 %.0.in56.us.us.us, %6
  br i1 %21, label %22, label %29

22:                                               ; preds = %18
  %23 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN3vox8geometry9ArrayBaseIKNS0_13FdmMatrixRow3ELm3ENS0_9ArrayViewIS3_Lm3EEEEclIJllEEERS3_mDpT_(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %.057.us.us.us, i64 noundef %.04860.us.us.us, i64 noundef %.04963.us.us)
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load double, ptr %24, align 8, !tbaa !14
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEEclIJllEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %.0.in56.us.us.us, i64 noundef %.04860.us.us.us, i64 noundef %.04963.us.us)
  %27 = load double, ptr %26, align 8, !tbaa !12
  %28 = fmul double %25, %27
  br label %29

29:                                               ; preds = %22, %18
  %30 = phi double [ %28, %22 ], [ 0.000000e+00, %18 ]
  %31 = fsub double %20, %30
  br i1 %17, label %32, label %39

32:                                               ; preds = %29
  %33 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN3vox8geometry9ArrayBaseIKNS0_13FdmMatrixRow3ELm3ENS0_9ArrayViewIS3_Lm3EEEEclIJllEEERS3_mDpT_(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %.057.us.us.us, i64 noundef %.04860.us.us.us, i64 noundef %.04963.us.us)
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %35 = load double, ptr %34, align 8, !tbaa !16
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEEclIJllEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %.057.us.us.us, i64 noundef %.048.in59.us.us.us, i64 noundef %.04963.us.us)
  %37 = load double, ptr %36, align 8, !tbaa !12
  %38 = fmul double %35, %37
  br label %39

39:                                               ; preds = %32, %29
  %40 = phi double [ %38, %32 ], [ 0.000000e+00, %29 ]
  %41 = fsub double %31, %40
  br i1 %16, label %42, label %49

42:                                               ; preds = %39
  %43 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN3vox8geometry9ArrayBaseIKNS0_13FdmMatrixRow3ELm3ENS0_9ArrayViewIS3_Lm3EEEEclIJllEEERS3_mDpT_(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %.057.us.us.us, i64 noundef %.04860.us.us.us, i64 noundef %.04963.us.us)
  %44 = getelementptr inbounds i8, ptr %43, i64 24
  %45 = load double, ptr %44, align 8, !tbaa !17
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEEclIJllEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %.057.us.us.us, i64 noundef %.04860.us.us.us, i64 noundef %.049.in62.us.us)
  %47 = load double, ptr %46, align 8, !tbaa !12
  %48 = fmul double %45, %47
  br label %49

49:                                               ; preds = %42, %39
  %50 = phi double [ %48, %42 ], [ 0.000000e+00, %39 ]
  %51 = fsub double %41, %50
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEEclIJllEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(40) %14, i64 noundef %.057.us.us.us, i64 noundef %.04860.us.us.us, i64 noundef %.04963.us.us)
  %53 = load double, ptr %52, align 8, !tbaa !12
  %54 = fmul double %51, %53
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEEclIJllEEERdmDpT_(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %.057.us.us.us, i64 noundef %.04860.us.us.us, i64 noundef %.04963.us.us)
  store double %54, ptr %55, align 8, !tbaa !12
  %56 = icmp sgt i64 %.0.in56.us.us.us, 1
  br i1 %56, label %18, label %..loopexit_crit_edge.us.us.us, !llvm.loop !18

..loopexit_crit_edge.us.us.us:                    ; preds = %49
  %57 = icmp sgt i64 %.048.in59.us.us.us, 1
  br i1 %57, label %.preheader.us.us.us, label %..loopexit54_crit_edge.split.us.us.us, !llvm.loop !20

..loopexit54_crit_edge.split.us.us.us:            ; preds = %..loopexit_crit_edge.us.us.us
  %58 = icmp sgt i64 %.049.in62.us.us, 1
  br i1 %58, label %.preheader53.us.us, label %._crit_edge, !llvm.loop !21

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3vox8geometry9ArrayBaseIdLm3ENS0_5ArrayIdLm3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN3vox8geometry9ArrayBaseIKNS0_13FdmMatrixRow3ELm3ENS0_9ArrayViewIS3_Lm3EEEEclIJllEEERS3_mDpT_(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, 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 = !{!"_ZTSN3vox8geometry6MatrixImLm3ELm1EEE", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 16}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"_ZTSN3vox8geometry13FdmMatrixRow3E", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!16 = !{!15, !13, i64 16}
!17 = !{!15, !13, i64 24}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


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