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

; 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::containers::Vector" = type { 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.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] }

@cI = external dso_local global %"class.cda::math::containers::Matrix", align 8
@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
@vX = external dso_local global %"class.cda::math::containers::Vector", align 8
@vY = external dso_local global %"class.cda::math::containers::Vector", align 8
@Ten = external dso_local global double, align 8
@P = external dso_local global double, align 8
@Lx = external dso_local global double, align 8
@Ly = external dso_local global double, align 8
@dt = external dso_local global double, align 8
@BConditions = external dso_local global i8, align 1
@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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17vibration_modes_Cv() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.cda::math::containers::Vector", align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.cda::math::containers::Vector", align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.cda::math::containers::Matrix", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"class.cda::math::containers::Matrix", align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca %"class.cda::math::containers::Matrix.0", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca %"class.cda::math::containers::Matrix", align 8
  %25 = alloca double, align 8
  %26 = alloca %"class.cda::math::containers::Matrix", align 8
  %27 = alloca %"class.cda::math::containers::Matrix", align 8
  %28 = alloca double, align 8
  %29 = alloca %"class.cda::math::containers::Matrix", align 8
  store double 1.000000e-03, ptr @dt, align 8, !tbaa !5
  %30 = load double, ptr @dt, align 8, !tbaa !5
  store double %30, ptr getelementptr inbounds (%"class.cda::math::differential_equations::EDP", ptr @membrane, i32 0, i32 18), align 8, !tbaa !9
  store double 1.000000e+00, ptr @Ten, align 8, !tbaa !5
  store double 1.000000e-01, ptr @P, align 8, !tbaa !5
  store double 1.000000e+00, ptr @Lx, align 8, !tbaa !5
  store double 1.000000e+00, ptr @Ly, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  store double 5.000000e-03, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  store double 5.000000e-03, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %31 = load double, ptr @Ly, align 8, !tbaa !5
  %32 = load double, ptr %2, align 8, !tbaa !5
  %33 = fdiv double %31, %32
  %34 = fadd double %33, 1.000000e+00
  %35 = fptosi double %34 to i32
  store i32 %35, ptr %3, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %36 = load double, ptr @Lx, align 8, !tbaa !5
  %37 = load double, ptr %1, align 8, !tbaa !5
  %38 = fdiv double %36, %37
  %39 = fadd double %38, 1.000000e+00
  %40 = fptosi double %39 to i32
  store i32 %40, ptr %4, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %41 = load i32, ptr %4, align 4, !tbaa !18
  %42 = sext i32 %41 to i64
  store i64 %42, ptr %6, align 8, !tbaa !20
  call void @_ZN3cda4math10containers6VectorIdE4zeroERKm(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Vector") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %43 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cda4math10containers6VectorIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) @vX, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %44 unwind label %72

44:                                               ; preds = %0
  call void @_ZN3cda4math10containers6VectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %45 = load i32, ptr %3, align 4, !tbaa !18
  %46 = sext i32 %45 to i64
  store i64 %46, ptr %10, align 8, !tbaa !20
  call void @_ZN3cda4math10containers6VectorIdE4zeroERKm(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Vector") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %47 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cda4math10containers6VectorIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) @vY, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %48 unwind label %76

48:                                               ; preds = %44
  call void @_ZN3cda4math10containers6VectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %49 = load i32, ptr %3, align 4, !tbaa !18
  %50 = sext i32 %49 to i64
  store i64 %50, ptr %12, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %51 = load i32, ptr %4, align 4, !tbaa !18
  %52 = sext i32 %51 to i64
  store i64 %52, ptr %13, align 8, !tbaa !20
  call void @_ZN3cda4math10containers6MatrixIdE4zeroERKmS5_(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Matrix") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %53 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %54 unwind label %80

54:                                               ; preds = %48
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %55 = load i32, ptr %3, align 4, !tbaa !18
  %56 = sext i32 %55 to i64
  store i64 %56, ptr %15, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %57 = load i32, ptr %4, align 4, !tbaa !18
  %58 = sext i32 %57 to i64
  store i64 %58, ptr %16, align 8, !tbaa !20
  call void @_ZN3cda4math10containers6MatrixIdE4zeroERKmS5_(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Matrix") align 8 %14, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %59 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) @cId, ptr noundef nonnull align 8 dereferenceable(40) %14)
          to label %60 unwind label %84

60:                                               ; preds = %54
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #4
  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 40, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %61 = load i32, ptr %3, align 4, !tbaa !18
  %62 = sext i32 %61 to i64
  store i64 %62, ptr %18, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %63 = load i32, ptr %4, align 4, !tbaa !18
  %64 = sext i32 %63 to i64
  store i64 %64, ptr %19, align 8, !tbaa !20
  call void @_ZN3cda4math10containers6MatrixIbE4zeroERKmS5_(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Matrix.0") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %65 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIbEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(40) %17)
          to label %66 unwind label %88

66:                                               ; preds = %60
  call void @_ZN3cda4math10containers6MatrixIbED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !18
  br label %67

67:                                               ; preds = %100, %66
  %68 = load i32, ptr %20, align 4, !tbaa !18
  %69 = load i32, ptr %3, align 4, !tbaa !18
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %92, label %71

71:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %103

72:                                               ; preds = %0
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %7, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %8, align 4
  call void @_ZN3cda4math10containers6VectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #4
  br label %147

76:                                               ; preds = %44
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %7, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %8, align 4
  call void @_ZN3cda4math10containers6VectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  br label %147

80:                                               ; preds = %48
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %7, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %8, align 4
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #4
  br label %147

84:                                               ; preds = %54
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %7, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %8, align 4
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #4
  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 40, ptr %14) #4
  br label %147

88:                                               ; preds = %60
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %7, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %8, align 4
  call void @_ZN3cda4math10containers6MatrixIbED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #4
  br label %147

92:                                               ; preds = %67
  %93 = load i32, ptr %20, align 4, !tbaa !18
  %94 = sitofp i32 %93 to double
  %95 = load double, ptr %2, align 8, !tbaa !5
  %96 = fmul double %94, %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %97 = load i32, ptr %20, align 4, !tbaa !18
  %98 = sext i32 %97 to i64
  store i64 %98, ptr %21, align 8, !tbaa !20
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3cda4math10containers6VectorIdEixERKm(ptr noundef nonnull align 8 dereferenceable(24) @vY, ptr noundef nonnull align 8 dereferenceable(8) %21)
  store double %96, ptr %99, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %100

100:                                              ; preds = %92
  %101 = load i32, ptr %20, align 4, !tbaa !18
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %20, align 4, !tbaa !18
  br label %67, !llvm.loop !21

103:                                              ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !18
  br label %104

104:                                              ; preds = %117, %103
  %105 = load i32, ptr %22, align 4, !tbaa !18
  %106 = load i32, ptr %4, align 4, !tbaa !18
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %120

109:                                              ; preds = %104
  %110 = load i32, ptr %22, align 4, !tbaa !18
  %111 = sitofp i32 %110 to double
  %112 = load double, ptr %1, align 8, !tbaa !5
  %113 = fmul double %111, %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %114 = load i32, ptr %22, align 4, !tbaa !18
  %115 = sext i32 %114 to i64
  store i64 %115, ptr %23, align 8, !tbaa !20
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3cda4math10containers6VectorIdEixERKm(ptr noundef nonnull align 8 dereferenceable(24) @vX, ptr noundef nonnull align 8 dereferenceable(8) %23)
  store double %113, ptr %116, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %117

117:                                              ; preds = %109
  %118 = load i32, ptr %22, align 4, !tbaa !18
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %22, align 4, !tbaa !18
  br label %104, !llvm.loop !23

120:                                              ; preds = %108
  store i8 15, ptr @BConditions, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 40, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  store double 2.500000e-01, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %26) #4
  %121 = load i8, ptr @BConditions, align 1, !tbaa !24
  call void @_ZN3cda4math22differential_equations3EDP12eigenVAL_VECERNS0_10containers6VectorIdEES6_iihh(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Matrix") align 8 %26, ptr noundef nonnull align 8 dereferenceable(280) @membrane, ptr noundef nonnull align 8 dereferenceable(24) @vX, ptr noundef nonnull align 8 dereferenceable(24) @vY, i32 noundef 3, i32 noundef 4, i8 noundef zeroext %121, i8 noundef zeroext 4)
  invoke void @_ZmlIdEN3cda4math10containers6MatrixIT_EERKS4_RKS5_(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Matrix") align 8 %24, ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(40) %26)
          to label %122 unwind label %129

122:                                              ; preds = %120
  %123 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %124 unwind label %133

124:                                              ; preds = %122
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #4
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  store double 2.500000e-01, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %29) #4
  %125 = load i8, ptr @BConditions, align 1, !tbaa !24
  call void @_ZN3cda4math22differential_equations3EDP12eigenVAL_VECERNS0_10containers6VectorIdEES6_iihh(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Matrix") align 8 %29, ptr noundef nonnull align 8 dereferenceable(280) @membrane, ptr noundef nonnull align 8 dereferenceable(24) @vX, ptr noundef nonnull align 8 dereferenceable(24) @vY, i32 noundef 4, i32 noundef 3, i8 noundef zeroext %125, i8 noundef zeroext 4)
  invoke void @_ZmlIdEN3cda4math10containers6MatrixIT_EERKS4_RKS5_(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Matrix") align 8 %27, ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(40) %29)
          to label %126 unwind label %138

126:                                              ; preds = %124
  %127 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIdEmIERKS3_(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(40) %27)
          to label %128 unwind label %142

128:                                              ; preds = %126
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #4
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %29) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret void

129:                                              ; preds = %120
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %7, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %8, align 4
  br label %137

133:                                              ; preds = %122
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %7, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %8, align 4
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #4
  br label %137

137:                                              ; preds = %133, %129
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #4
  br label %147

138:                                              ; preds = %124
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %7, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %8, align 4
  br label %146

142:                                              ; preds = %126
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %7, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %8, align 4
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #4
  br label %146

146:                                              ; preds = %142, %138
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %29) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #4
  br label %147

147:                                              ; preds = %146, %137, %88, %84, %80, %76, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  br label %148

148:                                              ; preds = %147
  %149 = load ptr, ptr %7, align 8
  %150 = load i32, ptr %8, align 4
  %151 = insertvalue { ptr, i32 } poison, ptr %149, 0
  %152 = insertvalue { ptr, i32 } %151, i32 %150, 1
  resume { ptr, i32 } %152
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cda4math10containers6MatrixIbE4zeroERKmS5_(ptr dead_on_unwind noalias writable sret(%"class.cda::math::containers::Matrix.0") 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 nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIbEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZmlIdEN3cda4math10containers6MatrixIT_EERKS4_RKS5_(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(40)) #2

declare void @_ZN3cda4math22differential_equations3EDP12eigenVAL_VECERNS0_10containers6VectorIdEES6_iihh(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(280), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i8 noundef zeroext, i8 noundef zeroext) #3

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

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 = { "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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 248}
!10 = !{!"_ZTSN3cda4math22differential_equations3EDPE", !11, i64 0, !14, i64 24, !15, i64 64, !16, i64 104, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !13, i64 224, !13, i64 232, !6, i64 240, !6, i64 248, !13, i64 256, !13, i64 264, !6, i64 272}
!11 = !{!"_ZTSN3cda4math10containers6VectorIdEE", !12, i64 0, !13, i64 8, !13, i64 16}
!12 = !{!"long", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"_ZTSN3cda4math10containers6MatrixIdEE", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !13, i64 32}
!15 = !{!"_ZTSN3cda4math10containers6MatrixIbEE", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !13, i64 32}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !12, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!12, !12, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!7, !7, i64 0}


; 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::containers::Vector" = type { 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.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] }

@cI = external dso_local global %"class.cda::math::containers::Matrix", align 8
@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
@vX = external dso_local global %"class.cda::math::containers::Vector", align 8
@vY = external dso_local global %"class.cda::math::containers::Vector", align 8
@Ten = external dso_local local_unnamed_addr global double, align 8
@P = external dso_local local_unnamed_addr global double, align 8
@Lx = external dso_local local_unnamed_addr global double, align 8
@Ly = external dso_local local_unnamed_addr global double, align 8
@dt = external dso_local local_unnamed_addr global double, align 8
@BConditions = external dso_local local_unnamed_addr global i8, align 1
@membrane = external dso_local 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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17vibration_modes_Cv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.cda::math::containers::Vector", align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.cda::math::containers::Vector", align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.cda::math::containers::Matrix", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.cda::math::containers::Matrix", align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.cda::math::containers::Matrix.0", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.cda::math::containers::Matrix", align 8
  %17 = alloca double, align 8
  %18 = alloca %"class.cda::math::containers::Matrix", align 8
  %19 = alloca %"class.cda::math::containers::Matrix", align 8
  %20 = alloca double, align 8
  %21 = alloca %"class.cda::math::containers::Matrix", align 8
  store double 1.000000e-03, ptr @dt, align 8, !tbaa !5
  store double 1.000000e-03, ptr getelementptr inbounds (i8, ptr @membrane, i64 248), align 8, !tbaa !9
  store double 1.000000e+00, ptr @Ten, align 8, !tbaa !5
  store double 1.000000e-01, ptr @P, align 8, !tbaa !5
  store double 1.000000e+00, ptr @Lx, align 8, !tbaa !5
  store double 1.000000e+00, ptr @Ly, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  store i64 201, ptr %2, align 8, !tbaa !18
  call void @_ZN3cda4math10containers6VectorIdE4zeroERKm(ptr dead_on_unwind nonnull writable sret(%"class.cda::math::containers::Vector") align 8 %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cda4math10containers6VectorIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) @vX, ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @_ZN3cda4math10containers6VectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  store i64 201, ptr %4, align 8, !tbaa !18
  call void @_ZN3cda4math10containers6VectorIdE4zeroERKm(ptr dead_on_unwind nonnull writable sret(%"class.cda::math::containers::Vector") align 8 %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %23 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cda4math10containers6VectorIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) @vY, ptr noundef nonnull align 8 dereferenceable(24) %3)
  call void @_ZN3cda4math10containers6VectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  store i64 201, ptr %6, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  store i64 201, ptr %7, align 8, !tbaa !18
  call void @_ZN3cda4math10containers6MatrixIdE4zeroERKmS5_(ptr dead_on_unwind nonnull writable sret(%"class.cda::math::containers::Matrix") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %24 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(40) %5)
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  store i64 201, ptr %9, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  store i64 201, ptr %10, align 8, !tbaa !18
  call void @_ZN3cda4math10containers6MatrixIdE4zeroERKmS5_(ptr dead_on_unwind nonnull writable sret(%"class.cda::math::containers::Matrix") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %25 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) @cId, ptr noundef nonnull align 8 dereferenceable(40) %8)
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  store i64 201, ptr %12, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  store i64 201, ptr %13, align 8, !tbaa !18
  call void @_ZN3cda4math10containers6MatrixIbE4zeroERKmS5_(ptr dead_on_unwind nonnull writable sret(%"class.cda::math::containers::Matrix.0") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %26 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIbEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(40) %11)
  call void @_ZN3cda4math10containers6MatrixIbED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #4
  br label %27

27:                                               ; preds = %0, %27
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %27 ]
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  %29 = uitofp nneg i32 %28 to double
  %30 = fmul double %29, 5.000000e-03
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  store i64 %indvars.iv, ptr %14, align 8, !tbaa !18
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3cda4math10containers6VectorIdEixERKm(ptr noundef nonnull align 8 dereferenceable(24) @vY, ptr noundef nonnull align 8 dereferenceable(8) %14)
  store double %30, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 201
  br i1 %exitcond.not, label %.preheader, label %27, !llvm.loop !19

32:                                               ; preds = %.preheader
  store i8 15, ptr @BConditions, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  store double 2.500000e-01, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %18) #4
  call void @_ZN3cda4math22differential_equations3EDP12eigenVAL_VECERNS0_10containers6VectorIdEES6_iihh(ptr dead_on_unwind nonnull writable sret(%"class.cda::math::containers::Matrix") align 8 %18, ptr noundef nonnull align 8 dereferenceable(280) @membrane, ptr noundef nonnull align 8 dereferenceable(24) @vX, ptr noundef nonnull align 8 dereferenceable(24) @vY, i32 noundef 3, i32 noundef 4, i8 noundef zeroext 15, i8 noundef zeroext 4)
  invoke void @_ZmlIdEN3cda4math10containers6MatrixIT_EERKS4_RKS5_(ptr dead_on_unwind nonnull writable sret(%"class.cda::math::containers::Matrix") align 8 %16, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(40) %18)
          to label %37 unwind label %43

.preheader:                                       ; preds = %27, %.preheader
  %indvars.iv32 = phi i64 [ %indvars.iv.next33, %.preheader ], [ 0, %27 ]
  %33 = trunc nuw nsw i64 %indvars.iv32 to i32
  %34 = uitofp nneg i32 %33 to double
  %35 = fmul double %34, 5.000000e-03
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  store i64 %indvars.iv32, ptr %15, align 8, !tbaa !18
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3cda4math10containers6VectorIdEixERKm(ptr noundef nonnull align 8 dereferenceable(24) @vX, ptr noundef nonnull align 8 dereferenceable(8) %15)
  store double %35, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  %indvars.iv.next33 = add nuw nsw i64 %indvars.iv32, 1
  %exitcond35.not = icmp eq i64 %indvars.iv.next33, 201
  br i1 %exitcond35.not, label %32, label %.preheader, !llvm.loop !22

37:                                               ; preds = %32
  %38 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(40) %16)
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #4
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #4
  store double 2.500000e-01, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %21) #4
  %39 = load i8, ptr @BConditions, align 1, !tbaa !21
  call void @_ZN3cda4math22differential_equations3EDP12eigenVAL_VECERNS0_10containers6VectorIdEES6_iihh(ptr dead_on_unwind nonnull writable sret(%"class.cda::math::containers::Matrix") align 8 %21, ptr noundef nonnull align 8 dereferenceable(280) @membrane, ptr noundef nonnull align 8 dereferenceable(24) @vX, ptr noundef nonnull align 8 dereferenceable(24) @vY, i32 noundef 4, i32 noundef 3, i8 noundef zeroext %39, i8 noundef zeroext 4)
  invoke void @_ZmlIdEN3cda4math10containers6MatrixIT_EERKS4_RKS5_(ptr dead_on_unwind nonnull writable sret(%"class.cda::math::containers::Matrix") align 8 %19, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(40) %21)
          to label %40 unwind label %45

40:                                               ; preds = %37
  %41 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIdEmIERKS3_(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %42 unwind label %47

42:                                               ; preds = %40
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #4
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #4
  ret void

43:                                               ; preds = %32
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #4
  br label %50

45:                                               ; preds = %37
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %49

47:                                               ; preds = %40
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #4
  br label %49

49:                                               ; preds = %47, %45
  %.pn = phi { ptr, i32 } [ %48, %47 ], [ %46, %45 ]
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #4
  br label %50

50:                                               ; preds = %49, %43
  %.pn.pn = phi { ptr, i32 } [ %.pn, %49 ], [ %44, %43 ]
  resume { ptr, i32 } %.pn.pn
}

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

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

; 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 #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZmlIdEN3cda4math10containers6MatrixIT_EERKS4_RKS5_(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(40)) local_unnamed_addr #2

declare void @_ZN3cda4math22differential_equations3EDP12eigenVAL_VECERNS0_10containers6VectorIdEES6_iihh(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(280), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #3

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

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 = { "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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 248}
!10 = !{!"_ZTSN3cda4math22differential_equations3EDPE", !11, i64 0, !14, i64 24, !15, i64 64, !16, i64 104, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !13, i64 224, !13, i64 232, !6, i64 240, !6, i64 248, !13, i64 256, !13, i64 264, !6, i64 272}
!11 = !{!"_ZTSN3cda4math10containers6VectorIdEE", !12, i64 0, !13, i64 8, !13, i64 16}
!12 = !{!"long", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"_ZTSN3cda4math10containers6MatrixIdEE", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !13, i64 32}
!15 = !{!"_ZTSN3cda4math10containers6MatrixIbEE", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !13, i64 32}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !12, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!18 = !{!12, !12, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !20}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass