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

; 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
@BConditions = external dso_local global i8, align 1
@membrane = external dso_local global %"class.cda::math::differential_equations::EDP", align 8
@_ZN3cda8graphics8ColorMap8colormapE = external global i8, align 1

; 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 @_Z13single_slit_Bv() #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 i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i32, align 4
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca %"class.cda::math::containers::Matrix", align 8
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  store double 5.000000e-04, ptr @dt, align 8, !tbaa !5
  %39 = load double, ptr @dt, align 8, !tbaa !5
  store double %39, 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) #3
  store double 5.000000e-03, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  store double 5.000000e-03, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %40 = load double, ptr @Ly, align 8, !tbaa !5
  %41 = load double, ptr %2, align 8, !tbaa !5
  %42 = fdiv double %40, %41
  %43 = fadd double %42, 1.000000e+00
  %44 = fptosi double %43 to i32
  store i32 %44, ptr %3, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %45 = load double, ptr @Lx, align 8, !tbaa !5
  %46 = load double, ptr %1, align 8, !tbaa !5
  %47 = fdiv double %45, %46
  %48 = fadd double %47, 1.000000e+00
  %49 = fptosi double %48 to i32
  store i32 %49, ptr %4, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %50 = load i32, ptr %4, align 4, !tbaa !18
  %51 = sext i32 %50 to i64
  store i64 %51, 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)
  %52 = 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 %53 unwind label %81

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

57:                                               ; preds = %53
  call void @_ZN3cda4math10containers6VectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %58 = load i32, ptr %3, align 4, !tbaa !18
  %59 = sext i32 %58 to i64
  store i64 %59, ptr %12, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %60 = load i32, ptr %4, align 4, !tbaa !18
  %61 = sext i32 %60 to i64
  store i64 %61, 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)
  %62 = 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 %63 unwind label %89

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

69:                                               ; preds = %63
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %70 = load i32, ptr %3, align 4, !tbaa !18
  %71 = sext i32 %70 to i64
  store i64 %71, ptr %18, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %72 = load i32, ptr %4, align 4, !tbaa !18
  %73 = sext i32 %72 to i64
  store i64 %73, 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)
  %74 = 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 %75 unwind label %97

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

76:                                               ; preds = %109, %75
  %77 = load i32, ptr %20, align 4, !tbaa !18
  %78 = load i32, ptr %3, align 4, !tbaa !18
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %101, label %80

80:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  br label %112

81:                                               ; preds = %0
  %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 @_ZN3cda4math10containers6VectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #3
  br label %247

85:                                               ; preds = %53
  %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 @_ZN3cda4math10containers6VectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #3
  br label %247

89:                                               ; preds = %57
  %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 @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #3
  br label %247

93:                                               ; preds = %63
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %7, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %8, align 4
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #3
  br label %247

97:                                               ; preds = %69
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %7, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %8, align 4
  call void @_ZN3cda4math10containers6MatrixIbED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #3
  br label %247

101:                                              ; preds = %76
  %102 = load i32, ptr %20, align 4, !tbaa !18
  %103 = sitofp i32 %102 to double
  %104 = load double, ptr %2, align 8, !tbaa !5
  %105 = fmul double %103, %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %106 = load i32, ptr %20, align 4, !tbaa !18
  %107 = sext i32 %106 to i64
  store i64 %107, ptr %21, align 8, !tbaa !20
  %108 = 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 %105, ptr %108, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  br label %109

109:                                              ; preds = %101
  %110 = load i32, ptr %20, align 4, !tbaa !18
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %20, align 4, !tbaa !18
  br label %76, !llvm.loop !21

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

113:                                              ; preds = %126, %112
  %114 = load i32, ptr %22, align 4, !tbaa !18
  %115 = load i32, ptr %4, align 4, !tbaa !18
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  br label %129

118:                                              ; preds = %113
  %119 = load i32, ptr %22, align 4, !tbaa !18
  %120 = sitofp i32 %119 to double
  %121 = load double, ptr %1, align 8, !tbaa !5
  %122 = fmul double %120, %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %123 = load i32, ptr %22, align 4, !tbaa !18
  %124 = sext i32 %123 to i64
  store i64 %124, ptr %23, align 8, !tbaa !20
  %125 = 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 %122, ptr %125, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  br label %126

126:                                              ; preds = %118
  %127 = load i32, ptr %22, align 4, !tbaa !18
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %22, align 4, !tbaa !18
  br label %113, !llvm.loop !23

129:                                              ; preds = %117
  store i8 -16, ptr @BConditions, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  store i32 0, ptr %24, align 4, !tbaa !18
  br label %130

130:                                              ; preds = %166, %129
  %131 = load i32, ptr %24, align 4, !tbaa !18
  %132 = load i32, ptr %3, align 4, !tbaa !18
  %133 = icmp slt i32 %131, %132
  br i1 %133, label %135, label %134

134:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  br label %169

135:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %136 = load i32, ptr %24, align 4, !tbaa !18
  %137 = sext i32 %136 to i64
  store i64 %137, ptr %25, align 8, !tbaa !20
  %138 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %139 = load i32, ptr %4, align 4, !tbaa !18
  %140 = sdiv i32 %139, 3
  %141 = sub nsw i32 %140, 1
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds i8, ptr %138, i64 %142
  store i8 1, ptr %143, align 1, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  %144 = load i32, ptr %24, align 4, !tbaa !18
  %145 = sext i32 %144 to i64
  store i64 %145, ptr %26, align 8, !tbaa !20
  %146 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %147 = load i32, ptr %4, align 4, !tbaa !18
  %148 = sdiv i32 %147, 3
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds i8, ptr %146, i64 %149
  store i8 1, ptr %150, align 1, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  %151 = load i32, ptr %24, align 4, !tbaa !18
  %152 = sext i32 %151 to i64
  store i64 %152, ptr %27, align 8, !tbaa !20
  %153 = call noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %154 = load i32, ptr %4, align 4, !tbaa !18
  %155 = sdiv i32 %154, 3
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds double, ptr %153, i64 %156
  store double 5.000000e-01, ptr %157, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  %158 = load i32, ptr %24, align 4, !tbaa !18
  %159 = sext i32 %158 to i64
  store i64 %159, ptr %28, align 8, !tbaa !20
  %160 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %28)
  %161 = load i32, ptr %4, align 4, !tbaa !18
  %162 = sdiv i32 %161, 3
  %163 = add nsw i32 %162, 1
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds i8, ptr %160, i64 %164
  store i8 1, ptr %165, align 1, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  br label %166

166:                                              ; preds = %135
  %167 = load i32, ptr %24, align 4, !tbaa !18
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %24, align 4, !tbaa !18
  br label %130, !llvm.loop !27

169:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  %170 = load i32, ptr %3, align 4, !tbaa !18
  %171 = sdiv i32 %170, 2
  %172 = sub nsw i32 %171, 10
  store i32 %172, ptr %29, align 4, !tbaa !18
  br label %173

173:                                              ; preds = %211, %169
  %174 = load i32, ptr %29, align 4, !tbaa !18
  %175 = load i32, ptr %3, align 4, !tbaa !18
  %176 = sdiv i32 %175, 2
  %177 = add nsw i32 %176, 10
  %178 = icmp sle i32 %174, %177
  br i1 %178, label %180, label %179

179:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  br label %214

180:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  %181 = load i32, ptr %29, align 4, !tbaa !18
  %182 = sext i32 %181 to i64
  store i64 %182, ptr %30, align 8, !tbaa !20
  %183 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %30)
  %184 = load i32, ptr %4, align 4, !tbaa !18
  %185 = sdiv i32 %184, 3
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds i8, ptr %183, i64 %186
  store i8 0, ptr %187, align 1, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  %188 = load i32, ptr %29, align 4, !tbaa !18
  %189 = sext i32 %188 to i64
  store i64 %189, ptr %31, align 8, !tbaa !20
  %190 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %191 = load i32, ptr %4, align 4, !tbaa !18
  %192 = sdiv i32 %191, 3
  %193 = sub nsw i32 %192, 1
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds i8, ptr %190, i64 %194
  store i8 0, ptr %195, align 1, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  %196 = load i32, ptr %29, align 4, !tbaa !18
  %197 = sext i32 %196 to i64
  store i64 %197, ptr %32, align 8, !tbaa !20
  %198 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %32)
  %199 = load i32, ptr %4, align 4, !tbaa !18
  %200 = sdiv i32 %199, 3
  %201 = add nsw i32 %200, 1
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds i8, ptr %198, i64 %202
  store i8 0, ptr %203, align 1, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  %204 = load i32, ptr %29, align 4, !tbaa !18
  %205 = sext i32 %204 to i64
  store i64 %205, ptr %33, align 8, !tbaa !20
  %206 = call noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %207 = load i32, ptr %4, align 4, !tbaa !18
  %208 = sdiv i32 %207, 3
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds double, ptr %206, i64 %209
  store double 0.000000e+00, ptr %210, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  br label %211

211:                                              ; preds = %180
  %212 = load i32, ptr %29, align 4, !tbaa !18
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %29, align 4, !tbaa !18
  br label %173, !llvm.loop !28

214:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  %215 = load i32, ptr %3, align 4, !tbaa !18
  %216 = sdiv i32 %215, 2
  %217 = sub nsw i32 %216, 11
  %218 = sext i32 %217 to i64
  store i64 %218, ptr %34, align 8, !tbaa !20
  %219 = call noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(8) %34)
  %220 = load i32, ptr %4, align 4, !tbaa !18
  %221 = sdiv i32 %220, 3
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds double, ptr %219, i64 %222
  store double 0.000000e+00, ptr %223, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  %224 = load i32, ptr %3, align 4, !tbaa !18
  %225 = sdiv i32 %224, 2
  %226 = add nsw i32 %225, 11
  %227 = sext i32 %226 to i64
  store i64 %227, ptr %35, align 8, !tbaa !20
  %228 = call noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(8) %35)
  %229 = load i32, ptr %4, align 4, !tbaa !18
  %230 = sdiv i32 %229, 3
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds double, ptr %228, i64 %231
  store double 0.000000e+00, ptr %232, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  store i32 0, ptr @sPosX, align 4, !tbaa !18
  %233 = load i32, ptr %3, align 4, !tbaa !18
  %234 = sdiv i32 %233, 2
  store i32 %234, ptr @sPosY, align 4, !tbaa !18
  store i32 0, ptr @sRangeX, align 4, !tbaa !18
  %235 = load i32, ptr %3, align 4, !tbaa !18
  %236 = sdiv i32 %235, 2
  store i32 %236, ptr @sRangeY, align 4, !tbaa !18
  store double 3.000000e-01, ptr @sForce, align 8, !tbaa !5
  store double 1.000000e+02, ptr @freqSignal, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #3
  %237 = load i32, ptr %3, align 4, !tbaa !18
  %238 = sext i32 %237 to i64
  store i64 %238, ptr %37, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #3
  %239 = load i32, ptr %4, align 4, !tbaa !18
  %240 = sext i32 %239 to i64
  store i64 %240, ptr %38, align 8, !tbaa !20
  call void @_ZN3cda4math10containers6MatrixIdE4zeroERKmS5_(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Matrix") align 8 %36, ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38)
  %241 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) @sinu, ptr noundef nonnull align 8 dereferenceable(40) %36)
          to label %242 unwind label %243

242:                                              ; preds = %214
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %36) #3
  store i8 64, ptr @_ZN3cda8graphics8ColorMap8colormapE, align 1, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  ret void

243:                                              ; preds = %214
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %7, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %8, align 4
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %36) #3
  br label %247

247:                                              ; preds = %243, %97, %93, %89, %85, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  br label %248

248:                                              ; preds = %247
  %249 = load ptr, ptr %7, align 8
  %250 = load i32, ptr %8, align 4
  %251 = insertvalue { ptr, i32 } poison, ptr %249, 0
  %252 = insertvalue { ptr, i32 } %251, i32 %250, 1
  resume { ptr, i32 } %252
}

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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 }

!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}
!25 = !{!26, !26, i64 0}
!26 = !{!"bool", !7, i64 0}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.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
@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
@_ZN3cda8graphics8ColorMap8colormapE = external local_unnamed_addr global i8, align 1

; 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 @_Z13single_slit_Bv() 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 i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca %"class.cda::math::containers::Matrix", align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  store double 5.000000e-04, ptr @dt, align 8, !tbaa !5
  store double 5.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) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  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)
  %29 = 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) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  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)
  %30 = 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) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  store i64 201, ptr %6, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  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)
  %31 = 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) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  store i64 201, ptr %9, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  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)
  %32 = 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) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  store i64 201, ptr %12, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #3
  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)
  %33 = 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) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #3
  br label %34

34:                                               ; preds = %0, %34
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %34 ]
  %35 = trunc nuw nsw i64 %indvars.iv to i32
  %36 = uitofp nneg i32 %35 to double
  %37 = fmul double %36, 5.000000e-03
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #3
  store i64 %indvars.iv, ptr %14, align 8, !tbaa !18
  %38 = 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 %37, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #3
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 201
  br i1 %exitcond.not, label %.preheader56, label %34, !llvm.loop !19

39:                                               ; preds = %.preheader56
  store i8 -16, ptr @BConditions, align 1, !tbaa !21
  br label %44

.preheader56:                                     ; preds = %34, %.preheader56
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %.preheader56 ], [ 0, %34 ]
  %40 = trunc nuw nsw i64 %indvars.iv62 to i32
  %41 = uitofp nneg i32 %40 to double
  %42 = fmul double %41, 5.000000e-03
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #3
  store i64 %indvars.iv62, ptr %15, align 8, !tbaa !18
  %43 = 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 %42, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #3
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %exitcond65.not = icmp eq i64 %indvars.iv.next63, 201
  br i1 %exitcond65.not, label %39, label %.preheader56, !llvm.loop !22

44:                                               ; preds = %39, %44
  %indvars.iv66 = phi i64 [ 0, %39 ], [ %indvars.iv.next67, %44 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #3
  store i64 %indvars.iv66, ptr %16, align 8, !tbaa !18
  %45 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %46 = getelementptr inbounds i8, ptr %45, i64 66
  store i8 1, ptr %46, align 1, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #3
  store i64 %indvars.iv66, ptr %17, align 8, !tbaa !18
  %47 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %48 = getelementptr inbounds i8, ptr %47, i64 67
  store i8 1, ptr %48, align 1, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #3
  store i64 %indvars.iv66, ptr %18, align 8, !tbaa !18
  %49 = call noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %50 = getelementptr inbounds i8, ptr %49, i64 536
  store double 5.000000e-01, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #3
  store i64 %indvars.iv66, ptr %19, align 8, !tbaa !18
  %51 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %52 = getelementptr inbounds i8, ptr %51, i64 68
  store i8 1, ptr %52, align 1, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #3
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %exitcond69.not = icmp eq i64 %indvars.iv.next67, 201
  br i1 %exitcond69.not, label %.preheader, label %44, !llvm.loop !25

53:                                               ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #3
  store i64 89, ptr %24, align 8, !tbaa !18
  %54 = call noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %55 = getelementptr inbounds i8, ptr %54, i64 536
  store double 0.000000e+00, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #3
  store i64 111, ptr %25, align 8, !tbaa !18
  %56 = call noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %57 = getelementptr inbounds i8, ptr %56, i64 536
  store double 0.000000e+00, ptr %57, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #3
  store i32 0, ptr @sPosX, align 4, !tbaa !26
  store i32 100, ptr @sPosY, align 4, !tbaa !26
  store i32 0, ptr @sRangeX, align 4, !tbaa !26
  store i32 100, ptr @sRangeY, align 4, !tbaa !26
  store double 3.000000e-01, ptr @sForce, align 8, !tbaa !5
  store double 1.000000e+02, ptr @freqSignal, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #3
  store i64 201, ptr %27, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #3
  store i64 201, ptr %28, align 8, !tbaa !18
  call void @_ZN3cda4math10containers6MatrixIdE4zeroERKmS5_(ptr dead_on_unwind nonnull writable sret(%"class.cda::math::containers::Matrix") align 8 %26, ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28)
  %58 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) @sinu, ptr noundef nonnull align 8 dereferenceable(40) %26)
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %26) #3
  store i8 64, ptr @_ZN3cda8graphics8ColorMap8colormapE, align 1, !tbaa !21
  ret void

.preheader:                                       ; preds = %44, %.preheader
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %.preheader ], [ 90, %44 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #3
  store i64 %indvars.iv70, ptr %20, align 8, !tbaa !18
  %59 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %60 = getelementptr inbounds i8, ptr %59, i64 67
  store i8 0, ptr %60, align 1, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #3
  store i64 %indvars.iv70, ptr %21, align 8, !tbaa !18
  %61 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %62 = getelementptr inbounds i8, ptr %61, i64 66
  store i8 0, ptr %62, align 1, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #3
  store i64 %indvars.iv70, ptr %22, align 8, !tbaa !18
  %63 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %64 = getelementptr inbounds i8, ptr %63, i64 68
  store i8 0, ptr %64, align 1, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #3
  store i64 %indvars.iv70, ptr %23, align 8, !tbaa !18
  %65 = call noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(8) %23)
  %66 = getelementptr inbounds i8, ptr %65, i64 536
  store double 0.000000e+00, ptr %66, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #3
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %exitcond73.not = icmp eq i64 %indvars.iv.next71, 111
  br i1 %exitcond73.not, label %53, label %.preheader, !llvm.loop !28
}

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 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 = { 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}
!23 = !{!24, !24, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = distinct !{!25, !20}
!26 = !{!27, !27, i64 0}
!27 = !{!"int", !7, i64 0}
!28 = distinct !{!28, !20}


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