; LLVM IR from quantumlib/Stim :: src/stim/gates/gates.ll (ZNK4stim4Gate13to_axis_angleEv)

; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.7 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.7 = type { i64, [8 x i8] }
%"struct.std::array.8" = type { [4 x float] }
%"class.std::allocator" = type { i8 }
%"class.std::complex" = type { { float, float } }
%"class.std::complex.9" = type { { double, double } }
%"struct.stim::Gate" = type { %"class.std::basic_string_view", i8, i8, i8, i16, %"class.std::basic_string_view", %"class.std::basic_string_view", %"class.stim::FixedCapVector", %"class.stim::FixedCapVector.4", ptr }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.stim::FixedCapVector" = type { %"struct.std::array.1", i64 }
%"struct.std::array.1" = type { [4 x %"class.stim::FixedCapVector.2"] }
%"class.stim::FixedCapVector.2" = type { %"struct.std::array.3", i64 }
%"struct.std::array.3" = type { [4 x %"class.std::complex"] }
%"class.stim::FixedCapVector.4" = type { %"struct.std::array.5", i64 }
%"struct.std::array.5" = type { [10 x ptr] }

@_ZTISt12out_of_range = external constant ptr
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [73 x i8], align 1
@__PRETTY_FUNCTION__._ZNK4stim4Gate13to_axis_angleEv = external hidden unnamed_addr constant [55 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1

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

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

declare ptr @__cxa_allocate_exception(i64)

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt12out_of_rangeD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4stim14FixedCapVectorINS0_ISt7complexIfELm4EEELm4EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(168)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4

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

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

declare void @_ZNSt12out_of_rangeC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4stim14FixedCapVectorINS0_ISt7complexIfELm4EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(168), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK4stim14FixedCapVectorISt7complexIfELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8)) #7

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_ZNK4stim4Gate13to_axis_angleEv(ptr noundef nonnull align 8 dereferenceable(320) %0) #8 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.std::array.8", align 4
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i1, align 1
  %10 = alloca %"class.std::complex", align 4
  %11 = alloca %"class.std::complex", align 4
  %12 = alloca %"class.std::complex", align 4
  %13 = alloca %"class.std::complex", align 4
  %14 = alloca %"class.std::complex", align 4
  %15 = alloca %"class.std::complex", align 4
  %16 = alloca %"class.std::complex", align 4
  %17 = alloca %"class.std::complex", align 4
  %18 = alloca %"class.std::complex", align 4
  %19 = alloca %"class.std::complex", align 4
  %20 = alloca %"class.std::complex", align 4
  %21 = alloca %"class.std::complex", align 4
  %22 = alloca %"class.std::complex", align 4
  %23 = alloca %"class.std::complex.9", align 8
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %29 = load ptr, ptr %3, align 8
  %30 = getelementptr inbounds %"struct.stim::Gate", ptr %29, i32 0, i32 7
  %31 = call noundef i64 @_ZNK4stim14FixedCapVectorINS0_ISt7complexIfELm4EEELm4EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(168) %30)
  %32 = icmp ne i64 %31, 2
  br i1 %32, label %33, label %56

33:                                               ; preds = %1
  store i1 true, ptr %9, align 1
  %34 = call ptr @__cxa_allocate_exception(i64 16) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #12
  %35 = getelementptr inbounds %"struct.stim::Gate", ptr %29, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ISt17basic_string_viewIcS2_EvEERKT_RKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %36 unwind label %39

36:                                               ; preds = %33
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str.4)
          to label %37 unwind label %43

37:                                               ; preds = %36
  invoke void @_ZNSt12out_of_rangeC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %38 unwind label %47

38:                                               ; preds = %37
  store i1 false, ptr %9, align 1
  invoke void @__cxa_throw(ptr %34, ptr @_ZTISt12out_of_range, ptr @_ZNSt12out_of_rangeD1Ev) #13
          to label %217 unwind label %47

39:                                               ; preds = %33
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %7, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %8, align 4
  br label %52

43:                                               ; preds = %36
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %7, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %8, align 4
  br label %51

47:                                               ; preds = %38, %37
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %7, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #12
  br label %51

51:                                               ; preds = %47, %43
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #12
  br label %52

52:                                               ; preds = %51, %39
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #12
  %53 = load i1, ptr %9, align 1
  br i1 %53, label %54, label %55

54:                                               ; preds = %52
  call void @__cxa_free_exception(ptr %34) #12
  br label %55

55:                                               ; preds = %54, %52
  br label %212

56:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #12
  %57 = getelementptr inbounds %"struct.stim::Gate", ptr %29, i32 0, i32 7
  %58 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4stim14FixedCapVectorINS0_ISt7complexIfELm4EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(168) %57, i64 noundef 0)
  %59 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK4stim14FixedCapVectorISt7complexIfELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %58, i64 noundef 0)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %59, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #12
  %60 = getelementptr inbounds %"struct.stim::Gate", ptr %29, i32 0, i32 7
  %61 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4stim14FixedCapVectorINS0_ISt7complexIfELm4EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(168) %60, i64 noundef 0)
  %62 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK4stim14FixedCapVectorISt7complexIfELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %61, i64 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %62, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #12
  %63 = getelementptr inbounds %"struct.stim::Gate", ptr %29, i32 0, i32 7
  %64 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4stim14FixedCapVectorINS0_ISt7complexIfELm4EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(168) %63, i64 noundef 1)
  %65 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK4stim14FixedCapVectorISt7complexIfELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %64, i64 noundef 0)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %65, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #12
  %66 = getelementptr inbounds %"struct.stim::Gate", ptr %29, i32 0, i32 7
  %67 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4stim14FixedCapVectorINS0_ISt7complexIfELm4EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(168) %66, i64 noundef 1)
  %68 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK4stim14FixedCapVectorISt7complexIfELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %67, i64 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %68, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #12
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #12
  %69 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %70 = getelementptr inbounds %"class.std::complex", ptr %15, i32 0, i32 0
  store <2 x float> %69, ptr %70, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #12
  %71 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %72 = getelementptr inbounds %"class.std::complex", ptr %17, i32 0, i32 0
  store <2 x float> %71, ptr %72, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #12
  %73 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %14)
  %74 = getelementptr inbounds %"class.std::complex", ptr %19, i32 0, i32 0
  store <2 x float> %73, ptr %74, align 4
  %75 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %19)
  %76 = getelementptr inbounds %"class.std::complex", ptr %18, i32 0, i32 0
  store <2 x float> %75, ptr %76, align 4
  %77 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %18)
  %78 = getelementptr inbounds %"class.std::complex", ptr %16, i32 0, i32 0
  store <2 x float> %77, ptr %78, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #12
  %79 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %13)
  %80 = getelementptr inbounds %"class.std::complex", ptr %20, i32 0, i32 0
  store <2 x float> %79, ptr %80, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #12
  %81 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %13)
  %82 = getelementptr inbounds %"class.std::complex", ptr %21, i32 0, i32 0
  store <2 x float> %81, ptr %82, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #12
  %83 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %14)
  %84 = getelementptr inbounds %"class.std::complex", ptr %22, i32 0, i32 0
  store <2 x float> %83, ptr %84, align 4
  %85 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt7complexIfEmLIfEERS0_RKS_IT_E(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %22)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #12
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef 1.000000e+00, double noundef 0.000000e+00)
  %86 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %21)
  %87 = fcmp une float %86, 0.000000e+00
  br i1 %87, label %88, label %90

88:                                               ; preds = %56
  %89 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSIfEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(8) %21)
  br label %90

90:                                               ; preds = %88, %56
  %91 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %92 = fcmp une float %91, 0.000000e+00
  br i1 %92, label %93, label %95

93:                                               ; preds = %90
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSIfEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(8) %15)
  br label %95

95:                                               ; preds = %93, %90
  %96 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %16)
  %97 = fcmp une float %96, 0.000000e+00
  br i1 %97, label %98, label %100

98:                                               ; preds = %95
  %99 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSIfEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(8) %16)
  br label %100

100:                                              ; preds = %98, %95
  %101 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %20)
  %102 = fcmp une float %101, 0.000000e+00
  br i1 %102, label %103, label %105

103:                                              ; preds = %100
  %104 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSIfEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(8) %20)
  br label %105

105:                                              ; preds = %103, %100
  %106 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %107 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %108 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %109 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %110 = fmul double %108, %109
  %111 = call double @llvm.fmuladd.f64(double %106, double %107, double %110)
  %112 = call double @sqrt(double noundef %111) #12
  %113 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEdVEd(ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef %112)
  %114 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmLEd(ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef 2.000000e+00)
  %115 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt7complexIfEdVIdEERS0_RKS_IT_E(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %116 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt7complexIfEdVIdEERS0_RKS_IT_E(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %117 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt7complexIfEdVIdEERS0_RKS_IT_E(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %118 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt7complexIfEdVIdEERS0_RKS_IT_E(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %119 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %120 = fcmp oeq float %119, 0.000000e+00
  br i1 %120, label %121, label %122

121:                                              ; preds = %105
  br label %124

122:                                              ; preds = %105
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.6, i32 noundef 276, ptr noundef @__PRETTY_FUNCTION__._ZNK4stim4Gate13to_axis_angleEv) #14
  unreachable

123:                                              ; No predecessors!
  br label %124

124:                                              ; preds = %123, %121
  %125 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %16)
  %126 = fcmp oeq float %125, 0.000000e+00
  br i1 %126, label %127, label %128

127:                                              ; preds = %124
  br label %130

128:                                              ; preds = %124
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.6, i32 noundef 277, ptr noundef @__PRETTY_FUNCTION__._ZNK4stim4Gate13to_axis_angleEv) #14
  unreachable

129:                                              ; No predecessors!
  br label %130

130:                                              ; preds = %129, %127
  %131 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %20)
  %132 = fcmp oeq float %131, 0.000000e+00
  br i1 %132, label %133, label %134

133:                                              ; preds = %130
  br label %136

134:                                              ; preds = %130
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.6, i32 noundef 278, ptr noundef @__PRETTY_FUNCTION__._ZNK4stim4Gate13to_axis_angleEv) #14
  unreachable

135:                                              ; No predecessors!
  br label %136

136:                                              ; preds = %135, %133
  %137 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %21)
  %138 = fcmp oeq float %137, 0.000000e+00
  br i1 %138, label %139, label %140

139:                                              ; preds = %136
  br label %142

140:                                              ; preds = %136
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.6, i32 noundef 279, ptr noundef @__PRETTY_FUNCTION__._ZNK4stim4Gate13to_axis_angleEv) #14
  unreachable

141:                                              ; No predecessors!
  br label %142

142:                                              ; preds = %141, %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #12
  %143 = call noundef float @_ZNKSt7complexIfE4realB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  store float %143, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #12
  %144 = call noundef float @_ZNKSt7complexIfE4realB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %16)
  store float %144, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #12
  %145 = call noundef float @_ZNKSt7complexIfE4realB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %20)
  store float %145, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #12
  %146 = call noundef float @_ZNKSt7complexIfE4realB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %21)
  store float %146, ptr %27, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #12
  %147 = load float, ptr %24, align 4, !tbaa !11
  %148 = load float, ptr %24, align 4, !tbaa !11
  %149 = load float, ptr %25, align 4, !tbaa !11
  %150 = load float, ptr %25, align 4, !tbaa !11
  %151 = fmul float %149, %150
  %152 = call float @llvm.fmuladd.f32(float %147, float %148, float %151)
  %153 = load float, ptr %26, align 4, !tbaa !11
  %154 = load float, ptr %26, align 4, !tbaa !11
  %155 = call float @llvm.fmuladd.f32(float %153, float %154, float %152)
  %156 = fpext float %155 to double
  %157 = call double @sqrt(double noundef %156) #12
  store double %157, ptr %28, align 8, !tbaa !13
  %158 = load double, ptr %28, align 8, !tbaa !13
  %159 = fcmp oeq double %158, 0.000000e+00
  br i1 %159, label %160, label %161

160:                                              ; preds = %142
  store float 1.000000e+00, ptr %24, align 4, !tbaa !11
  br label %177

161:                                              ; preds = %142
  %162 = load double, ptr %28, align 8, !tbaa !13
  %163 = load float, ptr %24, align 4, !tbaa !11
  %164 = fpext float %163 to double
  %165 = fdiv double %164, %162
  %166 = fptrunc double %165 to float
  store float %166, ptr %24, align 4, !tbaa !11
  %167 = load double, ptr %28, align 8, !tbaa !13
  %168 = load float, ptr %25, align 4, !tbaa !11
  %169 = fpext float %168 to double
  %170 = fdiv double %169, %167
  %171 = fptrunc double %170 to float
  store float %171, ptr %25, align 4, !tbaa !11
  %172 = load double, ptr %28, align 8, !tbaa !13
  %173 = load float, ptr %26, align 4, !tbaa !11
  %174 = fpext float %173 to double
  %175 = fdiv double %174, %172
  %176 = fptrunc double %175 to float
  store float %176, ptr %26, align 4, !tbaa !11
  br label %177

177:                                              ; preds = %161, %160
  %178 = load float, ptr %24, align 4, !tbaa !11
  %179 = fcmp olt float %178, 0.000000e+00
  %180 = zext i1 %179 to i32
  %181 = load float, ptr %25, align 4, !tbaa !11
  %182 = fcmp olt float %181, 0.000000e+00
  %183 = zext i1 %182 to i32
  %184 = add nsw i32 %180, %183
  %185 = load float, ptr %26, align 4, !tbaa !11
  %186 = fcmp olt float %185, 0.000000e+00
  %187 = zext i1 %186 to i32
  %188 = add nsw i32 %184, %187
  %189 = icmp sgt i32 %188, 1
  br i1 %189, label %190, label %199

190:                                              ; preds = %177
  %191 = load float, ptr %24, align 4, !tbaa !11
  %192 = fneg float %191
  store float %192, ptr %24, align 4, !tbaa !11
  %193 = load float, ptr %25, align 4, !tbaa !11
  %194 = fneg float %193
  store float %194, ptr %25, align 4, !tbaa !11
  %195 = load float, ptr %26, align 4, !tbaa !11
  %196 = fneg float %195
  store float %196, ptr %26, align 4, !tbaa !11
  %197 = load float, ptr %27, align 4, !tbaa !11
  %198 = fneg float %197
  store float %198, ptr %27, align 4, !tbaa !11
  br label %199

199:                                              ; preds = %190, %177
  %200 = getelementptr inbounds %"struct.std::array.8", ptr %2, i32 0, i32 0
  %201 = load float, ptr %24, align 4, !tbaa !11
  store float %201, ptr %200, align 4, !tbaa !11
  %202 = getelementptr inbounds float, ptr %200, i64 1
  %203 = load float, ptr %25, align 4, !tbaa !11
  store float %203, ptr %202, align 4, !tbaa !11
  %204 = getelementptr inbounds float, ptr %200, i64 2
  %205 = load float, ptr %26, align 4, !tbaa !11
  store float %205, ptr %204, align 4, !tbaa !11
  %206 = getelementptr inbounds float, ptr %200, i64 3
  %207 = load float, ptr %27, align 4, !tbaa !11
  %208 = call float @acosf(float noundef %207) #12
  %209 = fmul float %208, 2.000000e+00
  store float %209, ptr %206, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #12
  %210 = getelementptr inbounds %"struct.std::array.8", ptr %2, i32 0, i32 0
  %211 = load { <2 x float>, <2 x float> }, ptr %210, align 4
  ret { <2 x float>, <2 x float> } %211

212:                                              ; preds = %55
  %213 = load ptr, ptr %7, align 8
  %214 = load i32, ptr %8, align 4
  %215 = insertvalue { ptr, i32 } poison, ptr %213, 0
  %216 = insertvalue { ptr, i32 } %215, i32 %214, 1
  resume { ptr, i32 } %216

217:                                              ; preds = %38
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #7

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSIfEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) #9 align 2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEdVEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmLEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt7complexIfEdVIdEERS0_RKS_IT_E(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #8 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #11

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNKSt7complexIfE4realB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #10

; Function Attrs: nounwind
declare float @acosf(float noundef) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "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"="64" "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 = { mustprogress uwtable "min-legal-vector-width"="64" "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 #9 = { mustprogress nounwind uwtable "min-legal-vector-width"="64" "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 #10 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { noreturn 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 #12 = { nounwind }
attributes #13 = { noreturn }
attributes #14 = { noreturn 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 = !{i64 0, i64 8, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.7 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.7 = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::complex" = type { { float, float } }
%"class.std::complex.9" = type { { double, double } }

@_ZTISt12out_of_range = external constant ptr
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [73 x i8], align 1
@__PRETTY_FUNCTION__._ZNK4stim4Gate13to_axis_angleEv = external hidden unnamed_addr constant [55 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt12out_of_rangeD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4stim14FixedCapVectorINS0_ISt7complexIfELm4EEELm4EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3

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

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

declare void @_ZNSt12out_of_rangeC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4stim14FixedCapVectorINS0_ISt7complexIfELm4EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(168), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK4stim14FixedCapVectorISt7complexIfELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_ZNK4stim4Gate13to_axis_angleEv(ptr noundef nonnull align 8 dereferenceable(320) %0) local_unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::complex", align 8
  %6 = alloca %"class.std::complex", align 8
  %7 = alloca %"class.std::complex", align 8
  %8 = alloca %"class.std::complex", align 8
  %9 = alloca %"class.std::complex", align 4
  %10 = alloca %"class.std::complex", align 8
  %11 = alloca %"class.std::complex", align 8
  %12 = alloca %"class.std::complex", align 8
  %13 = alloca %"class.std::complex", align 8
  %14 = alloca %"class.std::complex", align 8
  %15 = alloca %"class.std::complex", align 8
  %16 = alloca %"class.std::complex", align 8
  %17 = alloca %"class.std::complex", align 8
  %18 = alloca %"class.std::complex.9", align 8
  %19 = getelementptr inbounds i8, ptr %0, i64 56
  %20 = tail call noundef i64 @_ZNK4stim14FixedCapVectorINS0_ISt7complexIfELm4EEELm4EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(168) %19)
  %.not = icmp eq i64 %20, 2
  br i1 %.not, label %33, label %21

21:                                               ; preds = %1
  %22 = tail call ptr @__cxa_allocate_exception(i64 16) #13
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #13
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #13
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #13
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #13
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ISt17basic_string_viewIcS2_EvEERKT_RKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %23 unwind label %.thread

23:                                               ; preds = %21
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %2, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.4)
          to label %24 unwind label %27

24:                                               ; preds = %23
  invoke void @_ZNSt12out_of_rangeC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %25 unwind label %29

25:                                               ; preds = %24
  invoke void @__cxa_throw(ptr nonnull %22, ptr nonnull @_ZTISt12out_of_range, ptr nonnull @_ZNSt12out_of_rangeD1Ev) #14
          to label %145 unwind label %29

.thread:                                          ; preds = %21
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #13
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #13
  br label %32

27:                                               ; preds = %23
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %31

29:                                               ; preds = %25, %24
  %.034 = phi i1 [ false, %25 ], [ true, %24 ]
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #13
  br label %31

31:                                               ; preds = %27, %29
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ]
  %.135 = phi i1 [ %.034, %29 ], [ true, %27 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #13
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #13
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #13
  br i1 %.135, label %32, label %144

32:                                               ; preds = %.thread, %31
  %.pn.pn46 = phi { ptr, i32 } [ %26, %.thread ], [ %.pn, %31 ]
  call void @__cxa_free_exception(ptr %22) #13
  br label %144

33:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #13
  %34 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4stim14FixedCapVectorINS0_ISt7complexIfELm4EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(168) %19, i64 noundef 0)
  %35 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK4stim14FixedCapVectorISt7complexIfELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %34, i64 noundef 0)
  %36 = load i64, ptr %35, align 4, !tbaa !5
  store i64 %36, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #13
  %37 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4stim14FixedCapVectorINS0_ISt7complexIfELm4EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(168) %19, i64 noundef 0)
  %38 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK4stim14FixedCapVectorISt7complexIfELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %37, i64 noundef 1)
  %39 = load i64, ptr %38, align 4, !tbaa !5
  store i64 %39, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #13
  %40 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4stim14FixedCapVectorINS0_ISt7complexIfELm4EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(168) %19, i64 noundef 1)
  %41 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK4stim14FixedCapVectorISt7complexIfELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %40, i64 noundef 0)
  %42 = load i64, ptr %41, align 4, !tbaa !5
  store i64 %42, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #13
  %43 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK4stim14FixedCapVectorINS0_ISt7complexIfELm4EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(168) %19, i64 noundef 1)
  %44 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK4stim14FixedCapVectorISt7complexIfELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %43, i64 noundef 1)
  %45 = load i64, ptr %44, align 4, !tbaa !5
  store i64 %45, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #13
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #13
  %46 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %46, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #13
  %47 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %47, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #13
  %48 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %48, ptr %14, align 8
  %49 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %49, ptr %13, align 8
  %50 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %50, ptr %11, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #13
  %51 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %51, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #13
  %52 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %52, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #13
  %53 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %53, ptr %17, align 8
  %54 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt7complexIfEmLIfEERS0_RKS_IT_E(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #13
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef 1.000000e+00, double noundef 0.000000e+00)
  %55 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %16)
  %56 = fcmp une float %55, 0.000000e+00
  br i1 %56, label %57, label %59

57:                                               ; preds = %33
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSIfEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(8) %16)
  br label %59

59:                                               ; preds = %57, %33
  %60 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %61 = fcmp une float %60, 0.000000e+00
  br i1 %61, label %62, label %64

62:                                               ; preds = %59
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSIfEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(8) %10)
  br label %64

64:                                               ; preds = %62, %59
  %65 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %11)
  %66 = fcmp une float %65, 0.000000e+00
  br i1 %66, label %67, label %69

67:                                               ; preds = %64
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSIfEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(8) %11)
  br label %69

69:                                               ; preds = %67, %64
  %70 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %71 = fcmp une float %70, 0.000000e+00
  br i1 %71, label %72, label %74

72:                                               ; preds = %69
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSIfEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(8) %15)
  br label %74

74:                                               ; preds = %72, %69
  %75 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %18)
  %76 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %18)
  %77 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %18)
  %78 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %18)
  %79 = fmul double %77, %78
  %80 = call double @llvm.fmuladd.f64(double %75, double %76, double %79)
  %81 = call double @sqrt(double noundef %80) #13
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEdVEd(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef %81)
  %83 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmLEd(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef 2.000000e+00)
  %84 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt7complexIfEdVIdEERS0_RKS_IT_E(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %85 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt7complexIfEdVIdEERS0_RKS_IT_E(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %86 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt7complexIfEdVIdEERS0_RKS_IT_E(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %87 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt7complexIfEdVIdEERS0_RKS_IT_E(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %88 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %89 = fcmp oeq float %88, 0.000000e+00
  br i1 %89, label %91, label %90

90:                                               ; preds = %74
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, i32 noundef 276, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4stim4Gate13to_axis_angleEv) #15
  unreachable

91:                                               ; preds = %74
  %92 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %11)
  %93 = fcmp oeq float %92, 0.000000e+00
  br i1 %93, label %95, label %94

94:                                               ; preds = %91
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, i32 noundef 277, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4stim4Gate13to_axis_angleEv) #15
  unreachable

95:                                               ; preds = %91
  %96 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %97 = fcmp oeq float %96, 0.000000e+00
  br i1 %97, label %99, label %98

98:                                               ; preds = %95
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.6, i32 noundef 278, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4stim4Gate13to_axis_angleEv) #15
  unreachable

99:                                               ; preds = %95
  %100 = call noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %16)
  %101 = fcmp oeq float %100, 0.000000e+00
  br i1 %101, label %103, label %102

102:                                              ; preds = %99
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.6, i32 noundef 279, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4stim4Gate13to_axis_angleEv) #15
  unreachable

103:                                              ; preds = %99
  %104 = call noundef float @_ZNKSt7complexIfE4realB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %105 = call noundef float @_ZNKSt7complexIfE4realB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %11)
  %106 = call noundef float @_ZNKSt7complexIfE4realB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %107 = call noundef float @_ZNKSt7complexIfE4realB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8) %16)
  %108 = fmul float %105, %105
  %109 = call float @llvm.fmuladd.f32(float %104, float %104, float %108)
  %110 = call float @llvm.fmuladd.f32(float %106, float %106, float %109)
  %111 = fpext float %110 to double
  %sqrt = call double @llvm.sqrt.f64(double %111)
  %112 = fcmp oeq double %sqrt, 0.000000e+00
  %113 = insertelement <2 x float> <float poison, float 1.000000e+00>, float %106, i64 0
  br i1 %112, label %124, label %114

114:                                              ; preds = %103
  %115 = insertelement <2 x float> %113, float %104, i64 1
  %116 = fpext <2 x float> %115 to <2 x double>
  %117 = fpext float %105 to double
  %118 = fdiv double %117, %sqrt
  %119 = fptrunc double %118 to float
  %120 = insertelement <2 x double> poison, double %sqrt, i64 0
  %121 = shufflevector <2 x double> %120, <2 x double> poison, <2 x i32> zeroinitializer
  %122 = fdiv <2 x double> %116, %121
  %123 = fptrunc <2 x double> %122 to <2 x float>
  br label %124

124:                                              ; preds = %103, %114
  %.030 = phi float [ %119, %114 ], [ %105, %103 ]
  %125 = phi <2 x float> [ %123, %114 ], [ %113, %103 ]
  %126 = extractelement <2 x float> %125, i64 1
  %127 = fcmp olt float %126, 0.000000e+00
  %128 = zext i1 %127 to i32
  %129 = fcmp olt float %.030, 0.000000e+00
  %130 = zext i1 %129 to i32
  %131 = add nuw nsw i32 %130, %128
  %132 = extractelement <2 x float> %125, i64 0
  %133 = fcmp olt float %132, 0.000000e+00
  %134 = zext i1 %133 to i32
  %135 = add nuw nsw i32 %131, %134
  %136 = icmp ugt i32 %135, 1
  %137 = fneg float %.030
  %138 = fneg <2 x float> %125
  %139 = fneg float %107
  %.131 = select i1 %136, float %137, float %.030
  %.0 = select i1 %136, float %139, float %107
  %140 = select i1 %136, <2 x float> %138, <2 x float> %125
  %141 = shufflevector <2 x float> %140, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %.sroa.0.4.vec.insert = insertelement <2 x float> %141, float %.131, i64 1
  %142 = call float @acosf(float noundef %.0) #13
  %143 = fmul float %142, 2.000000e+00
  %.sroa.3.12.vec.insert = insertelement <2 x float> %140, float %143, i64 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #13
  %.fca.0.insert = insertvalue { <2 x float>, <2 x float> } poison, <2 x float> %.sroa.0.4.vec.insert, 0
  %.fca.1.insert = insertvalue { <2 x float>, <2 x float> } %.fca.0.insert, <2 x float> %.sroa.3.12.vec.insert, 1
  ret { <2 x float>, <2 x float> } %.fca.1.insert

144:                                              ; preds = %31, %32
  %.pn.pn45 = phi { ptr, i32 } [ %.pn, %31 ], [ %.pn.pn46, %32 ]
  resume { ptr, i32 } %.pn.pn45

145:                                              ; preds = %25
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNKSt7complexIfE4imagB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt7complexIfEdVIdEERS0_RKS_IT_E(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #7 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #11

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNKSt7complexIfE4realB5cxx11Ev(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #10

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @acosf(float noundef) local_unnamed_addr #9

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #4 = { 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 #5 = { "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="64" "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 #9 = { 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 #10 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { noreturn 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 #12 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #13 = { nounwind }
attributes #14 = { noreturn }
attributes #15 = { noreturn 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass