; LLVM IR from ThePhysicsGuys/Physics3D :: tests/rotationTests.ll (Z43rotationImplementationIdenticalFaceMatricesv)

; 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::MatrixRotationTemplate" = type { %"class.P3D::Matrix" }
%"class.P3D::Matrix" = type { [9 x double] }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%class.TolerantAssertComparer.7 = type { i32, ptr, double }
%class.TolerantAssertComparer = type { i32, ptr, double }
%struct.TolerantAssertBuilder = type { i32, double }
%"class.P3D::QuaternionRotationTemplate" = type { %"struct.P3D::Quaternion" }
%"struct.P3D::Quaternion" = type { double, %union.anon.8 }
%union.anon.8 = type { %struct.anon.9 }
%struct.anon.9 = type { double, double, double }
%class.TestInterface = type <{ i64, i8, [7 x i8] }>

@.str.3 = 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: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #1 align 2

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D22MatrixRotationTemplateIdE5faceXENS_6VectorIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::MatrixRotationTemplate") align 8, ptr noundef byval(%"struct.P3D::Vector") align 8) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D22MatrixRotationTemplateIdE5faceYENS_6VectorIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::MatrixRotationTemplate") align 8, ptr noundef byval(%"struct.P3D::Vector") align 8) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D22MatrixRotationTemplateIdE5faceZENS_6VectorIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::MatrixRotationTemplate") align 8, ptr noundef byval(%"struct.P3D::Vector") align 8) #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_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(72)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3P3D22MatrixRotationTemplateIdE16asRotationMatrixEv(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(72)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D26QuaternionRotationTemplateIdE16asRotationMatrixEv(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z43rotationImplementationIdenticalFaceMatricesv() #6 personality ptr @__gxx_personality_v0 {
  %1 = alloca double, align 8
  %2 = alloca i32, align 4
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca %"struct.P3D::Vector", align 8
  %6 = alloca %class.TolerantAssertComparer, align 8
  %7 = alloca %class.TolerantAssertComparer.7, align 8
  %8 = alloca %struct.TolerantAssertBuilder, align 8
  %9 = alloca %"class.P3D::Matrix", align 8
  %10 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %11 = alloca %"struct.P3D::Vector", align 8
  %12 = alloca %"class.P3D::Matrix", align 8
  %13 = alloca %"class.P3D::QuaternionRotationTemplate", align 8
  %14 = alloca %"struct.P3D::Vector", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %class.TolerantAssertComparer, align 8
  %18 = alloca %class.TolerantAssertComparer.7, align 8
  %19 = alloca %struct.TolerantAssertBuilder, align 8
  %20 = alloca %"class.P3D::Matrix", align 8
  %21 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %22 = alloca %"struct.P3D::Vector", align 8
  %23 = alloca %"class.P3D::Matrix", align 8
  %24 = alloca %"class.P3D::QuaternionRotationTemplate", align 8
  %25 = alloca %"struct.P3D::Vector", align 8
  %26 = alloca %class.TolerantAssertComparer, align 8
  %27 = alloca %class.TolerantAssertComparer.7, align 8
  %28 = alloca %struct.TolerantAssertBuilder, align 8
  %29 = alloca %"class.P3D::Matrix", align 8
  %30 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %31 = alloca %"struct.P3D::Vector", align 8
  %32 = alloca %"class.P3D::Matrix", align 8
  %33 = alloca %"class.P3D::QuaternionRotationTemplate", align 8
  %34 = alloca %"struct.P3D::Vector", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #7
  store double 1.500000e+00, ptr %1, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %131, %0
  %36 = load double, ptr %1, align 8, !tbaa !5
  %37 = fcmp olt double %36, 1.500000e+00
  br i1 %37, label %39, label %38

38:                                               ; preds = %35
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  br label %134

39:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store double 1.500000e+00, ptr %3, align 8, !tbaa !5
  br label %40

40:                                               ; preds = %127, %39
  %41 = load double, ptr %3, align 8, !tbaa !5
  %42 = fcmp olt double %41, 1.500000e+00
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  store i32 5, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %130

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store double 1.500000e+00, ptr %4, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %122, %44
  %46 = load double, ptr %4, align 8, !tbaa !5
  %47 = fcmp olt double %46, 1.500000e+00
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  store i32 8, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %126

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #7
  %50 = load double, ptr %1, align 8, !tbaa !5
  %51 = load double, ptr %3, align 8, !tbaa !5
  %52 = load double, ptr %4, align 8, !tbaa !5
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %5, double noundef %50, double noundef %51, double noundef %52) #7
  br label %53

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef 219, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 72, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 72, ptr %10) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %5, i64 24, i1 false), !tbaa.struct !9
  call void @_ZN3P3D22MatrixRotationTemplateIdE5faceXENS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %10, ptr noundef byval(%"struct.P3D::Vector") align 8 %11)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE16asRotationMatrixEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix") align 8 %9, ptr noundef nonnull align 8 dereferenceable(72) %10)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.7) align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(72) %9)
  call void @llvm.lifetime.start.p0(i64 72, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %5, i64 24, i1 false), !tbaa.struct !9
  call void @_ZN3P3D26QuaternionRotationTemplateIdE5faceXENS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::QuaternionRotationTemplate") align 8 %13, ptr noundef byval(%"struct.P3D::Vector") align 8 %14)
  call void @_ZNK3P3D26QuaternionRotationTemplateIdE16asRotationMatrixEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %13)
  call void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(72) %12)
  %54 = getelementptr inbounds %class.TolerantAssertComparer, ptr %6, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  %56 = load i8, ptr %55, align 1, !tbaa !15, !range !17, !noundef !18
  %57 = trunc i8 %56 to i1
  %58 = xor i1 %57, true
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  br i1 %58, label %59, label %72

59:                                               ; preds = %53
  %60 = call ptr @_ZTW15__testInterface()
  %61 = getelementptr inbounds %class.TestInterface, ptr %60, i32 0, i32 1
  %62 = load i8, ptr %61, align 8, !tbaa !19, !range !17, !noundef !18
  %63 = trunc i8 %62 to i1
  br i1 %63, label %64, label %65

64:                                               ; preds = %59
  br label %65

65:                                               ; preds = %64, %59
  %66 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %66, i32 noundef 219, ptr noundef @.str.3)
          to label %67 unwind label %68

67:                                               ; preds = %65
  call void @__cxa_throw(ptr %66, ptr @_ZTI14AssertionError, ptr null) #8
  unreachable

68:                                               ; preds = %65
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %15, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %16, align 4
  call void @__cxa_free_exception(ptr %66) #7
  br label %125

72:                                               ; preds = %53
  %73 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %73)
  br label %74

74:                                               ; preds = %72
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %19, i32 noundef 220, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 72, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 72, ptr %21) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %5, i64 24, i1 false), !tbaa.struct !9
  call void @_ZN3P3D22MatrixRotationTemplateIdE5faceYENS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %21, ptr noundef byval(%"struct.P3D::Vector") align 8 %22)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE16asRotationMatrixEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix") align 8 %20, ptr noundef nonnull align 8 dereferenceable(72) %21)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.7) align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(72) %20)
  call void @llvm.lifetime.start.p0(i64 72, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %5, i64 24, i1 false), !tbaa.struct !9
  call void @_ZN3P3D26QuaternionRotationTemplateIdE5faceYENS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::QuaternionRotationTemplate") align 8 %24, ptr noundef byval(%"struct.P3D::Vector") align 8 %25)
  call void @_ZNK3P3D26QuaternionRotationTemplateIdE16asRotationMatrixEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix") align 8 %23, ptr noundef nonnull align 8 dereferenceable(32) %24)
  call void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(72) %23)
  %77 = getelementptr inbounds %class.TolerantAssertComparer, ptr %17, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  %79 = load i8, ptr %78, align 1, !tbaa !15, !range !17, !noundef !18
  %80 = trunc i8 %79 to i1
  %81 = xor i1 %80, true
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  br i1 %81, label %82, label %95

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 !19, !range !17, !noundef !18
  %86 = trunc i8 %85 to i1
  br i1 %86, label %87, label %88

87:                                               ; preds = %82
  br label %88

88:                                               ; preds = %87, %82
  %89 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %89, i32 noundef 220, ptr noundef @.str.3)
          to label %90 unwind label %91

90:                                               ; preds = %88
  call void @__cxa_throw(ptr %89, ptr @_ZTI14AssertionError, ptr null) #8
  unreachable

91:                                               ; preds = %88
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %15, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %16, align 4
  call void @__cxa_free_exception(ptr %89) #7
  br label %125

95:                                               ; preds = %76
  %96 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %96)
  br label %97

97:                                               ; preds = %95
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %28, i32 noundef 221, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 72, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 72, ptr %30) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 8 %5, i64 24, i1 false), !tbaa.struct !9
  call void @_ZN3P3D22MatrixRotationTemplateIdE5faceZENS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %30, ptr noundef byval(%"struct.P3D::Vector") align 8 %31)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE16asRotationMatrixEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix") align 8 %29, ptr noundef nonnull align 8 dereferenceable(72) %30)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.7) align 8 %27, ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(72) %29)
  call void @llvm.lifetime.start.p0(i64 72, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %5, i64 24, i1 false), !tbaa.struct !9
  call void @_ZN3P3D26QuaternionRotationTemplateIdE5faceZENS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::QuaternionRotationTemplate") align 8 %33, ptr noundef byval(%"struct.P3D::Vector") align 8 %34)
  call void @_ZNK3P3D26QuaternionRotationTemplateIdE16asRotationMatrixEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix") align 8 %32, ptr noundef nonnull align 8 dereferenceable(32) %33)
  call void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %26, ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(72) %32)
  %100 = getelementptr inbounds %class.TolerantAssertComparer, ptr %26, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !11
  %102 = load i8, ptr %101, align 1, !tbaa !15, !range !17, !noundef !18
  %103 = trunc i8 %102 to i1
  %104 = xor i1 %103, true
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #7
  br i1 %104, label %105, label %118

105:                                              ; preds = %99
  %106 = call ptr @_ZTW15__testInterface()
  %107 = getelementptr inbounds %class.TestInterface, ptr %106, i32 0, i32 1
  %108 = load i8, ptr %107, align 8, !tbaa !19, !range !17, !noundef !18
  %109 = trunc i8 %108 to i1
  br i1 %109, label %110, label %111

110:                                              ; preds = %105
  br label %111

111:                                              ; preds = %110, %105
  %112 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %112, i32 noundef 221, ptr noundef @.str.3)
          to label %113 unwind label %114

113:                                              ; preds = %111
  call void @__cxa_throw(ptr %112, ptr @_ZTI14AssertionError, ptr null) #8
  unreachable

114:                                              ; preds = %111
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %15, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %16, align 4
  call void @__cxa_free_exception(ptr %112) #7
  br label %125

118:                                              ; preds = %99
  %119 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %119)
  br label %120

120:                                              ; preds = %118
  br label %121

121:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  br label %122

122:                                              ; preds = %121
  %123 = load double, ptr %4, align 8, !tbaa !5
  %124 = fadd double %123, 5.000000e-01
  store double %124, ptr %4, align 8, !tbaa !5
  br label %45, !llvm.loop !22

125:                                              ; preds = %114, %91, %68
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  br label %135

126:                                              ; preds = %48
  br label %127

127:                                              ; preds = %126
  %128 = load double, ptr %3, align 8, !tbaa !5
  %129 = fadd double %128, 5.000000e-01
  store double %129, ptr %3, align 8, !tbaa !5
  br label %40, !llvm.loop !24

130:                                              ; preds = %43
  br label %131

131:                                              ; preds = %130
  %132 = load double, ptr %1, align 8, !tbaa !5
  %133 = fadd double %132, 5.000000e-01
  store double %133, ptr %1, align 8, !tbaa !5
  br label %35, !llvm.loop !25

134:                                              ; preds = %38
  ret void

135:                                              ; preds = %125
  %136 = load ptr, ptr %15, align 8
  %137 = load i32, ptr %16, align 4
  %138 = insertvalue { ptr, i32 } poison, ptr %136, 0
  %139 = insertvalue { ptr, i32 } %138, i32 %137, 1
  resume { ptr, i32 } %139
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D26QuaternionRotationTemplateIdE5faceXENS_6VectorIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::QuaternionRotationTemplate") align 8, ptr noundef byval(%"struct.P3D::Vector") align 8) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D26QuaternionRotationTemplateIdE5faceYENS_6VectorIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::QuaternionRotationTemplate") align 8, ptr noundef byval(%"struct.P3D::Vector") align 8) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D26QuaternionRotationTemplateIdE5faceZENS_6VectorIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::QuaternionRotationTemplate") align 8, ptr noundef byval(%"struct.P3D::Vector") align 8) #6 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{i64 0, i64 24, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !14, i64 8}
!12 = !{!"_ZTS22TolerantAssertComparerIbdE", !13, i64 0, !14, i64 8, !6, i64 16}
!13 = !{!"int", !7, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !16, i64 8}
!20 = !{!"_ZTS13TestInterface", !21, i64 0, !16, i64 8}
!21 = !{!"long", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}


; 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"

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define dso_local void @_Z43rotationImplementationIdenticalFaceMatricesv() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  ret void
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) 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" }

!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)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,PostOrderFunctionAttrsPass,PromotePass,SROAPass,SimplifyCFGPass