; LLVM IR from HANDS-FREE/OpenRE :: 4_Thirdparty/Matrix/test (helper)

; 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.matrix::Vector3" = type { %"class.matrix::Vector.base", [4 x i8] }
%"class.matrix::Vector.base" = type { %"class.matrix::Matrix.base" }
%"class.matrix::Matrix.base" = type <{ ptr, [3 x [1 x float]] }>
%"class.matrix::Matrix.0" = type <{ ptr, [1 x [3 x float]], [4 x i8] }>

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [87 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.matrix::Vector3", align 8
  %3 = alloca %"class.matrix::Vector3", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.matrix::Matrix.0", align 8
  %7 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %8 = call noundef double @_ZN6matrix7wrap_piIdEET_S1_(double noundef 4.000000e+00)
  %9 = fsub double %8, 0xC00243F6A8885A30
  %10 = call double @llvm.fabs.f64(double %9)
  %11 = fcmp olt double %10, 1.000000e-05
  br i1 %11, label %15, label %12

12:                                               ; preds = %0
  %13 = load ptr, ptr @stderr, align 8, !tbaa !5
  %14 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 11) #7
  store i32 -1, ptr %1, align 4
  br label %80

15:                                               ; preds = %0
  %16 = call noundef double @_ZN6matrix7wrap_piIdEET_S1_(double noundef -4.000000e+00)
  %17 = fsub double %16, 0x400243F6A8885A30
  %18 = call double @llvm.fabs.f64(double %17)
  %19 = fcmp olt double %18, 1.000000e-05
  br i1 %19, label %23, label %20

20:                                               ; preds = %15
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 12) #7
  store i32 -1, ptr %1, align 4
  br label %80

23:                                               ; preds = %15
  %24 = call noundef double @_ZN6matrix7wrap_piIdEET_S1_(double noundef 3.000000e+00)
  %25 = fsub double %24, 3.000000e+00
  %26 = call double @llvm.fabs.f64(double %25)
  %27 = fcmp olt double %26, 1.000000e-03
  br i1 %27, label %31, label %28

28:                                               ; preds = %23
  %29 = load ptr, ptr @stderr, align 8, !tbaa !5
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 13) #7
  store i32 -1, ptr %1, align 4
  br label %80

31:                                               ; preds = %23
  %32 = call noundef float @_ZN6matrix7wrap_piIfEET_S1_(float noundef 0x7FF8000000000000)
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #7
  call void @_ZN6matrix7Vector3IfEC2Efff(ptr noundef nonnull align 8 dereferenceable(20) %2, float noundef 1.000000e+00, float noundef 2.000000e+00, float noundef 3.000000e+00)
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #7
  invoke void @_ZN6matrix7Vector3IfEC2Efff(ptr noundef nonnull align 8 dereferenceable(20) %3, float noundef 4.000000e+00, float noundef 5.000000e+00, float noundef 6.000000e+00)
          to label %33 unwind label %41

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #7
  invoke void @_ZNK6matrix6MatrixIfLm3ELm1EE1TEv(ptr dead_on_unwind writable sret(%"class.matrix::Matrix.0") align 8 %6, ptr noundef nonnull align 8 dereferenceable(20) %2)
          to label %34 unwind label %45

34:                                               ; preds = %33
  invoke void @_ZNK6matrix6MatrixIfLm1ELm3EE5printEv(ptr noundef nonnull align 8 dereferenceable(20) %6)
          to label %35 unwind label %49

35:                                               ; preds = %34
  call void @_ZN6matrix6MatrixIfLm1ELm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  %36 = invoke noundef zeroext i1 @_ZN6matrix7isEqualIfLm3ELm1EEEbRKNS_6MatrixIT_XT0_EXT1_EEES5_S2_(ptr noundef nonnull align 8 dereferenceable(20) %2, ptr noundef nonnull align 8 dereferenceable(20) %3, float noundef 0x3F1A36E2E0000000)
          to label %37 unwind label %54

37:                                               ; preds = %35
  br i1 %36, label %38, label %58

38:                                               ; preds = %37
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 19) #7
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %77

41:                                               ; preds = %31
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %4, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %5, align 4
  br label %79

45:                                               ; preds = %33
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %4, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %5, align 4
  br label %53

49:                                               ; preds = %34
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %4, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %5, align 4
  call void @_ZN6matrix6MatrixIfLm1ELm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %6) #7
  br label %53

53:                                               ; preds = %49, %45
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  br label %78

54:                                               ; preds = %70, %64, %58, %35
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %4, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %5, align 4
  br label %78

58:                                               ; preds = %37
  %59 = invoke noundef zeroext i1 @_ZN6matrix7isEqualIfLm3ELm1EEEbRKNS_6MatrixIT_XT0_EXT1_EEES5_S2_(ptr noundef nonnull align 8 dereferenceable(20) %2, ptr noundef nonnull align 8 dereferenceable(20) %2, float noundef 0x3F1A36E2E0000000)
          to label %60 unwind label %54

60:                                               ; preds = %58
  br i1 %59, label %64, label %61

61:                                               ; preds = %60
  %62 = load ptr, ptr @stderr, align 8, !tbaa !5
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 20) #7
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %77

64:                                               ; preds = %60
  %65 = invoke noundef zeroext i1 @_ZN6matrix8isEqualFIfEEbT_S1_S1_(float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F1A36E2E0000000)
          to label %66 unwind label %54

66:                                               ; preds = %64
  br i1 %65, label %70, label %67

67:                                               ; preds = %66
  %68 = load ptr, ptr @stderr, align 8, !tbaa !5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 22) #7
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %77

70:                                               ; preds = %66
  %71 = invoke noundef zeroext i1 @_ZN6matrix8isEqualFIfEEbT_S1_S1_(float noundef 1.000000e+00, float noundef 2.000000e+00, float noundef 0x3F1A36E2E0000000)
          to label %72 unwind label %54

72:                                               ; preds = %70
  br i1 %71, label %73, label %76

73:                                               ; preds = %72
  %74 = load ptr, ptr @stderr, align 8, !tbaa !5
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 23) #7
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %77

76:                                               ; preds = %72
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %77

77:                                               ; preds = %76, %73, %67, %61, %38
  call void @_ZN6matrix6MatrixIfLm3ELm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
  call void @_ZN6matrix6MatrixIfLm3ELm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #7
  br label %80

78:                                               ; preds = %54, %53
  call void @_ZN6matrix6MatrixIfLm3ELm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %3) #7
  br label %79

79:                                               ; preds = %78, %41
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
  call void @_ZN6matrix6MatrixIfLm3ELm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #7
  br label %82

80:                                               ; preds = %77, %28, %20, %12
  %81 = load i32, ptr %1, align 4
  ret i32 %81

82:                                               ; preds = %79
  %83 = load ptr, ptr %4, align 8
  %84 = load i32, ptr %5, align 4
  %85 = insertvalue { ptr, i32 } poison, ptr %83, 0
  %86 = insertvalue { ptr, i32 } %85, i32 %84, 1
  resume { ptr, i32 } %86
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN6matrix7wrap_piIdEET_S1_(double noundef) #1

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6matrix7wrap_piIfEET_S1_(float noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6matrix7Vector3IfEC2Efff(ptr noundef nonnull align 8 dereferenceable(20), float noundef, float noundef, float noundef) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK6matrix6MatrixIfLm3ELm1EE1TEv(ptr dead_on_unwind noalias writable sret(%"class.matrix::Matrix.0") align 8, ptr noundef nonnull align 8 dereferenceable(20)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6matrix6MatrixIfLm1ELm3EE5printEv(ptr noundef nonnull align 8 dereferenceable(20)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6matrix6MatrixIfLm1ELm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6matrix7isEqualIfLm3ELm1EEEbRKNS_6MatrixIT_XT0_EXT1_EEES5_S2_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(20), float noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6matrix8isEqualFIfEEbT_S1_S1_(float noundef, float noundef, float noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6matrix6MatrixIfLm3ELm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #6 align 2

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


; 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.matrix::Vector3" = type { %"class.matrix::Vector.base", [4 x i8] }
%"class.matrix::Vector.base" = type { %"class.matrix::Matrix.base" }
%"class.matrix::Matrix.base" = type <{ ptr, [3 x [1 x float]] }>
%"class.matrix::Matrix.0" = type <{ ptr, [1 x [3 x float]], [4 x i8] }>

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [87 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 -1, 1) i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.matrix::Vector3", align 8
  %2 = alloca %"class.matrix::Vector3", align 8
  %3 = alloca %"class.matrix::Matrix.0", align 8
  %4 = tail call noundef double @_ZN6matrix7wrap_piIdEET_S1_(double noundef 4.000000e+00)
  %5 = fadd double %4, 0x400243F6A8885A30
  %6 = tail call double @llvm.fabs.f64(double %5)
  %7 = fcmp olt double %6, 1.000000e-05
  br i1 %7, label %11, label %8

8:                                                ; preds = %0
  %9 = load ptr, ptr @stderr, align 8, !tbaa !5
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 11) #7
  br label %57

11:                                               ; preds = %0
  %12 = tail call noundef double @_ZN6matrix7wrap_piIdEET_S1_(double noundef -4.000000e+00)
  %13 = fadd double %12, 0xC00243F6A8885A30
  %14 = tail call double @llvm.fabs.f64(double %13)
  %15 = fcmp olt double %14, 1.000000e-05
  br i1 %15, label %19, label %16

16:                                               ; preds = %11
  %17 = load ptr, ptr @stderr, align 8, !tbaa !5
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 12) #7
  br label %57

19:                                               ; preds = %11
  %20 = tail call noundef double @_ZN6matrix7wrap_piIdEET_S1_(double noundef 3.000000e+00)
  %21 = fadd double %20, -3.000000e+00
  %22 = tail call double @llvm.fabs.f64(double %21)
  %23 = fcmp olt double %22, 1.000000e-03
  br i1 %23, label %27, label %24

24:                                               ; preds = %19
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 13) #7
  br label %57

27:                                               ; preds = %19
  %28 = tail call noundef float @_ZN6matrix7wrap_piIfEET_S1_(float noundef 0x7FF8000000000000)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #8
  call void @_ZN6matrix7Vector3IfEC2Efff(ptr noundef nonnull align 8 dereferenceable(20) %1, float noundef 1.000000e+00, float noundef 2.000000e+00, float noundef 3.000000e+00)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #8
  invoke void @_ZN6matrix7Vector3IfEC2Efff(ptr noundef nonnull align 8 dereferenceable(20) %2, float noundef 4.000000e+00, float noundef 5.000000e+00, float noundef 6.000000e+00)
          to label %29 unwind label %34

29:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  invoke void @_ZNK6matrix6MatrixIfLm3ELm1EE1TEv(ptr dead_on_unwind nonnull writable sret(%"class.matrix::Matrix.0") align 8 %3, ptr noundef nonnull align 8 dereferenceable(20) %1)
          to label %30 unwind label %36

30:                                               ; preds = %29
  invoke void @_ZNK6matrix6MatrixIfLm1ELm3EE5printEv(ptr noundef nonnull align 8 dereferenceable(20) %3)
          to label %31 unwind label %38

31:                                               ; preds = %30
  call void @_ZN6matrix6MatrixIfLm1ELm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  %32 = invoke noundef zeroext i1 @_ZN6matrix7isEqualIfLm3ELm1EEEbRKNS_6MatrixIT_XT0_EXT1_EEES5_S2_(ptr noundef nonnull align 8 dereferenceable(20) %1, ptr noundef nonnull align 8 dereferenceable(20) %2, float noundef 0x3F1A36E2E0000000)
          to label %33 unwind label %41

33:                                               ; preds = %31
  br i1 %32, label %.sink.split, label %43

34:                                               ; preds = %27
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %56

36:                                               ; preds = %29
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %40

38:                                               ; preds = %30
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6matrix6MatrixIfLm1ELm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %3) #8
  br label %40

40:                                               ; preds = %38, %36
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  br label %55

41:                                               ; preds = %49, %46, %43, %31
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %55

43:                                               ; preds = %33
  %44 = invoke noundef zeroext i1 @_ZN6matrix7isEqualIfLm3ELm1EEEbRKNS_6MatrixIT_XT0_EXT1_EEES5_S2_(ptr noundef nonnull align 8 dereferenceable(20) %1, ptr noundef nonnull align 8 dereferenceable(20) %1, float noundef 0x3F1A36E2E0000000)
          to label %45 unwind label %41

45:                                               ; preds = %43
  br i1 %44, label %46, label %.sink.split

46:                                               ; preds = %45
  %47 = invoke noundef zeroext i1 @_ZN6matrix8isEqualFIfEEbT_S1_S1_(float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F1A36E2E0000000)
          to label %48 unwind label %41

48:                                               ; preds = %46
  br i1 %47, label %49, label %.sink.split

49:                                               ; preds = %48
  %50 = invoke noundef zeroext i1 @_ZN6matrix8isEqualFIfEEbT_S1_S1_(float noundef 1.000000e+00, float noundef 2.000000e+00, float noundef 0x3F1A36E2E0000000)
          to label %51 unwind label %41

51:                                               ; preds = %49
  br i1 %50, label %.sink.split, label %54

.sink.split:                                      ; preds = %51, %48, %45, %33
  %.sink11 = phi i32 [ 19, %33 ], [ 20, %45 ], [ 22, %48 ], [ 23, %51 ]
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef %.sink11) #7
  br label %54

54:                                               ; preds = %.sink.split, %51
  %.05 = phi i32 [ 0, %51 ], [ -1, %.sink.split ]
  call void @_ZN6matrix6MatrixIfLm3ELm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  call void @_ZN6matrix6MatrixIfLm3ELm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %1) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  br label %57

55:                                               ; preds = %41, %40
  %.pn8 = phi { ptr, i32 } [ %42, %41 ], [ %.pn, %40 ]
  call void @_ZN6matrix6MatrixIfLm3ELm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %2) #8
  br label %56

56:                                               ; preds = %55, %34
  %.pn8.pn = phi { ptr, i32 } [ %.pn8, %55 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  call void @_ZN6matrix6MatrixIfLm3ELm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %1) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn8.pn

57:                                               ; preds = %54, %24, %16, %8
  %.16 = phi i32 [ %.05, %54 ], [ -1, %24 ], [ -1, %16 ], [ -1, %8 ]
  ret i32 %.16
}

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6matrix7wrap_piIfEET_S1_(float noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6matrix7Vector3IfEC2Efff(ptr noundef nonnull align 8 dereferenceable(20), float noundef, float noundef, float noundef) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK6matrix6MatrixIfLm3ELm1EE1TEv(ptr dead_on_unwind noalias writable sret(%"class.matrix::Matrix.0") align 8, ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6matrix6MatrixIfLm1ELm3EE5printEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6matrix6MatrixIfLm1ELm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6matrix7isEqualIfLm3ELm1EEEbRKNS_6MatrixIT_XT0_EXT1_EEES5_S2_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(20), float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6matrix8isEqualFIfEEbT_S1_S1_(float noundef, float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6matrix6MatrixIfLm3ELm1EED2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #6 align 2

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


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