; LLVM IR from doyubkim/fluid-engine-dev :: src/jet (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.12" = type { ptr }
%class.anon.14 = type { ptr, ptr, ptr, ptr, ptr }
%"struct.jet::FdmIccgSolver2::PreconditionerCompressed" = type { ptr, %"class.jet::VectorN", %"class.jet::VectorN" }
%"class.jet::VectorN" = type { %"class.std::vector.1" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = 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 @_ZNK3jet9MatrixCsrIdE16rowPointersBeginEv(ptr noundef nonnull align 8 dereferenceable(88)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet14FdmIccgSolver224PreconditionerCompressed5solveERKNS_7VectorNIdEEPS3_(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.12", align 8
  %11 = alloca %class.anon.14, 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 @_ZNK3jet7VectorNIdE4sizeEv(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.jet::FdmIccgSolver2::PreconditionerCompressed", ptr %19, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = call ptr @_ZNK3jet9MatrixCsrIdE16rowPointersBeginEv(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.jet::FdmIccgSolver2::PreconditionerCompressed", ptr %19, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = call ptr @_ZNK3jet9MatrixCsrIdE18columnIndicesBeginEv(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.jet::FdmIccgSolver2::PreconditionerCompressed", ptr %19, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = call ptr @_ZNK3jet9MatrixCsrIdE12nonZeroBeginEv(ptr noundef nonnull align 8 dereferenceable(88) %31)
  %33 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.12", ptr %10, i32 0, i32 0
  store ptr %32, ptr %33, align 8
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %class.anon.14, ptr %11, i32 0, i32 0
  store ptr %8, ptr %35, align 8, !tbaa !5
  %36 = getelementptr inbounds %class.anon.14, ptr %11, i32 0, i32 1
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %37, ptr %36, align 8, !tbaa !5
  %38 = getelementptr inbounds %class.anon.14, ptr %11, i32 0, i32 2
  store ptr %9, ptr %38, align 8, !tbaa !5
  %39 = getelementptr inbounds %class.anon.14, ptr %11, i32 0, i32 3
  store ptr %10, ptr %39, align 8, !tbaa !5
  %40 = getelementptr inbounds %class.anon.14, ptr %11, i32 0, i32 4
  store ptr %19, ptr %40, align 8, !tbaa !18
  call void @"_ZNK3jet7VectorNIdE12forEachIndexIZNS_14FdmIccgSolver224PreconditionerCompressed5solveERKS1_PS1_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef byval(%class.anon.14) align 8 %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %41 = load i64, ptr %7, align 8, !tbaa !9
  %42 = sub nsw i64 %41, 1
  store i64 %42, ptr %12, align 8, !tbaa !9
  br label %43

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

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

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

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

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

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

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

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

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

87:                                               ; preds = %64
  %88 = load double, ptr %16, align 8, !tbaa !20
  %89 = getelementptr inbounds %"struct.jet::FdmIccgSolver2::PreconditionerCompressed", ptr %19, i32 0, i32 1
  %90 = load i64, ptr %12, align 8, !tbaa !9
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet7VectorNIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %90)
  %92 = load double, ptr %91, align 8, !tbaa !20
  %93 = fmul double %88, %92
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = load i64, ptr %12, align 8, !tbaa !9
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet7VectorNIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %95)
  store double %93, ptr %96, 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 %97

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

100:                                              ; preds = %46
  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 @_ZNK3jet7VectorNIdE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet7VectorNIdE12forEachIndexIZNS_14FdmIccgSolver224PreconditionerCompressed5solveERKS1_PS1_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%class.anon.14) align 8) #2 align 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 @_ZN3jet7VectorNIdEixEm(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 = !{!"_ZTSN3jet14FdmIccgSolver224PreconditionerCompressedE", !6, i64 0, !13, i64 8, !13, i64 32}
!13 = !{!"_ZTSN3jet7VectorNIdEE", !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 = !{!"_ZTSZN3jet14FdmIccgSolver224PreconditionerCompressed5solveERKNS_7VectorNIdEEPS3_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.12" = type { ptr }
%class.anon.14 = 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 @_ZNK3jet9MatrixCsrIdE16rowPointersBeginEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet14FdmIccgSolver224PreconditionerCompressed5solveERKNS_7VectorNIdEEPS3_(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.12", align 8
  %7 = alloca %class.anon.14, align 8
  %8 = tail call noundef i64 @_ZNK3jet7VectorNIdE4sizeEv(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 @_ZNK3jet9MatrixCsrIdE16rowPointersBeginEv(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 @_ZNK3jet9MatrixCsrIdE18columnIndicesBeginEv(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 @_ZNK3jet9MatrixCsrIdE12nonZeroBeginEv(ptr noundef nonnull align 8 dereferenceable(88) %13)
  store ptr %14, ptr %6, align 8
  store ptr %4, ptr %7, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %1, ptr %15, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %7, i64 16
  store ptr %5, ptr %16, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %7, i64 24
  store ptr %6, ptr %17, align 8, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %7, i64 32
  store ptr %0, ptr %18, align 8, !tbaa !16
  call void @"_ZNK3jet7VectorNIdE12forEachIndexIZNS_14FdmIccgSolver224PreconditionerCompressed5solveERKS1_PS1_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull byval(%class.anon.14) align 8 %7)
  %19 = icmp sgt i64 %8, 0
  br i1 %19, label %.lr.ph33, label %._crit_edge34

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

._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

22:                                               ; preds = %.lr.ph33, %._crit_edge
  %.0.in30 = phi i64 [ %8, %.lr.ph33 ], [ %.031, %._crit_edge ]
  %.031 = add nsw i64 %.0.in30, -1
  %23 = 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
  %24 = load i64, ptr %23, align 8, !tbaa !18
  %25 = 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
  %26 = load i64, ptr %25, align 8, !tbaa !18
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet7VectorNIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %.031)
  %28 = load double, ptr %27, align 8, !tbaa !20
  %29 = icmp ult i64 %24, %26
  br i1 %29, label %.lr.ph, label %._crit_edge

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

.lr.ph:                                           ; preds = %22, %44
  %.02428 = phi i64 [ %45, %44 ], [ %24, %22 ]
  %.02527 = phi double [ %.1, %44 ], [ %28, %22 ]
  %35 = 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
  %36 = load i64, ptr %35, align 8, !tbaa !18
  %.not = icmp slt i64 %36, %.0.in30
  br i1 %.not, label %44, label %37

37:                                               ; preds = %.lr.ph
  %38 = 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
  %39 = load double, ptr %38, align 8, !tbaa !20
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet7VectorNIdEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %36)
  %41 = load double, ptr %40, align 8, !tbaa !20
  %42 = fneg double %39
  %43 = call double @llvm.fmuladd.f64(double %42, double %41, double %.02527)
  br label %44

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet7VectorNIdE12forEachIndexIZNS_14FdmIccgSolver224PreconditionerCompressed5solveERKS1_PS1_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%class.anon.14) align 8) local_unnamed_addr #2 align 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 @_ZN3jet7VectorNIdEixEm(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 = !{!"_ZTSN3jet14FdmIccgSolver224PreconditionerCompressedE", !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 = !{!"_ZTSN3jet7VectorNIdEE", !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 = !{!"_ZTSZN3jet14FdmIccgSolver224PreconditionerCompressed5solveERKNS_7VectorNIdEEPS3_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