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

; 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.TolerantAssertComparer.0 = type { i32, ptr, double }
%class.TolerantAssertComparer = type { i32, ptr, double }
%"struct.P3D::Vector.3" = type { %union.anon.4 }
%union.anon.4 = type { [2 x double] }
%"class.P3D::Matrix.6" = type { [4 x double] }
%"class.std::initializer_list" = type { ptr, i64 }
%struct.TolerantAssertBuilder = type { i32, double }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%"class.P3D::MatrixRotationTemplate" = type { %"class.P3D::Matrix" }
%"class.P3D::Matrix" = type { [9 x double] }
%struct.anon.5 = type { 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: mustprogress uwtable
declare dso_local void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer.0) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_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(24)) #2 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() #3

declare ptr @__cxa_allocate_exception(i64)

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

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)) #5 align 2

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

35:                                               ; preds = %201, %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) #8
  br label %204

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

40:                                               ; preds = %197, %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) #8
  br label %200

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

45:                                               ; preds = %192, %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) #8
  br label %196

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %50 = load double, ptr %1, align 8, !tbaa !5
  store double %50, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #8
  %51 = load double, ptr %3, align 8, !tbaa !5
  %52 = load double, ptr %4, align 8, !tbaa !5
  call void @_ZN3P3D6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef %51, double noundef %52) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #8
  %53 = load double, ptr %5, align 8, !tbaa !5
  %54 = call double @cos(double noundef %53) #8
  store double %54, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds double, ptr %9, i64 1
  %56 = load double, ptr %5, align 8, !tbaa !5
  %57 = call double @sin(double noundef %56) #8
  %58 = fneg double %57
  store double %58, ptr %55, align 8, !tbaa !5
  %59 = getelementptr inbounds double, ptr %9, i64 2
  %60 = load double, ptr %5, align 8, !tbaa !5
  %61 = call double @sin(double noundef %60) #8
  store double %61, ptr %59, align 8, !tbaa !5
  %62 = getelementptr inbounds double, ptr %9, i64 3
  %63 = load double, ptr %5, align 8, !tbaa !5
  %64 = call double @cos(double noundef %63) #8
  store double %64, ptr %62, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.std::initializer_list", ptr %8, i32 0, i32 0
  store ptr %9, ptr %65, align 8, !tbaa !9
  %66 = getelementptr inbounds %"class.std::initializer_list", ptr %8, i32 0, i32 1
  store i64 4, ptr %66, align 8, !tbaa !13
  %67 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8
  %69 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %70 = load i64, ptr %69, align 8
  call void @_ZN3P3D6MatrixIdLm2ELm2EEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr %68, i64 %70)
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %71 = call { double, double } @_ZN3P3DmlIdLm2ELm2EEENS_6VectorIT_XT0_EEERKNS_6MatrixIS2_XT0_EXT1_EEERKNS1_IS2_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %72 = getelementptr inbounds %"struct.P3D::Vector.3", ptr %10, i32 0, i32 0
  %73 = getelementptr inbounds %union.anon.4, ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 0
  %75 = extractvalue { double, double } %71, 0
  store double %75, ptr %74, align 8
  %76 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 1
  %77 = extractvalue { double, double } %71, 1
  store double %77, ptr %76, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store double 5.700000e-01, ptr %11, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef 117, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %16) #8
  %79 = load double, ptr %5, align 8, !tbaa !5
  call void @_ZN3P3D22MatrixRotationTemplateIdE4rotXEd(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %16, double noundef %79)
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #8
  %80 = load double, ptr %11, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.P3D::Vector.3", ptr %6, i32 0, i32 0
  %82 = getelementptr inbounds %struct.anon.5, ptr %81, i32 0, i32 0
  %83 = load double, ptr %82, align 8, !tbaa !14
  %84 = getelementptr inbounds %"struct.P3D::Vector.3", ptr %6, i32 0, i32 0
  %85 = getelementptr inbounds %struct.anon.5, ptr %84, i32 0, i32 1
  %86 = load double, ptr %85, align 8, !tbaa !14
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %17, double noundef %80, double noundef %83, double noundef %86) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdEmlERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %15, ptr noundef nonnull align 8 dereferenceable(72) %16, ptr noundef nonnull align 8 dereferenceable(24) %17)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.0) align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  %87 = load double, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.P3D::Vector.3", ptr %10, i32 0, i32 0
  %89 = getelementptr inbounds %struct.anon.5, ptr %88, i32 0, i32 0
  %90 = load double, ptr %89, align 8, !tbaa !14
  %91 = getelementptr inbounds %"struct.P3D::Vector.3", ptr %10, i32 0, i32 0
  %92 = getelementptr inbounds %struct.anon.5, ptr %91, i32 0, i32 1
  %93 = load double, ptr %92, align 8, !tbaa !14
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %18, double noundef %87, double noundef %90, double noundef %93) #8
  call void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %18)
  %94 = getelementptr inbounds %class.TolerantAssertComparer, ptr %12, i32 0, i32 1
  %95 = load ptr, ptr %94, align 8, !tbaa !15
  %96 = load i8, ptr %95, align 1, !tbaa !18, !range !20, !noundef !21
  %97 = trunc i8 %96 to i1
  %98 = xor i1 %97, true
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  br i1 %98, label %99, label %112

99:                                               ; preds = %78
  %100 = call ptr @_ZTW15__testInterface()
  %101 = getelementptr inbounds %class.TestInterface, ptr %100, i32 0, i32 1
  %102 = load i8, ptr %101, align 8, !tbaa !22, !range !20, !noundef !21
  %103 = trunc i8 %102 to i1
  br i1 %103, label %104, label %105

104:                                              ; preds = %99
  br label %105

105:                                              ; preds = %104, %99
  %106 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %106, i32 noundef 117, ptr noundef @.str.3)
          to label %107 unwind label %108

107:                                              ; preds = %105
  call void @__cxa_throw(ptr %106, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

108:                                              ; preds = %105
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %19, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %20, align 4
  call void @__cxa_free_exception(ptr %106) #8
  br label %195

112:                                              ; preds = %78
  %113 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %113)
  br label %114

114:                                              ; preds = %112
  br label %115

115:                                              ; preds = %114
  br label %116

116:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %23, i32 noundef 118, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %25) #8
  %117 = load double, ptr %5, align 8, !tbaa !5
  call void @_ZN3P3D22MatrixRotationTemplateIdE4rotYEd(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %25, double noundef %117)
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #8
  %118 = getelementptr inbounds %"struct.P3D::Vector.3", ptr %6, i32 0, i32 0
  %119 = getelementptr inbounds %struct.anon.5, ptr %118, i32 0, i32 1
  %120 = load double, ptr %119, align 8, !tbaa !14
  %121 = load double, ptr %11, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.P3D::Vector.3", ptr %6, i32 0, i32 0
  %123 = getelementptr inbounds %struct.anon.5, ptr %122, i32 0, i32 0
  %124 = load double, ptr %123, align 8, !tbaa !14
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %26, double noundef %120, double noundef %121, double noundef %124) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdEmlERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %24, ptr noundef nonnull align 8 dereferenceable(72) %25, ptr noundef nonnull align 8 dereferenceable(24) %26)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.0) align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(24) %24)
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #8
  %125 = getelementptr inbounds %"struct.P3D::Vector.3", ptr %10, i32 0, i32 0
  %126 = getelementptr inbounds %struct.anon.5, ptr %125, i32 0, i32 1
  %127 = load double, ptr %126, align 8, !tbaa !14
  %128 = load double, ptr %11, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.P3D::Vector.3", ptr %10, i32 0, i32 0
  %130 = getelementptr inbounds %struct.anon.5, ptr %129, i32 0, i32 0
  %131 = load double, ptr %130, align 8, !tbaa !14
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %27, double noundef %127, double noundef %128, double noundef %131) #8
  call void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %27)
  %132 = getelementptr inbounds %class.TolerantAssertComparer, ptr %21, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8, !tbaa !15
  %134 = load i8, ptr %133, align 1, !tbaa !18, !range !20, !noundef !21
  %135 = trunc i8 %134 to i1
  %136 = xor i1 %135, true
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  br i1 %136, label %137, label %150

137:                                              ; preds = %116
  %138 = call ptr @_ZTW15__testInterface()
  %139 = getelementptr inbounds %class.TestInterface, ptr %138, i32 0, i32 1
  %140 = load i8, ptr %139, align 8, !tbaa !22, !range !20, !noundef !21
  %141 = trunc i8 %140 to i1
  br i1 %141, label %142, label %143

142:                                              ; preds = %137
  br label %143

143:                                              ; preds = %142, %137
  %144 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %144, i32 noundef 118, ptr noundef @.str.3)
          to label %145 unwind label %146

145:                                              ; preds = %143
  call void @__cxa_throw(ptr %144, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

146:                                              ; preds = %143
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %19, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %20, align 4
  call void @__cxa_free_exception(ptr %144) #8
  br label %195

150:                                              ; preds = %116
  %151 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %151)
  br label %152

152:                                              ; preds = %150
  br label %153

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %30, i32 noundef 119, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %32) #8
  %155 = load double, ptr %5, align 8, !tbaa !5
  call void @_ZN3P3D22MatrixRotationTemplateIdE4rotZEd(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %32, double noundef %155)
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #8
  %156 = getelementptr inbounds %"struct.P3D::Vector.3", ptr %6, i32 0, i32 0
  %157 = getelementptr inbounds %struct.anon.5, ptr %156, i32 0, i32 0
  %158 = load double, ptr %157, align 8, !tbaa !14
  %159 = getelementptr inbounds %"struct.P3D::Vector.3", ptr %6, i32 0, i32 0
  %160 = getelementptr inbounds %struct.anon.5, ptr %159, i32 0, i32 1
  %161 = load double, ptr %160, align 8, !tbaa !14
  %162 = load double, ptr %11, align 8, !tbaa !5
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %33, double noundef %158, double noundef %161, double noundef %162) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdEmlERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %31, ptr noundef nonnull align 8 dereferenceable(72) %32, ptr noundef nonnull align 8 dereferenceable(24) %33)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.0) align 8 %29, ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(24) %31)
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #8
  %163 = getelementptr inbounds %"struct.P3D::Vector.3", ptr %10, i32 0, i32 0
  %164 = getelementptr inbounds %struct.anon.5, ptr %163, i32 0, i32 0
  %165 = load double, ptr %164, align 8, !tbaa !14
  %166 = getelementptr inbounds %"struct.P3D::Vector.3", ptr %10, i32 0, i32 0
  %167 = getelementptr inbounds %struct.anon.5, ptr %166, i32 0, i32 1
  %168 = load double, ptr %167, align 8, !tbaa !14
  %169 = load double, ptr %11, align 8, !tbaa !5
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %34, double noundef %165, double noundef %168, double noundef %169) #8
  call void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %34)
  %170 = getelementptr inbounds %class.TolerantAssertComparer, ptr %28, i32 0, i32 1
  %171 = load ptr, ptr %170, align 8, !tbaa !15
  %172 = load i8, ptr %171, align 1, !tbaa !18, !range !20, !noundef !21
  %173 = trunc i8 %172 to i1
  %174 = xor i1 %173, true
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  br i1 %174, label %175, label %188

175:                                              ; preds = %154
  %176 = call ptr @_ZTW15__testInterface()
  %177 = getelementptr inbounds %class.TestInterface, ptr %176, i32 0, i32 1
  %178 = load i8, ptr %177, align 8, !tbaa !22, !range !20, !noundef !21
  %179 = trunc i8 %178 to i1
  br i1 %179, label %180, label %181

180:                                              ; preds = %175
  br label %181

181:                                              ; preds = %180, %175
  %182 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %182, i32 noundef 119, ptr noundef @.str.3)
          to label %183 unwind label %184

183:                                              ; preds = %181
  call void @__cxa_throw(ptr %182, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

184:                                              ; preds = %181
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %19, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %20, align 4
  call void @__cxa_free_exception(ptr %182) #8
  br label %195

188:                                              ; preds = %154
  %189 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %189)
  br label %190

190:                                              ; preds = %188
  br label %191

191:                                              ; preds = %190
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %192

192:                                              ; preds = %191
  %193 = load double, ptr %4, align 8, !tbaa !5
  %194 = fadd double %193, 1.000000e-01
  store double %194, ptr %4, align 8, !tbaa !5
  br label %45, !llvm.loop !24

195:                                              ; preds = %184, %146, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #8
  br label %205

196:                                              ; preds = %48
  br label %197

197:                                              ; preds = %196
  %198 = load double, ptr %3, align 8, !tbaa !5
  %199 = fadd double %198, 1.000000e-01
  store double %199, ptr %3, align 8, !tbaa !5
  br label %40, !llvm.loop !26

200:                                              ; preds = %43
  br label %201

201:                                              ; preds = %200
  %202 = load double, ptr %1, align 8, !tbaa !5
  %203 = fadd double %202, 1.000000e-01
  store double %203, ptr %1, align 8, !tbaa !5
  br label %35, !llvm.loop !27

204:                                              ; preds = %38
  ret void

205:                                              ; preds = %195
  %206 = load ptr, ptr %19, align 8
  %207 = load i32, ptr %20, align 4
  %208 = insertvalue { ptr, i32 } poison, ptr %206, 0
  %209 = insertvalue { ptr, i32 } %208, i32 %207, 1
  resume { ptr, i32 } %209
}

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

; Function Attrs: nounwind
declare double @cos(double noundef) #6

; Function Attrs: nounwind
declare double @sin(double noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D6MatrixIdLm2ELm2EEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(32), ptr, i64) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZN3P3DmlIdLm2ELm2EEENS_6VectorIT_XT0_EEERKNS_6MatrixIS2_XT0_EXT1_EEERKNS1_IS2_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #1

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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, !11, i64 0}
!10 = !{!"_ZTSSt16initializer_listIdE", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !12, i64 8}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !11, i64 8}
!16 = !{!"_ZTS22TolerantAssertComparerIbdE", !17, i64 0, !11, i64 8, !6, i64 16}
!17 = !{!"int", !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", !12, i64 0, !19, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}


; 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.TolerantAssertComparer.0 = type { i32, ptr, double }
%class.TolerantAssertComparer = type { i32, ptr, double }
%"struct.P3D::Vector.3" = type { %union.anon.4 }
%union.anon.4 = type { [2 x double] }
%"class.P3D::Matrix.6" = type { [4 x double] }
%struct.TolerantAssertBuilder = type { i32, double }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%"class.P3D::MatrixRotationTemplate" = type { %"class.P3D::Matrix" }
%"class.P3D::Matrix" = type { [9 x double] }

@.str.3 = 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 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: mustprogress uwtable
declare dso_local void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer.0) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_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(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress 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() local_unnamed_addr #3

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 #4

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 #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12rotXrotYrotZv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.P3D::Vector.3", align 8
  %2 = alloca %"class.P3D::Matrix.6", align 8
  %3 = alloca [4 x double], align 8
  %4 = alloca %class.TolerantAssertComparer, align 8
  %5 = alloca %class.TolerantAssertComparer.0, align 8
  %6 = alloca %struct.TolerantAssertBuilder, align 8
  %7 = alloca %"struct.P3D::Vector", align 8
  %8 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %9 = alloca %"struct.P3D::Vector", align 8
  %10 = alloca %"struct.P3D::Vector", align 8
  %11 = alloca %class.TolerantAssertComparer, align 8
  %12 = alloca %class.TolerantAssertComparer.0, align 8
  %13 = alloca %struct.TolerantAssertBuilder, align 8
  %14 = alloca %"struct.P3D::Vector", align 8
  %15 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %16 = alloca %"struct.P3D::Vector", align 8
  %17 = alloca %"struct.P3D::Vector", align 8
  %18 = alloca %class.TolerantAssertComparer, align 8
  %19 = alloca %class.TolerantAssertComparer.0, align 8
  %20 = alloca %struct.TolerantAssertBuilder, align 8
  %21 = alloca %"struct.P3D::Vector", align 8
  %22 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %23 = alloca %"struct.P3D::Vector", align 8
  %24 = alloca %"struct.P3D::Vector", align 8
  %25 = getelementptr inbounds i8, ptr %3, i64 8
  %26 = getelementptr inbounds i8, ptr %3, i64 16
  %27 = getelementptr inbounds i8, ptr %3, i64 24
  %28 = getelementptr inbounds i8, ptr %1, i64 8
  %29 = getelementptr inbounds i8, ptr %4, i64 8
  %30 = getelementptr inbounds i8, ptr %11, i64 8
  %31 = getelementptr inbounds i8, ptr %18, i64 8
  br label %.preheader33

.preheader33:                                     ; preds = %0, %33
  %.02936 = phi double [ -1.500000e+00, %0 ], [ %34, %33 ]
  br label %.preheader

32:                                               ; preds = %33
  ret void

.preheader:                                       ; preds = %.preheader33, %36
  %.03035 = phi double [ -1.500000e+00, %.preheader33 ], [ %37, %36 ]
  br label %39

33:                                               ; preds = %36
  %34 = fadd double %.02936, 1.000000e-01
  %35 = fcmp olt double %34, 1.500000e+00
  br i1 %35, label %.preheader33, label %32, !llvm.loop !5

36:                                               ; preds = %83
  %37 = fadd double %.03035, 1.000000e-01
  %38 = fcmp olt double %37, 1.500000e+00
  br i1 %38, label %.preheader, label %33, !llvm.loop !7

39:                                               ; preds = %.preheader, %83
  %.03134 = phi double [ -1.500000e+00, %.preheader ], [ %84, %83 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #8
  call void @_ZN3P3D6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %1, double noundef %.03035, double noundef %.03134) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #8
  %40 = call double @cos(double noundef %.02936) #8
  store double %40, ptr %3, align 8, !tbaa !8
  %41 = call double @sin(double noundef %.02936) #8
  %42 = fneg double %41
  store double %42, ptr %25, align 8, !tbaa !8
  %43 = call double @sin(double noundef %.02936) #8
  store double %43, ptr %26, align 8, !tbaa !8
  %44 = call double @cos(double noundef %.02936) #8
  store double %44, ptr %27, align 8, !tbaa !8
  call void @_ZN3P3D6MatrixIdLm2ELm2EEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr nonnull %3, i64 4)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  %45 = call { double, double } @_ZN3P3DmlIdLm2ELm2EEENS_6VectorIT_XT0_EEERKNS_6MatrixIS2_XT0_EXT1_EEERKNS1_IS2_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(16) %1)
  %46 = extractvalue { double, double } %45, 0
  %47 = extractvalue { double, double } %45, 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef 117, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %8) #8
  call void @_ZN3P3D22MatrixRotationTemplateIdE4rotXEd(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %8, double noundef %.02936)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  %48 = load double, ptr %1, align 8, !tbaa !12
  %49 = load double, ptr %28, align 8, !tbaa !12
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %9, double noundef 5.700000e-01, double noundef %48, double noundef %49) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdEmlERKNS_6VectorIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(72) %8, ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.0) align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %10, double noundef 5.700000e-01, double noundef %46, double noundef %47) #8
  call void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %10)
  %50 = load ptr, ptr %29, align 8, !tbaa !13
  %51 = load i8, ptr %50, align 1, !tbaa !17, !range !19, !noundef !20
  %52 = trunc nuw i8 %51 to i1
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  %53 = call ptr @_ZTW15__testInterface()
  br i1 %52, label %59, label %54

54:                                               ; preds = %39
  %55 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %55, i32 noundef 117, ptr noundef nonnull @.str.3)
          to label %56 unwind label %57

56:                                               ; preds = %54
  call void @__cxa_throw(ptr nonnull %55, ptr nonnull @_ZTI14AssertionError, ptr null) #9
  unreachable

57:                                               ; preds = %54
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %86

59:                                               ; preds = %39
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %53)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef 118, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %15) #8
  call void @_ZN3P3D22MatrixRotationTemplateIdE4rotYEd(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %15, double noundef %.02936)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #8
  %60 = load double, ptr %28, align 8, !tbaa !12
  %61 = load double, ptr %1, align 8, !tbaa !12
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %16, double noundef %60, double noundef 5.700000e-01, double noundef %61) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdEmlERKNS_6VectorIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %14, ptr noundef nonnull align 8 dereferenceable(72) %15, ptr noundef nonnull align 8 dereferenceable(24) %16)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.0) align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(24) %14)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %17, double noundef %47, double noundef 5.700000e-01, double noundef %46) #8
  call void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %17)
  %62 = load ptr, ptr %30, align 8, !tbaa !13
  %63 = load i8, ptr %62, align 1, !tbaa !17, !range !19, !noundef !20
  %64 = trunc nuw i8 %63 to i1
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  %65 = call ptr @_ZTW15__testInterface()
  br i1 %64, label %71, label %66

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

68:                                               ; preds = %66
  call void @__cxa_throw(ptr nonnull %67, ptr nonnull @_ZTI14AssertionError, ptr null) #9
  unreachable

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

71:                                               ; preds = %59
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %65)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %20, i32 noundef 119, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %22) #8
  call void @_ZN3P3D22MatrixRotationTemplateIdE4rotZEd(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %22, double noundef %.02936)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #8
  %72 = load double, ptr %1, align 8, !tbaa !12
  %73 = load double, ptr %28, align 8, !tbaa !12
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %23, double noundef %72, double noundef %73, double noundef 5.700000e-01) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdEmlERKNS_6VectorIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %21, ptr noundef nonnull align 8 dereferenceable(72) %22, ptr noundef nonnull align 8 dereferenceable(24) %23)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.0) align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(24) %21)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %24) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %24, double noundef %46, double noundef %47, double noundef 5.700000e-01) #8
  call void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %24)
  %74 = load ptr, ptr %31, align 8, !tbaa !13
  %75 = load i8, ptr %74, align 1, !tbaa !17, !range !19, !noundef !20
  %76 = trunc nuw i8 %75 to i1
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  %77 = call ptr @_ZTW15__testInterface()
  br i1 %76, label %83, label %78

78:                                               ; preds = %71
  %79 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %79, i32 noundef 119, ptr noundef nonnull @.str.3)
          to label %80 unwind label %81

80:                                               ; preds = %78
  call void @__cxa_throw(ptr nonnull %79, ptr nonnull @_ZTI14AssertionError, ptr null) #9
  unreachable

81:                                               ; preds = %78
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %86

83:                                               ; preds = %71
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %77)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #8
  %84 = fadd double %.03134, 1.000000e-01
  %85 = fcmp olt double %84, 1.500000e+00
  br i1 %85, label %39, label %36, !llvm.loop !21

86:                                               ; preds = %81, %69, %57
  %.sink = phi ptr [ %79, %81 ], [ %67, %69 ], [ %55, %57 ]
  %.pn = phi { ptr, i32 } [ %82, %81 ], [ %70, %69 ], [ %58, %57 ]
  call void @__cxa_free_exception(ptr %.sink) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D6MatrixIdLm2ELm2EEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(32), ptr, i64) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZN3P3DmlIdLm2ELm2EEENS_6VectorIT_XT0_EEERKNS_6MatrixIS2_XT0_EXT1_EEERKNS1_IS2_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D22MatrixRotationTemplateIdE4rotXEd(ptr dead_on_unwind noalias writable sret(%"class.P3D::MatrixRotationTemplate") align 8, double noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D22MatrixRotationTemplateIdE4rotYEd(ptr dead_on_unwind noalias writable sret(%"class.P3D::MatrixRotationTemplate") align 8, double noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D22MatrixRotationTemplateIdE4rotZEd(ptr dead_on_unwind noalias writable sret(%"class.P3D::MatrixRotationTemplate") align 8, double noundef) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 #8 = { nounwind }
attributes #9 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!10, !10, i64 0}
!13 = !{!14, !16, i64 8}
!14 = !{!"_ZTS22TolerantAssertComparerIbdE", !15, i64 0, !16, i64 8, !9, i64 16}
!15 = !{!"int", !10, i64 0}
!16 = !{!"any pointer", !10, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !10, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !6}


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