; LLVM IR from drohmer/cgp :: library/cgp/09_geometric_transformation/rotation_transform (rotation_transform)

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

%"struct.cgp::quaternion" = type { %"struct.cgp::numarray_stack" }
%"struct.cgp::numarray_stack" = type { float, float, float, float }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@.str.2 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [115 x i8], align 1
@__func__._ZN3cgp18rotation_transform28convert_matrix_to_quaternionERKNS_12matrix_stackIfLi3ELi3EEE = external hidden unnamed_addr constant [29 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN3cgp10quaternionCI2NS_14numarray_stackIfLi4EEEERKfS3_S3_S3_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

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

; Function Attrs: 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) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN3cgp4normIfLi4EEET_RKNS_14numarray_stackIS1_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(16)) #3

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_ZN3cgp18rotation_transform28convert_matrix_to_quaternionERKNS_12matrix_stackIfLi3ELi3EEE(ptr noundef nonnull align 4 dereferenceable(36) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.cgp::quaternion", align 4
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca %"struct.cgp::quaternion", align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca %"struct.cgp::quaternion", align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca %"struct.cgp::quaternion", align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca %"struct.cgp::quaternion", align 4
  %34 = alloca float, align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::allocator", align 1
  %40 = alloca ptr, align 8
  %41 = alloca i32, align 4
  %42 = alloca %"class.std::__cxx11::basic_string", align 8
  %43 = alloca %"class.std::__cxx11::basic_string", align 8
  %44 = alloca %"class.std::__cxx11::basic_string", align 8
  %45 = alloca %"class.std::allocator", align 1
  %46 = alloca %"class.std::__cxx11::basic_string", align 8
  %47 = alloca %"class.std::allocator", align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = call noundef float @_ZN3cgp5traceIfLi3EEET_RKNS_12matrix_stackIS1_XT0_EXT0_EEE(ptr noundef nonnull align 4 dereferenceable(36) %48)
  store float %49, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %50)
  %52 = load float, ptr %51, align 4, !tbaa !9
  store float %52, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %53)
  %55 = load float, ptr %54, align 4, !tbaa !9
  store float %55, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %56)
  %58 = load float, ptr %57, align 4, !tbaa !9
  store float %58, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %59)
  %61 = load float, ptr %60, align 4, !tbaa !9
  store float %61, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %62)
  %64 = load float, ptr %63, align 4, !tbaa !9
  store float %64, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %65)
  %67 = load float, ptr %66, align 4, !tbaa !9
  store float %67, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %68)
  %70 = load float, ptr %69, align 4, !tbaa !9
  store float %70, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %71)
  %73 = load float, ptr %72, align 4, !tbaa !9
  store float %73, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %74)
  %76 = load float, ptr %75, align 4, !tbaa !9
  store float %76, ptr %13, align 4, !tbaa !9
  call void @_ZN3cgp10quaternionC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %2)
  %77 = load float, ptr %4, align 4, !tbaa !9
  %78 = fcmp ogt float %77, 0.000000e+00
  br i1 %78, label %79, label %101

79:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %80 = load float, ptr %4, align 4, !tbaa !9
  %81 = fadd float %80, 1.000000e+00
  %82 = call noundef float @_ZSt4sqrtf(float noundef %81)
  %83 = fdiv float 5.000000e-01, %82
  store float %83, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %84 = load float, ptr %14, align 4, !tbaa !9
  %85 = load float, ptr %12, align 4, !tbaa !9
  %86 = load float, ptr %10, align 4, !tbaa !9
  %87 = fsub float %85, %86
  %88 = fmul float %84, %87
  store float %88, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %89 = load float, ptr %14, align 4, !tbaa !9
  %90 = load float, ptr %7, align 4, !tbaa !9
  %91 = load float, ptr %11, align 4, !tbaa !9
  %92 = fsub float %90, %91
  %93 = fmul float %89, %92
  store float %93, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %94 = load float, ptr %14, align 4, !tbaa !9
  %95 = load float, ptr %8, align 4, !tbaa !9
  %96 = load float, ptr %6, align 4, !tbaa !9
  %97 = fsub float %95, %96
  %98 = fmul float %94, %97
  store float %98, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %99 = load float, ptr %14, align 4, !tbaa !9
  %100 = fdiv float 2.500000e-01, %99
  store float %100, ptr %19, align 4, !tbaa !9
  call void @_ZN3cgp10quaternionCI2NS_14numarray_stackIfLi4EEEERKfS3_S3_S3_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 %15, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %205

101:                                              ; preds = %1
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp12matrix_stackIfLi3ELi3EEclEii(ptr noundef nonnull align 4 dereferenceable(36) %102, i32 noundef 0, i32 noundef 0)
  %104 = load float, ptr %103, align 4, !tbaa !9
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp12matrix_stackIfLi3ELi3EEclEii(ptr noundef nonnull align 4 dereferenceable(36) %105, i32 noundef 1, i32 noundef 1)
  %107 = load float, ptr %106, align 4, !tbaa !9
  %108 = fcmp ogt float %104, %107
  br i1 %108, label %109, label %143

109:                                              ; preds = %101
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp12matrix_stackIfLi3ELi3EEclEii(ptr noundef nonnull align 4 dereferenceable(36) %110, i32 noundef 0, i32 noundef 0)
  %112 = load float, ptr %111, align 4, !tbaa !9
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp12matrix_stackIfLi3ELi3EEclEii(ptr noundef nonnull align 4 dereferenceable(36) %113, i32 noundef 2, i32 noundef 2)
  %115 = load float, ptr %114, align 4, !tbaa !9
  %116 = fcmp ogt float %112, %115
  br i1 %116, label %117, label %143

117:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %118 = load float, ptr %5, align 4, !tbaa !9
  %119 = fadd float 1.000000e+00, %118
  %120 = load float, ptr %9, align 4, !tbaa !9
  %121 = fsub float %119, %120
  %122 = load float, ptr %13, align 4, !tbaa !9
  %123 = fsub float %121, %122
  %124 = call noundef float @_ZSt4sqrtf(float noundef %123)
  %125 = fmul float 2.000000e+00, %124
  store float %125, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %126 = load float, ptr %20, align 4, !tbaa !9
  %127 = fmul float 2.500000e-01, %126
  store float %127, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %128 = load float, ptr %6, align 4, !tbaa !9
  %129 = load float, ptr %8, align 4, !tbaa !9
  %130 = fadd float %128, %129
  %131 = load float, ptr %20, align 4, !tbaa !9
  %132 = fdiv float %130, %131
  store float %132, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %133 = load float, ptr %7, align 4, !tbaa !9
  %134 = load float, ptr %11, align 4, !tbaa !9
  %135 = fadd float %133, %134
  %136 = load float, ptr %20, align 4, !tbaa !9
  %137 = fdiv float %135, %136
  store float %137, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %138 = load float, ptr %12, align 4, !tbaa !9
  %139 = load float, ptr %10, align 4, !tbaa !9
  %140 = fsub float %138, %139
  %141 = load float, ptr %20, align 4, !tbaa !9
  %142 = fdiv float %140, %141
  store float %142, ptr %25, align 4, !tbaa !9
  call void @_ZN3cgp10quaternionCI2NS_14numarray_stackIfLi4EEEERKfS3_S3_S3_(ptr noundef nonnull align 4 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 %21, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %204

143:                                              ; preds = %109, %101
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp12matrix_stackIfLi3ELi3EEclEii(ptr noundef nonnull align 4 dereferenceable(36) %144, i32 noundef 1, i32 noundef 1)
  %146 = load float, ptr %145, align 4, !tbaa !9
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp12matrix_stackIfLi3ELi3EEclEii(ptr noundef nonnull align 4 dereferenceable(36) %147, i32 noundef 2, i32 noundef 2)
  %149 = load float, ptr %148, align 4, !tbaa !9
  %150 = fcmp ogt float %146, %149
  br i1 %150, label %151, label %177

151:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %152 = load float, ptr %9, align 4, !tbaa !9
  %153 = fadd float 1.000000e+00, %152
  %154 = load float, ptr %5, align 4, !tbaa !9
  %155 = fsub float %153, %154
  %156 = load float, ptr %13, align 4, !tbaa !9
  %157 = fsub float %155, %156
  %158 = call noundef float @_ZSt4sqrtf(float noundef %157)
  %159 = fmul float 2.000000e+00, %158
  store float %159, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %160 = load float, ptr %6, align 4, !tbaa !9
  %161 = load float, ptr %8, align 4, !tbaa !9
  %162 = fadd float %160, %161
  %163 = load float, ptr %26, align 4, !tbaa !9
  %164 = fdiv float %162, %163
  store float %164, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %165 = load float, ptr %26, align 4, !tbaa !9
  %166 = fmul float 2.500000e-01, %165
  store float %166, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %167 = load float, ptr %10, align 4, !tbaa !9
  %168 = load float, ptr %12, align 4, !tbaa !9
  %169 = fadd float %167, %168
  %170 = load float, ptr %26, align 4, !tbaa !9
  %171 = fdiv float %169, %170
  store float %171, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %172 = load float, ptr %7, align 4, !tbaa !9
  %173 = load float, ptr %11, align 4, !tbaa !9
  %174 = fsub float %172, %173
  %175 = load float, ptr %26, align 4, !tbaa !9
  %176 = fdiv float %174, %175
  store float %176, ptr %31, align 4, !tbaa !9
  call void @_ZN3cgp10quaternionCI2NS_14numarray_stackIfLi4EEEERKfS3_S3_S3_(ptr noundef nonnull align 4 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %31)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 %27, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %203

177:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %178 = load float, ptr %13, align 4, !tbaa !9
  %179 = fadd float 1.000000e+00, %178
  %180 = load float, ptr %5, align 4, !tbaa !9
  %181 = fsub float %179, %180
  %182 = load float, ptr %9, align 4, !tbaa !9
  %183 = fsub float %181, %182
  %184 = call noundef float @_ZSt4sqrtf(float noundef %183)
  %185 = fmul float 2.000000e+00, %184
  store float %185, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  %186 = load float, ptr %7, align 4, !tbaa !9
  %187 = load float, ptr %11, align 4, !tbaa !9
  %188 = fadd float %186, %187
  %189 = load float, ptr %32, align 4, !tbaa !9
  %190 = fdiv float %188, %189
  store float %190, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %191 = load float, ptr %10, align 4, !tbaa !9
  %192 = load float, ptr %12, align 4, !tbaa !9
  %193 = fadd float %191, %192
  %194 = load float, ptr %32, align 4, !tbaa !9
  %195 = fdiv float %193, %194
  store float %195, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %196 = load float, ptr %32, align 4, !tbaa !9
  %197 = fmul float 2.500000e-01, %196
  store float %197, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  %198 = load float, ptr %8, align 4, !tbaa !9
  %199 = load float, ptr %6, align 4, !tbaa !9
  %200 = fsub float %198, %199
  %201 = load float, ptr %32, align 4, !tbaa !9
  %202 = fdiv float %200, %201
  store float %202, ptr %37, align 4, !tbaa !9
  call void @_ZN3cgp10quaternionCI2NS_14numarray_stackIfLi4EEEERKfS3_S3_S3_(ptr noundef nonnull align 4 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 %33, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %203

203:                                              ; preds = %177, %151
  br label %204

204:                                              ; preds = %203, %117
  br label %205

205:                                              ; preds = %204, %79
  %206 = call noundef float @_ZN3cgp4normIfLi4EEET_RKNS_14numarray_stackIS1_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(16) %2)
  %207 = fsub float %206, 1.000000e+00
  %208 = call noundef float @_ZSt3absf(float noundef %207)
  %209 = fcmp ogt float %208, 0x3FA99999A0000000
  br i1 %209, label %210, label %248

210:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %211 unwind label %219

211:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 32, ptr %42) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %43) #7
  %212 = invoke noundef float @_ZN3cgp4normIfLi4EEET_RKNS_14numarray_stackIS1_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(16) %2)
          to label %213 unwind label %223

213:                                              ; preds = %211
  invoke void @_ZN3cgp3strB5cxx11Ef(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %43, float noundef %212)
          to label %214 unwind label %223

214:                                              ; preds = %213
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %42, ptr noundef @.str.6, ptr noundef nonnull align 8 dereferenceable(32) %43)
          to label %215 unwind label %227

215:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 32, ptr %44) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %45)
          to label %216 unwind label %231

216:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 32, ptr %46) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %47) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef @__func__._ZN3cgp18rotation_transform28convert_matrix_to_quaternionERKNS_12matrix_stackIfLi3ELi3EEE, ptr noundef nonnull align 1 dereferenceable(1) %47)
          to label %217 unwind label %235

217:                                              ; preds = %216
  invoke void @_ZN3cgp12call_warningERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 8 dereferenceable(32) %46, i32 noundef 119)
          to label %218 unwind label %239

218:                                              ; preds = %217
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #7
  br label %248

219:                                              ; preds = %210
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %40, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %41, align 4
  br label %247

223:                                              ; preds = %213, %211
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %40, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %41, align 4
  br label %246

227:                                              ; preds = %214
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %40, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %41, align 4
  br label %245

231:                                              ; preds = %215
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %40, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %41, align 4
  br label %244

235:                                              ; preds = %216
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %40, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %41, align 4
  br label %243

239:                                              ; preds = %217
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %40, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %41, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #7
  br label %243

243:                                              ; preds = %239, %235
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #7
  br label %244

244:                                              ; preds = %243, %231
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #7
  br label %245

245:                                              ; preds = %244, %227
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  br label %246

246:                                              ; preds = %245, %223
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  br label %247

247:                                              ; preds = %246, %219
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %251

248:                                              ; preds = %218, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  %249 = getelementptr inbounds %"struct.cgp::quaternion", ptr %2, i32 0, i32 0
  %250 = load { <2 x float>, <2 x float> }, ptr %249, align 4
  ret { <2 x float>, <2 x float> } %250

251:                                              ; preds = %247
  %252 = load ptr, ptr %40, align 8
  %253 = load i32, ptr %41, align 4
  %254 = insertvalue { ptr, i32 } poison, ptr %252, 0
  %255 = insertvalue { ptr, i32 } %254, i32 %253, 1
  resume { ptr, i32 } %255
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN3cgp5traceIfLi3EEET_RKNS_12matrix_stackIS1_XT0_EXT0_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3cgp10quaternionC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #5

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp12matrix_stackIfLi3ELi3EEclEii(ptr noundef nonnull align 4 dereferenceable(36), i32 noundef, i32 noundef) #6

declare void @_ZN3cgp12call_warningERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #6

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

declare void @_ZN3cgp3strB5cxx11Ef(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, float noundef) #6

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

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

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

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

%"struct.cgp::quaternion" = type { %"struct.cgp::numarray_stack" }
%"struct.cgp::numarray_stack" = type { float, float, float, float }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@.str.2 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [115 x i8], align 1
@__func__._ZN3cgp18rotation_transform28convert_matrix_to_quaternionERKNS_12matrix_stackIfLi3ELi3EEE = external hidden unnamed_addr constant [29 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN3cgp10quaternionCI2NS_14numarray_stackIfLi4EEEERKfS3_S3_S3_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress 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) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN3cgp4normIfLi4EEET_RKNS_14numarray_stackIS1_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_ZN3cgp18rotation_transform28convert_matrix_to_quaternionERKNS_12matrix_stackIfLi3ELi3EEE(ptr noundef nonnull align 4 dereferenceable(36) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.cgp::quaternion", align 8
  %3 = alloca %"struct.cgp::quaternion", align 4
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca %"struct.cgp::quaternion", align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca %"struct.cgp::quaternion", align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca %"struct.cgp::quaternion", align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::allocator", align 1
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator", align 1
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator", align 1
  %31 = tail call noundef float @_ZN3cgp5traceIfLi3EEET_RKNS_12matrix_stackIS1_XT0_EXT0_EEE(ptr noundef nonnull align 4 dereferenceable(36) %0)
  %32 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %0)
  %33 = load float, ptr %32, align 4, !tbaa !5
  %34 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %0)
  %35 = load float, ptr %34, align 4, !tbaa !5
  %36 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %0)
  %37 = load float, ptr %36, align 4, !tbaa !5
  %38 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %0)
  %39 = load float, ptr %38, align 4, !tbaa !5
  %40 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %0)
  %41 = load float, ptr %40, align 4, !tbaa !5
  %42 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %0)
  %43 = load float, ptr %42, align 4, !tbaa !5
  %44 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %0)
  %45 = load float, ptr %44, align 4, !tbaa !5
  %46 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %0)
  %47 = load float, ptr %46, align 4, !tbaa !5
  %48 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %0)
  %49 = load float, ptr %48, align 4, !tbaa !5
  call void @_ZN3cgp10quaternionC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %2)
  %50 = fcmp ogt float %31, 0.000000e+00
  br i1 %50, label %51, label %62

51:                                               ; preds = %1
  %52 = fadd float %31, 1.000000e+00
  %53 = call noundef float @_ZSt4sqrtf(float noundef %52)
  %54 = fdiv float 5.000000e-01, %53
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %55 = fsub float %47, %43
  %56 = fmul float %55, %54
  store float %56, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %57 = fsub float %37, %45
  %58 = fmul float %57, %54
  store float %58, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %59 = fsub float %39, %35
  %60 = fmul float %59, %54
  store float %60, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %61 = fdiv float 2.500000e-01, %54
  store float %61, ptr %7, align 4, !tbaa !5
  call void @_ZN3cgp10quaternionCI2NS_14numarray_stackIfLi4EEEERKfS3_S3_S3_(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %3, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  br label %119

62:                                               ; preds = %1
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp12matrix_stackIfLi3ELi3EEclEii(ptr noundef nonnull align 4 dereferenceable(36) %0, i32 noundef 0, i32 noundef 0)
  %64 = load float, ptr %63, align 4, !tbaa !5
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp12matrix_stackIfLi3ELi3EEclEii(ptr noundef nonnull align 4 dereferenceable(36) %0, i32 noundef 1, i32 noundef 1)
  %66 = load float, ptr %65, align 4, !tbaa !5
  %67 = fcmp ogt float %64, %66
  br i1 %67, label %68, label %87

68:                                               ; preds = %62
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp12matrix_stackIfLi3ELi3EEclEii(ptr noundef nonnull align 4 dereferenceable(36) %0, i32 noundef 0, i32 noundef 0)
  %70 = load float, ptr %69, align 4, !tbaa !5
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp12matrix_stackIfLi3ELi3EEclEii(ptr noundef nonnull align 4 dereferenceable(36) %0, i32 noundef 2, i32 noundef 2)
  %72 = load float, ptr %71, align 4, !tbaa !5
  %73 = fcmp ogt float %70, %72
  br i1 %73, label %74, label %87

74:                                               ; preds = %68
  %75 = fadd float %33, 1.000000e+00
  %76 = fsub float %75, %41
  %77 = fsub float %76, %49
  %78 = call noundef float @_ZSt4sqrtf(float noundef %77)
  %79 = fmul float %78, 2.000000e+00
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %80 = fmul float %79, 2.500000e-01
  store float %80, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %81 = fadd float %35, %39
  %82 = fdiv float %81, %79
  store float %82, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %83 = fadd float %37, %45
  %84 = fdiv float %83, %79
  store float %84, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %85 = fsub float %47, %43
  %86 = fdiv float %85, %79
  store float %86, ptr %12, align 4, !tbaa !5
  call void @_ZN3cgp10quaternionCI2NS_14numarray_stackIfLi4EEEERKfS3_S3_S3_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %8, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %119

87:                                               ; preds = %68, %62
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp12matrix_stackIfLi3ELi3EEclEii(ptr noundef nonnull align 4 dereferenceable(36) %0, i32 noundef 1, i32 noundef 1)
  %89 = load float, ptr %88, align 4, !tbaa !5
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp12matrix_stackIfLi3ELi3EEclEii(ptr noundef nonnull align 4 dereferenceable(36) %0, i32 noundef 2, i32 noundef 2)
  %91 = load float, ptr %90, align 4, !tbaa !5
  %92 = fcmp ogt float %89, %91
  br i1 %92, label %93, label %106

93:                                               ; preds = %87
  %94 = fadd float %41, 1.000000e+00
  %95 = fsub float %94, %33
  %96 = fsub float %95, %49
  %97 = call noundef float @_ZSt4sqrtf(float noundef %96)
  %98 = fmul float %97, 2.000000e+00
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  %99 = fadd float %35, %39
  %100 = fdiv float %99, %98
  store float %100, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  %101 = fmul float %98, 2.500000e-01
  store float %101, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  %102 = fadd float %43, %47
  %103 = fdiv float %102, %98
  store float %103, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %104 = fsub float %37, %45
  %105 = fdiv float %104, %98
  store float %105, ptr %17, align 4, !tbaa !5
  call void @_ZN3cgp10quaternionCI2NS_14numarray_stackIfLi4EEEERKfS3_S3_S3_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %13, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br label %119

106:                                              ; preds = %87
  %107 = fadd float %49, 1.000000e+00
  %108 = fsub float %107, %33
  %109 = fsub float %108, %41
  %110 = call noundef float @_ZSt4sqrtf(float noundef %109)
  %111 = fmul float %110, 2.000000e+00
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  %112 = fadd float %37, %45
  %113 = fdiv float %112, %111
  store float %113, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #7
  %114 = fadd float %43, %47
  %115 = fdiv float %114, %111
  store float %115, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #7
  %116 = fmul float %111, 2.500000e-01
  store float %116, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #7
  %117 = fsub float %39, %35
  %118 = fdiv float %117, %111
  store float %118, ptr %22, align 4, !tbaa !5
  call void @_ZN3cgp10quaternionCI2NS_14numarray_stackIfLi4EEEERKfS3_S3_S3_(ptr noundef nonnull align 4 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %18, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  br label %119

119:                                              ; preds = %74, %106, %93, %51
  %120 = call noundef float @_ZN3cgp4normIfLi4EEET_RKNS_14numarray_stackIS1_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(16) %2)
  %121 = fadd float %120, -1.000000e+00
  %122 = call noundef float @_ZSt3absf(float noundef %121)
  %123 = fcmp ogt float %122, 0x3FA99999A0000000
  br i1 %123, label %124, label %150

124:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %125 unwind label %133

125:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #7
  %126 = invoke noundef float @_ZN3cgp4normIfLi4EEET_RKNS_14numarray_stackIS1_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(16) %2)
          to label %127 unwind label %135

127:                                              ; preds = %125
  invoke void @_ZN3cgp3strB5cxx11Ef(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %26, float noundef %126)
          to label %128 unwind label %135

128:                                              ; preds = %127
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %25, ptr noundef nonnull @.str.6, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %129 unwind label %137

129:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %27) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %28) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %130 unwind label %139

130:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %29) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %30) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull @__func__._ZN3cgp18rotation_transform28convert_matrix_to_quaternionERKNS_12matrix_stackIfLi3ELi3EEE, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %131 unwind label %141

131:                                              ; preds = %130
  invoke void @_ZN3cgp12call_warningERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %29, i32 noundef 119)
          to label %132 unwind label %143

132:                                              ; preds = %131
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #7
  br label %150

133:                                              ; preds = %124
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %149

135:                                              ; preds = %127, %125
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %148

137:                                              ; preds = %128
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %147

139:                                              ; preds = %129
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %146

141:                                              ; preds = %130
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %145

143:                                              ; preds = %131
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  br label %145

145:                                              ; preds = %143, %141
  %.pn = phi { ptr, i32 } [ %144, %143 ], [ %142, %141 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  br label %146

146:                                              ; preds = %145, %139
  %.pn.pn = phi { ptr, i32 } [ %.pn, %145 ], [ %140, %139 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  br label %147

147:                                              ; preds = %146, %137
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %146 ], [ %138, %137 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  br label %148

148:                                              ; preds = %147, %135
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %147 ], [ %136, %135 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  br label %149

149:                                              ; preds = %148, %133
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %148 ], [ %134, %133 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn

150:                                              ; preds = %132, %119
  %.fca.0.load = load <2 x float>, ptr %2, align 8
  %.fca.0.insert = insertvalue { <2 x float>, <2 x float> } poison, <2 x float> %.fca.0.load, 0
  %.fca.1.gep = getelementptr inbounds i8, ptr %2, i64 8
  %.fca.1.load = load <2 x float>, ptr %.fca.1.gep, align 8
  %.fca.1.insert = insertvalue { <2 x float>, <2 x float> } %.fca.0.insert, <2 x float> %.fca.1.load, 1
  ret { <2 x float>, <2 x float> } %.fca.1.insert
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN3cgp5traceIfLi3EEET_RKNS_12matrix_stackIS1_XT0_EXT0_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3cgp10quaternionC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #5

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp12matrix_stackIfLi3ELi3EEclEii(ptr noundef nonnull align 4 dereferenceable(36), i32 noundef, i32 noundef) local_unnamed_addr #6

declare void @_ZN3cgp12call_warningERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #6

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

declare void @_ZN3cgp3strB5cxx11Ef(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, float noundef) local_unnamed_addr #6

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass