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

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

51:                                               ; 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
  %52 = load i32, ptr %3, align 4, !tbaa !18
  %53 = sext i32 %52 to i64
  store i64 %53, 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)
  %54 = 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 %55 unwind label %83

55:                                               ; preds = %51
  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
  %56 = load i32, ptr %3, align 4, !tbaa !18
  %57 = sext i32 %56 to i64
  store i64 %57, ptr %12, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %58 = load i32, ptr %4, align 4, !tbaa !18
  %59 = sext i32 %58 to i64
  store i64 %59, 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)
  %60 = 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 %61 unwind label %87

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

67:                                               ; preds = %61
  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
  %68 = load i32, ptr %3, align 4, !tbaa !18
  %69 = sext i32 %68 to i64
  store i64 %69, ptr %18, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %70 = load i32, ptr %4, align 4, !tbaa !18
  %71 = sext i32 %70 to i64
  store i64 %71, 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)
  %72 = 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 %73 unwind label %95

73:                                               ; preds = %67
  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 %74

74:                                               ; preds = %107, %73
  %75 = load i32, ptr %20, align 4, !tbaa !18
  %76 = load i32, ptr %3, align 4, !tbaa !18
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %99, label %78

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

79:                                               ; preds = %0
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %7, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, 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 %290

83:                                               ; preds = %51
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %7, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, 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 %290

87:                                               ; preds = %55
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %7, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, 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 %290

91:                                               ; preds = %61
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %7, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, 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 %290

95:                                               ; preds = %67
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %7, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, 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 %290

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

107:                                              ; preds = %99
  %108 = load i32, ptr %20, align 4, !tbaa !18
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %20, align 4, !tbaa !18
  br label %74, !llvm.loop !21

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

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

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

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

124:                                              ; preds = %116
  %125 = load i32, ptr %22, align 4, !tbaa !18
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %22, align 4, !tbaa !18
  br label %111, !llvm.loop !23

127:                                              ; preds = %115
  store i8 -16, ptr @BConditions, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  store i32 10, ptr %24, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %128 = load i32, ptr %3, align 4, !tbaa !18
  %129 = sdiv i32 %128, 2
  %130 = load i32, ptr %24, align 4, !tbaa !18
  %131 = add nsw i32 %130, 1
  %132 = sub nsw i32 %129, %131
  store i32 %132, ptr %25, align 4, !tbaa !18
  br label %133

133:                                              ; preds = %201, %127
  %134 = load i32, ptr %25, align 4, !tbaa !18
  %135 = load i32, ptr %3, align 4, !tbaa !18
  %136 = sdiv i32 %135, 2
  %137 = load i32, ptr %24, align 4, !tbaa !18
  %138 = add nsw i32 %137, 1
  %139 = add nsw i32 %136, %138
  %140 = icmp sle i32 %134, %139
  br i1 %140, label %142, label %141

141:                                              ; preds = %133
  store i32 8, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  br label %204

142:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %143 = load i32, ptr %4, align 4, !tbaa !18
  %144 = sdiv i32 %143, 3
  %145 = load i32, ptr %24, align 4, !tbaa !18
  %146 = add nsw i32 %145, 1
  %147 = sub nsw i32 %144, %146
  store i32 %147, ptr %27, align 4, !tbaa !18
  br label %148

148:                                              ; preds = %197, %142
  %149 = load i32, ptr %27, align 4, !tbaa !18
  %150 = load i32, ptr %4, align 4, !tbaa !18
  %151 = sdiv i32 %150, 3
  %152 = load i32, ptr %24, align 4, !tbaa !18
  %153 = add nsw i32 %152, 1
  %154 = add nsw i32 %151, %153
  %155 = icmp sle i32 %149, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %148
  store i32 11, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  br label %200

157:                                              ; preds = %148
  %158 = load i32, ptr %25, align 4, !tbaa !18
  %159 = load i32, ptr %3, align 4, !tbaa !18
  %160 = sdiv i32 %159, 2
  %161 = sub nsw i32 %158, %160
  %162 = load i32, ptr %25, align 4, !tbaa !18
  %163 = load i32, ptr %3, align 4, !tbaa !18
  %164 = sdiv i32 %163, 2
  %165 = sub nsw i32 %162, %164
  %166 = mul nsw i32 %161, %165
  %167 = load i32, ptr %27, align 4, !tbaa !18
  %168 = load i32, ptr %4, align 4, !tbaa !18
  %169 = sdiv i32 %168, 3
  %170 = sub nsw i32 %167, %169
  %171 = load i32, ptr %27, align 4, !tbaa !18
  %172 = load i32, ptr %4, align 4, !tbaa !18
  %173 = sdiv i32 %172, 3
  %174 = sub nsw i32 %171, %173
  %175 = mul nsw i32 %170, %174
  %176 = add nsw i32 %166, %175
  %177 = load i32, ptr %24, align 4, !tbaa !18
  %178 = add nsw i32 %177, 1
  %179 = load i32, ptr %24, align 4, !tbaa !18
  %180 = add nsw i32 %179, 1
  %181 = mul nsw i32 %178, %180
  %182 = icmp sle i32 %176, %181
  br i1 %182, label %183, label %196

183:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  %184 = load i32, ptr %25, align 4, !tbaa !18
  %185 = sext i32 %184 to i64
  store i64 %185, ptr %28, align 8, !tbaa !20
  %186 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %28)
  %187 = load i32, ptr %27, align 4, !tbaa !18
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds i8, ptr %186, i64 %188
  store i8 1, ptr %189, align 1, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  %190 = load i32, ptr %25, align 4, !tbaa !18
  %191 = sext i32 %190 to i64
  store i64 %191, ptr %29, align 8, !tbaa !20
  %192 = call noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(8) %29)
  %193 = load i32, ptr %27, align 4, !tbaa !18
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds double, ptr %192, i64 %194
  store double 0.000000e+00, ptr %195, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  br label %196

196:                                              ; preds = %183, %157
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %27, align 4, !tbaa !18
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %27, align 4, !tbaa !18
  br label %148, !llvm.loop !27

200:                                              ; preds = %156
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %25, align 4, !tbaa !18
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %25, align 4, !tbaa !18
  br label %133, !llvm.loop !28

204:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  %205 = load i32, ptr %3, align 4, !tbaa !18
  %206 = sdiv i32 %205, 2
  %207 = load i32, ptr %24, align 4, !tbaa !18
  %208 = sub nsw i32 %206, %207
  store i32 %208, ptr %30, align 4, !tbaa !18
  br label %209

209:                                              ; preds = %272, %204
  %210 = load i32, ptr %30, align 4, !tbaa !18
  %211 = load i32, ptr %3, align 4, !tbaa !18
  %212 = sdiv i32 %211, 2
  %213 = load i32, ptr %24, align 4, !tbaa !18
  %214 = add nsw i32 %212, %213
  %215 = icmp sle i32 %210, %214
  br i1 %215, label %217, label %216

216:                                              ; preds = %209
  store i32 14, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  br label %275

217:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  %218 = load i32, ptr %4, align 4, !tbaa !18
  %219 = sdiv i32 %218, 3
  %220 = load i32, ptr %24, align 4, !tbaa !18
  %221 = sub nsw i32 %219, %220
  store i32 %221, ptr %31, align 4, !tbaa !18
  br label %222

222:                                              ; preds = %268, %217
  %223 = load i32, ptr %31, align 4, !tbaa !18
  %224 = load i32, ptr %4, align 4, !tbaa !18
  %225 = sdiv i32 %224, 3
  %226 = load i32, ptr %24, align 4, !tbaa !18
  %227 = add nsw i32 %225, %226
  %228 = icmp sle i32 %223, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %222
  store i32 17, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  br label %271

230:                                              ; preds = %222
  %231 = load i32, ptr %30, align 4, !tbaa !18
  %232 = load i32, ptr %3, align 4, !tbaa !18
  %233 = sdiv i32 %232, 2
  %234 = sub nsw i32 %231, %233
  %235 = load i32, ptr %30, align 4, !tbaa !18
  %236 = load i32, ptr %3, align 4, !tbaa !18
  %237 = sdiv i32 %236, 2
  %238 = sub nsw i32 %235, %237
  %239 = mul nsw i32 %234, %238
  %240 = load i32, ptr %31, align 4, !tbaa !18
  %241 = load i32, ptr %4, align 4, !tbaa !18
  %242 = sdiv i32 %241, 3
  %243 = sub nsw i32 %240, %242
  %244 = load i32, ptr %31, align 4, !tbaa !18
  %245 = load i32, ptr %4, align 4, !tbaa !18
  %246 = sdiv i32 %245, 3
  %247 = sub nsw i32 %244, %246
  %248 = mul nsw i32 %243, %247
  %249 = add nsw i32 %239, %248
  %250 = load i32, ptr %24, align 4, !tbaa !18
  %251 = load i32, ptr %24, align 4, !tbaa !18
  %252 = mul nsw i32 %250, %251
  %253 = icmp sle i32 %249, %252
  br i1 %253, label %254, label %267

254:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  %255 = load i32, ptr %30, align 4, !tbaa !18
  %256 = sext i32 %255 to i64
  store i64 %256, ptr %32, align 8, !tbaa !20
  %257 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %32)
  %258 = load i32, ptr %31, align 4, !tbaa !18
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds i8, ptr %257, i64 %259
  store i8 1, ptr %260, 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
  %261 = load i32, ptr %30, align 4, !tbaa !18
  %262 = sext i32 %261 to i64
  store i64 %262, ptr %33, align 8, !tbaa !20
  %263 = call noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %264 = load i32, ptr %31, align 4, !tbaa !18
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds double, ptr %263, i64 %265
  store double 5.000000e-01, ptr %266, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  br label %267

267:                                              ; preds = %254, %230
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %31, align 4, !tbaa !18
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %31, align 4, !tbaa !18
  br label %222, !llvm.loop !29

271:                                              ; preds = %229
  br label %272

272:                                              ; preds = %271
  %273 = load i32, ptr %30, align 4, !tbaa !18
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %30, align 4, !tbaa !18
  br label %209, !llvm.loop !30

275:                                              ; preds = %216
  store i32 0, ptr @sPosX, align 4, !tbaa !18
  %276 = load i32, ptr %3, align 4, !tbaa !18
  %277 = sdiv i32 %276, 2
  store i32 %277, ptr @sPosY, align 4, !tbaa !18
  store i32 0, ptr @sRangeX, align 4, !tbaa !18
  %278 = load i32, ptr %3, align 4, !tbaa !18
  %279 = sdiv i32 %278, 2
  store i32 %279, 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 %34) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  %280 = load i32, ptr %3, align 4, !tbaa !18
  %281 = sext i32 %280 to i64
  store i64 %281, ptr %35, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #3
  %282 = load i32, ptr %4, align 4, !tbaa !18
  %283 = sext i32 %282 to i64
  store i64 %283, ptr %36, align 8, !tbaa !20
  call void @_ZN3cda4math10containers6MatrixIdE4zeroERKmS5_(ptr dead_on_unwind writable sret(%"class.cda::math::containers::Matrix") align 8 %34, ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36)
  %284 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) @sinu, ptr noundef nonnull align 8 dereferenceable(40) %34)
          to label %285 unwind label %286

285:                                              ; preds = %275
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %34) #3
  store i8 64, ptr @_ZN3cda8graphics8ColorMap8colormapE, align 1, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  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

286:                                              ; preds = %275
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %7, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %8, align 4
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  br label %290

290:                                              ; preds = %286, %95, %91, %87, %83, %79
  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 %291

291:                                              ; preds = %290
  %292 = load ptr, ptr %7, align 8
  %293 = load i32, ptr %8, align 4
  %294 = insertvalue { ptr, i32 } poison, ptr %292, 0
  %295 = insertvalue { ptr, i32 } %294, i32 %293, 1
  resume { ptr, i32 } %295
}

; 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}
!29 = distinct !{!29, !22}
!30 = distinct !{!30, !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 @_Z8cylinderv() 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 %"class.cda::math::containers::Matrix", align 8
  %21 = alloca i64, align 8
  %22 = 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) #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)
  %23 = 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)
  %24 = 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)
  %25 = 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)
  %26 = 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)
  %27 = 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 %28

28:                                               ; preds = %0, %28
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %28 ]
  %29 = trunc nuw nsw i64 %indvars.iv to i32
  %30 = uitofp nneg i32 %29 to double
  %31 = fmul double %30, 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
  %32 = 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 %31, ptr %32, 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 %.preheader85, label %28, !llvm.loop !19

33:                                               ; preds = %.preheader85
  store i8 -16, ptr @BConditions, align 1, !tbaa !21
  br label %.preheader84

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

.preheader84:                                     ; preds = %33, %40
  %indvars.iv101 = phi i64 [ 89, %33 ], [ %indvars.iv.next102, %40 ]
  %38 = add nsw i64 %indvars.iv101, -100
  %39 = mul nsw i64 %38, %38
  br label %41

40:                                               ; preds = %51
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %exitcond104.not = icmp eq i64 %indvars.iv.next102, 112
  br i1 %exitcond104.not, label %.preheader, label %.preheader84, !llvm.loop !23

41:                                               ; preds = %.preheader84, %51
  %indvars.iv97 = phi i64 [ 56, %.preheader84 ], [ %indvars.iv.next98, %51 ]
  %42 = add nsw i64 %indvars.iv97, -67
  %43 = mul nsw i64 %42, %42
  %44 = add nuw nsw i64 %43, %39
  %45 = icmp ult i64 %44, 122
  br i1 %45, label %46, label %51

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #3
  store i64 %indvars.iv101, ptr %16, align 8, !tbaa !18
  %47 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %48 = getelementptr inbounds i8, ptr %47, i64 %indvars.iv97
  store i8 1, ptr %48, align 1, !tbaa !24
  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.iv101, ptr %17, align 8, !tbaa !18
  %49 = call noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %50 = getelementptr inbounds double, ptr %49, i64 %indvars.iv97
  store double 0.000000e+00, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #3
  br label %51

51:                                               ; preds = %41, %46
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %exitcond100.not = icmp eq i64 %indvars.iv.next98, 79
  br i1 %exitcond100.not, label %40, label %41, !llvm.loop !26

.preheader:                                       ; preds = %40, %56
  %indvars.iv109 = phi i64 [ %indvars.iv.next110, %56 ], [ 90, %40 ]
  %52 = add nsw i64 %indvars.iv109, -100
  %53 = mul nsw i64 %52, %52
  br label %57

54:                                               ; preds = %56
  store i32 0, ptr @sPosX, align 4, !tbaa !27
  store i32 100, ptr @sPosY, align 4, !tbaa !27
  store i32 0, ptr @sRangeX, align 4, !tbaa !27
  store i32 100, ptr @sRangeY, align 4, !tbaa !27
  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 %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #3
  store i64 201, ptr %21, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #3
  store i64 201, ptr %22, align 8, !tbaa !18
  call void @_ZN3cda4math10containers6MatrixIdE4zeroERKmS5_(ptr dead_on_unwind nonnull writable sret(%"class.cda::math::containers::Matrix") align 8 %20, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %55 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3cda4math10containers6MatrixIdEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) @sinu, ptr noundef nonnull align 8 dereferenceable(40) %20)
  call void @_ZN3cda4math10containers6MatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %20) #3
  store i8 64, ptr @_ZN3cda8graphics8ColorMap8colormapE, align 1, !tbaa !21
  ret void

56:                                               ; preds = %67
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %exitcond112.not = icmp eq i64 %indvars.iv.next110, 111
  br i1 %exitcond112.not, label %54, label %.preheader, !llvm.loop !29

57:                                               ; preds = %.preheader, %67
  %indvars.iv105 = phi i64 [ 57, %.preheader ], [ %indvars.iv.next106, %67 ]
  %58 = add nsw i64 %indvars.iv105, -67
  %59 = mul nsw i64 %58, %58
  %60 = add nuw nsw i64 %59, %53
  %61 = icmp ult i64 %60, 101
  br i1 %61, label %62, label %67

62:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #3
  store i64 %indvars.iv109, ptr %18, align 8, !tbaa !18
  %63 = call noundef ptr @_ZN3cda4math10containers6MatrixIbEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @fixedPoints, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %64 = getelementptr inbounds i8, ptr %63, i64 %indvars.iv105
  store i8 1, ptr %64, align 1, !tbaa !24
  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.iv109, ptr %19, align 8, !tbaa !18
  %65 = call noundef ptr @_ZN3cda4math10containers6MatrixIdEixERKm(ptr noundef nonnull align 8 dereferenceable(40) @cI, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %66 = getelementptr inbounds double, ptr %65, i64 %indvars.iv105
  store double 5.000000e-01, ptr %66, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #3
  br label %67

67:                                               ; preds = %57, %62
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond108.not = icmp eq i64 %indvars.iv.next106, 78
  br i1 %exitcond108.not, label %56, label %57, !llvm.loop !30
}

; 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 = distinct !{!23, !20}
!24 = !{!25, !25, i64 0}
!25 = !{!"bool", !7, i64 0}
!26 = distinct !{!26, !20}
!27 = !{!28, !28, i64 0}
!28 = !{!"int", !7, i64 0}
!29 = distinct !{!29, !20}
!30 = distinct !{!30, !20}


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