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

; 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
@sinu = 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
@sPosX = external dso_local global i32, align 4
@sPosY = external dso_local global i32, align 4
@sRangeX = external dso_local global i32, align 4
@sRangeY = external dso_local global i32, align 4
@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
@freqSignal = external dso_local global double, align 8
@sForce = external dso_local global double, align 8
@_ZL2PI = external hidden 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z2QQdd(double noundef, double noundef) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18chladni_patterns_Av() #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 i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca %"class.cda::math::containers::Matrix", align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  store double 1.000000e-04, ptr @dt, align 8, !tbaa !5
  %31 = load double, ptr @dt, align 8, !tbaa !5
  store double %31, ptr getelementptr inbounds (%"class.cda::math::differential_equations::EDP", ptr @membrane, i32 0, i32 18), align 8, !tbaa !9
  store double 1.000000e+01, 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) #5
  store double 5.000000e-03, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  store double 5.000000e-03, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %32 = load double, ptr @Ly, align 8, !tbaa !5
  %33 = load double, ptr %2, align 8, !tbaa !5
  %34 = fdiv double %32, %33
  %35 = fadd double %34, 1.000000e+00
  %36 = fptosi double %35 to i32
  store i32 %36, ptr %3, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %37 = load double, ptr @Lx, align 8, !tbaa !5
  %38 = load double, ptr %1, align 8, !tbaa !5
  %39 = fdiv double %37, %38
  %40 = fadd double %39, 1.000000e+00
  %41 = fptosi double %40 to i32
  store i32 %41, ptr %4, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %42 = load i32, ptr %4, align 4, !tbaa !18
  %43 = sext i32 %42 to i64
  store i64 %43, 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)
  %44 = 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 %45 unwind label %73

45:                                               ; preds = %0
  call void @_ZN3cda4math10containers6VectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %46 = load i32, ptr %3, align 4, !tbaa !18
  %47 = sext i32 %46 to i64
  store i64 %47, 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)
  %48 = 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 %49 unwind label %77

49:                                               ; preds = %45
  call void @_ZN3cda4math10containers6VectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %50 = load i32, ptr %3, align 4, !tbaa !18
  %51 = sext i32 %50 to i64
  store i64 %51, ptr %12, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %52 = load i32, ptr %4, align 4, !tbaa !18
  %53 = sext i32 %52 to i64
  store i64 %53, 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)
  %54 = 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 %55 unwind label %81

55:                                               ; preds = %49
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %56 = load i32, ptr %3, align 4, !tbaa !18
  %57 = sext i32 %56 to i64
  store i64 %57, ptr %15, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %58 = load i32, ptr %4, align 4, !tbaa !18
  %59 = sext i32 %58 to i64
  store i64 %59, 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)
  %60 = 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 %61 unwind label %85

61:                                               ; preds = %55
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %62 = load i32, ptr %3, align 4, !tbaa !18
  %63 = sext i32 %62 to i64
  store i64 %63, ptr %18, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %64 = load i32, ptr %4, align 4, !tbaa !18
  %65 = sext i32 %64 to i64
  store i64 %65, 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)
  %66 = 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 %67 unwind label %89

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

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

72:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %104

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

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

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

85:                                               ; preds = %55
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %7, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %8, align 4
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #5
  br label %163

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

93:                                               ; preds = %68
  %94 = load i32, ptr %20, align 4, !tbaa !18
  %95 = sitofp i32 %94 to double
  %96 = load double, ptr %2, align 8, !tbaa !5
  %97 = fmul double %95, %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %98 = load i32, ptr %20, align 4, !tbaa !18
  %99 = sext i32 %98 to i64
  store i64 %99, ptr %21, align 8, !tbaa !20
  %100 = 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 %97, ptr %100, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %101

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

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

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

109:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %121

110:                                              ; preds = %105
  %111 = load i32, ptr %22, align 4, !tbaa !18
  %112 = sitofp i32 %111 to double
  %113 = load double, ptr %1, align 8, !tbaa !5
  %114 = fmul double %112, %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %115 = load i32, ptr %22, align 4, !tbaa !18
  %116 = sext i32 %115 to i64
  store i64 %116, ptr %23, align 8, !tbaa !20
  %117 = 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 %114, ptr %117, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %118

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

121:                                              ; preds = %109
  store i8 -16, ptr @BConditions, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 9, ptr %24, align 4, !tbaa !18
  store i32 7, ptr %25, align 4, !tbaa !18
  %122 = load i32, ptr %4, align 4, !tbaa !18
  %123 = sdiv i32 %122, 2
  store i32 %123, ptr @sPosX, align 4, !tbaa !18
  %124 = load i32, ptr %3, align 4, !tbaa !18
  %125 = sdiv i32 %124, 2
  store i32 %125, ptr @sPosY, align 4, !tbaa !18
  store i32 2, ptr @sRangeX, align 4, !tbaa !18
  store i32 2, ptr @sRangeY, align 4, !tbaa !18
  store double 5.000000e-03, ptr @sForce, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  store i64 0, ptr %26, align 8, !tbaa !20
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3cda4math10containers6VectorIdEixERKm(ptr noundef nonnull align 8 dereferenceable(24) @vX, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %127 = load double, ptr %126, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  store i64 0, ptr %27, align 8, !tbaa !20
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3cda4math10containers6VectorIdEixERKm(ptr noundef nonnull align 8 dereferenceable(24) @vY, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %129 = load double, ptr %128, align 8, !tbaa !5
  %130 = call noundef double @_Z2QQdd(double noundef %127, double noundef %129)
  %131 = load i32, ptr %24, align 4, !tbaa !18
  %132 = sitofp i32 %131 to double
  %133 = load i32, ptr %24, align 4, !tbaa !18
  %134 = sitofp i32 %133 to double
  %135 = fmul double %132, %134
  %136 = load double, ptr @Lx, align 8, !tbaa !5
  %137 = load double, ptr @Lx, align 8, !tbaa !5
  %138 = fmul double %136, %137
  %139 = fdiv double %135, %138
  %140 = load i32, ptr %25, align 4, !tbaa !18
  %141 = sitofp i32 %140 to double
  %142 = load i32, ptr %25, align 4, !tbaa !18
  %143 = sitofp i32 %142 to double
  %144 = fmul double %141, %143
  %145 = load double, ptr @Ly, align 8, !tbaa !5
  %146 = load double, ptr @Ly, align 8, !tbaa !5
  %147 = fmul double %145, %146
  %148 = fdiv double %144, %147
  %149 = call double @llvm.fmuladd.f64(double %130, double %139, double %148)
  %150 = call double @sqrt(double noundef %149) #5
  %151 = load double, ptr @_ZL2PI, align 8, !tbaa !5
  %152 = fmul double %150, %151
  store double %152, ptr @freqSignal, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %153 = load i32, ptr %3, align 4, !tbaa !18
  %154 = sext i32 %153 to i64
  store i64 %154, ptr %29, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %155 = load i32, ptr %4, align 4, !tbaa !18
  %156 = sext i32 %155 to i64
  store i64 %156, ptr %30, align 8, !tbaa !20
  call void @_ZN3cda4math10containers6MatrixIdE4zeroERKmS5_(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Matrix") align 8 %28, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30)
  %157 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) @sinu, ptr noundef nonnull align 8 dereferenceable(40) %28)
          to label %158 unwind label %159

158:                                              ; preds = %121
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void

159:                                              ; preds = %121
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %7, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %8, align 4
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %163

163:                                              ; preds = %159, %89, %85, %81, %77, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  br label %164

164:                                              ; preds = %163
  %165 = load ptr, ptr %7, align 8
  %166 = load i32, ptr %8, align 4
  %167 = insertvalue { ptr, i32 } poison, ptr %165, 0
  %168 = insertvalue { ptr, i32 } %167, i32 %166, 1
  resume { ptr, i32 } %168
}

; 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: nounwind
declare double @sqrt(double noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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
@sinu = 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
@sPosX = external dso_local local_unnamed_addr global i32, align 4
@sPosY = external dso_local local_unnamed_addr global i32, align 4
@sRangeX = external dso_local local_unnamed_addr global i32, align 4
@sRangeY = external dso_local local_unnamed_addr global i32, align 4
@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
@freqSignal = external dso_local local_unnamed_addr global double, align 8
@sForce = external dso_local local_unnamed_addr global double, align 8
@_ZL2PI = external hidden local_unnamed_addr global double, align 8
@BConditions = external dso_local local_unnamed_addr global i8, align 1
@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

; 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z2QQdd(double noundef, double noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18chladni_patterns_Av() 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 i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"class.cda::math::containers::Matrix", align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  store double 1.000000e-04, ptr @dt, align 8, !tbaa !5
  store double 1.000000e-04, ptr getelementptr inbounds (i8, ptr @membrane, i64 248), align 8, !tbaa !9
  store double 1.000000e+01, 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) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  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)
  %21 = 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) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  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)
  %22 = 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) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store i64 201, ptr %6, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  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)
  %23 = 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) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  store i64 201, ptr %9, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  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)
  %24 = 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) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  store i64 201, ptr %12, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  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)
  %25 = 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) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  br label %26

26:                                               ; preds = %0, %26
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %26 ]
  %27 = trunc nuw nsw i64 %indvars.iv to i32
  %28 = uitofp nneg i32 %27 to double
  %29 = fmul double %28, 5.000000e-03
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  store i64 %indvars.iv, ptr %14, align 8, !tbaa !18
  %30 = 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 %29, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  %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 %26, !llvm.loop !19

31:                                               ; preds = %.preheader
  store i8 -16, ptr @BConditions, align 1, !tbaa !21
  store i32 100, ptr @sPosX, align 4, !tbaa !22
  store i32 100, ptr @sPosY, align 4, !tbaa !22
  store i32 2, ptr @sRangeX, align 4, !tbaa !22
  store i32 2, ptr @sRangeY, align 4, !tbaa !22
  store double 5.000000e-03, ptr @sForce, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  store i64 0, ptr %16, align 8, !tbaa !18
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3cda4math10containers6VectorIdEixERKm(ptr noundef nonnull align 8 dereferenceable(24) @vX, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %33 = load double, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  store i64 0, ptr %17, align 8, !tbaa !18
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3cda4math10containers6VectorIdEixERKm(ptr noundef nonnull align 8 dereferenceable(24) @vY, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %35 = load double, ptr %34, align 8, !tbaa !5
  %36 = call noundef double @_Z2QQdd(double noundef %33, double noundef %35)
  %37 = load double, ptr @Lx, align 8, !tbaa !5
  %38 = fmul double %37, %37
  %39 = fdiv double 8.100000e+01, %38
  %40 = load double, ptr @Ly, align 8, !tbaa !5
  %41 = fmul double %40, %40
  %42 = fdiv double 4.900000e+01, %41
  %43 = call double @llvm.fmuladd.f64(double %36, double %39, double %42)
  %44 = call double @sqrt(double noundef %43) #5
  %45 = load double, ptr @_ZL2PI, align 8, !tbaa !5
  %46 = fmul double %44, %45
  store double %46, ptr @freqSignal, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #5
  store i64 201, ptr %19, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #5
  store i64 201, ptr %20, align 8, !tbaa !18
  call void @_ZN3cda4math10containers6MatrixIdE4zeroERKmS5_(ptr dead_on_unwind nonnull writable sret(%"class.cda::math::containers::Matrix") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %47 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) @sinu, ptr noundef nonnull align 8 dereferenceable(40) %18)
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #5
  ret void

.preheader:                                       ; preds = %26, %.preheader
  %indvars.iv34 = phi i64 [ %indvars.iv.next35, %.preheader ], [ 0, %26 ]
  %48 = trunc nuw nsw i64 %indvars.iv34 to i32
  %49 = uitofp nneg i32 %48 to double
  %50 = fmul double %49, 5.000000e-03
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  store i64 %indvars.iv34, ptr %15, align 8, !tbaa !18
  %51 = 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 %50, ptr %51, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  %indvars.iv.next35 = add nuw nsw i64 %indvars.iv34, 1
  %exitcond37.not = icmp eq i64 %indvars.iv.next35, 201
  br i1 %exitcond37.not, label %31, label %.preheader, !llvm.loop !24
}

; 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 nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!23, !23, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = distinct !{!24, !20}


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