; LLVM IR from yangfengzzz/Arche-webgpu :: vox.geometry/fdm_jacobi_solver2.ll (ZN3vox16FdmJacobiSolver25solveEPNS_16FdmLinearSystem2E)

; 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"

%"struct.vox::Size2" = type { i64, i64 }
%"class.vox::FdmJacobiSolver2" = type { %"class.vox::FdmLinearSystemSolver2", i32, i32, i32, double, double, %"class.vox::Array", %"class.vox::Array", %"class.vox::VectorN", %"class.vox::VectorN" }
%"class.vox::FdmLinearSystemSolver2" = type { ptr }
%"class.vox::Array" = type { %"struct.vox::Size2", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.vox::VectorN" = type { %"class.std::vector" }
%"struct.vox::FdmLinearSystem2" = type { %"class.vox::Array.0", %"class.vox::Array", %"class.vox::Array" }
%"class.vox::Array.0" = type { %"struct.vox::Size2", %"class.std::vector.1" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<vox::FdmMatrixRow2, std::allocator<vox::FdmMatrixRow2>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::FdmMatrixRow2, std::allocator<vox::FdmMatrixRow2>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::FdmMatrixRow2, std::allocator<vox::FdmMatrixRow2>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::FdmMatrixRow2, std::allocator<vox::FdmMatrixRow2>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vox16FdmJacobiSolver25solveEPNS_16FdmLinearSystem2E(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef %1) unnamed_addr #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.vox::Size2", align 8
  %6 = alloca double, align 8
  %7 = alloca %"struct.vox::Size2", 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 @_ZN3vox16FdmJacobiSolver222clearCompressedVectorsEv(ptr noundef nonnull align 8 dereferenceable(168) %11)
  %12 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.vox::FdmLinearSystem2", ptr %13, i32 0, i32 1
  %15 = call { i64, i64 } @_ZNK3vox5ArrayIdLm2EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %14)
  %16 = getelementptr inbounds { i64, i64 }, ptr %5, i32 0, i32 0
  %17 = extractvalue { i64, i64 } %15, 0
  store i64 %17, ptr %16, align 8
  %18 = getelementptr inbounds { i64, i64 }, ptr %5, i32 0, i32 1
  %19 = extractvalue { i64, i64 } %15, 1
  store i64 %19, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  call void @_ZN3vox5ArrayIdLm2EE6resizeERKNS_5Size2ERKd(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  %20 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #4
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.vox::FdmLinearSystem2", ptr %21, i32 0, i32 1
  %23 = call { i64, i64 } @_ZNK3vox5ArrayIdLm2EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  %24 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 0
  %25 = extractvalue { i64, i64 } %23, 0
  store i64 %25, ptr %24, align 8
  %26 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 1
  %27 = extractvalue { i64, i64 } %23, 1
  store i64 %27, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  call void @_ZN3vox5ArrayIdLm2EE6resizeERKNS_5Size2ERKd(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
  %28 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !11
  %30 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 2
  store i32 %29, ptr %30, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !24
  br label %31

31:                                               ; preds = %75, %2
  %32 = load i32, ptr %9, align 4, !tbaa !24
  %33 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 1
  %34 = load i32, ptr %33, align 8, !tbaa !11
  %35 = icmp ult i32 %32, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %31
  store i32 2, ptr %10, align 4
  br label %78

37:                                               ; preds = %31
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.vox::FdmLinearSystem2", ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.vox::FdmLinearSystem2", ptr %40, i32 0, i32 2
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.vox::FdmLinearSystem2", ptr %42, i32 0, i32 1
  %44 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 6
  call void @_ZN3vox16FdmJacobiSolver25relaxERKNS_5ArrayINS_13FdmMatrixRow2ELm2EEERKNS1_IdLm2EEEPS6_S9_(ptr noundef nonnull align 8 dereferenceable(40) %39, ptr noundef nonnull align 8 dereferenceable(40) %41, ptr noundef %43, ptr noundef %44)
  %45 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 6
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.vox::FdmLinearSystem2", ptr %46, i32 0, i32 1
  call void @_ZN3vox5ArrayIdLm2EE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(40) %45, ptr noundef nonnull align 8 dereferenceable(40) %47)
  %48 = load i32, ptr %9, align 4, !tbaa !24
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %74

50:                                               ; preds = %37
  %51 = load i32, ptr %9, align 4, !tbaa !24
  %52 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 3
  %53 = load i32, ptr %52, align 8, !tbaa !25
  %54 = urem i32 %51, %53
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %74

56:                                               ; preds = %50
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.vox::FdmLinearSystem2", ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.vox::FdmLinearSystem2", ptr %59, i32 0, i32 1
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.vox::FdmLinearSystem2", ptr %61, i32 0, i32 2
  %63 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 7
  call void @_ZN3vox8FdmBlas28residualERKNS_5ArrayINS_13FdmMatrixRow2ELm2EEERKNS1_IdLm2EEES8_PS6_(ptr noundef nonnull align 8 dereferenceable(40) %58, ptr noundef nonnull align 8 dereferenceable(40) %60, ptr noundef nonnull align 8 dereferenceable(40) %62, ptr noundef %63)
  %64 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 7
  %65 = call noundef double @_ZN3vox8FdmBlas26l2NormERKNS_5ArrayIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(40) %64)
  %66 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 4
  %67 = load double, ptr %66, align 8, !tbaa !26
  %68 = fcmp olt double %65, %67
  br i1 %68, label %69, label %73

69:                                               ; preds = %56
  %70 = load i32, ptr %9, align 4, !tbaa !24
  %71 = add i32 %70, 1
  %72 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 2
  store i32 %71, ptr %72, align 4, !tbaa !23
  store i32 2, ptr %10, align 4
  br label %78

73:                                               ; preds = %56
  br label %74

74:                                               ; preds = %73, %50, %37
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %9, align 4, !tbaa !24
  %77 = add i32 %76, 1
  store i32 %77, ptr %9, align 4, !tbaa !24
  br label %31, !llvm.loop !27

78:                                               ; preds = %69, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %79

79:                                               ; preds = %78
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.vox::FdmLinearSystem2", ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.vox::FdmLinearSystem2", ptr %82, i32 0, i32 1
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.vox::FdmLinearSystem2", ptr %84, i32 0, i32 2
  %86 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 7
  call void @_ZN3vox8FdmBlas28residualERKNS_5ArrayINS_13FdmMatrixRow2ELm2EEERKNS1_IdLm2EEES8_PS6_(ptr noundef nonnull align 8 dereferenceable(40) %81, ptr noundef nonnull align 8 dereferenceable(40) %83, ptr noundef nonnull align 8 dereferenceable(40) %85, ptr noundef %86)
  %87 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 7
  %88 = call noundef double @_ZN3vox8FdmBlas26l2NormERKNS_5ArrayIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(40) %87)
  %89 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 5
  store double %88, ptr %89, align 8, !tbaa !29
  %90 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 5
  %91 = load double, ptr %90, align 8, !tbaa !29
  %92 = getelementptr inbounds %"class.vox::FdmJacobiSolver2", ptr %11, i32 0, i32 4
  %93 = load double, ptr %92, align 8, !tbaa !26
  %94 = fcmp olt double %91, %93
  ret i1 %94
}

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

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

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

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

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

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

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

declare void @_ZN3vox8FdmBlas28residualERKNS_5ArrayINS_13FdmMatrixRow2ELm2EEERKNS1_IdLm2EEES8_PS6_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #3

declare noundef double @_ZN3vox8FdmBlas26l2NormERKNS_5ArrayIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(40)) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = !{!"_ZTSN3vox16FdmJacobiSolver2E", !13, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !10, i64 24, !10, i64 32, !15, i64 40, !15, i64 80, !22, i64 120, !22, i64 144}
!13 = !{!"_ZTSN3vox22FdmLinearSystemSolver2E"}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN3vox5ArrayIdLm2EEE", !16, i64 0, !18, i64 16}
!16 = !{!"_ZTSN3vox5Size2E", !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", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSN3vox7VectorNIdEE", !18, i64 0}
!23 = !{!12, !14, i64 12}
!24 = !{!14, !14, i64 0}
!25 = !{!12, !14, i64 16}
!26 = !{!12, !10, i64 24}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!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"

%"struct.vox::Size2" = type { i64, i64 }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vox16FdmJacobiSolver25solveEPNS_16FdmLinearSystem2E(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef %1) unnamed_addr #0 align 2 {
  %3 = alloca %"struct.vox::Size2", align 8
  %4 = alloca double, align 8
  %5 = alloca %"struct.vox::Size2", align 8
  %6 = alloca double, align 8
  tail call void @_ZN3vox16FdmJacobiSolver222clearCompressedVectorsEv(ptr noundef nonnull align 8 dereferenceable(168) %0)
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %8 = getelementptr inbounds i8, ptr %1, i64 40
  %9 = tail call { i64, i64 } @_ZNK3vox5ArrayIdLm2EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %8)
  %10 = extractvalue { i64, i64 } %9, 0
  store i64 %10, ptr %3, align 8
  %11 = getelementptr inbounds i8, ptr %3, i64 8
  %12 = extractvalue { i64, i64 } %9, 1
  store i64 %12, ptr %11, align 8
  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 @_ZN3vox5ArrayIdLm2EE6resizeERKNS_5Size2ERKd(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  %13 = getelementptr inbounds i8, ptr %0, i64 80
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %14 = call { i64, i64 } @_ZNK3vox5ArrayIdLm2EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %8)
  %15 = extractvalue { i64, i64 } %14, 0
  store i64 %15, ptr %5, align 8
  %16 = getelementptr inbounds i8, ptr %5, i64 8
  %17 = extractvalue { i64, i64 } %14, 1
  store i64 %17, ptr %16, align 8
  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 @_ZN3vox5ArrayIdLm2EE6resizeERKNS_5Size2ERKd(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = load i32, ptr %18, align 8, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %19, ptr %20, align 4, !tbaa !22
  %.not19 = icmp eq i32 %19, 0
  br i1 %.not19, label %.loopexit, label %21

21:                                               ; preds = %2
  %22 = getelementptr inbounds i8, ptr %1, i64 80
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZN3vox16FdmJacobiSolver25relaxERKNS_5ArrayINS_13FdmMatrixRow2ELm2EEERKNS1_IdLm2EEEPS6_S9_(ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef nonnull %8, ptr noundef nonnull %7)
  call void @_ZN3vox5ArrayIdLm2EE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(40) %8)
  %25 = load i32, ptr %18, align 8, !tbaa !9
  %26 = icmp ugt i32 %25, 1
  br i1 %26, label %.peel.next, label %.loopexit

.peel.next:                                       ; preds = %21, %35
  %.018 = phi i32 [ %36, %35 ], [ 1, %21 ]
  call void @_ZN3vox16FdmJacobiSolver25relaxERKNS_5ArrayINS_13FdmMatrixRow2ELm2EEERKNS1_IdLm2EEEPS6_S9_(ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef nonnull %8, ptr noundef nonnull %7)
  call void @_ZN3vox5ArrayIdLm2EE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(40) %8)
  %27 = load i32, ptr %23, align 8, !tbaa !23
  %28 = urem i32 %.018, %27
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %35

30:                                               ; preds = %.peel.next
  call void @_ZN3vox8FdmBlas28residualERKNS_5ArrayINS_13FdmMatrixRow2ELm2EEERKNS1_IdLm2EEES8_PS6_(ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef nonnull %13)
  %31 = call noundef double @_ZN3vox8FdmBlas26l2NormERKNS_5ArrayIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(40) %13)
  %32 = load double, ptr %24, align 8, !tbaa !24
  %33 = fcmp olt double %31, %32
  br i1 %33, label %.loopexit22, label %35

.loopexit22:                                      ; preds = %30
  %34 = add nuw i32 %.018, 1
  store i32 %34, ptr %20, align 4, !tbaa !22
  br label %.loopexit

35:                                               ; preds = %.peel.next, %30
  %36 = add nuw i32 %.018, 1
  %37 = load i32, ptr %18, align 8, !tbaa !9
  %38 = icmp ult i32 %36, %37
  br i1 %38, label %.peel.next, label %.loopexit, !llvm.loop !25

.loopexit:                                        ; preds = %35, %21, %2, %.loopexit22
  %39 = getelementptr inbounds i8, ptr %1, i64 80
  call void @_ZN3vox8FdmBlas28residualERKNS_5ArrayINS_13FdmMatrixRow2ELm2EEERKNS1_IdLm2EEES8_PS6_(ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(40) %39, ptr noundef nonnull %13)
  %40 = call noundef double @_ZN3vox8FdmBlas26l2NormERKNS_5ArrayIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(40) %13)
  %41 = getelementptr inbounds i8, ptr %0, i64 32
  store double %40, ptr %41, align 8, !tbaa !28
  %42 = getelementptr inbounds i8, ptr %0, i64 24
  %43 = load double, ptr %42, align 8, !tbaa !24
  %44 = fcmp olt double %40, %43
  ret i1 %44
}

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

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

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

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

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

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

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

declare void @_ZN3vox8FdmBlas28residualERKNS_5ArrayINS_13FdmMatrixRow2ELm2EEERKNS1_IdLm2EEES8_PS6_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #3

declare noundef double @_ZN3vox8FdmBlas26l2NormERKNS_5ArrayIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(40)) 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = !{!"_ZTSN3vox16FdmJacobiSolver2E", !11, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 80, !21, i64 120, !21, i64 144}
!11 = !{!"_ZTSN3vox22FdmLinearSystemSolver2E"}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSN3vox5ArrayIdLm2EEE", !14, i64 0, !16, i64 16}
!14 = !{!"_ZTSN3vox5Size2E", !15, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!20 = !{!"any pointer", !7, i64 0}
!21 = !{!"_ZTSN3vox7VectorNIdEE", !16, i64 0}
!22 = !{!10, !12, i64 12}
!23 = !{!10, !12, i64 16}
!24 = !{!10, !6, i64 24}
!25 = distinct !{!25, !26, !27}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!"llvm.loop.peeled.count", i32 1}
!28 = !{!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