; LLVM IR from napulen/justkeydding :: test (test_hiddenmarkovmodel)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<justkeydding::PitchClass, std::allocator<justkeydding::PitchClass>>::_Vector_impl" }
%"struct.std::_Vector_base<justkeydding::PitchClass, std::allocator<justkeydding::PitchClass>>::_Vector_impl" = type { %"struct.std::_Vector_base<justkeydding::PitchClass, std::allocator<justkeydding::PitchClass>>::_Vector_impl_data" }
%"struct.std::_Vector_base<justkeydding::PitchClass, std::allocator<justkeydding::PitchClass>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.justkeydding::PitchClass" = type { i32, %"class.std::__cxx11::basic_string", %"class.std::map", [12 x %"class.std::__cxx11::basic_string"] }
%"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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<justkeydding::Key, std::allocator<justkeydding::Key>>::_Vector_impl" }
%"struct.std::_Vector_base<justkeydding::Key, std::allocator<justkeydding::Key>>::_Vector_impl" = type { %"struct.std::_Vector_base<justkeydding::Key, std::allocator<justkeydding::Key>>::_Vector_impl_data" }
%"struct.std::_Vector_base<justkeydding::Key, std::allocator<justkeydding::Key>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array" = type { [24 x double] }
%"class.justkeydding::KeyTransition" = type { %"class.std::__cxx11::basic_string", %"class.std::map.11" }
%"class.std::map.11" = type { %"class.std::_Rb_tree.12" }
%"class.std::_Rb_tree.12" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::array<double, 24>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::array<double, 24>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::array<double, 24>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::array<double, 24>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.16" = type { %"class.std::_Rb_tree.17" }
%"class.std::_Rb_tree.17" = type { %"struct.std::_Rb_tree<justkeydding::Key, std::pair<const justkeydding::Key, double>, std::_Select1st<std::pair<const justkeydding::Key, double>>, std::less<justkeydding::Key>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<justkeydding::Key, std::pair<const justkeydding::Key, double>, std::_Select1st<std::pair<const justkeydding::Key, double>>, std::less<justkeydding::Key>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::map.22" = type { %"class.std::_Rb_tree.23" }
%"class.std::_Rb_tree.23" = type { %"struct.std::_Rb_tree<justkeydding::Key, std::pair<const justkeydding::Key, std::map<justkeydding::Key, double>>, std::_Select1st<std::pair<const justkeydding::Key, std::map<justkeydding::Key, double>>>, std::less<justkeydding::Key>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<justkeydding::Key, std::pair<const justkeydding::Key, std::map<justkeydding::Key, double>>, std::_Select1st<std::pair<const justkeydding::Key, std::map<justkeydding::Key, double>>>, std::less<justkeydding::Key>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.27" = type { %"class.std::_Rb_tree.28" }
%"class.std::_Rb_tree.28" = type { %"struct.std::_Rb_tree<justkeydding::Key, std::pair<const justkeydding::Key, std::map<justkeydding::PitchClass, double>>, std::_Select1st<std::pair<const justkeydding::Key, std::map<justkeydding::PitchClass, double>>>, std::less<justkeydding::Key>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<justkeydding::Key, std::pair<const justkeydding::Key, std::map<justkeydding::PitchClass, double>>, std::_Select1st<std::pair<const justkeydding::Key, std::map<justkeydding::PitchClass, double>>>, std::less<justkeydding::Key>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.justkeydding::KeyProfile" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::map.32", %"class.std::map.32" }
%"class.std::map.32" = type { %"class.std::_Rb_tree.33" }
%"class.std::_Rb_tree.33" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::array<double, 12>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::array<double, 12>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::array<double, 12>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::array<double, 12>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.justkeydding::HiddenMarkovModel" = type { i32, %"class.std::vector.37", %"class.std::vector.37", %"class.std::unordered_map", %"class.std::unordered_map.47", %"class.std::unordered_map.47", double, %"class.std::vector.61", %"class.std::vector.6" }
%"class.std::vector.37" = type { %"struct.std::_Vector_base.38" }
%"struct.std::_Vector_base.38" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.47" = type { %"class.std::_Hashtable.48" }
%"class.std::_Hashtable.48" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.61" = type { %"struct.std::_Vector_base.62" }
%"struct.std::_Vector_base.62" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.justkeydding::PitchClass", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator.0", align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.justkeydding::PitchClass", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator.0", align 1
  %15 = alloca %"class.justkeydding::PitchClass", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator.0", align 1
  %18 = alloca %"class.std::vector.6", align 8
  %19 = alloca %"struct.std::array", align 8
  %20 = alloca %"class.justkeydding::KeyTransition", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator.0", align 1
  %23 = alloca %"class.std::map.16", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.std::map.22", align 8
  %28 = alloca %"class.justkeydding::KeyTransition", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator.0", align 1
  %31 = alloca %"class.std::map.27", align 8
  %32 = alloca %"class.justkeydding::KeyProfile", align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator.0", align 1
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca %"class.std::allocator.0", align 1
  %37 = alloca %"class.std::vector.6", align 8
  %38 = alloca %"class.justkeydding::HiddenMarkovModel", align 8
  %39 = alloca %"class.std::vector", align 8
  %40 = alloca %"class.std::vector.6", align 8
  %41 = alloca %"class.std::map.16", align 8
  %42 = alloca %"class.std::map.22", align 8
  %43 = alloca %"class.std::map.27", align 8
  %44 = alloca %"class.std::vector.6", align 8
  %45 = alloca %"class.std::map.22", align 8
  %46 = alloca %"class.justkeydding::KeyTransition", align 8
  %47 = alloca %"class.std::__cxx11::basic_string", align 8
  %48 = alloca %"class.std::allocator.0", align 1
  %49 = alloca %"class.justkeydding::HiddenMarkovModel", align 8
  %50 = alloca %"class.std::vector.6", align 8
  %51 = alloca %"class.std::vector.6", align 8
  %52 = alloca %"class.std::map.16", align 8
  %53 = alloca %"class.std::map.22", align 8
  %54 = alloca %"class.std::map.22", align 8
  %55 = alloca %"class.std::vector.6", align 8
  %56 = alloca %"class.std::vector.6", align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
  call void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.start.p0(i64 472, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %57 unwind label %77

57:                                               ; preds = %2
  invoke void @_ZN12justkeydding10PitchClassC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(472) %7, ptr noundef %8)
          to label %58 unwind label %81

58:                                               ; preds = %57
  invoke void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(472) %7)
          to label %59 unwind label %85

59:                                               ; preds = %58
  call void @_ZN12justkeydding10PitchClassD2Ev(ptr noundef nonnull align 8 dereferenceable(472) %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 472, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 472, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %60 unwind label %91

60:                                               ; preds = %59
  invoke void @_ZN12justkeydding10PitchClassC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(472) %12, ptr noundef %13)
          to label %61 unwind label %95

61:                                               ; preds = %60
  invoke void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(472) %12)
          to label %62 unwind label %99

62:                                               ; preds = %61
  call void @_ZN12justkeydding10PitchClassD2Ev(ptr noundef nonnull align 8 dereferenceable(472) %12) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 472, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 472, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %63 unwind label %105

63:                                               ; preds = %62
  invoke void @_ZN12justkeydding10PitchClassC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(472) %15, ptr noundef %16)
          to label %64 unwind label %109

64:                                               ; preds = %63
  invoke void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(472) %15)
          to label %65 unwind label %113

65:                                               ; preds = %64
  call void @_ZN12justkeydding10PitchClassD2Ev(ptr noundef nonnull align 8 dereferenceable(472) %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 472, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  invoke void @_ZN12justkeydding3Key16getAllKeysVectorEv(ptr dead_on_unwind writable sret(%"class.std::vector.6") align 8 %18)
          to label %66 unwind label %119

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 192, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %67 unwind label %123

67:                                               ; preds = %66
  invoke void @_ZN12justkeydding13KeyTransitionC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %20, ptr noundef %21)
          to label %68 unwind label %127

68:                                               ; preds = %67
  invoke void @_ZN12justkeydding13KeyTransition21getKeyTransitionArrayEv(ptr dead_on_unwind writable sret(%"struct.std::array") align 8 %19, ptr noundef nonnull align 8 dereferenceable(80) %20)
          to label %69 unwind label %131

69:                                               ; preds = %68
  call void @_ZN12justkeydding13KeyTransitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %20) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %23) #6
  call void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %70 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %71 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %70, ptr %71, align 8
  br label %72

72:                                               ; preds = %147, %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %73 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %74 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %73, ptr %74, align 8
  %75 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br i1 %75, label %137, label %76

76:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %154

77:                                               ; preds = %2
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %10, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %11, align 4
  br label %90

81:                                               ; preds = %57
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %10, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %11, align 4
  br label %89

85:                                               ; preds = %58
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %10, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %11, align 4
  call void @_ZN12justkeydding10PitchClassD2Ev(ptr noundef nonnull align 8 dereferenceable(472) %7) #6
  br label %89

89:                                               ; preds = %85, %81
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %90

90:                                               ; preds = %89, %77
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 472, ptr %7) #6
  br label %313

91:                                               ; preds = %59
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %10, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %11, align 4
  br label %104

95:                                               ; preds = %60
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %10, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %11, align 4
  br label %103

99:                                               ; preds = %61
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %10, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %11, align 4
  call void @_ZN12justkeydding10PitchClassD2Ev(ptr noundef nonnull align 8 dereferenceable(472) %12) #6
  br label %103

103:                                              ; preds = %99, %95
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %104

104:                                              ; preds = %103, %91
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 472, ptr %12) #6
  br label %313

105:                                              ; preds = %62
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %10, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %11, align 4
  br label %118

109:                                              ; preds = %63
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %10, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %11, align 4
  br label %117

113:                                              ; preds = %64
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %10, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %11, align 4
  call void @_ZN12justkeydding10PitchClassD2Ev(ptr noundef nonnull align 8 dereferenceable(472) %15) #6
  br label %117

117:                                              ; preds = %113, %109
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %118

118:                                              ; preds = %117, %105
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 472, ptr %15) #6
  br label %313

119:                                              ; preds = %65
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %10, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %11, align 4
  br label %312

123:                                              ; preds = %66
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %10, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %11, align 4
  br label %136

127:                                              ; preds = %67
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %10, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %11, align 4
  br label %135

131:                                              ; preds = %68
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %10, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %11, align 4
  call void @_ZN12justkeydding13KeyTransitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %20) #6
  br label %135

135:                                              ; preds = %131, %127
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %136

136:                                              ; preds = %135, %123
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #6
  br label %311

137:                                              ; preds = %72
  %138 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  %139 = invoke noundef i32 @_ZNK12justkeydding3Key6getIntEv(ptr noundef nonnull align 8 dereferenceable(856) %138)
          to label %140 unwind label %150

140:                                              ; preds = %137
  %141 = sext i32 %139 to i64
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm24EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %19, i64 noundef %141) #6
  %143 = load double, ptr %142, align 8, !tbaa !11
  %144 = call noundef nonnull align 8 dereferenceable(856) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 8 dereferenceable(856) %144)
          to label %146 unwind label %150

146:                                              ; preds = %140
  store double %143, ptr %145, align 8, !tbaa !11
  br label %147

147:                                              ; preds = %146
  %148 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef 0) #6
  %149 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %148, ptr %149, align 8
  br label %72, !llvm.loop !13

150:                                              ; preds = %140, %137
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %10, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %310

154:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 48, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %155 unwind label %184

155:                                              ; preds = %154
  invoke void @_ZN12justkeydding13KeyTransitionC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %28, ptr noundef %29)
          to label %156 unwind label %188

156:                                              ; preds = %155
  invoke void @_ZN12justkeydding13KeyTransition19getKeyTransitionMapEv(ptr dead_on_unwind writable sret(%"class.std::map.22") align 8 %27, ptr noundef nonnull align 8 dereferenceable(80) %28)
          to label %157 unwind label %192

157:                                              ; preds = %156
  call void @_ZN12justkeydding13KeyTransitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %28) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 160, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %158 unwind label %198

158:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %159 unwind label %202

159:                                              ; preds = %158
  invoke void @_ZN12justkeydding10KeyProfileC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr noundef nonnull align 8 dereferenceable(160) %32, ptr noundef %33, ptr noundef %35)
          to label %160 unwind label %206

160:                                              ; preds = %159
  invoke void @_ZN12justkeydding10KeyProfile16getKeyProfileMapEv(ptr dead_on_unwind writable sret(%"class.std::map.27") align 8 %31, ptr noundef nonnull align 8 dereferenceable(160) %32)
          to label %161 unwind label %210

161:                                              ; preds = %160
  call void @_ZN12justkeydding10KeyProfileD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %32) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  call void @llvm.lifetime.start.p0(i64 280, ptr %38) #6
  invoke void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %162 unwind label %217

162:                                              ; preds = %161
  invoke void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %163 unwind label %221

163:                                              ; preds = %162
  invoke void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48) %41, ptr noundef nonnull align 8 dereferenceable(48) %23)
          to label %164 unwind label %225

164:                                              ; preds = %163
  invoke void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEEC2ERKSB_(ptr noundef nonnull align 8 dereferenceable(48) %42, ptr noundef nonnull align 8 dereferenceable(48) %27)
          to label %165 unwind label %229

165:                                              ; preds = %164
  invoke void @_ZNSt3mapIN12justkeydding3KeyES_INS0_10PitchClassEdSt4lessIS2_ESaISt4pairIKS2_dEEES3_IS1_ESaIS5_IKS1_S9_EEEC2ERKSE_(ptr noundef nonnull align 8 dereferenceable(48) %43, ptr noundef nonnull align 8 dereferenceable(48) %31)
          to label %166 unwind label %233

166:                                              ; preds = %165
  invoke void @_ZN12justkeydding17HiddenMarkovModelC1ESt6vectorINS_10PitchClassESaIS2_EES1_INS_3KeyESaIS5_EESt3mapIS5_dSt4lessIS5_ESaISt4pairIKS5_dEEES8_IS5_SF_SA_SaISB_ISC_SF_EEES8_IS5_S8_IS2_dS9_IS2_ESaISB_IKS2_dEEESA_SaISB_ISC_SN_EEE(ptr noundef nonnull align 8 dereferenceable(280) %38, ptr noundef %39, ptr noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef %43)
          to label %167 unwind label %237

167:                                              ; preds = %166
  call void @_ZNSt3mapIN12justkeydding3KeyES_INS0_10PitchClassEdSt4lessIS2_ESaISt4pairIKS2_dEEES3_IS1_ESaIS5_IKS1_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %43) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %42) #6
  call void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %41) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  call void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  invoke void @_ZN12justkeydding17HiddenMarkovModel10runViterbiEv(ptr noundef nonnull align 8 dereferenceable(280) %38)
          to label %168 unwind label %245

168:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 24, ptr %44) #6
  invoke void @_ZN12justkeydding17HiddenMarkovModel14getKeySequenceEv(ptr dead_on_unwind writable sret(%"class.std::vector.6") align 8 %44, ptr noundef nonnull align 8 dereferenceable(280) %38)
          to label %169 unwind label %249

169:                                              ; preds = %168
  %170 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %44) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %44) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %45) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %46) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %48) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %48)
          to label %171 unwind label %253

171:                                              ; preds = %169
  invoke void @_ZN12justkeydding13KeyTransitionC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %46, ptr noundef %47)
          to label %172 unwind label %257

172:                                              ; preds = %171
  invoke void @_ZN12justkeydding13KeyTransition19getKeyTransitionMapEv(ptr dead_on_unwind writable sret(%"class.std::map.22") align 8 %45, ptr noundef nonnull align 8 dereferenceable(80) %46)
          to label %173 unwind label %261

173:                                              ; preds = %172
  call void @_ZN12justkeydding13KeyTransitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %46) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %46) #6
  call void @llvm.lifetime.start.p0(i64 280, ptr %49) #6
  invoke void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef nonnull align 8 dereferenceable(24) %37)
          to label %174 unwind label %267

174:                                              ; preds = %173
  invoke void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %175 unwind label %271

175:                                              ; preds = %174
  invoke void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48) %52, ptr noundef nonnull align 8 dereferenceable(48) %23)
          to label %176 unwind label %275

176:                                              ; preds = %175
  invoke void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEEC2ERKSB_(ptr noundef nonnull align 8 dereferenceable(48) %53, ptr noundef nonnull align 8 dereferenceable(48) %45)
          to label %177 unwind label %279

177:                                              ; preds = %176
  invoke void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEEC2ERKSB_(ptr noundef nonnull align 8 dereferenceable(48) %54, ptr noundef nonnull align 8 dereferenceable(48) %27)
          to label %178 unwind label %283

178:                                              ; preds = %177
  invoke void @_ZN12justkeydding17HiddenMarkovModelC1ESt6vectorINS_3KeyESaIS2_EES4_St3mapIS2_dSt4lessIS2_ESaISt4pairIKS2_dEEES5_IS2_SC_S7_SaIS8_IS9_SC_EEESF_(ptr noundef nonnull align 8 dereferenceable(280) %49, ptr noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %54)
          to label %179 unwind label %287

179:                                              ; preds = %178
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %54) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %53) #6
  call void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %52) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %55) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %55) #6
  invoke void @_ZN12justkeydding17HiddenMarkovModel10runViterbiEv(ptr noundef nonnull align 8 dereferenceable(280) %49)
          to label %180 unwind label %295

180:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 24, ptr %56) #6
  invoke void @_ZN12justkeydding17HiddenMarkovModel14getKeySequenceEv(ptr dead_on_unwind writable sret(%"class.std::vector.6") align 8 %56, ptr noundef nonnull align 8 dereferenceable(280) %49)
          to label %181 unwind label %299

181:                                              ; preds = %180
  %182 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 8 dereferenceable(24) %56) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %56) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %55) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %55) #6
  call void @_ZN12justkeydding17HiddenMarkovModelD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %49) #6
  call void @llvm.lifetime.end.p0(i64 280, ptr %49) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %45) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %45) #6
  call void @_ZN12justkeydding17HiddenMarkovModelD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %38) #6
  call void @llvm.lifetime.end.p0(i64 280, ptr %38) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_INS0_10PitchClassEdSt4lessIS2_ESaISt4pairIKS2_dEEES3_IS1_ESaIS5_IKS1_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %31) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %27) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #6
  call void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr %19) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  %183 = load i32, ptr %3, align 4
  ret i32 %183

184:                                              ; preds = %154
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %10, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %11, align 4
  br label %197

188:                                              ; preds = %155
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %10, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %11, align 4
  br label %196

192:                                              ; preds = %156
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %10, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %11, align 4
  call void @_ZN12justkeydding13KeyTransitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %28) #6
  br label %196

196:                                              ; preds = %192, %188
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  br label %197

197:                                              ; preds = %196, %184
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %28) #6
  br label %309

198:                                              ; preds = %157
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %10, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %11, align 4
  br label %216

202:                                              ; preds = %158
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %10, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %11, align 4
  br label %215

206:                                              ; preds = %159
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %10, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %11, align 4
  br label %214

210:                                              ; preds = %160
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %10, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %11, align 4
  call void @_ZN12justkeydding10KeyProfileD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %32) #6
  br label %214

214:                                              ; preds = %210, %206
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  br label %215

215:                                              ; preds = %214, %202
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  br label %216

216:                                              ; preds = %215, %198
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr %32) #6
  br label %308

217:                                              ; preds = %161
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %10, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %11, align 4
  br label %307

221:                                              ; preds = %162
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %10, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %11, align 4
  br label %244

225:                                              ; preds = %163
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %10, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %11, align 4
  br label %243

229:                                              ; preds = %164
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %10, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %11, align 4
  br label %242

233:                                              ; preds = %165
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %10, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %11, align 4
  br label %241

237:                                              ; preds = %166
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %10, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %11, align 4
  call void @_ZNSt3mapIN12justkeydding3KeyES_INS0_10PitchClassEdSt4lessIS2_ESaISt4pairIKS2_dEEES3_IS1_ESaIS5_IKS1_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %43) #6
  br label %241

241:                                              ; preds = %237, %233
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %42) #6
  br label %242

242:                                              ; preds = %241, %229
  call void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %41) #6
  br label %243

243:                                              ; preds = %242, %225
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  br label %244

244:                                              ; preds = %243, %221
  call void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  br label %307

245:                                              ; preds = %167
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %10, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %11, align 4
  br label %306

249:                                              ; preds = %168
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %10, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #6
  br label %306

253:                                              ; preds = %169
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %10, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %11, align 4
  br label %266

257:                                              ; preds = %171
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %10, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %11, align 4
  br label %265

261:                                              ; preds = %172
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %10, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %11, align 4
  call void @_ZN12justkeydding13KeyTransitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %46) #6
  br label %265

265:                                              ; preds = %261, %257
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #6
  br label %266

266:                                              ; preds = %265, %253
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %46) #6
  br label %305

267:                                              ; preds = %173
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %10, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %11, align 4
  br label %304

271:                                              ; preds = %174
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %10, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %11, align 4
  br label %294

275:                                              ; preds = %175
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %10, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %11, align 4
  br label %293

279:                                              ; preds = %176
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %10, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %11, align 4
  br label %292

283:                                              ; preds = %177
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %10, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %11, align 4
  br label %291

287:                                              ; preds = %178
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %10, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %11, align 4
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %54) #6
  br label %291

291:                                              ; preds = %287, %283
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %53) #6
  br label %292

292:                                              ; preds = %291, %279
  call void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %52) #6
  br label %293

293:                                              ; preds = %292, %275
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  br label %294

294:                                              ; preds = %293, %271
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  br label %304

295:                                              ; preds = %179
  %296 = landingpad { ptr, i32 }
          cleanup
  %297 = extractvalue { ptr, i32 } %296, 0
  store ptr %297, ptr %10, align 8
  %298 = extractvalue { ptr, i32 } %296, 1
  store i32 %298, ptr %11, align 4
  br label %303

299:                                              ; preds = %180
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %10, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %56) #6
  br label %303

303:                                              ; preds = %299, %295
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %55) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %55) #6
  call void @_ZN12justkeydding17HiddenMarkovModelD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %49) #6
  br label %304

304:                                              ; preds = %303, %294, %267
  call void @llvm.lifetime.end.p0(i64 280, ptr %49) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %45) #6
  br label %305

305:                                              ; preds = %304, %266
  call void @llvm.lifetime.end.p0(i64 48, ptr %45) #6
  br label %306

306:                                              ; preds = %305, %249, %245
  call void @_ZN12justkeydding17HiddenMarkovModelD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %38) #6
  br label %307

307:                                              ; preds = %306, %244, %217
  call void @llvm.lifetime.end.p0(i64 280, ptr %38) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_INS0_10PitchClassEdSt4lessIS2_ESaISt4pairIKS2_dEEES3_IS1_ESaIS5_IKS1_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31) #6
  br label %308

308:                                              ; preds = %307, %216
  call void @llvm.lifetime.end.p0(i64 48, ptr %31) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %27) #6
  br label %309

309:                                              ; preds = %308, %197
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #6
  br label %310

310:                                              ; preds = %309, %150
  call void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #6
  br label %311

311:                                              ; preds = %310, %136
  call void @llvm.lifetime.end.p0(i64 192, ptr %19) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br label %312

312:                                              ; preds = %311, %119
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  br label %313

313:                                              ; preds = %312, %118, %104, %90
  call void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  br label %314

314:                                              ; preds = %313
  %315 = load ptr, ptr %10, align 8
  %316 = load i32, ptr %11, align 4
  %317 = insertvalue { ptr, i32 } poison, ptr %315, 0
  %318 = insertvalue { ptr, i32 } %317, i32 %316, 1
  resume { ptr, i32 } %318
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(472)) #3 align 2

; 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_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(...)

declare void @_ZN12justkeydding10PitchClassC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(472), ptr noundef) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12justkeydding10PitchClassD2Ev(ptr noundef nonnull align 8 dereferenceable(472)) unnamed_addr #5 align 2

; 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 void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

declare void @_ZN12justkeydding3Key16getAllKeysVectorEv(ptr dead_on_unwind writable sret(%"class.std::vector.6") align 8) #4

declare void @_ZN12justkeydding13KeyTransitionC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) unnamed_addr #4

declare void @_ZN12justkeydding13KeyTransition21getKeyTransitionArrayEv(ptr dead_on_unwind writable sret(%"struct.std::array") align 8, ptr noundef nonnull align 8 dereferenceable(80)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12justkeydding13KeyTransitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm24EEixEm(ptr noundef nonnull align 8 dereferenceable(192), i64 noundef) #2 align 2

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

declare noundef i32 @_ZNK12justkeydding3Key6getIntEv(ptr noundef nonnull align 8 dereferenceable(856)) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(856)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(856) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

declare void @_ZN12justkeydding13KeyTransition19getKeyTransitionMapEv(ptr dead_on_unwind writable sret(%"class.std::map.22") align 8, ptr noundef nonnull align 8 dereferenceable(80)) #4

declare void @_ZN12justkeydding10KeyProfileC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef, ptr noundef) unnamed_addr #4

declare void @_ZN12justkeydding10KeyProfile16getKeyProfileMapEv(ptr dead_on_unwind writable sret(%"class.std::map.27") align 8, ptr noundef nonnull align 8 dereferenceable(160)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12justkeydding10KeyProfileD2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #5 align 2

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

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

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

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

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

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

declare void @_ZN12justkeydding17HiddenMarkovModelC1ESt6vectorINS_10PitchClassESaIS2_EES1_INS_3KeyESaIS5_EESt3mapIS5_dSt4lessIS5_ESaISt4pairIKS5_dEEES8_IS5_SF_SA_SaISB_ISC_SF_EEES8_IS5_S8_IS2_dS9_IS2_ESaISB_IKS2_dEEESA_SaISB_ISC_SN_EEE(ptr noundef nonnull align 8 dereferenceable(280), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) unnamed_addr #4

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

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

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

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

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

declare void @_ZN12justkeydding17HiddenMarkovModel10runViterbiEv(ptr noundef nonnull align 8 dereferenceable(280)) #4

declare void @_ZN12justkeydding17HiddenMarkovModel14getKeySequenceEv(ptr dead_on_unwind writable sret(%"class.std::vector.6") align 8, ptr noundef nonnull align 8 dereferenceable(280)) #4

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

declare void @_ZN12justkeydding17HiddenMarkovModelC1ESt6vectorINS_3KeyESaIS2_EES4_St3mapIS2_dSt4lessIS2_ESaISt4pairIKS2_dEEES5_IS2_SC_S7_SaIS8_IS9_SC_EEESF_(ptr noundef nonnull align 8 dereferenceable(280), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12justkeydding17HiddenMarkovModelD2Ev(ptr noundef nonnull align 8 dereferenceable(280)) unnamed_addr #5 align 2

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

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

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


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<justkeydding::PitchClass, std::allocator<justkeydding::PitchClass>>::_Vector_impl" }
%"struct.std::_Vector_base<justkeydding::PitchClass, std::allocator<justkeydding::PitchClass>>::_Vector_impl" = type { %"struct.std::_Vector_base<justkeydding::PitchClass, std::allocator<justkeydding::PitchClass>>::_Vector_impl_data" }
%"struct.std::_Vector_base<justkeydding::PitchClass, std::allocator<justkeydding::PitchClass>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.justkeydding::PitchClass" = type { i32, %"class.std::__cxx11::basic_string", %"class.std::map", [12 x %"class.std::__cxx11::basic_string"] }
%"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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<justkeydding::Key, std::allocator<justkeydding::Key>>::_Vector_impl" }
%"struct.std::_Vector_base<justkeydding::Key, std::allocator<justkeydding::Key>>::_Vector_impl" = type { %"struct.std::_Vector_base<justkeydding::Key, std::allocator<justkeydding::Key>>::_Vector_impl_data" }
%"struct.std::_Vector_base<justkeydding::Key, std::allocator<justkeydding::Key>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array" = type { [24 x double] }
%"class.justkeydding::KeyTransition" = type { %"class.std::__cxx11::basic_string", %"class.std::map.11" }
%"class.std::map.11" = type { %"class.std::_Rb_tree.12" }
%"class.std::_Rb_tree.12" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::array<double, 24>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::array<double, 24>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::array<double, 24>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::array<double, 24>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.16" = type { %"class.std::_Rb_tree.17" }
%"class.std::_Rb_tree.17" = type { %"struct.std::_Rb_tree<justkeydding::Key, std::pair<const justkeydding::Key, double>, std::_Select1st<std::pair<const justkeydding::Key, double>>, std::less<justkeydding::Key>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<justkeydding::Key, std::pair<const justkeydding::Key, double>, std::_Select1st<std::pair<const justkeydding::Key, double>>, std::less<justkeydding::Key>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::map.22" = type { %"class.std::_Rb_tree.23" }
%"class.std::_Rb_tree.23" = type { %"struct.std::_Rb_tree<justkeydding::Key, std::pair<const justkeydding::Key, std::map<justkeydding::Key, double>>, std::_Select1st<std::pair<const justkeydding::Key, std::map<justkeydding::Key, double>>>, std::less<justkeydding::Key>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<justkeydding::Key, std::pair<const justkeydding::Key, std::map<justkeydding::Key, double>>, std::_Select1st<std::pair<const justkeydding::Key, std::map<justkeydding::Key, double>>>, std::less<justkeydding::Key>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.27" = type { %"class.std::_Rb_tree.28" }
%"class.std::_Rb_tree.28" = type { %"struct.std::_Rb_tree<justkeydding::Key, std::pair<const justkeydding::Key, std::map<justkeydding::PitchClass, double>>, std::_Select1st<std::pair<const justkeydding::Key, std::map<justkeydding::PitchClass, double>>>, std::less<justkeydding::Key>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<justkeydding::Key, std::pair<const justkeydding::Key, std::map<justkeydding::PitchClass, double>>, std::_Select1st<std::pair<const justkeydding::Key, std::map<justkeydding::PitchClass, double>>>, std::less<justkeydding::Key>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.justkeydding::KeyProfile" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::map.32", %"class.std::map.32" }
%"class.std::map.32" = type { %"class.std::_Rb_tree.33" }
%"class.std::_Rb_tree.33" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::array<double, 12>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::array<double, 12>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::array<double, 12>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::array<double, 12>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.justkeydding::HiddenMarkovModel" = type { i32, %"class.std::vector.37", %"class.std::vector.37", %"class.std::unordered_map", %"class.std::unordered_map.47", %"class.std::unordered_map.47", double, %"class.std::vector.61", %"class.std::vector.6" }
%"class.std::vector.37" = type { %"struct.std::_Vector_base.38" }
%"struct.std::_Vector_base.38" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.47" = type { %"class.std::_Hashtable.48" }
%"class.std::_Hashtable.48" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.61" = type { %"struct.std::_Vector_base.62" }
%"struct.std::_Vector_base.62" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.justkeydding::PitchClass", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.0", align 1
  %7 = alloca %"class.justkeydding::PitchClass", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator.0", align 1
  %10 = alloca %"class.justkeydding::PitchClass", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator.0", align 1
  %13 = alloca %"class.std::vector.6", align 8
  %14 = alloca %"struct.std::array", align 8
  %15 = alloca %"class.justkeydding::KeyTransition", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator.0", align 1
  %18 = alloca %"class.std::map.16", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.std::map.22", align 8
  %22 = alloca %"class.justkeydding::KeyTransition", align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::allocator.0", align 1
  %25 = alloca %"class.std::map.27", align 8
  %26 = alloca %"class.justkeydding::KeyProfile", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator.0", align 1
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator.0", align 1
  %31 = alloca %"class.std::vector.6", align 8
  %32 = alloca %"class.justkeydding::HiddenMarkovModel", align 8
  %33 = alloca %"class.std::vector", align 8
  %34 = alloca %"class.std::vector.6", align 8
  %35 = alloca %"class.std::map.16", align 8
  %36 = alloca %"class.std::map.22", align 8
  %37 = alloca %"class.std::map.27", align 8
  %38 = alloca %"class.std::vector.6", align 8
  %39 = alloca %"class.std::map.22", align 8
  %40 = alloca %"class.justkeydding::KeyTransition", align 8
  %41 = alloca %"class.std::__cxx11::basic_string", align 8
  %42 = alloca %"class.std::allocator.0", align 1
  %43 = alloca %"class.justkeydding::HiddenMarkovModel", align 8
  %44 = alloca %"class.std::vector.6", align 8
  %45 = alloca %"class.std::vector.6", align 8
  %46 = alloca %"class.std::map.16", align 8
  %47 = alloca %"class.std::map.22", align 8
  %48 = alloca %"class.std::map.22", align 8
  %49 = alloca %"class.std::vector.6", align 8
  %50 = alloca %"class.std::vector.6", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.start.p0(i64 472, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %51 unwind label %67

51:                                               ; preds = %2
  invoke void @_ZN12justkeydding10PitchClassC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(472) %4, ptr noundef nonnull %5)
          to label %52 unwind label %69

52:                                               ; preds = %51
  invoke void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(472) %4)
          to label %53 unwind label %71

53:                                               ; preds = %52
  call void @_ZN12justkeydding10PitchClassD2Ev(ptr noundef nonnull align 8 dereferenceable(472) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 472, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 472, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %54 unwind label %75

54:                                               ; preds = %53
  invoke void @_ZN12justkeydding10PitchClassC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(472) %7, ptr noundef nonnull %8)
          to label %55 unwind label %77

55:                                               ; preds = %54
  invoke void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(472) %7)
          to label %56 unwind label %79

56:                                               ; preds = %55
  call void @_ZN12justkeydding10PitchClassD2Ev(ptr noundef nonnull align 8 dereferenceable(472) %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 472, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 472, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %57 unwind label %83

57:                                               ; preds = %56
  invoke void @_ZN12justkeydding10PitchClassC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(472) %10, ptr noundef nonnull %11)
          to label %58 unwind label %85

58:                                               ; preds = %57
  invoke void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(472) %10)
          to label %59 unwind label %87

59:                                               ; preds = %58
  call void @_ZN12justkeydding10PitchClassD2Ev(ptr noundef nonnull align 8 dereferenceable(472) %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 472, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  invoke void @_ZN12justkeydding3Key16getAllKeysVectorEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.6") align 8 %13)
          to label %60 unwind label %91

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %61 unwind label %93

61:                                               ; preds = %60
  invoke void @_ZN12justkeydding13KeyTransitionC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %15, ptr noundef nonnull %16)
          to label %62 unwind label %95

62:                                               ; preds = %61
  invoke void @_ZN12justkeydding13KeyTransition21getKeyTransitionArrayEv(ptr dead_on_unwind nonnull writable sret(%"struct.std::array") align 8 %14, ptr noundef nonnull align 8 dereferenceable(80) %15)
          to label %63 unwind label %97

63:                                               ; preds = %62
  call void @_ZN12justkeydding13KeyTransitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %18) #6
  call void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  %64 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %64, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  %65 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %65, ptr %20, align 8
  %66 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  br i1 %66, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %109, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %115 unwind label %143

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

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

71:                                               ; preds = %52
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN12justkeydding10PitchClassD2Ev(ptr noundef nonnull align 8 dereferenceable(472) %4) #6
  br label %73

73:                                               ; preds = %71, %69
  %.pn = phi { ptr, i32 } [ %72, %71 ], [ %70, %69 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %74

74:                                               ; preds = %73, %67
  %.pn.pn = phi { ptr, i32 } [ %.pn, %73 ], [ %68, %67 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 472, ptr nonnull %4) #6
  br label %220

75:                                               ; preds = %53
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %82

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

79:                                               ; preds = %55
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN12justkeydding10PitchClassD2Ev(ptr noundef nonnull align 8 dereferenceable(472) %7) #6
  br label %81

81:                                               ; preds = %79, %77
  %.pn45 = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %82

82:                                               ; preds = %81, %75
  %.pn45.pn = phi { ptr, i32 } [ %.pn45, %81 ], [ %76, %75 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 472, ptr nonnull %7) #6
  br label %220

83:                                               ; preds = %56
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %90

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

87:                                               ; preds = %58
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN12justkeydding10PitchClassD2Ev(ptr noundef nonnull align 8 dereferenceable(472) %10) #6
  br label %89

89:                                               ; preds = %87, %85
  %.pn48 = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %90

90:                                               ; preds = %89, %83
  %.pn48.pn = phi { ptr, i32 } [ %.pn48, %89 ], [ %84, %83 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 472, ptr nonnull %10) #6
  br label %220

91:                                               ; preds = %59
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %219

93:                                               ; preds = %60
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %100

95:                                               ; preds = %61
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %99

97:                                               ; preds = %62
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN12justkeydding13KeyTransitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #6
  br label %99

99:                                               ; preds = %97, %95
  %.pn51 = phi { ptr, i32 } [ %98, %97 ], [ %96, %95 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %100

100:                                              ; preds = %99, %93
  %.pn51.pn = phi { ptr, i32 } [ %.pn51, %99 ], [ %94, %93 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #6
  br label %218

.lr.ph:                                           ; preds = %63, %109
  %101 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %102 = invoke noundef i32 @_ZNK12justkeydding3Key6getIntEv(ptr noundef nonnull align 8 dereferenceable(856) %101)
          to label %103 unwind label %113

103:                                              ; preds = %.lr.ph
  %104 = sext i32 %102 to i64
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm24EEixEm(ptr noundef nonnull align 8 dereferenceable(192) %14, i64 noundef %104) #6
  %106 = load double, ptr %105, align 8, !tbaa !5
  %107 = call noundef nonnull align 8 dereferenceable(856) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(856) %107)
          to label %109 unwind label %113

109:                                              ; preds = %103
  store double %106, ptr %108, align 8, !tbaa !5
  %110 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef 0) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  %111 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %111, ptr %20, align 8
  %112 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  br i1 %112, label %.lr.ph, label %._crit_edge, !llvm.loop !9

113:                                              ; preds = %103, %.lr.ph
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  br label %217

115:                                              ; preds = %._crit_edge
  invoke void @_ZN12justkeydding13KeyTransitionC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %22, ptr noundef nonnull %23)
          to label %116 unwind label %145

116:                                              ; preds = %115
  invoke void @_ZN12justkeydding13KeyTransition19getKeyTransitionMapEv(ptr dead_on_unwind nonnull writable sret(%"class.std::map.22") align 8 %21, ptr noundef nonnull align 8 dereferenceable(80) %22)
          to label %117 unwind label %147

117:                                              ; preds = %116
  call void @_ZN12justkeydding13KeyTransitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %22) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %28) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %118 unwind label %151

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %30) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %119 unwind label %153

119:                                              ; preds = %118
  invoke void @_ZN12justkeydding10KeyProfileC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr noundef nonnull align 8 dereferenceable(160) %26, ptr noundef nonnull %27, ptr noundef nonnull %29)
          to label %120 unwind label %155

120:                                              ; preds = %119
  invoke void @_ZN12justkeydding10KeyProfile16getKeyProfileMapEv(ptr dead_on_unwind nonnull writable sret(%"class.std::map.27") align 8 %25, ptr noundef nonnull align 8 dereferenceable(160) %26)
          to label %121 unwind label %157

121:                                              ; preds = %120
  call void @_ZN12justkeydding10KeyProfileD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %26) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  call void @llvm.lifetime.start.p0(i64 280, ptr nonnull %32) #6
  invoke void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %122 unwind label %162

122:                                              ; preds = %121
  invoke void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %123 unwind label %164

123:                                              ; preds = %122
  invoke void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48) %35, ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %124 unwind label %166

124:                                              ; preds = %123
  invoke void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEEC2ERKSB_(ptr noundef nonnull align 8 dereferenceable(48) %36, ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %125 unwind label %168

125:                                              ; preds = %124
  invoke void @_ZNSt3mapIN12justkeydding3KeyES_INS0_10PitchClassEdSt4lessIS2_ESaISt4pairIKS2_dEEES3_IS1_ESaIS5_IKS1_S9_EEEC2ERKSE_(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef nonnull align 8 dereferenceable(48) %25)
          to label %126 unwind label %170

126:                                              ; preds = %125
  invoke void @_ZN12justkeydding17HiddenMarkovModelC1ESt6vectorINS_10PitchClassESaIS2_EES1_INS_3KeyESaIS5_EESt3mapIS5_dSt4lessIS5_ESaISt4pairIKS5_dEEES8_IS5_SF_SA_SaISB_ISC_SF_EEES8_IS5_S8_IS2_dS9_IS2_ESaISB_IKS2_dEEESA_SaISB_ISC_SN_EEE(ptr noundef nonnull align 8 dereferenceable(280) %32, ptr noundef nonnull %33, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef nonnull %37)
          to label %127 unwind label %172

127:                                              ; preds = %126
  call void @_ZNSt3mapIN12justkeydding3KeyES_INS0_10PitchClassEdSt4lessIS2_ESaISt4pairIKS2_dEEES3_IS1_ESaIS5_IKS1_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %36) #6
  call void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %35) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  call void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  invoke void @_ZN12justkeydding17HiddenMarkovModel10runViterbiEv(ptr noundef nonnull align 8 dereferenceable(280) %32)
          to label %128 unwind label %178

128:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %38) #6
  invoke void @_ZN12justkeydding17HiddenMarkovModel14getKeySequenceEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.6") align 8 %38, ptr noundef nonnull align 8 dereferenceable(280) %32)
          to label %129 unwind label %180

129:                                              ; preds = %128
  %130 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %38) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %38) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %39) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %40) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %42) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %131 unwind label %182

131:                                              ; preds = %129
  invoke void @_ZN12justkeydding13KeyTransitionC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %40, ptr noundef nonnull %41)
          to label %132 unwind label %184

132:                                              ; preds = %131
  invoke void @_ZN12justkeydding13KeyTransition19getKeyTransitionMapEv(ptr dead_on_unwind nonnull writable sret(%"class.std::map.22") align 8 %39, ptr noundef nonnull align 8 dereferenceable(80) %40)
          to label %133 unwind label %186

133:                                              ; preds = %132
  call void @_ZN12justkeydding13KeyTransitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %40) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %42) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %40) #6
  call void @llvm.lifetime.start.p0(i64 280, ptr nonnull %43) #6
  invoke void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 8 dereferenceable(24) %31)
          to label %134 unwind label %190

134:                                              ; preds = %133
  invoke void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %135 unwind label %192

135:                                              ; preds = %134
  invoke void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48) %46, ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %136 unwind label %194

136:                                              ; preds = %135
  invoke void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEEC2ERKSB_(ptr noundef nonnull align 8 dereferenceable(48) %47, ptr noundef nonnull align 8 dereferenceable(48) %39)
          to label %137 unwind label %196

137:                                              ; preds = %136
  invoke void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEEC2ERKSB_(ptr noundef nonnull align 8 dereferenceable(48) %48, ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %138 unwind label %198

138:                                              ; preds = %137
  invoke void @_ZN12justkeydding17HiddenMarkovModelC1ESt6vectorINS_3KeyESaIS2_EES4_St3mapIS2_dSt4lessIS2_ESaISt4pairIKS2_dEEES5_IS2_SC_S7_SaIS8_IS9_SC_EEESF_(ptr noundef nonnull align 8 dereferenceable(280) %43, ptr noundef nonnull %44, ptr noundef nonnull %45, ptr noundef nonnull %46, ptr noundef nonnull %47, ptr noundef nonnull %48)
          to label %139 unwind label %200

139:                                              ; preds = %138
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %48) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %47) #6
  call void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %46) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %44) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %49) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
  invoke void @_ZN12justkeydding17HiddenMarkovModel10runViterbiEv(ptr noundef nonnull align 8 dereferenceable(280) %43)
          to label %140 unwind label %206

140:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %50) #6
  invoke void @_ZN12justkeydding17HiddenMarkovModel14getKeySequenceEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.6") align 8 %50, ptr noundef nonnull align 8 dereferenceable(280) %43)
          to label %141 unwind label %208

141:                                              ; preds = %140
  %142 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %50) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %49) #6
  call void @_ZN12justkeydding17HiddenMarkovModelD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %43) #6
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %43) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %39) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %39) #6
  call void @_ZN12justkeydding17HiddenMarkovModelD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %32) #6
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %32) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_INS0_10PitchClassEdSt4lessIS2_ESaISt4pairIKS2_dEEES3_IS1_ESaIS5_IKS1_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %25) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %25) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #6
  call void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %14) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  ret i32 0

143:                                              ; preds = %._crit_edge
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %150

145:                                              ; preds = %115
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %149

147:                                              ; preds = %116
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN12justkeydding13KeyTransitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %22) #6
  br label %149

149:                                              ; preds = %147, %145
  %.pn54 = phi { ptr, i32 } [ %148, %147 ], [ %146, %145 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %150

150:                                              ; preds = %149, %143
  %.pn54.pn = phi { ptr, i32 } [ %.pn54, %149 ], [ %144, %143 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %22) #6
  br label %216

151:                                              ; preds = %117
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %161

153:                                              ; preds = %118
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %160

155:                                              ; preds = %119
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %159

157:                                              ; preds = %120
  %158 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN12justkeydding10KeyProfileD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %26) #6
  br label %159

159:                                              ; preds = %157, %155
  %.pn57 = phi { ptr, i32 } [ %158, %157 ], [ %156, %155 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  br label %160

160:                                              ; preds = %159, %153
  %.pn57.pn = phi { ptr, i32 } [ %.pn57, %159 ], [ %154, %153 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  br label %161

161:                                              ; preds = %160, %151
  %.pn57.pn.pn = phi { ptr, i32 } [ %.pn57.pn, %160 ], [ %152, %151 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %26) #6
  br label %215

162:                                              ; preds = %121
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %214

164:                                              ; preds = %122
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %177

166:                                              ; preds = %123
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %176

168:                                              ; preds = %124
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %175

170:                                              ; preds = %125
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %174

172:                                              ; preds = %126
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt3mapIN12justkeydding3KeyES_INS0_10PitchClassEdSt4lessIS2_ESaISt4pairIKS2_dEEES3_IS1_ESaIS5_IKS1_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #6
  br label %174

174:                                              ; preds = %172, %170
  %.pn61 = phi { ptr, i32 } [ %173, %172 ], [ %171, %170 ]
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %36) #6
  br label %175

175:                                              ; preds = %174, %168
  %.pn61.pn = phi { ptr, i32 } [ %.pn61, %174 ], [ %169, %168 ]
  call void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %35) #6
  br label %176

176:                                              ; preds = %175, %166
  %.pn61.pn.pn = phi { ptr, i32 } [ %.pn61.pn, %175 ], [ %167, %166 ]
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  br label %177

177:                                              ; preds = %176, %164
  %.pn61.pn.pn.pn = phi { ptr, i32 } [ %.pn61.pn.pn, %176 ], [ %165, %164 ]
  call void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  br label %214

178:                                              ; preds = %127
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %213

180:                                              ; preds = %128
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %38) #6
  br label %213

182:                                              ; preds = %129
  %183 = landingpad { ptr, i32 }
          cleanup
  br label %189

184:                                              ; preds = %131
  %185 = landingpad { ptr, i32 }
          cleanup
  br label %188

186:                                              ; preds = %132
  %187 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN12justkeydding13KeyTransitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %40) #6
  br label %188

188:                                              ; preds = %186, %184
  %.pn66 = phi { ptr, i32 } [ %187, %186 ], [ %185, %184 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #6
  br label %189

189:                                              ; preds = %188, %182
  %.pn66.pn = phi { ptr, i32 } [ %.pn66, %188 ], [ %183, %182 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %42) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %40) #6
  br label %212

190:                                              ; preds = %133
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %211

192:                                              ; preds = %134
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %205

194:                                              ; preds = %135
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %204

196:                                              ; preds = %136
  %197 = landingpad { ptr, i32 }
          cleanup
  br label %203

198:                                              ; preds = %137
  %199 = landingpad { ptr, i32 }
          cleanup
  br label %202

200:                                              ; preds = %138
  %201 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %48) #6
  br label %202

202:                                              ; preds = %200, %198
  %.pn69 = phi { ptr, i32 } [ %201, %200 ], [ %199, %198 ]
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %47) #6
  br label %203

203:                                              ; preds = %202, %196
  %.pn69.pn = phi { ptr, i32 } [ %.pn69, %202 ], [ %197, %196 ]
  call void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %46) #6
  br label %204

204:                                              ; preds = %203, %194
  %.pn69.pn.pn = phi { ptr, i32 } [ %.pn69.pn, %203 ], [ %195, %194 ]
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
  br label %205

205:                                              ; preds = %204, %192
  %.pn69.pn.pn.pn = phi { ptr, i32 } [ %.pn69.pn.pn, %204 ], [ %193, %192 ]
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %44) #6
  br label %211

206:                                              ; preds = %139
  %207 = landingpad { ptr, i32 }
          cleanup
  br label %210

208:                                              ; preds = %140
  %209 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %50) #6
  br label %210

210:                                              ; preds = %208, %206
  %.pn74 = phi { ptr, i32 } [ %209, %208 ], [ %207, %206 ]
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %49) #6
  call void @_ZN12justkeydding17HiddenMarkovModelD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %43) #6
  br label %211

211:                                              ; preds = %210, %205, %190
  %.pn74.pn = phi { ptr, i32 } [ %.pn74, %210 ], [ %.pn69.pn.pn.pn, %205 ], [ %191, %190 ]
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %43) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %39) #6
  br label %212

212:                                              ; preds = %211, %189
  %.pn74.pn.pn = phi { ptr, i32 } [ %.pn74.pn, %211 ], [ %.pn66.pn, %189 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %39) #6
  br label %213

213:                                              ; preds = %212, %180, %178
  %.pn74.pn.pn.pn = phi { ptr, i32 } [ %.pn74.pn.pn, %212 ], [ %181, %180 ], [ %179, %178 ]
  call void @_ZN12justkeydding17HiddenMarkovModelD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %32) #6
  br label %214

214:                                              ; preds = %213, %177, %162
  %.pn74.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn74.pn.pn.pn, %213 ], [ %.pn61.pn.pn.pn, %177 ], [ %163, %162 ]
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %32) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_INS0_10PitchClassEdSt4lessIS2_ESaISt4pairIKS2_dEEES3_IS1_ESaIS5_IKS1_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %25) #6
  br label %215

215:                                              ; preds = %214, %161
  %.pn74.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn74.pn.pn.pn.pn, %214 ], [ %.pn57.pn.pn, %161 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %25) #6
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #6
  br label %216

216:                                              ; preds = %215, %150
  %.pn74.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn74.pn.pn.pn.pn.pn, %215 ], [ %.pn54.pn, %150 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #6
  br label %217

217:                                              ; preds = %216, %113
  %.pn82 = phi { ptr, i32 } [ %114, %113 ], [ %.pn74.pn.pn.pn.pn.pn.pn, %216 ]
  call void @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #6
  br label %218

218:                                              ; preds = %217, %100
  %.pn82.pn = phi { ptr, i32 } [ %.pn82, %217 ], [ %.pn51.pn, %100 ]
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %14) #6
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %219

219:                                              ; preds = %218, %91
  %.pn82.pn.pn = phi { ptr, i32 } [ %.pn82.pn, %218 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  br label %220

220:                                              ; preds = %219, %90, %82, %74
  %.pn82.pn.pn.pn = phi { ptr, i32 } [ %.pn82.pn.pn, %219 ], [ %.pn48.pn, %90 ], [ %.pn45.pn, %82 ], [ %.pn.pn, %74 ]
  call void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn82.pn.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN12justkeydding10PitchClassESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(472)) local_unnamed_addr #3 align 2

; 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_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(...)

declare void @_ZN12justkeydding10PitchClassC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(472), ptr noundef) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12justkeydding10PitchClassD2Ev(ptr noundef nonnull align 8 dereferenceable(472)) unnamed_addr #5 align 2

; 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 void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

declare void @_ZN12justkeydding3Key16getAllKeysVectorEv(ptr dead_on_unwind writable sret(%"class.std::vector.6") align 8) local_unnamed_addr #4

declare void @_ZN12justkeydding13KeyTransitionC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) unnamed_addr #4

declare void @_ZN12justkeydding13KeyTransition21getKeyTransitionArrayEv(ptr dead_on_unwind writable sret(%"struct.std::array") align 8, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12justkeydding13KeyTransitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

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

declare noundef i32 @_ZNK12justkeydding3Key6getIntEv(ptr noundef nonnull align 8 dereferenceable(856)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(856)) local_unnamed_addr #3 align 2

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

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

declare void @_ZN12justkeydding13KeyTransition19getKeyTransitionMapEv(ptr dead_on_unwind writable sret(%"class.std::map.22") align 8, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4

declare void @_ZN12justkeydding10KeyProfileC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef, ptr noundef) unnamed_addr #4

declare void @_ZN12justkeydding10KeyProfile16getKeyProfileMapEv(ptr dead_on_unwind writable sret(%"class.std::map.27") align 8, ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12justkeydding10KeyProfileD2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #5 align 2

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

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

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

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

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

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

declare void @_ZN12justkeydding17HiddenMarkovModelC1ESt6vectorINS_10PitchClassESaIS2_EES1_INS_3KeyESaIS5_EESt3mapIS5_dSt4lessIS5_ESaISt4pairIKS5_dEEES8_IS5_SF_SA_SaISB_ISC_SF_EEES8_IS5_S8_IS2_dS9_IS2_ESaISB_IKS2_dEEESA_SaISB_ISC_SN_EEE(ptr noundef nonnull align 8 dereferenceable(280), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) unnamed_addr #4

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

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

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

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

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

declare void @_ZN12justkeydding17HiddenMarkovModel10runViterbiEv(ptr noundef nonnull align 8 dereferenceable(280)) local_unnamed_addr #4

declare void @_ZN12justkeydding17HiddenMarkovModel14getKeySequenceEv(ptr dead_on_unwind writable sret(%"class.std::vector.6") align 8, ptr noundef nonnull align 8 dereferenceable(280)) local_unnamed_addr #4

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

declare void @_ZN12justkeydding17HiddenMarkovModelC1ESt6vectorINS_3KeyESaIS2_EES4_St3mapIS2_dSt4lessIS2_ESaISt4pairIKS2_dEEES5_IS2_SC_S7_SaIS8_IS9_SC_EEESF_(ptr noundef nonnull align 8 dereferenceable(280), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12justkeydding17HiddenMarkovModelD2Ev(ptr noundef nonnull align 8 dereferenceable(280)) unnamed_addr #5 align 2

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass