; LLVM IR from romerojosh/zefr :: src/funcs.ll (Z8quat_mulRK8mdvectorIdES2_)

; 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.mdvector = type <{ i32, [4 x i8], i64, i64, %"struct.std::array", %"struct.std::array", %"class.std::vector.6", ptr, i8, [7 x i8] }>
%"struct.std::array" = type { [6 x i32] }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator.3" = type { i8 }

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8mdvectorIdEC2ESt6vectorIjSaIjEEdb(ptr noundef nonnull align 8 dereferenceable(105), ptr noundef, double noundef, i1 noundef zeroext) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8quat_mulRK8mdvectorIdES2_(ptr dead_on_unwind noalias writable sret(%class.mdvector) align 8 %0, ptr noundef nonnull align 8 dereferenceable(105) %1, ptr noundef nonnull align 8 dereferenceable(105) %2) #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i1, align 1
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.std::initializer_list", align 8
  %10 = alloca [1 x i32], align 4
  %11 = alloca %"class.std::allocator.3", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  store i1 false, ptr %7, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 4, ptr %10, align 4, !tbaa !9
  %14 = getelementptr inbounds %"class.std::initializer_list", ptr %9, i32 0, i32 0
  store ptr %10, ptr %14, align 8, !tbaa !11
  %15 = getelementptr inbounds %"class.std::initializer_list", ptr %9, i32 0, i32 1
  store i64 1, ptr %15, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  %16 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8
  %18 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %19 = load i64, ptr %18, align 8
  invoke void @_ZNSt6vectorIjSaIjEEC2ESt16initializer_listIjERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr %17, i64 %19, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %20 unwind label %149

20:                                               ; preds = %3
  invoke void @_ZN8mdvectorIdEC2ESt6vectorIjSaIjEEdb(ptr noundef nonnull align 8 dereferenceable(105) %0, ptr noundef %8, double noundef 0.000000e+00, i1 noundef zeroext false)
          to label %21 unwind label %153

21:                                               ; preds = %20
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %22, i32 noundef 3)
          to label %24 unwind label %158

24:                                               ; preds = %21
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %25, i32 noundef 3)
          to label %27 unwind label %158

27:                                               ; preds = %24
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %28, i32 noundef 0)
          to label %30 unwind label %158

30:                                               ; preds = %27
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %31, i32 noundef 0)
          to label %33 unwind label %158

33:                                               ; preds = %30
  %34 = fmul double %29, %32
  %35 = fneg double %34
  %36 = call double @llvm.fmuladd.f64(double %23, double %26, double %35)
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %37, i32 noundef 1)
          to label %39 unwind label %158

39:                                               ; preds = %33
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %40, i32 noundef 1)
          to label %42 unwind label %158

42:                                               ; preds = %39
  %43 = fneg double %38
  %44 = call double @llvm.fmuladd.f64(double %43, double %41, double %36)
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %45, i32 noundef 2)
          to label %47 unwind label %158

47:                                               ; preds = %42
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %48, i32 noundef 1)
          to label %50 unwind label %158

50:                                               ; preds = %47
  %51 = fneg double %46
  %52 = call double @llvm.fmuladd.f64(double %51, double %49, double %44)
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %0, i32 noundef 0)
          to label %54 unwind label %158

54:                                               ; preds = %50
  store double %52, ptr %53, align 8, !tbaa !15
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %55, i32 noundef 3)
          to label %57 unwind label %158

57:                                               ; preds = %54
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %58, i32 noundef 0)
          to label %60 unwind label %158

60:                                               ; preds = %57
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %61, i32 noundef 0)
          to label %63 unwind label %158

63:                                               ; preds = %60
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %64, i32 noundef 3)
          to label %66 unwind label %158

66:                                               ; preds = %63
  %67 = fmul double %62, %65
  %68 = call double @llvm.fmuladd.f64(double %56, double %59, double %67)
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %69, i32 noundef 1)
          to label %71 unwind label %158

71:                                               ; preds = %66
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %72, i32 noundef 2)
          to label %74 unwind label %158

74:                                               ; preds = %71
  %75 = call double @llvm.fmuladd.f64(double %70, double %73, double %68)
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %76, i32 noundef 2)
          to label %78 unwind label %158

78:                                               ; preds = %74
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %79, i32 noundef 1)
          to label %81 unwind label %158

81:                                               ; preds = %78
  %82 = fneg double %77
  %83 = call double @llvm.fmuladd.f64(double %82, double %80, double %75)
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %0, i32 noundef 1)
          to label %85 unwind label %158

85:                                               ; preds = %81
  store double %83, ptr %84, align 8, !tbaa !15
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %86, i32 noundef 3)
          to label %88 unwind label %158

88:                                               ; preds = %85
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %89, i32 noundef 1)
          to label %91 unwind label %158

91:                                               ; preds = %88
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %92, i32 noundef 0)
          to label %94 unwind label %158

94:                                               ; preds = %91
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %95, i32 noundef 2)
          to label %97 unwind label %158

97:                                               ; preds = %94
  %98 = fmul double %93, %96
  %99 = fneg double %98
  %100 = call double @llvm.fmuladd.f64(double %87, double %90, double %99)
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %101, i32 noundef 1)
          to label %103 unwind label %158

103:                                              ; preds = %97
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %104, i32 noundef 3)
          to label %106 unwind label %158

106:                                              ; preds = %103
  %107 = call double @llvm.fmuladd.f64(double %102, double %105, double %100)
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %108, i32 noundef 2)
          to label %110 unwind label %158

110:                                              ; preds = %106
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %111, i32 noundef 0)
          to label %113 unwind label %158

113:                                              ; preds = %110
  %114 = call double @llvm.fmuladd.f64(double %109, double %112, double %107)
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %0, i32 noundef 2)
          to label %116 unwind label %158

116:                                              ; preds = %113
  store double %114, ptr %115, align 8, !tbaa !15
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %117, i32 noundef 3)
          to label %119 unwind label %158

119:                                              ; preds = %116
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %120, i32 noundef 2)
          to label %122 unwind label %158

122:                                              ; preds = %119
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %123, i32 noundef 0)
          to label %125 unwind label %158

125:                                              ; preds = %122
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %126, i32 noundef 1)
          to label %128 unwind label %158

128:                                              ; preds = %125
  %129 = fmul double %124, %127
  %130 = call double @llvm.fmuladd.f64(double %118, double %121, double %129)
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %131, i32 noundef 1)
          to label %133 unwind label %158

133:                                              ; preds = %128
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %134, i32 noundef 0)
          to label %136 unwind label %158

136:                                              ; preds = %133
  %137 = fneg double %132
  %138 = call double @llvm.fmuladd.f64(double %137, double %135, double %130)
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %139, i32 noundef 2)
          to label %141 unwind label %158

141:                                              ; preds = %136
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = invoke noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %142, i32 noundef 3)
          to label %144 unwind label %158

144:                                              ; preds = %141
  %145 = call double @llvm.fmuladd.f64(double %140, double %143, double %138)
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %0, i32 noundef 3)
          to label %147 unwind label %158

147:                                              ; preds = %144
  store double %145, ptr %146, align 8, !tbaa !15
  store i1 true, ptr %7, align 1
  %148 = load i1, ptr %7, align 1
  br i1 %148, label %163, label %162

149:                                              ; preds = %3
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %12, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %13, align 4
  br label %157

153:                                              ; preds = %20
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %12, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %13, align 4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  br label %157

157:                                              ; preds = %153, %149
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %164

158:                                              ; preds = %144, %141, %136, %133, %128, %125, %122, %119, %116, %113, %110, %106, %103, %97, %94, %91, %88, %85, %81, %78, %74, %71, %66, %63, %60, %57, %54, %50, %47, %42, %39, %33, %30, %27, %24, %21
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %12, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %13, align 4
  call void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %0) #4
  br label %164

162:                                              ; preds = %147
  call void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %0) #4
  br label %163

163:                                              ; preds = %162, %147
  ret void

164:                                              ; preds = %158, %157
  %165 = load ptr, ptr %12, align 8
  %166 = load i32, ptr %13, align 4
  %167 = insertvalue { ptr, i32 } poison, ptr %165, 0
  %168 = insertvalue { ptr, i32 } %167, i32 %166, 1
  resume { ptr, i32 } %168
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 #4 = { nounwind }

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

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


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

%class.mdvector = type <{ i32, [4 x i8], i64, i64, %"struct.std::array", %"struct.std::array", %"class.std::vector.6", ptr, i8, [7 x i8] }>
%"struct.std::array" = type { [6 x i32] }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.3" = type { i8 }

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8mdvectorIdEC2ESt6vectorIjSaIjEEdb(ptr noundef nonnull align 8 dereferenceable(105), ptr noundef, double noundef, i1 noundef zeroext) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8quat_mulRK8mdvectorIdES2_(ptr dead_on_unwind noalias writable sret(%class.mdvector) align 8 %0, ptr noundef nonnull align 8 dereferenceable(105) %1, ptr noundef nonnull align 8 dereferenceable(105) %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca [1 x i32], align 4
  %6 = alloca %"class.std::allocator.3", align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  store i32 4, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  invoke void @_ZNSt6vectorIjSaIjEEC2ESt16initializer_listIjERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr nonnull %5, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %7 unwind label %67

7:                                                ; preds = %3
  invoke void @_ZN8mdvectorIdEC2ESt6vectorIjSaIjEEdb(ptr noundef nonnull align 8 dereferenceable(105) %0, ptr noundef nonnull %4, double noundef 0.000000e+00, i1 noundef zeroext false)
          to label %8 unwind label %69

8:                                                ; preds = %7
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  %9 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 3)
  %10 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 3)
  %11 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 0)
  %12 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 0)
  %13 = fneg double %11
  %14 = fmul double %12, %13
  %15 = call double @llvm.fmuladd.f64(double %9, double %10, double %14)
  %16 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 1)
  %17 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 1)
  %18 = fneg double %16
  %19 = call double @llvm.fmuladd.f64(double %18, double %17, double %15)
  %20 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 2)
  %21 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 1)
  %22 = fneg double %20
  %23 = call double @llvm.fmuladd.f64(double %22, double %21, double %19)
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %0, i32 noundef 0)
  store double %23, ptr %24, align 8, !tbaa !9
  %25 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 3)
  %26 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 0)
  %27 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 0)
  %28 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 3)
  %29 = fmul double %27, %28
  %30 = call double @llvm.fmuladd.f64(double %25, double %26, double %29)
  %31 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 1)
  %32 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 2)
  %33 = call double @llvm.fmuladd.f64(double %31, double %32, double %30)
  %34 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 2)
  %35 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 1)
  %36 = fneg double %34
  %37 = call double @llvm.fmuladd.f64(double %36, double %35, double %33)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %0, i32 noundef 1)
  store double %37, ptr %38, align 8, !tbaa !9
  %39 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 3)
  %40 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 1)
  %41 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 0)
  %42 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 2)
  %43 = fneg double %41
  %44 = fmul double %42, %43
  %45 = call double @llvm.fmuladd.f64(double %39, double %40, double %44)
  %46 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 1)
  %47 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 3)
  %48 = call double @llvm.fmuladd.f64(double %46, double %47, double %45)
  %49 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 2)
  %50 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 0)
  %51 = call double @llvm.fmuladd.f64(double %49, double %50, double %48)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %0, i32 noundef 2)
  store double %51, ptr %52, align 8, !tbaa !9
  %53 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 3)
  %54 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 2)
  %55 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 0)
  %56 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 1)
  %57 = fmul double %55, %56
  %58 = call double @llvm.fmuladd.f64(double %53, double %54, double %57)
  %59 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 1)
  %60 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 0)
  %61 = fneg double %59
  %62 = call double @llvm.fmuladd.f64(double %61, double %60, double %58)
  %63 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef 2)
  %64 = call noundef double @_ZNK8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %2, i32 noundef 3)
  %65 = call double @llvm.fmuladd.f64(double %63, double %64, double %62)
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %0, i32 noundef 3)
  store double %65, ptr %66, align 8, !tbaa !9
  ret void

67:                                               ; preds = %3
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %71

69:                                               ; preds = %7
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %71

71:                                               ; preds = %69, %67
  %.pn = phi { ptr, i32 } [ %70, %69 ], [ %68, %67 ]
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105), i32 noundef) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}


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