; LLVM IR from ThePhysicsGuys/Physics3D :: tests/mathTests.ll (Z22largeMatrixVectorSolvev)

; 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.P3D::LargeMatrix" = type { %"class.P3D::UnmanagedLargeMatrix" }
%"class.P3D::UnmanagedLargeMatrix" = type { ptr, i64, i64 }
%"class.P3D::LargeVector" = type { %"class.P3D::UnmanagedLargeVector" }
%"class.P3D::UnmanagedLargeVector" = type { ptr, i64 }
%class.TolerantAssertComparer = type { i32, ptr, double }
%class.TolerantAssertComparer.24 = type { i32, ptr, double }
%struct.TolerantAssertBuilder = type { i32, double }
%class.TestInterface = type <{ i64, i8, [7 x i8] }>

@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTI14AssertionError = external dso_local constant { ptr, ptr }, align 8

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, double noundef) unnamed_addr #1 align 2

; Function Attrs: uwtable
declare hidden noundef ptr @_ZTW15__testInterface() #2

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef, ptr noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9)) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z22largeMatrixVectorSolvev() #5 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::LargeMatrix", align 8
  %2 = alloca %"class.P3D::LargeVector", align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.P3D::LargeVector", align 8
  %10 = alloca %"class.P3D::LargeVector", align 8
  %11 = alloca %class.TolerantAssertComparer, align 8
  %12 = alloca %class.TolerantAssertComparer.24, align 8
  %13 = alloca %struct.TolerantAssertBuilder, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %1) #6
  call void @_ZN3P3D11LargeMatrixIdEC2Emm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 5, i64 noundef 5)
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #6
  invoke void @_ZN3P3D11LargeVectorIdEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef 5)
          to label %14 unwind label %19

14:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %30, %14
  %16 = load i32, ptr %5, align 4, !tbaa !5
  %17 = icmp slt i32 %16, 5
  br i1 %17, label %23, label %18

18:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %37

19:                                               ; preds = %0
  %20 = landingpad { ptr, i32 }
          cleanup
  %21 = extractvalue { ptr, i32 } %20, 0
  store ptr %21, ptr %3, align 8
  %22 = extractvalue { ptr, i32 } %20, 1
  store i32 %22, ptr %4, align 4
  br label %124

23:                                               ; preds = %15
  %24 = invoke noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
          to label %25 unwind label %33

25:                                               ; preds = %23
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeVectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %27)
          to label %29 unwind label %33

29:                                               ; preds = %25
  store double %24, ptr %28, align 8, !tbaa !9
  br label %30

30:                                               ; preds = %29
  %31 = load i32, ptr %5, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %5, align 4, !tbaa !5
  br label %15, !llvm.loop !11

33:                                               ; preds = %25, %23
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %3, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %123

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

38:                                               ; preds = %64, %37
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = icmp slt i32 %39, 5
  br i1 %40, label %42, label %41

41:                                               ; preds = %38
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %67

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %56, %42
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = icmp slt i32 %44, 5
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %63

47:                                               ; preds = %43
  %48 = invoke noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
          to label %49 unwind label %59

49:                                               ; preds = %47
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = load i32, ptr %8, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %51, i64 noundef %53)
          to label %55 unwind label %59

55:                                               ; preds = %49
  store double %48, ptr %54, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %55
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %8, align 4, !tbaa !5
  br label %43, !llvm.loop !13

59:                                               ; preds = %49, %47
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %3, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %123

63:                                               ; preds = %46
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %6, align 4, !tbaa !5
  br label %38, !llvm.loop !14

67:                                               ; preds = %41
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0, i64 noundef 0)
          to label %69 unwind label %88

69:                                               ; preds = %67
  store double 0.000000e+00, ptr %68, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  invoke void @_ZN3P3DmlIdEENS_11LargeVectorIT_EERKNS_20UnmanagedLargeMatrixIS2_EERKNS_20UnmanagedLargeVectorIS2_EE(ptr dead_on_unwind writable sret(%"class.P3D::LargeVector") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %70 unwind label %92

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  invoke void @_ZN3P3D11LargeVectorIdEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %71 unwind label %96

71:                                               ; preds = %70
  invoke void @_ZN3P3D16destructiveSolveINS_11LargeMatrixIdEENS_11LargeVectorIdEEEEvRT_RT0_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %72 unwind label %100

72:                                               ; preds = %71
  br label %73

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  invoke void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef 235, double noundef 1.000000e-08)
          to label %74 unwind label %104

74:                                               ; preds = %73
  invoke void @_ZNK21TolerantAssertBuilderIdEltIN3P3D11LargeVectorIdEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.24) align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %75 unwind label %104

75:                                               ; preds = %74
  invoke void @_ZNK22TolerantAssertComparerIN3P3D11LargeVectorIdEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %76 unwind label %104

76:                                               ; preds = %75
  %77 = getelementptr inbounds %class.TolerantAssertComparer, ptr %11, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !15
  %79 = load i8, ptr %78, align 1, !tbaa !18, !range !20, !noundef !21
  %80 = trunc i8 %79 to i1
  %81 = xor i1 %80, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  br i1 %81, label %82, label %115

82:                                               ; preds = %76
  %83 = call ptr @_ZTW15__testInterface()
  %84 = getelementptr inbounds %class.TestInterface, ptr %83, i32 0, i32 1
  %85 = load i8, ptr %84, align 8, !tbaa !22, !range !20, !noundef !21
  %86 = trunc i8 %85 to i1
  br i1 %86, label %87, label %108

87:                                               ; preds = %82
  br label %108

88:                                               ; preds = %67
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %3, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %4, align 4
  br label %123

92:                                               ; preds = %69
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %3, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %4, align 4
  br label %122

96:                                               ; preds = %70
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %3, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %4, align 4
  br label %121

100:                                              ; preds = %115, %110, %71
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %3, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %4, align 4
  br label %120

104:                                              ; preds = %75, %74, %73
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %3, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  br label %120

108:                                              ; preds = %87, %82
  %109 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %109, i32 noundef 235, ptr noundef @.str.4)
          to label %110 unwind label %111

110:                                              ; preds = %108
  invoke void @__cxa_throw(ptr %109, ptr @_ZTI14AssertionError, ptr null) #7
          to label %130 unwind label %100

111:                                              ; preds = %108
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %3, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %4, align 4
  call void @__cxa_free_exception(ptr %109) #6
  br label %120

115:                                              ; preds = %76
  %116 = call ptr @_ZTW15__testInterface()
  invoke void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %116)
          to label %117 unwind label %100

117:                                              ; preds = %115
  br label %118

118:                                              ; preds = %117
  br label %119

119:                                              ; preds = %118
  call void @_ZN3P3D11LargeVectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @_ZN3P3D11LargeVectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @_ZN3P3D11LargeVectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #6
  call void @_ZN3P3D11LargeMatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #6
  ret void

120:                                              ; preds = %111, %104, %100
  call void @_ZN3P3D11LargeVectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br label %121

121:                                              ; preds = %120, %96
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @_ZN3P3D11LargeVectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  br label %122

122:                                              ; preds = %121, %92
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  br label %123

123:                                              ; preds = %122, %88, %59, %33
  call void @_ZN3P3D11LargeVectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  br label %124

124:                                              ; preds = %123, %19
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #6
  call void @_ZN3P3D11LargeMatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #6
  br label %125

125:                                              ; preds = %124
  %126 = load ptr, ptr %3, align 8
  %127 = load i32, ptr %4, align 4
  %128 = insertvalue { ptr, i32 } poison, ptr %126, 0
  %129 = insertvalue { ptr, i32 } %128, i32 %127, 1
  resume { ptr, i32 } %129

130:                                              ; preds = %110
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D11LargeMatrixIdEC2Emm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D11LargeVectorIdEC2Em(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN3P3D5fRandEdd(double noundef, double noundef) #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3DmlIdEENS_11LargeVectorIT_EERKNS_20UnmanagedLargeMatrixIS2_EERKNS_20UnmanagedLargeVectorIS2_EE(ptr dead_on_unwind noalias writable sret(%"class.P3D::LargeVector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D11LargeVectorIdEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D16destructiveSolveINS_11LargeMatrixIdEENS_11LargeVectorIdEEEEvRT_RT0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK21TolerantAssertBuilderIdEltIN3P3D11LargeVectorIdEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer.24) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIN3P3D11LargeVectorIdEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D11LargeMatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #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 = { uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #6 = { nounwind }
attributes #7 = { noreturn }

!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 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!16, !17, i64 8}
!16 = !{!"_ZTS22TolerantAssertComparerIbdE", !6, i64 0, !17, i64 8, !10, i64 16}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!23, !19, i64 8}
!23 = !{!"_ZTS13TestInterface", !24, i64 0, !19, i64 8}
!24 = !{!"long", !7, i64 0}


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

%"class.P3D::LargeMatrix" = type { %"class.P3D::UnmanagedLargeMatrix" }
%"class.P3D::UnmanagedLargeMatrix" = type { ptr, i64, i64 }
%"class.P3D::LargeVector" = type { %"class.P3D::UnmanagedLargeVector" }
%"class.P3D::UnmanagedLargeVector" = type { ptr, i64 }
%class.TolerantAssertComparer = type { i32, ptr, double }
%class.TolerantAssertComparer.24 = type { i32, ptr, double }
%struct.TolerantAssertBuilder = type { i32, double }

@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTI14AssertionError = external dso_local constant { ptr, ptr }, align 8

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, double noundef) unnamed_addr #1 align 2

; Function Attrs: uwtable
declare hidden noundef ptr @_ZTW15__testInterface() local_unnamed_addr #2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef, ptr noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z22largeMatrixVectorSolvev() local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::LargeMatrix", align 8
  %2 = alloca %"class.P3D::LargeVector", align 8
  %3 = alloca %"class.P3D::LargeVector", align 8
  %4 = alloca %"class.P3D::LargeVector", align 8
  %5 = alloca %class.TolerantAssertComparer, align 8
  %6 = alloca %class.TolerantAssertComparer.24, align 8
  %7 = alloca %struct.TolerantAssertBuilder, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #6
  call void @_ZN3P3D11LargeMatrixIdEC2Emm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 5, i64 noundef 5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  invoke void @_ZN3P3D11LargeVectorIdEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef 5)
          to label %.preheader22.preheader unwind label %69

.preheader22.preheader:                           ; preds = %0
  %8 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeVectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef 0)
  store double %8, ptr %9, align 8, !tbaa !5
  %10 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeVectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef 1)
  store double %10, ptr %11, align 8, !tbaa !5
  %12 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeVectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef 2)
  store double %12, ptr %13, align 8, !tbaa !5
  %14 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeVectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef 3)
  store double %14, ptr %15, align 8, !tbaa !5
  %16 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeVectorIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef 4)
  store double %16, ptr %17, align 8, !tbaa !5
  %18 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0, i64 noundef 0)
  store double %18, ptr %19, align 8, !tbaa !5
  %20 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0, i64 noundef 1)
  store double %20, ptr %21, align 8, !tbaa !5
  %22 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0, i64 noundef 2)
  store double %22, ptr %23, align 8, !tbaa !5
  %24 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0, i64 noundef 3)
  store double %24, ptr %25, align 8, !tbaa !5
  %26 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0, i64 noundef 4)
  store double %26, ptr %27, align 8, !tbaa !5
  %28 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1, i64 noundef 0)
  store double %28, ptr %29, align 8, !tbaa !5
  %30 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1, i64 noundef 1)
  store double %30, ptr %31, align 8, !tbaa !5
  %32 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1, i64 noundef 2)
  store double %32, ptr %33, align 8, !tbaa !5
  %34 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1, i64 noundef 3)
  store double %34, ptr %35, align 8, !tbaa !5
  %36 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1, i64 noundef 4)
  store double %36, ptr %37, align 8, !tbaa !5
  %38 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 2, i64 noundef 0)
  store double %38, ptr %39, align 8, !tbaa !5
  %40 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 2, i64 noundef 1)
  store double %40, ptr %41, align 8, !tbaa !5
  %42 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 2, i64 noundef 2)
  store double %42, ptr %43, align 8, !tbaa !5
  %44 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 2, i64 noundef 3)
  store double %44, ptr %45, align 8, !tbaa !5
  %46 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 2, i64 noundef 4)
  store double %46, ptr %47, align 8, !tbaa !5
  %48 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 3, i64 noundef 0)
  store double %48, ptr %49, align 8, !tbaa !5
  %50 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 3, i64 noundef 1)
  store double %50, ptr %51, align 8, !tbaa !5
  %52 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 3, i64 noundef 2)
  store double %52, ptr %53, align 8, !tbaa !5
  %54 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 3, i64 noundef 3)
  store double %54, ptr %55, align 8, !tbaa !5
  %56 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 3, i64 noundef 4)
  store double %56, ptr %57, align 8, !tbaa !5
  %58 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 4, i64 noundef 0)
  store double %58, ptr %59, align 8, !tbaa !5
  %60 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 4, i64 noundef 1)
  store double %60, ptr %61, align 8, !tbaa !5
  %62 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 4, i64 noundef 2)
  store double %62, ptr %63, align 8, !tbaa !5
  %64 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 4, i64 noundef 3)
  store double %64, ptr %65, align 8, !tbaa !5
  %66 = call noundef double @_ZN3P3D5fRandEdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 4, i64 noundef 4)
  store double %66, ptr %67, align 8, !tbaa !5
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D20UnmanagedLargeMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0, i64 noundef 0)
  store double 0.000000e+00, ptr %68, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  invoke void @_ZN3P3DmlIdEENS_11LargeVectorIT_EERKNS_20UnmanagedLargeMatrixIS2_EERKNS_20UnmanagedLargeVectorIS2_EE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::LargeVector") align 8 %3, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %71 unwind label %83

69:                                               ; preds = %0
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %98

71:                                               ; preds = %.preheader22.preheader
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  invoke void @_ZN3P3D11LargeVectorIdEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %72 unwind label %85

72:                                               ; preds = %71
  invoke void @_ZN3P3D16destructiveSolveINS_11LargeMatrixIdEENS_11LargeVectorIdEEEEvRT_RT0_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %73 unwind label %87

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %7, i32 noundef 235, double noundef 1.000000e-08)
  invoke void @_ZNK21TolerantAssertBuilderIdEltIN3P3D11LargeVectorIdEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.24) align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %74 unwind label %89

74:                                               ; preds = %73
  invoke void @_ZNK22TolerantAssertComparerIN3P3D11LargeVectorIdEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %75 unwind label %89

75:                                               ; preds = %74
  %76 = getelementptr inbounds i8, ptr %5, i64 8
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = load i8, ptr %77, align 1, !tbaa !13, !range !15, !noundef !16
  %79 = trunc nuw i8 %78 to i1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  %80 = call ptr @_ZTW15__testInterface()
  br i1 %79, label %94, label %81

81:                                               ; preds = %75
  %82 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %82, i32 noundef 235, ptr noundef nonnull @.str.4)
          to label %91 unwind label %92

83:                                               ; preds = %.preheader22.preheader
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %97

85:                                               ; preds = %71
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %96

87:                                               ; preds = %91, %72
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %95

89:                                               ; preds = %74, %73
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %95

91:                                               ; preds = %81
  invoke void @__cxa_throw(ptr nonnull %82, ptr nonnull @_ZTI14AssertionError, ptr null) #7
          to label %99 unwind label %87

92:                                               ; preds = %81
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %82) #6
  br label %95

94:                                               ; preds = %75
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %80)
  call void @_ZN3P3D11LargeVectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @_ZN3P3D11LargeVectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @_ZN3P3D11LargeVectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  call void @_ZN3P3D11LargeMatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #6
  ret void

95:                                               ; preds = %92, %89, %87
  %.pn = phi { ptr, i32 } [ %88, %87 ], [ %93, %92 ], [ %90, %89 ]
  call void @_ZN3P3D11LargeVectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  br label %96

96:                                               ; preds = %95, %85
  %.pn.pn = phi { ptr, i32 } [ %.pn, %95 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @_ZN3P3D11LargeVectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  br label %97

97:                                               ; preds = %96, %83
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %96 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @_ZN3P3D11LargeVectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  br label %98

98:                                               ; preds = %97, %69
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %97 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  call void @_ZN3P3D11LargeMatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn.pn.pn

99:                                               ; preds = %91
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D11LargeMatrixIdEC2Emm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D11LargeVectorIdEC2Em(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN3P3D5fRandEdd(double noundef, double noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3DmlIdEENS_11LargeVectorIT_EERKNS_20UnmanagedLargeMatrixIS2_EERKNS_20UnmanagedLargeVectorIS2_EE(ptr dead_on_unwind noalias writable sret(%"class.P3D::LargeVector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D11LargeVectorIdEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D16destructiveSolveINS_11LargeMatrixIdEENS_11LargeVectorIdEEEEvRT_RT0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK21TolerantAssertBuilderIdEltIN3P3D11LargeVectorIdEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer.24) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIN3P3D11LargeVectorIdEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D11LargeMatrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #6 = { nounwind }
attributes #7 = { noreturn }

!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, !12, i64 8}
!10 = !{!"_ZTS22TolerantAssertComparerIbdE", !11, i64 0, !12, i64 8, !6, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}


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