; LLVM IR from rdguez-mariano/fast_imas_IPOL :: libOrsa/orsa_model.ll (ZN4orsa9OrsaModelC2ERKN11libNumerics6matrixIdEEiiS5_ii)

; 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.orsa::OrsaModel" = type <{ ptr, %"class.libNumerics::matrix", %"class.libNumerics::matrix", %"class.libNumerics::matrix", %"class.libNumerics::matrix", [2 x double], i8, [7 x i8] }>
%"class.libNumerics::matrix" = type { ptr, i32, i32, ptr }

@_ZTVN4orsa9OrsaModelE = external dso_local unnamed_addr constant { [10 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN4orsa9OrsaModelC2ERKN11libNumerics6matrixIdEEiiS5_ii = external hidden unnamed_addr constant [73 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4orsa9OrsaModelC2ERKN11libNumerics6matrixIdEEiiS5_ii(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %5, i32 noundef %6) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  %19 = load ptr, ptr %8, align 8
  store ptr getelementptr inbounds inrange(-16, 64) ({ [10 x ptr] }, ptr @_ZTVN4orsa9OrsaModelE, i32 0, i32 0, i32 2), ptr %19, align 8, !tbaa !11
  %20 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 1
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = call noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24) %21)
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = call noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
  call void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %20, i32 noundef %22, i32 noundef %24)
  %25 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 2
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  %27 = invoke noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24) %26)
          to label %28 unwind label %44

28:                                               ; preds = %7
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = invoke noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %31 unwind label %44

31:                                               ; preds = %28
  invoke void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %25, i32 noundef %27, i32 noundef %30)
          to label %32 unwind label %44

32:                                               ; preds = %31
  %33 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 3
  invoke void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %33, i32 noundef 3, i32 noundef 3)
          to label %34 unwind label %48

34:                                               ; preds = %32
  %35 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 4
  invoke void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %35, i32 noundef 3, i32 noundef 3)
          to label %36 unwind label %52

36:                                               ; preds = %34
  %37 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 6
  store i8 0, ptr %37, align 8, !tbaa !13
  %38 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 1
  %39 = invoke noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24) %38)
          to label %40 unwind label %56

40:                                               ; preds = %36
  %41 = icmp eq i32 2, %39
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  br label %61

43:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 40, ptr noundef @__PRETTY_FUNCTION__._ZN4orsa9OrsaModelC2ERKN11libNumerics6matrixIdEEiiS5_ii) #6
  unreachable

44:                                               ; preds = %31, %28, %7
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %15, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %16, align 4
  br label %118

48:                                               ; preds = %32
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %15, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %16, align 4
  br label %117

52:                                               ; preds = %34
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %15, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %16, align 4
  br label %116

56:                                               ; preds = %75, %72, %64, %61, %36
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %15, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %16, align 4
  br label %115

60:                                               ; No predecessors!
  br label %61

61:                                               ; preds = %60, %42
  %62 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 1
  %63 = invoke noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %64 unwind label %56

64:                                               ; preds = %61
  %65 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 2
  %66 = invoke noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
          to label %67 unwind label %56

67:                                               ; preds = %64
  %68 = icmp eq i32 %63, %66
  br i1 %68, label %69, label %70

69:                                               ; preds = %67
  br label %72

70:                                               ; preds = %67
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 41, ptr noundef @__PRETTY_FUNCTION__._ZN4orsa9OrsaModelC2ERKN11libNumerics6matrixIdEEiiS5_ii) #6
  unreachable

71:                                               ; No predecessors!
  br label %72

72:                                               ; preds = %71, %69
  %73 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 1
  %74 = invoke noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24) %73)
          to label %75 unwind label %56

75:                                               ; preds = %72
  %76 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 2
  %77 = invoke noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24) %76)
          to label %78 unwind label %56

78:                                               ; preds = %75
  %79 = icmp eq i32 %74, %77
  br i1 %79, label %80, label %81

80:                                               ; preds = %78
  br label %83

81:                                               ; preds = %78
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 42, ptr noundef @__PRETTY_FUNCTION__._ZN4orsa9OrsaModelC2ERKN11libNumerics6matrixIdEEiiS5_ii) #6
  unreachable

82:                                               ; No predecessors!
  br label %83

83:                                               ; preds = %82, %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %84 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %85 unwind label %106

85:                                               ; preds = %83
  %86 = load i32, ptr %84, align 4, !tbaa !9
  store i32 %86, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %87 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %88 unwind label %110

88:                                               ; preds = %85
  %89 = load i32, ptr %87, align 4, !tbaa !9
  store i32 %89, ptr %18, align 4, !tbaa !9
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 1
  %92 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 3
  %93 = load i32, ptr %17, align 4, !tbaa !9
  %94 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @_ZN4orsa15NormalizePointsERKN11libNumerics6matrixIdEEPS2_S5_ii(ptr noundef nonnull align 8 dereferenceable(24) %90, ptr noundef %91, ptr noundef %92, i32 noundef %93, i32 noundef %94)
          to label %95 unwind label %110

95:                                               ; preds = %88
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 2
  %98 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 4
  %99 = load i32, ptr %17, align 4, !tbaa !9
  %100 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @_ZN4orsa15NormalizePointsERKN11libNumerics6matrixIdEEPS2_S5_ii(ptr noundef nonnull align 8 dereferenceable(24) %96, ptr noundef %97, ptr noundef %98, i32 noundef %99, i32 noundef %100)
          to label %101 unwind label %110

101:                                              ; preds = %95
  %102 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 5
  %103 = getelementptr inbounds [2 x double], ptr %102, i64 0, i64 1
  store double 0.000000e+00, ptr %103, align 8, !tbaa !17
  %104 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %19, i32 0, i32 5
  %105 = getelementptr inbounds [2 x double], ptr %104, i64 0, i64 0
  store double 0.000000e+00, ptr %105, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  ret void

106:                                              ; preds = %83
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %15, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %16, align 4
  br label %114

110:                                              ; preds = %95, %88, %85
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %15, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %114

114:                                              ; preds = %110, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %115

115:                                              ; preds = %114, %56
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  br label %116

116:                                              ; preds = %115, %52
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #7
  br label %117

117:                                              ; preds = %116, %48
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  br label %118

118:                                              ; preds = %117, %44
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  br label %119

119:                                              ; preds = %118
  %120 = load ptr, ptr %15, align 8
  %121 = load i32, ptr %16, align 4
  %122 = insertvalue { ptr, i32 } poison, ptr %120, 0
  %123 = insertvalue { ptr, i32 } %122, i32 %121, 1
  resume { ptr, i32 } %123
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

declare void @_ZN4orsa15NormalizePointsERKN11libNumerics6matrixIdEEPS2_S5_ii(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, i32 noundef, i32 noundef) #5

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3

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

attributes #0 = { 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 #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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint 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 #5 = { "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 #6 = { noreturn nounwind }
attributes #7 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !16, i64 120}
!14 = !{!"_ZTSN4orsa9OrsaModelE", !15, i64 8, !15, i64 32, !15, i64 56, !15, i64 80, !7, i64 104, !16, i64 120}
!15 = !{!"_ZTSN11libNumerics6matrixIdEE", !10, i64 8, !10, i64 12, !6, i64 16}
!16 = !{!"bool", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}


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

@_ZTVN4orsa9OrsaModelE = external dso_local unnamed_addr constant { [10 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN4orsa9OrsaModelC2ERKN11libNumerics6matrixIdEEiiS5_ii = external hidden unnamed_addr constant [73 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4orsa9OrsaModelC2ERKN11libNumerics6matrixIdEEiiS5_ii(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %5, i32 noundef %6) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i32 %2, ptr %8, align 4, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !5
  store i32 %5, ptr %10, align 4, !tbaa !5
  store i32 %6, ptr %11, align 4, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 64) (i8, ptr @_ZTVN4orsa9OrsaModelE, i64 16), ptr %0, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = tail call noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %14 = tail call noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  tail call void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %13, i32 noundef %14)
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  %16 = tail call noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %17 = tail call noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  invoke void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef %16, i32 noundef %17)
          to label %18 unwind label %27

18:                                               ; preds = %7
  %19 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %19, i32 noundef 3, i32 noundef 3)
          to label %20 unwind label %29

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %0, i64 80
  invoke void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %21, i32 noundef 3, i32 noundef 3)
          to label %22 unwind label %31

22:                                               ; preds = %20
  %23 = getelementptr inbounds i8, ptr %0, i64 120
  store i8 0, ptr %23, align 8, !tbaa !11
  %24 = tail call noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %25 = icmp eq i32 %24, 2
  br i1 %25, label %33, label %26

26:                                               ; preds = %22
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 40, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4orsa9OrsaModelC2ERKN11libNumerics6matrixIdEEiiS5_ii) #6
  unreachable

27:                                               ; preds = %7
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %55

29:                                               ; preds = %18
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %54

31:                                               ; preds = %20
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %53

33:                                               ; preds = %22
  %34 = tail call noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %35 = tail call noundef i32 @_ZNK11libNumerics6matrixIdE4nrowEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %36 = icmp eq i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 41, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4orsa9OrsaModelC2ERKN11libNumerics6matrixIdEEiiS5_ii) #6
  unreachable

38:                                               ; preds = %33
  %39 = tail call noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %40 = tail call noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %41 = icmp eq i32 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 42, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4orsa9OrsaModelC2ERKN11libNumerics6matrixIdEEiiS5_ii) #6
  unreachable

43:                                               ; preds = %38
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %47 = load i32, ptr %46, align 4, !tbaa !5
  invoke void @_ZN4orsa15NormalizePointsERKN11libNumerics6matrixIdEEPS2_S5_ii(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull %12, ptr noundef nonnull %19, i32 noundef %45, i32 noundef %47)
          to label %48 unwind label %51

48:                                               ; preds = %43
  invoke void @_ZN4orsa15NormalizePointsERKN11libNumerics6matrixIdEEPS2_S5_ii(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull %15, ptr noundef nonnull %21, i32 noundef %45, i32 noundef %47)
          to label %49 unwind label %51

49:                                               ; preds = %48
  %50 = getelementptr inbounds i8, ptr %0, i64 104
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %50, i8 0, i64 16, i1 false)
  ret void

51:                                               ; preds = %48, %43
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  br label %53

53:                                               ; preds = %51, %31
  %.pn = phi { ptr, i32 } [ %52, %51 ], [ %32, %31 ]
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  br label %54

54:                                               ; preds = %53, %29
  %.pn.pn = phi { ptr, i32 } [ %.pn, %53 ], [ %30, %29 ]
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  br label %55

55:                                               ; preds = %54, %27
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %54 ], [ %28, %27 ]
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

declare void @_ZN4orsa15NormalizePointsERKN11libNumerics6matrixIdEEPS2_S5_ii(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !15, i64 120}
!12 = !{!"_ZTSN4orsa9OrsaModelE", !13, i64 8, !13, i64 32, !13, i64 56, !13, i64 80, !7, i64 104, !15, i64 120}
!13 = !{!"_ZTSN11libNumerics6matrixIdEE", !6, i64 8, !6, i64 12, !14, i64 16}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"bool", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass