; LLVM IR from cdalvaro/computational-physics :: computational-physics/main.ll (Z15sinusoidalForceiiiidd)

; 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.cda::math::containers::Matrix" = type { i64, i64, i64, ptr, ptr }
%"class.cda::math::containers::Matrix.0" = type { i64, i64, i64, ptr, ptr }
%"class.cda::math::differential_equations::EDP" = type { %"class.cda::math::containers::Vector", %"class.cda::math::containers::Matrix", %"class.cda::math::containers::Matrix.0", %"class.std::__cxx11::basic_string", ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, ptr, ptr, double }
%"class.cda::math::containers::Vector" = type { i64, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@cId = external dso_local global %"class.cda::math::containers::Matrix", align 8
@fixedPoints = external dso_local global %"class.cda::math::containers::Matrix.0", align 8
@membrane = external dso_local global %"class.cda::math::differential_equations::EDP", align 8

; 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 void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cda4math10containers6MatrixIdE4zeroERKmS5_(ptr dead_on_unwind noalias writable sret(%"class.cda::math::containers::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15sinusoidalForceiiiidd(ptr dead_on_unwind noalias writable sret(%"class.cda::math::containers::Matrix") align 8 %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5, double noundef %6) #2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i1, align 1
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  store ptr %0, ptr %8, align 8
  store i32 %1, ptr %9, align 4, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !5
  store double %5, ptr %13, align 8, !tbaa !9
  store double %6, ptr %14, align 8, !tbaa !9
  store i1 false, ptr %15, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %25 = call noundef i64 @_ZNK3cda4math10containers6MatrixIdE4rowsEv(ptr noundef nonnull align 8 dereferenceable(40) @cId)
  store i64 %25, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %26 = call noundef i64 @_ZNK3cda4math10containers6MatrixIdE7columnsEv(ptr noundef nonnull align 8 dereferenceable(40) @cId)
  store i64 %26, ptr %17, align 8, !tbaa !11
  call void @_ZN3cda4math10containers6MatrixIdE4zeroERKmS5_(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Matrix") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %27 = load i32, ptr %10, align 4, !tbaa !5
  %28 = load i32, ptr %12, align 4, !tbaa !5
  %29 = sub nsw i32 %27, %28
  store i32 %29, ptr %18, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %107, %7
  %31 = load i32, ptr %18, align 4, !tbaa !5
  %32 = load i32, ptr %10, align 4, !tbaa !5
  %33 = load i32, ptr %12, align 4, !tbaa !5
  %34 = add nsw i32 %32, %33
  %35 = icmp sle i32 %31, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %30
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %110

37:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %38 = load i32, ptr %9, align 4, !tbaa !5
  %39 = load i32, ptr %11, align 4, !tbaa !5
  %40 = sub nsw i32 %38, %39
  store i32 %40, ptr %20, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %102, %37
  %42 = load i32, ptr %20, align 4, !tbaa !5
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = load i32, ptr %11, align 4, !tbaa !5
  %45 = add nsw i32 %43, %44
  %46 = icmp sle i32 %42, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %41
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %106

48:                                               ; preds = %41
  %49 = load i32, ptr %18, align 4, !tbaa !5
  %50 = icmp sge i32 %49, 0
  br i1 %50, label %51, label %101

51:                                               ; preds = %48
  %52 = load i32, ptr %18, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = invoke noundef i64 @_ZNK3cda4math10containers6MatrixIdE4rowsEv(ptr noundef nonnull align 8 dereferenceable(40) @cId)
          to label %55 unwind label %89

55:                                               ; preds = %51
  %56 = icmp ult i64 %53, %54
  br i1 %56, label %57, label %101

57:                                               ; preds = %55
  %58 = load i32, ptr %20, align 4, !tbaa !5
  %59 = icmp sge i32 %58, 0
  br i1 %59, label %60, label %101

60:                                               ; preds = %57
  %61 = load i32, ptr %20, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = invoke noundef i64 @_ZNK3cda4math10containers6MatrixIdE7columnsEv(ptr noundef nonnull align 8 dereferenceable(40) @cId)
          to label %64 unwind label %89

64:                                               ; preds = %60
  %65 = icmp ult i64 %62, %63
  br i1 %65, label %66, label %101

66:                                               ; preds = %64
  %67 = load double, ptr %13, align 8, !tbaa !9
  %68 = load double, ptr getelementptr inbounds (%"class.cda::math::differential_equations::EDP", ptr @membrane, i32 0, i32 17), align 8, !tbaa !13
  %69 = load double, ptr getelementptr inbounds (%"class.cda::math::differential_equations::EDP", ptr @membrane, i32 0, i32 18), align 8, !tbaa !21
  %70 = fadd double %68, %69
  %71 = load double, ptr %14, align 8, !tbaa !9
  %72 = fmul double %70, %71
  %73 = call double @sin(double noundef %72) #4
  %74 = fmul double %67, %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %75 = load i32, ptr %18, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  store i64 %76, ptr %23, align 8, !tbaa !11
  %77 = invoke noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %78 unwind label %93

78:                                               ; preds = %66
  %79 = load i32, ptr %20, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %77, i64 %80
  store double %74, ptr %81, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %82 = load i32, ptr %18, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  store i64 %83, ptr %24, align 8, !tbaa !11
  %84 = invoke noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %85 unwind label %97

85:                                               ; preds = %78
  %86 = load i32, ptr %20, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i8, ptr %84, i64 %87
  store i8 1, ptr %88, align 1, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  br label %101

89:                                               ; preds = %60, %51
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %21, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %22, align 4
  br label %105

93:                                               ; preds = %66
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %21, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %105

97:                                               ; preds = %78
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %21, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  br label %105

101:                                              ; preds = %85, %64, %57, %55, %48
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %20, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %20, align 4, !tbaa !5
  br label %41, !llvm.loop !24

105:                                              ; preds = %97, %93, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #4
  br label %114

106:                                              ; preds = %47
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %18, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %18, align 4, !tbaa !5
  br label %30, !llvm.loop !26

110:                                              ; preds = %36
  store i1 true, ptr %15, align 1
  store i32 1, ptr %19, align 4
  %111 = load i1, ptr %15, align 1
  br i1 %111, label %113, label %112

112:                                              ; preds = %110
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #4
  br label %113

113:                                              ; preds = %112, %110
  ret void

114:                                              ; preds = %105
  %115 = load ptr, ptr %21, align 8
  %116 = load i32, ptr %22, align 4
  %117 = insertvalue { ptr, i32 } poison, ptr %115, 0
  %118 = insertvalue { ptr, i32 } %117, i32 %116, 1
  resume { ptr, i32 } %118
}

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

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

; Function Attrs: nounwind
declare double @sin(double noundef) #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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 240}
!14 = !{!"_ZTSN3cda4math22differential_equations3EDPE", !15, i64 0, !17, i64 24, !18, i64 64, !19, i64 104, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !16, i64 200, !16, i64 208, !16, i64 216, !16, i64 224, !16, i64 232, !10, i64 240, !10, i64 248, !16, i64 256, !16, i64 264, !10, i64 272}
!15 = !{!"_ZTSN3cda4math10containers6VectorIdEE", !12, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"_ZTSN3cda4math10containers6MatrixIdEE", !12, i64 0, !12, i64 8, !12, i64 16, !16, i64 24, !16, i64 32}
!18 = !{!"_ZTSN3cda4math10containers6MatrixIbEE", !12, i64 0, !12, i64 8, !12, i64 16, !16, i64 24, !16, i64 32}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !12, i64 8, !7, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !16, i64 0}
!21 = !{!14, !10, i64 248}
!22 = !{!23, !23, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


; 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.cda::math::containers::Matrix" = type { i64, i64, i64, ptr, ptr }
%"class.cda::math::containers::Matrix.0" = type { i64, i64, i64, ptr, ptr }
%"class.cda::math::differential_equations::EDP" = type { %"class.cda::math::containers::Vector", %"class.cda::math::containers::Matrix", %"class.cda::math::containers::Matrix.0", %"class.std::__cxx11::basic_string", ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, ptr, ptr, double }
%"class.cda::math::containers::Vector" = type { i64, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@cId = external dso_local global %"class.cda::math::containers::Matrix", align 8
@fixedPoints = external dso_local global %"class.cda::math::containers::Matrix.0", align 8
@membrane = external dso_local local_unnamed_addr global %"class.cda::math::differential_equations::EDP", align 8

; 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cda4math10containers6MatrixIdE4zeroERKmS5_(ptr dead_on_unwind noalias writable sret(%"class.cda::math::containers::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15sinusoidalForceiiiidd(ptr dead_on_unwind noalias writable sret(%"class.cda::math::containers::Matrix") align 8 %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5, double noundef %6) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %12 = tail call noundef i64 @_ZNK3cda4math10containers6MatrixIdE4rowsEv(ptr noundef nonnull align 8 dereferenceable(40) @cId)
  store i64 %12, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %13 = tail call noundef i64 @_ZNK3cda4math10containers6MatrixIdE7columnsEv(ptr noundef nonnull align 8 dereferenceable(40) @cId)
  store i64 %13, ptr %9, align 8, !tbaa !5
  call void @_ZN3cda4math10containers6MatrixIdE4zeroERKmS5_(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Matrix") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  %14 = sub nsw i32 %2, %4
  %15 = add i32 %4, %2
  %.not29 = icmp sgt i32 %14, %15
  br i1 %.not29, label %._crit_edge33, label %.lr.ph32

.lr.ph32:                                         ; preds = %7
  %16 = sub nsw i32 %1, %3
  %17 = add i32 %3, %1
  %.not2627 = icmp sgt i32 %16, %17
  br i1 %.not2627, label %._crit_edge33, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph32, %._crit_edge
  %.02330 = phi i32 [ %40, %._crit_edge ], [ %14, %.lr.ph32 ]
  %18 = icmp sgt i32 %.02330, -1
  %19 = zext nneg i32 %.02330 to i64
  br i1 %18, label %.lr.ph.split.us, label %._crit_edge

.lr.ph.split.us:                                  ; preds = %.lr.ph, %38
  %.028.us = phi i32 [ %39, %38 ], [ %16, %.lr.ph ]
  %20 = call noundef i64 @_ZNK3cda4math10containers6MatrixIdE4rowsEv(ptr noundef nonnull align 8 dereferenceable(40) @cId)
  %21 = icmp ugt i64 %20, %19
  %22 = icmp sgt i32 %.028.us, -1
  %or.cond.us = and i1 %22, %21
  br i1 %or.cond.us, label %23, label %38

23:                                               ; preds = %.lr.ph.split.us
  %24 = zext nneg i32 %.028.us to i64
  %25 = call noundef i64 @_ZNK3cda4math10containers6MatrixIdE7columnsEv(ptr noundef nonnull align 8 dereferenceable(40) @cId)
  %26 = icmp ugt i64 %25, %24
  br i1 %26, label %27, label %38

27:                                               ; preds = %23
  %28 = load double, ptr getelementptr inbounds (i8, ptr @membrane, i64 240), align 8, !tbaa !9
  %29 = load double, ptr getelementptr inbounds (i8, ptr @membrane, i64 248), align 8, !tbaa !18
  %30 = fadd double %28, %29
  %31 = fmul double %30, %6
  %32 = call double @sin(double noundef %31) #4
  %33 = fmul double %32, %5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  store i64 %19, ptr %10, align 8, !tbaa !5
  %34 = call noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %35 = getelementptr inbounds double, ptr %34, i64 %24
  store double %33, ptr %35, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  store i64 %19, ptr %11, align 8, !tbaa !5
  %36 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %37 = getelementptr inbounds i8, ptr %36, i64 %24
  store i8 1, ptr %37, align 1, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br label %38

38:                                               ; preds = %27, %23, %.lr.ph.split.us
  %39 = add i32 %.028.us, 1
  %exitcond.not = icmp eq i32 %.028.us, %17
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !22

._crit_edge:                                      ; preds = %38, %.lr.ph
  %40 = add i32 %.02330, 1
  %exitcond36.not = icmp eq i32 %.02330, %15
  br i1 %exitcond36.not, label %._crit_edge33, label %.lr.ph, !llvm.loop !24

._crit_edge33:                                    ; preds = %._crit_edge, %.lr.ph32, %7
  ret void
}

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #3

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 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !17, i64 240}
!10 = !{!"_ZTSN3cda4math22differential_equations3EDPE", !11, i64 0, !13, i64 24, !14, i64 64, !15, i64 104, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !17, i64 240, !17, i64 248, !12, i64 256, !12, i64 264, !17, i64 272}
!11 = !{!"_ZTSN3cda4math10containers6VectorIdEE", !6, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"_ZTSN3cda4math10containers6MatrixIdEE", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 32}
!14 = !{!"_ZTSN3cda4math10containers6MatrixIbEE", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 32}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !6, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!10, !17, i64 248}
!19 = !{!17, !17, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


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