; LLVM IR from doyubkim/fluid-engine-dev :: src/jet (fdm_iccg_solver3)

; 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::Size3" = type { i64, i64, i64 }
%class.anon.6 = type { ptr, ptr }
%"struct.jet::FdmIccgSolver3::Preconditioner" = type { %"class.jet::ConstArrayAccessor", %"class.jet::Array.0", %"class.jet::Array.0" }
%"class.jet::ConstArrayAccessor" = type { %"class.jet::Size3", ptr }
%"class.jet::Array.0" = type { %"class.jet::Size3", %"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::FdmMatrixRow3" = type { double, 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 @_ZN3jet14FdmIccgSolver314Preconditioner5solveERKNS_5ArrayIdLm3EEEPS3_(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(48) %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::Size3", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %class.anon.6, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = 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
  %16 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #3
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK3jet5ArrayIdLm3EE4sizeEv(ptr dead_on_unwind writable sret(%"class.jet::Size3") align 8 %7, ptr noundef nonnull align 8 dereferenceable(48) %17)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %18 = getelementptr inbounds %"class.jet::Size3", ptr %7, i32 0, i32 0
  %19 = load i64, ptr %18, align 8, !tbaa !9
  store i64 %19, ptr %8, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %20 = getelementptr inbounds %"class.jet::Size3", ptr %7, i32 0, i32 1
  %21 = load i64, ptr %20, align 8, !tbaa !13
  store i64 %21, ptr %9, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %22 = getelementptr inbounds %"class.jet::Size3", ptr %7, i32 0, i32 2
  %23 = load i64, ptr %22, align 8, !tbaa !14
  store i64 %23, ptr %10, align 8, !tbaa !12
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %class.anon.6, ptr %11, i32 0, i32 0
  store ptr %16, ptr %25, align 8, !tbaa !15
  %26 = getelementptr inbounds %class.anon.6, ptr %11, i32 0, i32 1
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %27, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8
  %30 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8
  call void @"_ZNK3jet5ArrayIdLm3EE12forEachIndexIZNS_14FdmIccgSolver314Preconditioner5solveERKS1_PS1_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr %29, ptr %31)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %32 = load i64, ptr %10, align 8, !tbaa !12
  %33 = sub nsw i64 %32, 1
  store i64 %33, ptr %12, align 8, !tbaa !12
  br label %34

34:                                               ; preds = %151, %3
  %35 = load i64, ptr %12, align 8, !tbaa !12
  %36 = icmp sge i64 %35, 0
  br i1 %36, label %38, label %37

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

38:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %39 = load i64, ptr %9, align 8, !tbaa !12
  %40 = sub nsw i64 %39, 1
  store i64 %40, ptr %14, align 8, !tbaa !12
  br label %41

41:                                               ; preds = %147, %38
  %42 = load i64, ptr %14, align 8, !tbaa !12
  %43 = icmp sge i64 %42, 0
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %150

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %46 = load i64, ptr %8, align 8, !tbaa !12
  %47 = sub nsw i64 %46, 1
  store i64 %47, ptr %15, align 8, !tbaa !12
  br label %48

48:                                               ; preds = %143, %45
  %49 = load i64, ptr %15, align 8, !tbaa !12
  %50 = icmp sge i64 %49, 0
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %146

52:                                               ; preds = %48
  %53 = getelementptr inbounds %"struct.jet::FdmIccgSolver3::Preconditioner", ptr %16, i32 0, i32 2
  %54 = load i64, ptr %15, align 8, !tbaa !12
  %55 = load i64, ptr %14, align 8, !tbaa !12
  %56 = load i64, ptr %12, align 8, !tbaa !12
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %53, i64 noundef %54, i64 noundef %55, i64 noundef %56)
  %58 = load double, ptr %57, align 8, !tbaa !17
  %59 = load i64, ptr %15, align 8, !tbaa !12
  %60 = add nsw i64 %59, 1
  %61 = load i64, ptr %8, align 8, !tbaa !12
  %62 = icmp slt i64 %60, %61
  br i1 %62, label %63, label %79

63:                                               ; preds = %52
  %64 = getelementptr inbounds %"struct.jet::FdmIccgSolver3::Preconditioner", ptr %16, i32 0, i32 0
  %65 = load i64, ptr %15, align 8, !tbaa !12
  %66 = load i64, ptr %14, align 8, !tbaa !12
  %67 = load i64, ptr %12, align 8, !tbaa !12
  %68 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3jet18ConstArrayAccessorINS_13FdmMatrixRow3ELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(32) %64, i64 noundef %65, i64 noundef %66, i64 noundef %67)
  %69 = getelementptr inbounds %"struct.jet::FdmMatrixRow3", ptr %68, i32 0, i32 1
  %70 = load double, ptr %69, align 8, !tbaa !19
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = load i64, ptr %15, align 8, !tbaa !12
  %73 = add nsw i64 %72, 1
  %74 = load i64, ptr %14, align 8, !tbaa !12
  %75 = load i64, ptr %12, align 8, !tbaa !12
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %71, i64 noundef %73, i64 noundef %74, i64 noundef %75)
  %77 = load double, ptr %76, align 8, !tbaa !17
  %78 = fmul double %70, %77
  br label %80

79:                                               ; preds = %52
  br label %80

80:                                               ; preds = %79, %63
  %81 = phi double [ %78, %63 ], [ 0.000000e+00, %79 ]
  %82 = fsub double %58, %81
  %83 = load i64, ptr %14, align 8, !tbaa !12
  %84 = add nsw i64 %83, 1
  %85 = load i64, ptr %9, align 8, !tbaa !12
  %86 = icmp slt i64 %84, %85
  br i1 %86, label %87, label %103

87:                                               ; preds = %80
  %88 = getelementptr inbounds %"struct.jet::FdmIccgSolver3::Preconditioner", ptr %16, i32 0, i32 0
  %89 = load i64, ptr %15, align 8, !tbaa !12
  %90 = load i64, ptr %14, align 8, !tbaa !12
  %91 = load i64, ptr %12, align 8, !tbaa !12
  %92 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3jet18ConstArrayAccessorINS_13FdmMatrixRow3ELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(32) %88, i64 noundef %89, i64 noundef %90, i64 noundef %91)
  %93 = getelementptr inbounds %"struct.jet::FdmMatrixRow3", ptr %92, i32 0, i32 2
  %94 = load double, ptr %93, align 8, !tbaa !21
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = load i64, ptr %15, align 8, !tbaa !12
  %97 = load i64, ptr %14, align 8, !tbaa !12
  %98 = add nsw i64 %97, 1
  %99 = load i64, ptr %12, align 8, !tbaa !12
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %95, i64 noundef %96, i64 noundef %98, i64 noundef %99)
  %101 = load double, ptr %100, align 8, !tbaa !17
  %102 = fmul double %94, %101
  br label %104

103:                                              ; preds = %80
  br label %104

104:                                              ; preds = %103, %87
  %105 = phi double [ %102, %87 ], [ 0.000000e+00, %103 ]
  %106 = fsub double %82, %105
  %107 = load i64, ptr %12, align 8, !tbaa !12
  %108 = add nsw i64 %107, 1
  %109 = load i64, ptr %10, align 8, !tbaa !12
  %110 = icmp slt i64 %108, %109
  br i1 %110, label %111, label %127

111:                                              ; preds = %104
  %112 = getelementptr inbounds %"struct.jet::FdmIccgSolver3::Preconditioner", ptr %16, i32 0, i32 0
  %113 = load i64, ptr %15, align 8, !tbaa !12
  %114 = load i64, ptr %14, align 8, !tbaa !12
  %115 = load i64, ptr %12, align 8, !tbaa !12
  %116 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3jet18ConstArrayAccessorINS_13FdmMatrixRow3ELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(32) %112, i64 noundef %113, i64 noundef %114, i64 noundef %115)
  %117 = getelementptr inbounds %"struct.jet::FdmMatrixRow3", ptr %116, i32 0, i32 3
  %118 = load double, ptr %117, align 8, !tbaa !22
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = load i64, ptr %15, align 8, !tbaa !12
  %121 = load i64, ptr %14, align 8, !tbaa !12
  %122 = load i64, ptr %12, align 8, !tbaa !12
  %123 = add nsw i64 %122, 1
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %119, i64 noundef %120, i64 noundef %121, i64 noundef %123)
  %125 = load double, ptr %124, align 8, !tbaa !17
  %126 = fmul double %118, %125
  br label %128

127:                                              ; preds = %104
  br label %128

128:                                              ; preds = %127, %111
  %129 = phi double [ %126, %111 ], [ 0.000000e+00, %127 ]
  %130 = fsub double %106, %129
  %131 = getelementptr inbounds %"struct.jet::FdmIccgSolver3::Preconditioner", ptr %16, i32 0, i32 1
  %132 = load i64, ptr %15, align 8, !tbaa !12
  %133 = load i64, ptr %14, align 8, !tbaa !12
  %134 = load i64, ptr %12, align 8, !tbaa !12
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %131, i64 noundef %132, i64 noundef %133, i64 noundef %134)
  %136 = load double, ptr %135, align 8, !tbaa !17
  %137 = fmul double %130, %136
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = load i64, ptr %15, align 8, !tbaa !12
  %140 = load i64, ptr %14, align 8, !tbaa !12
  %141 = load i64, ptr %12, align 8, !tbaa !12
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %138, i64 noundef %139, i64 noundef %140, i64 noundef %141)
  store double %137, ptr %142, align 8, !tbaa !17
  br label %143

143:                                              ; preds = %128
  %144 = load i64, ptr %15, align 8, !tbaa !12
  %145 = add nsw i64 %144, -1
  store i64 %145, ptr %15, align 8, !tbaa !12
  br label %48, !llvm.loop !23

146:                                              ; preds = %51
  br label %147

147:                                              ; preds = %146
  %148 = load i64, ptr %14, align 8, !tbaa !12
  %149 = add nsw i64 %148, -1
  store i64 %149, ptr %14, align 8, !tbaa !12
  br label %41, !llvm.loop !25

150:                                              ; preds = %44
  br label %151

151:                                              ; preds = %150
  %152 = load i64, ptr %12, align 8, !tbaa !12
  %153 = add nsw i64 %152, -1
  store i64 %153, ptr %12, align 8, !tbaa !12
  br label %34, !llvm.loop !26

154:                                              ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  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 24, ptr %7) #3
  ret void
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3jet18ConstArrayAccessorINS_13FdmMatrixRow3ELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, 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 = !{!"_ZTSN3jet5Size3E", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!10, !11, i64 16}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSZN3jet14FdmIccgSolver314Preconditioner5solveERKNS_5ArrayIdLm3EEEPS3_E3$_0", !6, i64 0, !6, i64 8}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{!20, !18, i64 8}
!20 = !{!"_ZTSN3jet13FdmMatrixRow3E", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!21 = !{!20, !18, i64 16}
!22 = !{!20, !18, i64 24}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}


; 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::Size3" = type { i64, 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 @_ZN3jet14FdmIccgSolver314Preconditioner5solveERKNS_5ArrayIdLm3EEEPS3_(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %"class.jet::Size3", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
  call void @_ZNK3jet5ArrayIdLm3EE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.jet::Size3") align 8 %4, ptr noundef nonnull align 8 dereferenceable(48) %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
  %8 = getelementptr inbounds i8, ptr %4, i64 16
  %9 = load i64, ptr %8, align 8, !tbaa !11
  call void @"_ZNK3jet5ArrayIdLm3EE12forEachIndexIZNS_14FdmIccgSolver314Preconditioner5solveERKS1_PS1_E3$_0EEvT_"(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr nonnull %0, ptr nonnull %1)
  %10 = icmp sgt i64 %9, 0
  br i1 %10, label %.preheader54.lr.ph, label %._crit_edge

.preheader54.lr.ph:                               ; preds = %3
  %11 = icmp sgt i64 %7, 0
  %12 = getelementptr inbounds i8, ptr %0, i64 80
  %13 = getelementptr inbounds i8, ptr %0, i64 32
  %14 = icmp sgt i64 %5, 0
  %or.cond = select i1 %11, i1 %14, i1 false
  br i1 %or.cond, label %.preheader54.us.us, label %._crit_edge

.preheader54.us.us:                               ; preds = %.preheader54.lr.ph, %..loopexit55_crit_edge.split.us.us.us
  %.050.in63.us.us = phi i64 [ %.05064.us.us, %..loopexit55_crit_edge.split.us.us.us ], [ %9, %.preheader54.lr.ph ]
  %.05064.us.us = add nsw i64 %.050.in63.us.us, -1
  %15 = icmp slt i64 %.050.in63.us.us, %9
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %..loopexit_crit_edge.us.us.us, %.preheader54.us.us
  %.049.in60.us.us.us = phi i64 [ %7, %.preheader54.us.us ], [ %.04961.us.us.us, %..loopexit_crit_edge.us.us.us ]
  %.04961.us.us.us = add nsw i64 %.049.in60.us.us.us, -1
  %16 = icmp slt i64 %.049.in60.us.us.us, %7
  br label %17

17:                                               ; preds = %48, %.preheader.us.us.us
  %.0.in57.us.us.us = phi i64 [ %5, %.preheader.us.us.us ], [ %.058.us.us.us, %48 ]
  %.058.us.us.us = add nsw i64 %.0.in57.us.us.us, -1
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %12, i64 noundef %.058.us.us.us, i64 noundef %.04961.us.us.us, i64 noundef %.05064.us.us)
  %19 = load double, ptr %18, align 8, !tbaa !12
  %20 = icmp slt i64 %.0.in57.us.us.us, %5
  br i1 %20, label %21, label %28

21:                                               ; preds = %17
  %22 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3jet18ConstArrayAccessorINS_13FdmMatrixRow3ELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %.058.us.us.us, i64 noundef %.04961.us.us.us, i64 noundef %.05064.us.us)
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  %24 = load double, ptr %23, align 8, !tbaa !14
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %2, i64 noundef %.0.in57.us.us.us, i64 noundef %.04961.us.us.us, i64 noundef %.05064.us.us)
  %26 = load double, ptr %25, align 8, !tbaa !12
  %27 = fmul double %24, %26
  br label %28

28:                                               ; preds = %21, %17
  %29 = phi double [ %27, %21 ], [ 0.000000e+00, %17 ]
  %30 = fsub double %19, %29
  br i1 %16, label %31, label %38

31:                                               ; preds = %28
  %32 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3jet18ConstArrayAccessorINS_13FdmMatrixRow3ELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %.058.us.us.us, i64 noundef %.04961.us.us.us, i64 noundef %.05064.us.us)
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load double, ptr %33, align 8, !tbaa !16
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %2, i64 noundef %.058.us.us.us, i64 noundef %.049.in60.us.us.us, i64 noundef %.05064.us.us)
  %36 = load double, ptr %35, align 8, !tbaa !12
  %37 = fmul double %34, %36
  br label %38

38:                                               ; preds = %31, %28
  %39 = phi double [ %37, %31 ], [ 0.000000e+00, %28 ]
  %40 = fsub double %30, %39
  br i1 %15, label %41, label %48

41:                                               ; preds = %38
  %42 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3jet18ConstArrayAccessorINS_13FdmMatrixRow3ELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %.058.us.us.us, i64 noundef %.04961.us.us.us, i64 noundef %.05064.us.us)
  %43 = getelementptr inbounds i8, ptr %42, i64 24
  %44 = load double, ptr %43, align 8, !tbaa !17
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %2, i64 noundef %.058.us.us.us, i64 noundef %.04961.us.us.us, i64 noundef %.050.in63.us.us)
  %46 = load double, ptr %45, align 8, !tbaa !12
  %47 = fmul double %44, %46
  br label %48

48:                                               ; preds = %41, %38
  %49 = phi double [ %47, %41 ], [ 0.000000e+00, %38 ]
  %50 = fsub double %40, %49
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %13, i64 noundef %.058.us.us.us, i64 noundef %.04961.us.us.us, i64 noundef %.05064.us.us)
  %52 = load double, ptr %51, align 8, !tbaa !12
  %53 = fmul double %50, %52
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3jet5ArrayIdLm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(48) %2, i64 noundef %.058.us.us.us, i64 noundef %.04961.us.us.us, i64 noundef %.05064.us.us)
  store double %53, ptr %54, align 8, !tbaa !12
  %55 = icmp sgt i64 %.0.in57.us.us.us, 1
  br i1 %55, label %17, label %..loopexit_crit_edge.us.us.us, !llvm.loop !18

..loopexit_crit_edge.us.us.us:                    ; preds = %48
  %56 = icmp sgt i64 %.049.in60.us.us.us, 1
  br i1 %56, label %.preheader.us.us.us, label %..loopexit55_crit_edge.split.us.us.us, !llvm.loop !20

..loopexit55_crit_edge.split.us.us.us:            ; preds = %..loopexit_crit_edge.us.us.us
  %57 = icmp sgt i64 %.050.in63.us.us, 1
  br i1 %57, label %.preheader54.us.us, label %._crit_edge, !llvm.loop !21

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3jet18ConstArrayAccessorINS_13FdmMatrixRow3ELm3EEclEmmm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, 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 = !{!"_ZTSN3jet5Size3E", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 16}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"_ZTSN3jet13FdmMatrixRow3E", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!16 = !{!15, !13, i64 16}
!17 = !{!15, !13, i64 24}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


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