; LLVM IR from napulen/justkeydding :: src/keytransition.ll (ZN12justkeydding13KeyTransition19getKeyTransitionMapEv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::array" = type { [24 x double] }
%"class.std::map.3" = type { %"class.std::_Rb_tree.4" }
%"class.std::_Rb_tree.4" = 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" }
%"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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.12" = type { ptr }
%"struct.std::array.18" = type { [12 x double] }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12justkeydding13KeyTransition21getKeyTransitionArrayEv(ptr dead_on_unwind noalias writable sret(%"struct.std::array") align 8, ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12justkeydding13KeyTransition19getKeyTransitionMapEv(ptr dead_on_unwind noalias writable sret(%"class.std::map.3") align 8 %0, ptr noundef nonnull align 8 dereferenceable(80) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.std::array", align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca i1, align 1
  %8 = alloca %"struct.std::array", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.12", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.12", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::array.18", align 8
  %18 = alloca %"struct.std::array.18", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.12", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.12", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 192, ptr %5) #7
  call void @_ZN12justkeydding13KeyTransition21getKeyTransitionArrayEv(ptr dead_on_unwind writable sret(%"struct.std::array") align 8 %5, ptr noundef nonnull align 8 dereferenceable(80) %25)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #7
  call void @_ZN12justkeydding3Key16getAllKeysVectorEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %6)
  store i1 false, ptr %7, align 1
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  call void @llvm.lifetime.start.p0(i64 192, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %26 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %27 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.12", ptr %10, i32 0, i32 0
  store ptr %26, ptr %27, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %28

28:                                               ; preds = %152, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %29 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %30 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.12", ptr %11, i32 0, i32 0
  store ptr %29, ptr %30, align 8
  %31 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12justkeydding3KeyEPS2_St6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNS9_IT0_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %157

33:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %34 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %35 = invoke noundef i32 @_ZNK12justkeydding3Key6getIntEv(ptr noundef nonnull align 8 dereferenceable(856) %34)
          to label %36 unwind label %60

36:                                               ; preds = %33
  %37 = srem i32 %35, 12
  store i32 %37, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %38 = load i32, ptr %13, align 4, !tbaa !9
  %39 = sub nsw i32 12, %38
  store i32 %39, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 96, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 96, ptr %18) #7
  %40 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %41 = invoke noundef zeroext i1 @_ZNK12justkeydding3Key10isMajorKeyEv(ptr noundef nonnull align 8 dereferenceable(856) %40)
          to label %42 unwind label %64

42:                                               ; preds = %36
  br i1 %41, label %43, label %68

43:                                               ; preds = %42
  %44 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %5) #8
  %45 = getelementptr inbounds double, ptr %44, i64 0
  %46 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %5) #8
  %47 = getelementptr inbounds double, ptr %46, i64 11
  %48 = getelementptr inbounds double, ptr %47, i64 1
  %49 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %17) #8
  %50 = invoke noundef ptr @_ZSt4copyIPdS0_ET0_T_S2_S1_(ptr noundef %45, ptr noundef %48, ptr noundef %49)
          to label %51 unwind label %64

51:                                               ; preds = %43
  %52 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %5) #8
  %53 = getelementptr inbounds double, ptr %52, i64 12
  %54 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %5) #8
  %55 = getelementptr inbounds double, ptr %54, i64 23
  %56 = getelementptr inbounds double, ptr %55, i64 1
  %57 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %18) #8
  %58 = invoke noundef ptr @_ZSt4copyIPdS0_ET0_T_S2_S1_(ptr noundef %53, ptr noundef %56, ptr noundef %57)
          to label %59 unwind label %64

59:                                               ; preds = %51
  br label %93

60:                                               ; preds = %33
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %14, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %15, align 4
  br label %156

64:                                               ; preds = %115, %109, %101, %93, %83, %72, %68, %51, %43, %36
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %14, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %15, align 4
  br label %155

68:                                               ; preds = %42
  %69 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %70 = invoke noundef zeroext i1 @_ZNK12justkeydding3Key10isMinorKeyEv(ptr noundef nonnull align 8 dereferenceable(856) %69)
          to label %71 unwind label %64

71:                                               ; preds = %68
  br i1 %70, label %72, label %92

72:                                               ; preds = %71
  %73 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %5) #8
  %74 = getelementptr inbounds double, ptr %73, i64 12
  %75 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %5) #8
  %76 = getelementptr inbounds double, ptr %75, i64 12
  %77 = getelementptr inbounds double, ptr %76, i64 9
  %78 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %5) #8
  %79 = getelementptr inbounds double, ptr %78, i64 23
  %80 = getelementptr inbounds double, ptr %79, i64 1
  %81 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %17) #8
  %82 = invoke noundef ptr @_ZSt11rotate_copyIPdS0_ET0_T_S2_S2_S1_(ptr noundef %74, ptr noundef %77, ptr noundef %80, ptr noundef %81)
          to label %83 unwind label %64

83:                                               ; preds = %72
  %84 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %5) #8
  %85 = getelementptr inbounds double, ptr %84, i64 0
  %86 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %5) #8
  %87 = getelementptr inbounds double, ptr %86, i64 11
  %88 = getelementptr inbounds double, ptr %87, i64 1
  %89 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %18) #8
  %90 = invoke noundef ptr @_ZSt4copyIPdS0_ET0_T_S2_S1_(ptr noundef %85, ptr noundef %88, ptr noundef %89)
          to label %91 unwind label %64

91:                                               ; preds = %83
  br label %92

92:                                               ; preds = %91, %71
  br label %93

93:                                               ; preds = %92, %59
  %94 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %17) #8
  %95 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %17) #8
  %96 = load i32, ptr %16, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %95, i64 %97
  %99 = call noundef ptr @_ZNSt5arrayIdLm12EE3endEv(ptr noundef nonnull align 8 dereferenceable(96) %17) #8
  %100 = invoke noundef ptr @_ZNSt3_V26rotateIPdEET_S2_S2_S2_(ptr noundef %94, ptr noundef %98, ptr noundef %99)
          to label %101 unwind label %64

101:                                              ; preds = %93
  %102 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %18) #8
  %103 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %18) #8
  %104 = load i32, ptr %16, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds double, ptr %103, i64 %105
  %107 = call noundef ptr @_ZNSt5arrayIdLm12EE3endEv(ptr noundef nonnull align 8 dereferenceable(96) %18) #8
  %108 = invoke noundef ptr @_ZNSt3_V26rotateIPdEET_S2_S2_S2_(ptr noundef %102, ptr noundef %106, ptr noundef %107)
          to label %109 unwind label %64

109:                                              ; preds = %101
  %110 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %17) #8
  %111 = call noundef ptr @_ZNSt5arrayIdLm12EE3endEv(ptr noundef nonnull align 8 dereferenceable(96) %17) #8
  %112 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %8) #8
  %113 = getelementptr inbounds double, ptr %112, i64 0
  %114 = invoke noundef ptr @_ZSt4copyIPdS0_ET0_T_S2_S1_(ptr noundef %110, ptr noundef %111, ptr noundef %113)
          to label %115 unwind label %64

115:                                              ; preds = %109
  %116 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %18) #8
  %117 = call noundef ptr @_ZNSt5arrayIdLm12EE3endEv(ptr noundef nonnull align 8 dereferenceable(96) %18) #8
  %118 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %8) #8
  %119 = getelementptr inbounds double, ptr %118, i64 12
  %120 = invoke noundef ptr @_ZSt4copyIPdS0_ET0_T_S2_S1_(ptr noundef %116, ptr noundef %117, ptr noundef %119)
          to label %121 unwind label %64

121:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %122 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.12", ptr %20, i32 0, i32 0
  store ptr %122, ptr %123, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %124

124:                                              ; preds = %144, %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %125 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %126 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.12", ptr %21, i32 0, i32 0
  store ptr %125, ptr %126, align 8
  %127 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12justkeydding3KeyEPS2_St6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNS9_IT0_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br i1 %127, label %129, label %128

128:                                              ; preds = %124
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %151

129:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %130 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %131 = invoke noundef i32 @_ZNK12justkeydding3Key6getIntEv(ptr noundef nonnull align 8 dereferenceable(856) %130)
          to label %132 unwind label %147

132:                                              ; preds = %129
  store i32 %131, ptr %22, align 4, !tbaa !9
  %133 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %8) #8
  %134 = load i32, ptr %22, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds double, ptr %133, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !11
  %138 = call noundef nonnull align 8 dereferenceable(856) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %139 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(856) %138)
          to label %140 unwind label %147

140:                                              ; preds = %132
  %141 = call noundef nonnull align 8 dereferenceable(856) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %139, ptr noundef nonnull align 8 dereferenceable(856) %141)
          to label %143 unwind label %147

143:                                              ; preds = %140
  store double %137, ptr %142, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %144

144:                                              ; preds = %143
  %145 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef 0) #7
  %146 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %145, ptr %146, align 8
  br label %124, !llvm.loop !13

147:                                              ; preds = %140, %132, %129
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %14, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %155

151:                                              ; preds = %128
  call void @llvm.lifetime.end.p0(i64 96, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %152

152:                                              ; preds = %151
  %153 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef 0) #7
  %154 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %153, ptr %154, align 8
  br label %28, !llvm.loop !15

155:                                              ; preds = %147, %64
  call void @llvm.lifetime.end.p0(i64 96, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %156

156:                                              ; preds = %155, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr %8) #7
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr %5) #7
  br label %161

157:                                              ; preds = %32
  store i1 true, ptr %7, align 1
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 192, ptr %8) #7
  %158 = load i1, ptr %7, align 1
  br i1 %158, label %160, label %159

159:                                              ; preds = %157
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  br label %160

160:                                              ; preds = %159, %157
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr %5) #7
  ret void

161:                                              ; preds = %156
  %162 = load ptr, ptr %14, align 8
  %163 = load i32, ptr %15, align 4
  %164 = insertvalue { ptr, i32 } poison, ptr %162, 0
  %165 = insertvalue { ptr, i32 } %164, i32 %163, 1
  resume { ptr, i32 } %165
}

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

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZNK12justkeydding3Key10isMajorKeyEv(ptr noundef nonnull align 8 dereferenceable(856)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIPdS0_ET0_T_S2_S1_(ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192)) #6 align 2

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96)) #6 align 2

declare noundef zeroext i1 @_ZNK12justkeydding3Key10isMinorKeyEv(ptr noundef nonnull align 8 dereferenceable(856)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11rotate_copyIPdS0_ET0_T_S2_S2_S1_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNSt3_V26rotateIPdEET_S2_S2_S2_(ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIdLm12EE3endEv(ptr noundef nonnull align 8 dereferenceable(96)) #6 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 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 #3 align 2

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

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

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

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


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

%"struct.std::array" = type { [24 x double] }
%"class.std::map.3" = type { %"class.std::_Rb_tree.4" }
%"class.std::_Rb_tree.4" = 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" }
%"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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.12" = type { ptr }
%"struct.std::array.18" = type { [12 x double] }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12justkeydding13KeyTransition21getKeyTransitionArrayEv(ptr dead_on_unwind noalias writable sret(%"struct.std::array") align 8, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12justkeydding13KeyTransition19getKeyTransitionMapEv(ptr dead_on_unwind noalias writable sret(%"class.std::map.3") align 8 %0, ptr noundef nonnull align 8 dereferenceable(80) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.std::array", align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"struct.std::array", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.12", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.12", align 8
  %9 = alloca %"struct.std::array.18", align 8
  %10 = alloca %"struct.std::array.18", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.12", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.12", align 8
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %3) #7
  call void @_ZN12justkeydding13KeyTransition21getKeyTransitionArrayEv(ptr dead_on_unwind nonnull writable sret(%"struct.std::array") align 8 %3, ptr noundef nonnull align 8 dereferenceable(80) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @_ZN12justkeydding3Key16getAllKeysVectorEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %4)
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %14 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  store ptr %14, ptr %7, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %15 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  store ptr %15, ptr %8, align 8
  %16 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12justkeydding3KeyEPS2_St6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNS9_IT0_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br i1 %16, label %.lr.ph13, label %._crit_edge14

._crit_edge14:                                    ; preds = %._crit_edge, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %5) #7
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %3) #7
  ret void

.lr.ph13:                                         ; preds = %2, %._crit_edge
  %17 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %18 = invoke noundef i32 @_ZNK12justkeydding3Key6getIntEv(ptr noundef nonnull align 8 dereferenceable(856) %17)
          to label %19 unwind label %34

19:                                               ; preds = %.lr.ph13
  %20 = srem i32 %18, 12
  %21 = sub nsw i32 12, %20
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %10) #7
  %22 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %23 = invoke noundef zeroext i1 @_ZNK12justkeydding3Key10isMajorKeyEv(ptr noundef nonnull align 8 dereferenceable(856) %22)
          to label %24 unwind label %36

24:                                               ; preds = %19
  br i1 %23, label %25, label %38

25:                                               ; preds = %24
  %26 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %3) #8
  %27 = getelementptr inbounds i8, ptr %26, i64 96
  %28 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %9) #8
  %29 = invoke noundef ptr @_ZSt4copyIPdS0_ET0_T_S2_S1_(ptr noundef %26, ptr noundef nonnull %27, ptr noundef %28)
          to label %30 unwind label %36

30:                                               ; preds = %25
  %31 = getelementptr inbounds i8, ptr %26, i64 192
  %32 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %10) #8
  %33 = invoke noundef ptr @_ZSt4copyIPdS0_ET0_T_S2_S1_(ptr noundef nonnull %27, ptr noundef nonnull %31, ptr noundef %32)
          to label %52 unwind label %36

34:                                               ; preds = %.lr.ph13
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %93

36:                                               ; preds = %65, %62, %57, %52, %49, %42, %38, %30, %25, %19
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %92

38:                                               ; preds = %24
  %39 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %40 = invoke noundef zeroext i1 @_ZNK12justkeydding3Key10isMinorKeyEv(ptr noundef nonnull align 8 dereferenceable(856) %39)
          to label %41 unwind label %36

41:                                               ; preds = %38
  br i1 %40, label %42, label %._crit_edge15

._crit_edge15:                                    ; preds = %41
  %.pre = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %9) #8
  br label %52

42:                                               ; preds = %41
  %43 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %3) #8
  %44 = getelementptr inbounds i8, ptr %43, i64 96
  %45 = getelementptr inbounds i8, ptr %43, i64 168
  %46 = getelementptr inbounds i8, ptr %43, i64 192
  %47 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %9) #8
  %48 = invoke noundef ptr @_ZSt11rotate_copyIPdS0_ET0_T_S2_S2_S1_(ptr noundef nonnull %44, ptr noundef nonnull %45, ptr noundef nonnull %46, ptr noundef %47)
          to label %49 unwind label %36

49:                                               ; preds = %42
  %50 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %10) #8
  %51 = invoke noundef ptr @_ZSt4copyIPdS0_ET0_T_S2_S1_(ptr noundef %43, ptr noundef nonnull %44, ptr noundef %50)
          to label %52 unwind label %36

52:                                               ; preds = %._crit_edge15, %49, %30
  %.pre-phi = phi ptr [ %.pre, %._crit_edge15 ], [ %47, %49 ], [ %28, %30 ]
  %53 = zext nneg i32 %21 to i64
  %54 = getelementptr inbounds double, ptr %.pre-phi, i64 %53
  %55 = call noundef ptr @_ZNSt5arrayIdLm12EE3endEv(ptr noundef nonnull align 8 dereferenceable(96) %9) #8
  %56 = invoke noundef ptr @_ZNSt3_V26rotateIPdEET_S2_S2_S2_(ptr noundef %.pre-phi, ptr noundef %54, ptr noundef %55)
          to label %57 unwind label %36

57:                                               ; preds = %52
  %58 = call noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %10) #8
  %59 = getelementptr inbounds double, ptr %58, i64 %53
  %60 = call noundef ptr @_ZNSt5arrayIdLm12EE3endEv(ptr noundef nonnull align 8 dereferenceable(96) %10) #8
  %61 = invoke noundef ptr @_ZNSt3_V26rotateIPdEET_S2_S2_S2_(ptr noundef %58, ptr noundef %59, ptr noundef %60)
          to label %62 unwind label %36

62:                                               ; preds = %57
  %63 = call noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192) %5) #8
  %64 = invoke noundef ptr @_ZSt4copyIPdS0_ET0_T_S2_S1_(ptr noundef %.pre-phi, ptr noundef %55, ptr noundef %63)
          to label %65 unwind label %36

65:                                               ; preds = %62
  %66 = getelementptr inbounds i8, ptr %63, i64 96
  %67 = invoke noundef ptr @_ZSt4copyIPdS0_ET0_T_S2_S1_(ptr noundef %58, ptr noundef %60, ptr noundef nonnull %66)
          to label %68 unwind label %36

68:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %69 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  store ptr %69, ptr %12, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %70 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  store ptr %70, ptr %13, align 8
  %71 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12justkeydding3KeyEPS2_St6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNS9_IT0_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br i1 %71, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %86, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %9) #7
  %72 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %73 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  store ptr %73, ptr %8, align 8
  %74 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12justkeydding3KeyEPS2_St6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNS9_IT0_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br i1 %74, label %.lr.ph13, label %._crit_edge14, !llvm.loop !5

.lr.ph:                                           ; preds = %68, %86
  %75 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %76 = invoke noundef i32 @_ZNK12justkeydding3Key6getIntEv(ptr noundef nonnull align 8 dereferenceable(856) %75)
          to label %77 unwind label %90

77:                                               ; preds = %.lr.ph
  %78 = sext i32 %76 to i64
  %79 = getelementptr inbounds double, ptr %63, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !7
  %81 = call noundef nonnull align 8 dereferenceable(856) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %82 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(856) %81)
          to label %83 unwind label %90

83:                                               ; preds = %77
  %84 = call noundef nonnull align 8 dereferenceable(856) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIN12justkeydding3KeyEdSt4lessIS1_ESaISt4pairIKS1_dEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %82, ptr noundef nonnull align 8 dereferenceable(856) %84)
          to label %86 unwind label %90

86:                                               ; preds = %83
  store double %80, ptr %85, align 8, !tbaa !7
  %87 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %88 = call ptr @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  store ptr %88, ptr %13, align 8
  %89 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12justkeydding3KeyEPS2_St6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNS9_IT0_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br i1 %89, label %.lr.ph, label %._crit_edge, !llvm.loop !11

90:                                               ; preds = %83, %77, %.lr.ph
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %92

92:                                               ; preds = %90, %36
  %.pn = phi { ptr, i32 } [ %91, %90 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %9) #7
  br label %93

93:                                               ; preds = %92, %34
  %.pn.pn = phi { ptr, i32 } [ %.pn, %92 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %5) #7
  call void @_ZNSt3mapIN12justkeydding3KeyES_IS1_dSt4lessIS1_ESaISt4pairIKS1_dEEES3_SaIS4_IS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  call void @_ZNSt6vectorIN12justkeydding3KeyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZNK12justkeydding3Key10isMajorKeyEv(ptr noundef nonnull align 8 dereferenceable(856)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIPdS0_ET0_T_S2_S1_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIdLm24EE5beginEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIdLm12EE5beginEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #6 align 2

declare noundef zeroext i1 @_ZNK12justkeydding3Key10isMinorKeyEv(ptr noundef nonnull align 8 dereferenceable(856)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11rotate_copyIPdS0_ET0_T_S2_S2_S1_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNSt3_V26rotateIPdEET_S2_S2_S2_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIdLm12EE3endEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #6 align 2

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

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

; 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 #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN12justkeydding3KeyESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3 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 #3 align 2

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

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

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

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


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