; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.18" = type { ptr }
%class.anon.20 = type { ptr, ptr, ptr, ptr, ptr }
%"struct.vox::geometry::FdmIccgSolver2::PreconditionerCompressed" = type { ptr, %"class.vox::geometry::Matrix.15", %"class.vox::geometry::Matrix.15" }
%"class.vox::geometry::Matrix.15" = type { %"class.std::vector.3" }
%"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 }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox8geometry14FdmIccgSolver224PreconditionerCompressed5solveERKNS0_6MatrixIdLm0ELm1EEEPS4_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.18", align 8
  %11 = alloca %class.anon.20, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca i64, align 8
  %18 = 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
  %19 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = call noundef i64 @_ZNK3vox8geometry6MatrixIdLm0ELm1EE4rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  store i64 %21, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %22 = getelementptr inbounds %"struct.vox::geometry::FdmIccgSolver2::PreconditionerCompressed", ptr %19, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = call ptr @_ZNK3vox8geometry9MatrixCsrIdE16rowPointersBeginEv(ptr noundef nonnull align 8 dereferenceable(88) %23)
  %25 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %24, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %26 = getelementptr inbounds %"struct.vox::geometry::FdmIccgSolver2::PreconditionerCompressed", ptr %19, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = call ptr @_ZNK3vox8geometry9MatrixCsrIdE18columnIndicesBeginEv(ptr noundef nonnull align 8 dereferenceable(88) %27)
  %29 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %28, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %30 = getelementptr inbounds %"struct.vox::geometry::FdmIccgSolver2::PreconditionerCompressed", ptr %19, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = call ptr @_ZNK3vox8geometry9MatrixCsrIdE12nonZeroBeginEv(ptr noundef nonnull align 8 dereferenceable(88) %31)
  %33 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.18", ptr %10, i32 0, i32 0
  store ptr %32, ptr %33, align 8
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call noundef i64 @_ZNK3vox8geometry6MatrixIdLm0ELm1EE4rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  %36 = getelementptr inbounds %class.anon.20, ptr %11, i32 0, i32 0
  store ptr %8, ptr %36, align 8, !tbaa !5
  %37 = getelementptr inbounds %class.anon.20, ptr %11, i32 0, i32 1
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %38, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds %class.anon.20, ptr %11, i32 0, i32 2
  store ptr %9, ptr %39, align 8, !tbaa !5
  %40 = getelementptr inbounds %class.anon.20, ptr %11, i32 0, i32 3
  store ptr %10, ptr %40, align 8, !tbaa !5
  %41 = getelementptr inbounds %class.anon.20, ptr %11, i32 0, i32 4
  store ptr %19, ptr %41, align 8, !tbaa !18
  call void @"_ZN3vox8geometry12forEachIndexImZNS0_14FdmIccgSolver224PreconditionerCompressed5solveERKNS0_6MatrixIdLm0ELm1EEEPS5_E3$_0EEvT_T0_"(i64 noundef %35, ptr noundef byval(%class.anon.20) align 8 %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %42 = load i64, ptr %7, align 8, !tbaa !9
  %43 = sub nsw i64 %42, 1
  store i64 %43, ptr %12, align 8, !tbaa !9
  br label %44

44:                                               ; preds = %98, %3
  %45 = load i64, ptr %12, align 8, !tbaa !9
  %46 = icmp sge i64 %45, 0
  br i1 %46, label %48, label %47

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

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %49 = load i64, ptr %12, align 8, !tbaa !9
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKmSt6vectorImSaImEEEixEl(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef %49) #4
  %51 = load i64, ptr %50, align 8, !tbaa !9
  store i64 %51, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %52 = load i64, ptr %12, align 8, !tbaa !9
  %53 = add nsw i64 %52, 1
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKmSt6vectorImSaImEEEixEl(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef %53) #4
  %55 = load i64, ptr %54, align 8, !tbaa !9
  store i64 %55, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %56 = getelementptr inbounds %"struct.vox::geometry::FdmIccgSolver2::PreconditionerCompressed", ptr %19, i32 0, i32 2
  %57 = load i64, ptr %12, align 8, !tbaa !9
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry6MatrixIdLm0ELm1EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %57)
  %59 = load double, ptr %58, align 8, !tbaa !20
  store double %59, ptr %16, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %60 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %60, ptr %17, align 8, !tbaa !9
  br label %61

61:                                               ; preds = %85, %48
  %62 = load i64, ptr %17, align 8, !tbaa !9
  %63 = load i64, ptr %15, align 8, !tbaa !9
  %64 = icmp ult i64 %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %88

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %67 = load i64, ptr %17, align 8, !tbaa !9
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKmSt6vectorImSaImEEEixEl(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef %67) #4
  %69 = load i64, ptr %68, align 8, !tbaa !9
  store i64 %69, ptr %18, align 8, !tbaa !9
  %70 = load i64, ptr %18, align 8, !tbaa !9
  %71 = load i64, ptr %12, align 8, !tbaa !9
  %72 = icmp sgt i64 %70, %71
  br i1 %72, label %73, label %84

73:                                               ; preds = %66
  %74 = load i64, ptr %17, align 8, !tbaa !9
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEixEl(ptr noundef nonnull align 8 dereferenceable(8) %10, i64 noundef %74) #4
  %76 = load double, ptr %75, align 8, !tbaa !20
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = load i64, ptr %18, align 8, !tbaa !9
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry6MatrixIdLm0ELm1EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %78)
  %80 = load double, ptr %79, align 8, !tbaa !20
  %81 = load double, ptr %16, align 8, !tbaa !20
  %82 = fneg double %76
  %83 = call double @llvm.fmuladd.f64(double %82, double %80, double %81)
  store double %83, ptr %16, align 8, !tbaa !20
  br label %84

84:                                               ; preds = %73, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %85

85:                                               ; preds = %84
  %86 = load i64, ptr %17, align 8, !tbaa !9
  %87 = add i64 %86, 1
  store i64 %87, ptr %17, align 8, !tbaa !9
  br label %61, !llvm.loop !22

88:                                               ; preds = %65
  %89 = load double, ptr %16, align 8, !tbaa !20
  %90 = getelementptr inbounds %"struct.vox::geometry::FdmIccgSolver2::PreconditionerCompressed", ptr %19, i32 0, i32 1
  %91 = load i64, ptr %12, align 8, !tbaa !9
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry6MatrixIdLm0ELm1EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %91)
  %93 = load double, ptr %92, align 8, !tbaa !20
  %94 = fmul double %89, %93
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = load i64, ptr %12, align 8, !tbaa !9
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry6MatrixIdLm0ELm1EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %96)
  store double %94, ptr %97, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %98

98:                                               ; preds = %88
  %99 = load i64, ptr %12, align 8, !tbaa !9
  %100 = add nsw i64 %99, -1
  store i64 %100, ptr %12, align 8, !tbaa !9
  br label %44, !llvm.loop !24

101:                                              ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN3vox8geometry12forEachIndexImZNS0_14FdmIccgSolver224PreconditionerCompressed5solveERKNS0_6MatrixIdLm0ELm1EEEPS5_E3$_0EEvT_T0_"(i64 noundef, ptr noundef byval(%class.anon.20) align 8) #2

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN3vox8geometry14FdmIccgSolver224PreconditionerCompressedE", !6, i64 0, !13, i64 8, !13, i64 32}
!13 = !{!"_ZTSN3vox8geometry6MatrixIdLm0ELm1EEE", !14, i64 0}
!14 = !{!"_ZTSSt6vectorIdSaIdEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!19, !6, i64 32}
!19 = !{!"_ZTSZN3vox8geometry14FdmIccgSolver224PreconditionerCompressed5solveERKNS0_6MatrixIdLm0ELm1EEEPS4_E3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.18" = type { ptr }
%class.anon.20 = type { ptr, ptr, ptr, ptr, ptr }

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

; 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 nounwind uwtable
declare dso_local ptr @_ZNK3vox8geometry9MatrixCsrIdE16rowPointersBeginEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox8geometry14FdmIccgSolver224PreconditionerCompressed5solveERKNS0_6MatrixIdLm0ELm1EEEPS4_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) local_unnamed_addr #2 align 2 {
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.18", align 8
  %7 = alloca %class.anon.20, align 8
  %8 = tail call noundef i64 @_ZNK3vox8geometry6MatrixIdLm0ELm1EE4rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %9 = load ptr, ptr %0, align 8, !tbaa !5
  %10 = tail call ptr @_ZNK3vox8geometry9MatrixCsrIdE16rowPointersBeginEv(ptr noundef nonnull align 8 dereferenceable(88) %9)
  store ptr %10, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %11 = load ptr, ptr %0, align 8, !tbaa !5
  %12 = tail call ptr @_ZNK3vox8geometry9MatrixCsrIdE18columnIndicesBeginEv(ptr noundef nonnull align 8 dereferenceable(88) %11)
  store ptr %12, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %13 = load ptr, ptr %0, align 8, !tbaa !5
  %14 = tail call ptr @_ZNK3vox8geometry9MatrixCsrIdE12nonZeroBeginEv(ptr noundef nonnull align 8 dereferenceable(88) %13)
  store ptr %14, ptr %6, align 8
  %15 = tail call noundef i64 @_ZNK3vox8geometry6MatrixIdLm0ELm1EE4rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  store ptr %4, ptr %7, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %1, ptr %16, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %7, i64 16
  store ptr %5, ptr %17, align 8, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %7, i64 24
  store ptr %6, ptr %18, align 8, !tbaa !15
  %19 = getelementptr inbounds i8, ptr %7, i64 32
  store ptr %0, ptr %19, align 8, !tbaa !16
  call void @"_ZN3vox8geometry12forEachIndexImZNS0_14FdmIccgSolver224PreconditionerCompressed5solveERKNS0_6MatrixIdLm0ELm1EEEPS5_E3$_0EEvT_T0_"(i64 noundef %15, ptr noundef nonnull byval(%class.anon.20) align 8 %7)
  %20 = icmp sgt i64 %8, 0
  br i1 %20, label %.lr.ph33, label %._crit_edge34

.lr.ph33:                                         ; preds = %3
  %21 = getelementptr inbounds i8, ptr %0, i64 32
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  br label %23

._crit_edge34:                                    ; preds = %._crit_edge, %3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  ret void

23:                                               ; preds = %.lr.ph33, %._crit_edge
  %.0.in30 = phi i64 [ %8, %.lr.ph33 ], [ %.031, %._crit_edge ]
  %.031 = add nsw i64 %.0.in30, -1
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKmSt6vectorImSaImEEEixEl(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %.031) #4
  %25 = load i64, ptr %24, align 8, !tbaa !18
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKmSt6vectorImSaImEEEixEl(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %.0.in30) #4
  %27 = load i64, ptr %26, align 8, !tbaa !18
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry6MatrixIdLm0ELm1EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %.031)
  %29 = load double, ptr %28, align 8, !tbaa !20
  %30 = icmp ult i64 %25, %27
  br i1 %30, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %45, %23
  %.025.lcssa = phi double [ %29, %23 ], [ %.1, %45 ]
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry6MatrixIdLm0ELm1EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %.031)
  %32 = load double, ptr %31, align 8, !tbaa !20
  %33 = fmul double %.025.lcssa, %32
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry6MatrixIdLm0ELm1EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.031)
  store double %33, ptr %34, align 8, !tbaa !20
  %35 = icmp sgt i64 %.0.in30, 1
  br i1 %35, label %23, label %._crit_edge34, !llvm.loop !22

.lr.ph:                                           ; preds = %23, %45
  %.02428 = phi i64 [ %46, %45 ], [ %25, %23 ]
  %.02527 = phi double [ %.1, %45 ], [ %29, %23 ]
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKmSt6vectorImSaImEEEixEl(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %.02428) #4
  %37 = load i64, ptr %36, align 8, !tbaa !18
  %.not = icmp slt i64 %37, %.0.in30
  br i1 %.not, label %45, label %38

38:                                               ; preds = %.lr.ph
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEixEl(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %.02428) #4
  %40 = load double, ptr %39, align 8, !tbaa !20
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vox8geometry6MatrixIdLm0ELm1EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %37)
  %42 = load double, ptr %41, align 8, !tbaa !20
  %43 = fneg double %40
  %44 = call double @llvm.fmuladd.f64(double %43, double %42, double %.02527)
  br label %45

45:                                               ; preds = %38, %.lr.ph
  %.1 = phi double [ %44, %38 ], [ %.02527, %.lr.ph ]
  %46 = add i64 %.02428, 1
  %exitcond.not = icmp eq i64 %46, %27
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !24
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN3vox8geometry12forEachIndexImZNS0_14FdmIccgSolver224PreconditionerCompressed5solveERKNS0_6MatrixIdLm0ELm1EEEPS5_E3$_0EEvT_T0_"(i64 noundef, ptr noundef byval(%class.anon.20) align 8) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 0}
!6 = !{!"_ZTSN3vox8geometry14FdmIccgSolver224PreconditionerCompressedE", !7, i64 0, !10, i64 8, !10, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3vox8geometry6MatrixIdLm0ELm1EEE", !11, i64 0}
!11 = !{!"_ZTSSt6vectorIdSaIdEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !7, i64 32}
!17 = !{!"_ZTSZN3vox8geometry14FdmIccgSolver224PreconditionerCompressed5solveERKNS0_6MatrixIdLm0ELm1EEEPS4_E3$_0", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !8, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !8, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


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