; LLVM IR from yangfengzzz/DigitalVox3 :: vox.geometry/fdm_solvers (fdm_jacobi_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.vox::geometry::FdmJacobiSolver2" = type { %"class.vox::geometry::FdmLinearSystemSolver2", i32, i32, i32, double, double, %"class.vox::geometry::Array", %"class.vox::geometry::Array", %"class.vox::geometry::Matrix.0", %"class.vox::geometry::Matrix.0" }
%"class.vox::geometry::FdmLinearSystemSolver2" = type { ptr }
%"class.vox::geometry::Array" = type { %"class.vox::geometry::ArrayBase", %"class.std::vector" }
%"class.vox::geometry::ArrayBase" = type { ptr, ptr, %"class.vox::geometry::Matrix" }
%"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.vox::geometry::Matrix.0" = type { %"class.std::vector" }
%"struct.vox::geometry::FdmLinearSystem2" = type { %"class.vox::geometry::Array.3", %"class.vox::geometry::Array", %"class.vox::geometry::Array" }
%"class.vox::geometry::Array.3" = type { %"class.vox::geometry::ArrayBase.4", %"class.std::vector.5" }
%"class.vox::geometry::ArrayBase.4" = type { ptr, ptr, %"class.vox::geometry::Matrix" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<vox::geometry::FdmMatrixRow2, std::allocator<vox::geometry::FdmMatrixRow2>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::geometry::FdmMatrixRow2, std::allocator<vox::geometry::FdmMatrixRow2>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::geometry::FdmMatrixRow2, std::allocator<vox::geometry::FdmMatrixRow2>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::geometry::FdmMatrixRow2, std::allocator<vox::geometry::FdmMatrixRow2>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vox8geometry16FdmJacobiSolver25solveEPNS0_16FdmLinearSystem2E(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef %1) unnamed_addr #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.vox::geometry::Matrix", align 8
  %6 = alloca double, align 8
  %7 = alloca %"class.vox::geometry::Matrix", align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  call void @_ZN3vox8geometry16FdmJacobiSolver222clearCompressedVectorsEv(ptr noundef nonnull align 8 dereferenceable(200) %11)
  %12 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 6
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.vox::geometry::FdmLinearSystem2", ptr %13, i32 0, i32 1
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
  call void @_ZN3vox8geometry6MatrixImLm2ELm1EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  call void @_ZN3vox8geometry5ArrayIdLm2EE6resizeENS0_6MatrixImLm2ELm1EEERKd(ptr noundef nonnull align 8 dereferenceable(56) %12, ptr noundef %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %16 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 7
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.vox::geometry::FdmLinearSystem2", ptr %17, i32 0, i32 1
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
  call void @_ZN3vox8geometry6MatrixImLm2ELm1EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  call void @_ZN3vox8geometry5ArrayIdLm2EE6resizeENS0_6MatrixImLm2ELm1EEERKd(ptr noundef nonnull align 8 dereferenceable(56) %16, ptr noundef %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %20 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 1
  %21 = load i32, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 2
  store i32 %21, ptr %22, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !25
  br label %23

23:                                               ; preds = %67, %2
  %24 = load i32, ptr %9, align 4, !tbaa !25
  %25 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 1
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = icmp ult i32 %24, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %23
  store i32 2, ptr %10, align 4
  br label %70

29:                                               ; preds = %23
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.vox::geometry::FdmLinearSystem2", ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.vox::geometry::FdmLinearSystem2", ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.vox::geometry::FdmLinearSystem2", ptr %34, i32 0, i32 1
  %36 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 6
  call void @_ZN3vox8geometry16FdmJacobiSolver25relaxERKNS0_5ArrayINS0_13FdmMatrixRow2ELm2EEERKNS2_IdLm2EEEPS7_SA_(ptr noundef nonnull align 8 dereferenceable(56) %31, ptr noundef nonnull align 8 dereferenceable(56) %33, ptr noundef %35, ptr noundef %36)
  %37 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 6
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.vox::geometry::FdmLinearSystem2", ptr %38, i32 0, i32 1
  call void @_ZN3vox8geometry5ArrayIdLm2EE4swapERS2_(ptr noundef nonnull align 8 dereferenceable(56) %37, ptr noundef nonnull align 8 dereferenceable(56) %39)
  %40 = load i32, ptr %9, align 4, !tbaa !25
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %66

42:                                               ; preds = %29
  %43 = load i32, ptr %9, align 4, !tbaa !25
  %44 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 3
  %45 = load i32, ptr %44, align 8, !tbaa !26
  %46 = urem i32 %43, %45
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %66

48:                                               ; preds = %42
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.vox::geometry::FdmLinearSystem2", ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.vox::geometry::FdmLinearSystem2", ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.vox::geometry::FdmLinearSystem2", ptr %53, i32 0, i32 2
  %55 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 7
  call void @_ZN3vox8geometry8FdmBlas28residualERKNS0_5ArrayINS0_13FdmMatrixRow2ELm2EEERKNS2_IdLm2EEES9_PS7_(ptr noundef nonnull align 8 dereferenceable(56) %50, ptr noundef nonnull align 8 dereferenceable(56) %52, ptr noundef nonnull align 8 dereferenceable(56) %54, ptr noundef %55)
  %56 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 7
  %57 = call noundef double @_ZN3vox8geometry8FdmBlas26l2NormERKNS0_5ArrayIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(56) %56)
  %58 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 4
  %59 = load double, ptr %58, align 8, !tbaa !27
  %60 = fcmp olt double %57, %59
  br i1 %60, label %61, label %65

61:                                               ; preds = %48
  %62 = load i32, ptr %9, align 4, !tbaa !25
  %63 = add i32 %62, 1
  %64 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 2
  store i32 %63, ptr %64, align 4, !tbaa !24
  store i32 2, ptr %10, align 4
  br label %70

65:                                               ; preds = %48
  br label %66

66:                                               ; preds = %65, %42, %29
  br label %67

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

70:                                               ; preds = %61, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %71

71:                                               ; preds = %70
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.vox::geometry::FdmLinearSystem2", ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.vox::geometry::FdmLinearSystem2", ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.vox::geometry::FdmLinearSystem2", ptr %76, i32 0, i32 2
  %78 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 7
  call void @_ZN3vox8geometry8FdmBlas28residualERKNS0_5ArrayINS0_13FdmMatrixRow2ELm2EEERKNS2_IdLm2EEES9_PS7_(ptr noundef nonnull align 8 dereferenceable(56) %73, ptr noundef nonnull align 8 dereferenceable(56) %75, ptr noundef nonnull align 8 dereferenceable(56) %77, ptr noundef %78)
  %79 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 7
  %80 = call noundef double @_ZN3vox8geometry8FdmBlas26l2NormERKNS0_5ArrayIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(56) %79)
  %81 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 5
  store double %80, ptr %81, align 8, !tbaa !30
  %82 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 5
  %83 = load double, ptr %82, align 8, !tbaa !30
  %84 = getelementptr inbounds %"class.vox::geometry::FdmJacobiSolver2", ptr %11, i32 0, i32 4
  %85 = load double, ptr %84, align 8, !tbaa !27
  %86 = fcmp olt double %83, %85
  ret i1 %86
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox8geometry16FdmJacobiSolver222clearCompressedVectorsEv(ptr noundef nonnull align 8 dereferenceable(200)) #0 align 2

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

; 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 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.start.p0(i64 immarg, ptr nocapture) #2

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

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

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

declare void @_ZN3vox8geometry8FdmBlas28residualERKNS0_5ArrayINS0_13FdmMatrixRow2ELm2EEERKNS2_IdLm2EEES9_PS7_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) #3

declare noundef double @_ZN3vox8geometry8FdmBlas26l2NormERKNS0_5ArrayIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(56)) #3

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

!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, !14, i64 8}
!12 = !{!"_ZTSN3vox8geometry16FdmJacobiSolver2E", !13, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !10, i64 24, !10, i64 32, !15, i64 40, !15, i64 96, !23, i64 152, !23, i64 176}
!13 = !{!"_ZTSN3vox8geometry22FdmLinearSystemSolver2E"}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN3vox8geometry5ArrayIdLm2EEE", !16, i64 0, !19, i64 32}
!16 = !{!"_ZTSN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEE", !6, i64 8, !17, i64 16}
!17 = !{!"_ZTSN3vox8geometry6MatrixImLm2ELm1EEE", !18, i64 0, !18, i64 8}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSN3vox8geometry6MatrixIdLm0ELm1EEE", !19, i64 0}
!24 = !{!12, !14, i64 12}
!25 = !{!14, !14, i64 0}
!26 = !{!12, !14, i64 16}
!27 = !{!12, !10, i64 24}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!12, !10, i64 32}


; 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 uwtable
define dso_local noundef zeroext i1 @_ZN3vox8geometry16FdmJacobiSolver25solveEPNS0_16FdmLinearSystem2E(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef %1) unnamed_addr #0 align 2 {
  %3 = alloca %"class.vox::geometry::Matrix", align 8
  %4 = alloca double, align 8
  %5 = alloca %"class.vox::geometry::Matrix", align 8
  %6 = alloca double, align 8
  tail call void @_ZN3vox8geometry16FdmJacobiSolver222clearCompressedVectorsEv(ptr noundef nonnull align 8 dereferenceable(200) %0)
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = getelementptr inbounds i8, ptr %1, i64 56
  %9 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  call void @_ZN3vox8geometry6MatrixImLm2ELm1EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  store double 0.000000e+00, ptr %4, align 8, !tbaa !5
  call void @_ZN3vox8geometry5ArrayIdLm2EE6resizeENS0_6MatrixImLm2ELm1EEERKd(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  %10 = getelementptr inbounds i8, ptr %0, i64 96
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  call void @_ZN3vox8geometry6MatrixImLm2ELm1EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  call void @_ZN3vox8geometry5ArrayIdLm2EE6resizeENS0_6MatrixImLm2ELm1EEERKd(ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load i32, ptr %12, align 8, !tbaa !9
  %14 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %13, ptr %14, align 4, !tbaa !23
  %.not19 = icmp eq i32 %13, 0
  br i1 %.not19, label %.loopexit, label %15

15:                                               ; preds = %2
  %16 = getelementptr inbounds i8, ptr %1, i64 112
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZN3vox8geometry16FdmJacobiSolver25relaxERKNS0_5ArrayINS0_13FdmMatrixRow2ELm2EEERKNS2_IdLm2EEEPS7_SA_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(56) %16, ptr noundef nonnull %8, ptr noundef nonnull %7)
  call void @_ZN3vox8geometry5ArrayIdLm2EE4swapERS2_(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(56) %8)
  %19 = load i32, ptr %12, align 8, !tbaa !9
  %20 = icmp ugt i32 %19, 1
  br i1 %20, label %.peel.next, label %.loopexit

.peel.next:                                       ; preds = %15, %29
  %.018 = phi i32 [ %30, %29 ], [ 1, %15 ]
  call void @_ZN3vox8geometry16FdmJacobiSolver25relaxERKNS0_5ArrayINS0_13FdmMatrixRow2ELm2EEERKNS2_IdLm2EEEPS7_SA_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(56) %16, ptr noundef nonnull %8, ptr noundef nonnull %7)
  call void @_ZN3vox8geometry5ArrayIdLm2EE4swapERS2_(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(56) %8)
  %21 = load i32, ptr %17, align 8, !tbaa !24
  %22 = urem i32 %.018, %21
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %29

24:                                               ; preds = %.peel.next
  call void @_ZN3vox8geometry8FdmBlas28residualERKNS0_5ArrayINS0_13FdmMatrixRow2ELm2EEERKNS2_IdLm2EEES9_PS7_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(56) %16, ptr noundef nonnull %10)
  %25 = call noundef double @_ZN3vox8geometry8FdmBlas26l2NormERKNS0_5ArrayIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(56) %10)
  %26 = load double, ptr %18, align 8, !tbaa !25
  %27 = fcmp olt double %25, %26
  br i1 %27, label %.loopexit22, label %29

.loopexit22:                                      ; preds = %24
  %28 = add nuw i32 %.018, 1
  store i32 %28, ptr %14, align 4, !tbaa !23
  br label %.loopexit

29:                                               ; preds = %.peel.next, %24
  %30 = add nuw i32 %.018, 1
  %31 = load i32, ptr %12, align 8, !tbaa !9
  %32 = icmp ult i32 %30, %31
  br i1 %32, label %.peel.next, label %.loopexit, !llvm.loop !26

.loopexit:                                        ; preds = %29, %15, %2, %.loopexit22
  %33 = getelementptr inbounds i8, ptr %1, i64 112
  call void @_ZN3vox8geometry8FdmBlas28residualERKNS0_5ArrayINS0_13FdmMatrixRow2ELm2EEERKNS2_IdLm2EEES9_PS7_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(56) %33, ptr noundef nonnull %10)
  %34 = call noundef double @_ZN3vox8geometry8FdmBlas26l2NormERKNS0_5ArrayIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(56) %10)
  %35 = getelementptr inbounds i8, ptr %0, i64 32
  store double %34, ptr %35, align 8, !tbaa !29
  %36 = getelementptr inbounds i8, ptr %0, i64 24
  %37 = load double, ptr %36, align 8, !tbaa !25
  %38 = fcmp olt double %34, %37
  ret i1 %38
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox8geometry16FdmJacobiSolver222clearCompressedVectorsEv(ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #0 align 2

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

; 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 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.start.p0(i64 immarg, ptr nocapture) #2

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

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

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

declare void @_ZN3vox8geometry8FdmBlas28residualERKNS0_5ArrayINS0_13FdmMatrixRow2ELm2EEERKNS2_IdLm2EEES9_PS7_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) local_unnamed_addr #3

declare noundef double @_ZN3vox8geometry8FdmBlas26l2NormERKNS0_5ArrayIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3

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

!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, !12, i64 8}
!10 = !{!"_ZTSN3vox8geometry16FdmJacobiSolver2E", !11, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 96, !22, i64 152, !22, i64 176}
!11 = !{!"_ZTSN3vox8geometry22FdmLinearSystemSolver2E"}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSN3vox8geometry5ArrayIdLm2EEE", !14, i64 0, !18, i64 32}
!14 = !{!"_ZTSN3vox8geometry9ArrayBaseIdLm2ENS0_5ArrayIdLm2EEEEE", !15, i64 8, !16, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSN3vox8geometry6MatrixImLm2ELm1EEE", !17, i64 0, !17, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSSt6vectorIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!22 = !{!"_ZTSN3vox8geometry6MatrixIdLm0ELm1EEE", !18, i64 0}
!23 = !{!10, !12, i64 12}
!24 = !{!10, !12, i64 16}
!25 = !{!10, !6, i64 24}
!26 = distinct !{!26, !27, !28}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!"llvm.loop.peeled.count", i32 1}
!29 = !{!10, !6, i64 32}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass