; 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.jet::Size2" = type { i64, i64 }
%class.anon.6 = type { ptr, ptr }
%"struct.jet::FdmIccgSolver2::Preconditioner" = type { %"class.jet::ConstArrayAccessor", %"class.jet::Array.0", %"class.jet::Array.0" }
%"class.jet::ConstArrayAccessor" = type { %"class.jet::Size2", ptr }
%"class.jet::Array.0" = type { %"class.jet::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<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.jet::FdmMatrixRow2" = type { double, double, double }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet14FdmIccgSolver214Preconditioner5solveERKNS_5ArrayIdLm2EEEPS3_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.jet::Size2", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %class.anon.6, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = 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
  %14 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #3
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK3jet5ArrayIdLm2EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size2") align 8 %7, ptr noundef nonnull align 8 dereferenceable(40) %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %16 = getelementptr inbounds %"class.jet::Size2", ptr %7, i32 0, i32 0
  %17 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %17, ptr %8, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %18 = getelementptr inbounds %"class.jet::Size2", ptr %7, i32 0, i32 1
  %19 = load i64, ptr %18, align 8, !tbaa !13
  store i64 %19, ptr %9, align 8, !tbaa !12
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %class.anon.6, ptr %10, i32 0, i32 0
  store ptr %14, ptr %21, align 8, !tbaa !14
  %22 = getelementptr inbounds %class.anon.6, ptr %10, i32 0, i32 1
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %23, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8
  %26 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8
  call void @"_ZNK3jet5ArrayIdLm2EE12forEachIndexIZNS_14FdmIccgSolver214Preconditioner5solveERKS1_PS1_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr %25, ptr %27)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %28 = load i64, ptr %9, align 8, !tbaa !12
  %29 = sub nsw i64 %28, 1
  store i64 %29, ptr %11, align 8, !tbaa !12
  br label %30

30:                                               ; preds = %105, %3
  %31 = load i64, ptr %11, align 8, !tbaa !12
  %32 = icmp sge i64 %31, 0
  br i1 %32, label %34, label %33

33:                                               ; preds = %30
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %108

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %35 = load i64, ptr %8, align 8, !tbaa !12
  %36 = sub nsw i64 %35, 1
  store i64 %36, ptr %13, align 8, !tbaa !12
  br label %37

37:                                               ; preds = %101, %34
  %38 = load i64, ptr %13, align 8, !tbaa !12
  %39 = icmp sge i64 %38, 0
  br i1 %39, label %41, label %40

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

41:                                               ; preds = %37
  %42 = getelementptr inbounds %"struct.jet::FdmIccgSolver2::Preconditioner", ptr %14, i32 0, i32 2
  %43 = load i64, ptr %13, align 8, !tbaa !12
  %44 = load i64, ptr %11, align 8, !tbaa !12
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %42, i64 noundef %43, i64 noundef %44)
  %46 = load double, ptr %45, align 8, !tbaa !16
  %47 = load i64, ptr %13, align 8, !tbaa !12
  %48 = add nsw i64 %47, 1
  %49 = load i64, ptr %8, align 8, !tbaa !12
  %50 = icmp slt i64 %48, %49
  br i1 %50, label %51, label %65

51:                                               ; preds = %41
  %52 = getelementptr inbounds %"struct.jet::FdmIccgSolver2::Preconditioner", ptr %14, i32 0, i32 0
  %53 = load i64, ptr %13, align 8, !tbaa !12
  %54 = load i64, ptr %11, align 8, !tbaa !12
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet18ConstArrayAccessorINS_13FdmMatrixRow2ELm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %53, i64 noundef %54)
  %56 = getelementptr inbounds %"struct.jet::FdmMatrixRow2", ptr %55, i32 0, i32 1
  %57 = load double, ptr %56, align 8, !tbaa !18
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load i64, ptr %13, align 8, !tbaa !12
  %60 = add nsw i64 %59, 1
  %61 = load i64, ptr %11, align 8, !tbaa !12
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %58, i64 noundef %60, i64 noundef %61)
  %63 = load double, ptr %62, align 8, !tbaa !16
  %64 = fmul double %57, %63
  br label %66

65:                                               ; preds = %41
  br label %66

66:                                               ; preds = %65, %51
  %67 = phi double [ %64, %51 ], [ 0.000000e+00, %65 ]
  %68 = fsub double %46, %67
  %69 = load i64, ptr %11, align 8, !tbaa !12
  %70 = add nsw i64 %69, 1
  %71 = load i64, ptr %9, align 8, !tbaa !12
  %72 = icmp slt i64 %70, %71
  br i1 %72, label %73, label %87

73:                                               ; preds = %66
  %74 = getelementptr inbounds %"struct.jet::FdmIccgSolver2::Preconditioner", ptr %14, i32 0, i32 0
  %75 = load i64, ptr %13, align 8, !tbaa !12
  %76 = load i64, ptr %11, align 8, !tbaa !12
  %77 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet18ConstArrayAccessorINS_13FdmMatrixRow2ELm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef %75, i64 noundef %76)
  %78 = getelementptr inbounds %"struct.jet::FdmMatrixRow2", ptr %77, i32 0, i32 2
  %79 = load double, ptr %78, align 8, !tbaa !20
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = load i64, ptr %13, align 8, !tbaa !12
  %82 = load i64, ptr %11, align 8, !tbaa !12
  %83 = add nsw i64 %82, 1
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %80, i64 noundef %81, i64 noundef %83)
  %85 = load double, ptr %84, align 8, !tbaa !16
  %86 = fmul double %79, %85
  br label %88

87:                                               ; preds = %66
  br label %88

88:                                               ; preds = %87, %73
  %89 = phi double [ %86, %73 ], [ 0.000000e+00, %87 ]
  %90 = fsub double %68, %89
  %91 = getelementptr inbounds %"struct.jet::FdmIccgSolver2::Preconditioner", ptr %14, i32 0, i32 1
  %92 = load i64, ptr %13, align 8, !tbaa !12
  %93 = load i64, ptr %11, align 8, !tbaa !12
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %91, i64 noundef %92, i64 noundef %93)
  %95 = load double, ptr %94, align 8, !tbaa !16
  %96 = fmul double %90, %95
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load i64, ptr %13, align 8, !tbaa !12
  %99 = load i64, ptr %11, align 8, !tbaa !12
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %97, i64 noundef %98, i64 noundef %99)
  store double %96, ptr %100, align 8, !tbaa !16
  br label %101

101:                                              ; preds = %88
  %102 = load i64, ptr %13, align 8, !tbaa !12
  %103 = add nsw i64 %102, -1
  store i64 %103, ptr %13, align 8, !tbaa !12
  br label %37, !llvm.loop !21

104:                                              ; preds = %40
  br label %105

105:                                              ; preds = %104
  %106 = load i64, ptr %11, align 8, !tbaa !12
  %107 = add nsw i64 %106, -1
  store i64 %107, ptr %11, align 8, !tbaa !12
  br label %30, !llvm.loop !23

108:                                              ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #3
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3jet5ArrayIdLm2EE4sizeEv(ptr dead_on_unwind noalias writable sret(%"class.jet::Size2") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIdLm2EE12forEachIndexIZNS_14FdmIccgSolver214Preconditioner5solveERKS1_PS1_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr, ptr) #1 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN3jet5Size2E", !11, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSZN3jet14FdmIccgSolver214Preconditioner5solveERKNS_5ArrayIdLm2EEEPS3_E3$_0", !6, i64 0, !6, i64 8}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!19, !17, i64 8}
!19 = !{!"_ZTSN3jet13FdmMatrixRow2E", !17, i64 0, !17, i64 8, !17, i64 16}
!20 = !{!19, !17, i64 16}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


; 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.jet::Size2" = type { i64, i64 }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet14FdmIccgSolver214Preconditioner5solveERKNS_5ArrayIdLm2EEEPS3_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %"class.jet::Size2", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  call void @_ZNK3jet5ArrayIdLm2EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size2") align 8 %4, ptr noundef nonnull align 8 dereferenceable(40) %1)
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %4, i64 8
  %7 = load i64, ptr %6, align 8, !tbaa !10
  call void @"_ZNK3jet5ArrayIdLm2EE12forEachIndexIZNS_14FdmIccgSolver214Preconditioner5solveERKS1_PS1_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40) %1, ptr nonnull %0, ptr nonnull %1)
  %8 = icmp sgt i64 %7, 0
  br i1 %8, label %.preheader.lr.ph, label %._crit_edge

.preheader.lr.ph:                                 ; preds = %3
  %.033 = add nsw i64 %5, -1
  %9 = icmp sgt i64 %5, 0
  %10 = getelementptr inbounds i8, ptr %0, i64 64
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  br i1 %9, label %.preheader.us, label %._crit_edge

.preheader.us:                                    ; preds = %.preheader.lr.ph, %..loopexit_crit_edge.us
  %.030.in37.us = phi i64 [ %.03038.us, %..loopexit_crit_edge.us ], [ %7, %.preheader.lr.ph ]
  %.03038.us = add nsw i64 %.030.in37.us, -1
  %12 = icmp slt i64 %.030.in37.us, %7
  %.fr.us = freeze i1 %12
  br i1 %.fr.us, label %.lr.ph.split.us.us, label %.lr.ph.split.us43

.lr.ph.split.us43:                                ; preds = %.preheader.us, %23
  %.035.us39 = phi i64 [ %.0.us41, %23 ], [ %.033, %.preheader.us ]
  %.0.in34.us40 = phi i64 [ %.035.us39, %23 ], [ %5, %.preheader.us ]
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %10, i64 noundef %.035.us39, i64 noundef %.03038.us)
  %14 = load double, ptr %13, align 8, !tbaa !11
  %15 = icmp slt i64 %.0.in34.us40, %5
  br i1 %15, label %16, label %23

16:                                               ; preds = %.lr.ph.split.us43
  %17 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet18ConstArrayAccessorINS_13FdmMatrixRow2ELm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.035.us39, i64 noundef %.03038.us)
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = load double, ptr %18, align 8, !tbaa !13
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %.0.in34.us40, i64 noundef %.03038.us)
  %21 = load double, ptr %20, align 8, !tbaa !11
  %22 = fmul double %19, %21
  br label %23

23:                                               ; preds = %16, %.lr.ph.split.us43
  %24 = phi double [ %22, %16 ], [ 0.000000e+00, %.lr.ph.split.us43 ]
  %25 = fsub double %14, %24
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef %.035.us39, i64 noundef %.03038.us)
  %27 = load double, ptr %26, align 8, !tbaa !11
  %28 = fmul double %25, %27
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %.035.us39, i64 noundef %.03038.us)
  store double %28, ptr %29, align 8, !tbaa !11
  %.0.us41 = add nsw i64 %.035.us39, -1
  %30 = icmp sgt i64 %.035.us39, 0
  br i1 %30, label %.lr.ph.split.us43, label %..loopexit_crit_edge.us, !llvm.loop !15

..loopexit_crit_edge.us:                          ; preds = %23, %42
  %31 = icmp sgt i64 %.030.in37.us, 1
  br i1 %31, label %.preheader.us, label %._crit_edge, !llvm.loop !17

.lr.ph.split.us.us:                               ; preds = %.preheader.us, %42
  %.035.us.us = phi i64 [ %.0.us.us, %42 ], [ %.033, %.preheader.us ]
  %.0.in34.us.us = phi i64 [ %.035.us.us, %42 ], [ %5, %.preheader.us ]
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %10, i64 noundef %.035.us.us, i64 noundef %.03038.us)
  %33 = load double, ptr %32, align 8, !tbaa !11
  %34 = icmp slt i64 %.0.in34.us.us, %5
  br i1 %34, label %35, label %42

35:                                               ; preds = %.lr.ph.split.us.us
  %36 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet18ConstArrayAccessorINS_13FdmMatrixRow2ELm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.035.us.us, i64 noundef %.03038.us)
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  %38 = load double, ptr %37, align 8, !tbaa !13
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %.0.in34.us.us, i64 noundef %.03038.us)
  %40 = load double, ptr %39, align 8, !tbaa !11
  %41 = fmul double %38, %40
  br label %42

42:                                               ; preds = %35, %.lr.ph.split.us.us
  %43 = phi double [ %41, %35 ], [ 0.000000e+00, %.lr.ph.split.us.us ]
  %44 = fsub double %33, %43
  %45 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3jet18ConstArrayAccessorINS_13FdmMatrixRow2ELm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.035.us.us, i64 noundef %.03038.us)
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %47 = load double, ptr %46, align 8, !tbaa !18
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %.035.us.us, i64 noundef %.030.in37.us)
  %49 = load double, ptr %48, align 8, !tbaa !11
  %50 = fmul double %47, %49
  %51 = fsub double %44, %50
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef %.035.us.us, i64 noundef %.03038.us)
  %53 = load double, ptr %52, align 8, !tbaa !11
  %54 = fmul double %51, %53
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm2EEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %.035.us.us, i64 noundef %.03038.us)
  store double %54, ptr %55, align 8, !tbaa !11
  %.0.us.us = add nsw i64 %.035.us.us, -1
  %56 = icmp sgt i64 %.035.us.us, 0
  br i1 %56, label %.lr.ph.split.us.us, label %..loopexit_crit_edge.us, !llvm.loop !15

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3jet5ArrayIdLm2EE4sizeEv(ptr dead_on_unwind noalias writable sret(%"class.jet::Size2") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3jet5ArrayIdLm2EE12forEachIndexIZNS_14FdmIccgSolver214Preconditioner5solveERKS1_PS1_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(40), ptr, ptr) local_unnamed_addr #1 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = !{!"_ZTSN3jet5Size2E", !7, i64 0, !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !8, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"_ZTSN3jet13FdmMatrixRow2E", !12, i64 0, !12, i64 8, !12, i64 16}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!14, !12, i64 16}


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