; LLVM IR from VAR-solutions/Algorithms :: Greedy Algorithms/Huffman/cpp (huffmanInCPP)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"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::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<node, std::allocator<node>>::_Vector_impl" }
%"struct.std::_Vector_base<node, std::allocator<node>>::_Vector_impl" = type { %"struct.std::_Vector_base<node, std::allocator<node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<node, std::allocator<node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.node = type { i8, float, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z10mergeNodesP4nodeS0_(ptr noundef, ptr noundef) #0

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5codesP4nodePii(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::priority_queue", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.node, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #9
  %16 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %17 unwind label %28

17:                                               ; preds = %0
  %18 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %19 unwind label %28

19:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  %20 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #9
  %21 = trunc i64 %20 to i32
  store i32 %21, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #9
  invoke void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
          to label %22 unwind label %32

22:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %105, %22
  %24 = load i32, ptr %7, align 4, !tbaa !5
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %36, label %27

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

28:                                               ; preds = %17, %0
  %29 = landingpad { ptr, i32 }
          cleanup
  %30 = extractvalue { ptr, i32 } %29, 0
  store ptr %30, ptr %3, align 8
  %31 = extractvalue { ptr, i32 } %29, 1
  store i32 %31, ptr %4, align 4
  br label %151

32:                                               ; preds = %19
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %3, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %4, align 4
  br label %150

36:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store float 1.000000e+00, ptr %9, align 4, !tbaa !9
  %37 = load i32, ptr %7, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %38)
          to label %40 unwind label %52

40:                                               ; preds = %36
  %41 = load i8, ptr %39, align 1, !tbaa !11
  %42 = sext i8 %41 to i32
  %43 = icmp ne i32 %42, 126
  br i1 %43, label %44, label %104

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %45 = load i32, ptr %7, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %10, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %82, %44
  %48 = load i32, ptr %10, align 4, !tbaa !5
  %49 = load i32, ptr %5, align 4, !tbaa !5
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %56, label %51

51:                                               ; preds = %47
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %85

52:                                               ; preds = %36
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %3, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %4, align 4
  br label %108

56:                                               ; preds = %47
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %58)
          to label %60 unwind label %77

60:                                               ; preds = %56
  %61 = load i8, ptr %59, align 1, !tbaa !11
  %62 = sext i8 %61 to i32
  %63 = load i32, ptr %10, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %64)
          to label %66 unwind label %77

66:                                               ; preds = %60
  %67 = load i8, ptr %65, align 1, !tbaa !11
  %68 = sext i8 %67 to i32
  %69 = icmp eq i32 %62, %68
  br i1 %69, label %70, label %81

70:                                               ; preds = %66
  %71 = load float, ptr %9, align 4, !tbaa !9
  %72 = fadd float %71, 1.000000e+00
  store float %72, ptr %9, align 4, !tbaa !9
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %74)
          to label %76 unwind label %77

76:                                               ; preds = %70
  store i8 126, ptr %75, align 1, !tbaa !11
  br label %81

77:                                               ; preds = %70, %60, %56
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %3, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %108

81:                                               ; preds = %76, %66
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %10, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %10, align 4, !tbaa !5
  br label %47, !llvm.loop !12

85:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #9
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %87)
          to label %89 unwind label %100

89:                                               ; preds = %85
  %90 = load i8, ptr %88, align 1, !tbaa !11
  %91 = getelementptr inbounds %struct.node, ptr %11, i32 0, i32 0
  store i8 %90, ptr %91, align 8, !tbaa !14
  %92 = getelementptr inbounds %struct.node, ptr %11, i32 0, i32 3
  store ptr null, ptr %92, align 8, !tbaa !17
  %93 = getelementptr inbounds %struct.node, ptr %11, i32 0, i32 2
  store ptr null, ptr %93, align 8, !tbaa !18
  %94 = load float, ptr %9, align 4, !tbaa !9
  %95 = load i32, ptr %5, align 4, !tbaa !5
  %96 = sitofp i32 %95 to float
  %97 = fdiv float %94, %96
  %98 = getelementptr inbounds %struct.node, ptr %11, i32 0, i32 1
  store float %97, ptr %98, align 4, !tbaa !19
  invoke void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %99 unwind label %100

99:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #9
  br label %104

100:                                              ; preds = %89, %85
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %3, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #9
  br label %108

104:                                              ; preds = %99, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %7, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %7, align 4, !tbaa !5
  br label %23, !llvm.loop !20

108:                                              ; preds = %100, %77, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %149

109:                                              ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  br label %110

110:                                              ; preds = %132, %109
  %111 = invoke noundef i64 @_ZNKSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
          to label %112 unwind label %133

112:                                              ; preds = %110
  %113 = icmp ugt i64 %111, 1
  br i1 %113, label %114, label %137

114:                                              ; preds = %112
  %115 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #10
          to label %116 unwind label %133

116:                                              ; preds = %114
  store ptr %115, ptr %12, align 8, !tbaa !21
  %117 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #10
          to label %118 unwind label %133

118:                                              ; preds = %116
  store ptr %117, ptr %13, align 8, !tbaa !21
  %119 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
          to label %120 unwind label %133

120:                                              ; preds = %118
  %121 = load ptr, ptr %12, align 8, !tbaa !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %121, ptr align 8 %119, i64 24, i1 false), !tbaa.struct !22
  invoke void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
          to label %122 unwind label %133

122:                                              ; preds = %120
  %123 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
          to label %124 unwind label %133

124:                                              ; preds = %122
  %125 = load ptr, ptr %13, align 8, !tbaa !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %125, ptr align 8 %123, i64 24, i1 false), !tbaa.struct !22
  invoke void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
          to label %126 unwind label %133

126:                                              ; preds = %124
  %127 = load ptr, ptr %12, align 8, !tbaa !21
  %128 = load ptr, ptr %13, align 8, !tbaa !21
  %129 = invoke noundef ptr @_Z10mergeNodesP4nodeS0_(ptr noundef %127, ptr noundef %128)
          to label %130 unwind label %133

130:                                              ; preds = %126
  store ptr %129, ptr %14, align 8, !tbaa !21
  %131 = load ptr, ptr %14, align 8, !tbaa !21
  invoke void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(24) %131)
          to label %132 unwind label %133

132:                                              ; preds = %130
  br label %110, !llvm.loop !23

133:                                              ; preds = %130, %126, %124, %122, %120, %118, %116, %114, %110
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %3, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %4, align 4
  br label %148

137:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %138 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef 400) #10
          to label %139 unwind label %144

139:                                              ; preds = %137
  store ptr %138, ptr %15, align 8, !tbaa !21
  %140 = load ptr, ptr %14, align 8, !tbaa !21
  %141 = load ptr, ptr %15, align 8, !tbaa !21
  invoke void @_Z5codesP4nodePii(ptr noundef %140, ptr noundef %141, i32 noundef 0)
          to label %142 unwind label %144

142:                                              ; preds = %139
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #9
  %143 = load i32, ptr %1, align 4
  ret i32 %143

144:                                              ; preds = %139, %137
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %3, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %148

148:                                              ; preds = %144, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %149

149:                                              ; preds = %148, %108
  call void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %6) #9
  br label %150

150:                                              ; preds = %149, %32
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %151

151:                                              ; preds = %150, %28
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #9
  br label %152

152:                                              ; preds = %151
  %153 = load ptr, ptr %3, align 8
  %154 = load i32, ptr %4, align 4
  %155 = insertvalue { ptr, i32 } poison, ptr %153, 0
  %156 = insertvalue { ptr, i32 } %155, i32 %154, 1
  resume { ptr, i32 } %156
}

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

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #6

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) #0 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #2

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

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

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

!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 = !{!"float", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !7, i64 0}
!15 = !{!"_ZTS4node", !7, i64 0, !10, i64 4, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!15, !16, i64 16}
!18 = !{!15, !16, i64 8}
!19 = !{!15, !10, i64 4}
!20 = distinct !{!20, !13}
!21 = !{!16, !16, i64 0}
!22 = !{i64 0, i64 1, !11, i64 4, i64 4, !9, i64 8, i64 8, !21, i64 16, i64 8, !21}
!23 = distinct !{!23, !13}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"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::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<node, std::allocator<node>>::_Vector_impl" }
%"struct.std::_Vector_base<node, std::allocator<node>>::_Vector_impl" = type { %"struct.std::_Vector_base<node, std::allocator<node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<node, std::allocator<node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.node = type { i8, float, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z10mergeNodesP4nodeS0_(ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5codesP4nodePii(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::priority_queue", align 8
  %3 = alloca %struct.node, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #10
  %4 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %5 unwind label %17

5:                                                ; preds = %0
  %6 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %7 unwind label %17

7:                                                ; preds = %5
  %8 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #10
  %9 = trunc i64 %8 to i32
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #10
  call void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph44, label %.preheader

.lr.ph44:                                         ; preds = %7
  %11 = getelementptr inbounds i8, ptr %3, i64 8
  %12 = uitofp nneg i32 %9 to float
  %13 = getelementptr inbounds i8, ptr %3, i64 4
  %14 = and i64 %8, 2147483647
  %wide.trip.count55 = and i64 %8, 2147483647
  br label %19

.preheader:                                       ; preds = %._crit_edge57, %7
  %15 = call noundef i64 @_ZNKSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  %16 = icmp ugt i64 %15, 1
  br i1 %16, label %.lr.ph45, label %._crit_edge46

17:                                               ; preds = %5, %0
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %59

19:                                               ; preds = %.lr.ph44, %._crit_edge57
  %indvars.iv51 = phi i64 [ 0, %.lr.ph44 ], [ %.pre, %._crit_edge57 ]
  %indvars.iv = phi i64 [ 1, %.lr.ph44 ], [ %indvars.iv.next, %._crit_edge57 ]
  %20 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv51)
  %21 = load i8, ptr %20, align 1, !tbaa !5
  %.not = icmp eq i8 %21, 126
  %.pre = add nuw nsw i64 %indvars.iv51, 1
  br i1 %.not, label %._crit_edge57, label %.preheader37

.preheader37:                                     ; preds = %19
  %22 = icmp ult i64 %.pre, %14
  br i1 %22, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %34, %.preheader37
  %.029.lcssa = phi float [ 1.000000e+00, %.preheader37 ], [ %.130, %34 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #10
  %23 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv51)
  %24 = load i8, ptr %23, align 1, !tbaa !5
  store i8 %24, ptr %3, align 8, !tbaa !8
  %25 = fdiv float %.029.lcssa, %12
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %11, i8 0, i64 16, i1 false)
  store float %25, ptr %13, align 4, !tbaa !12
  invoke void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %2, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %35 unwind label %36

.lr.ph:                                           ; preds = %.preheader37, %34
  %indvars.iv48 = phi i64 [ %indvars.iv.next49, %34 ], [ %indvars.iv, %.preheader37 ]
  %.02940 = phi float [ %.130, %34 ], [ 1.000000e+00, %.preheader37 ]
  %26 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv51)
  %27 = load i8, ptr %26, align 1, !tbaa !5
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv48)
  %29 = load i8, ptr %28, align 1, !tbaa !5
  %30 = icmp eq i8 %27, %29
  br i1 %30, label %31, label %34

31:                                               ; preds = %.lr.ph
  %32 = fadd float %.02940, 1.000000e+00
  %33 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv48)
  store i8 126, ptr %33, align 1, !tbaa !5
  br label %34

34:                                               ; preds = %.lr.ph, %31
  %.130 = phi float [ %32, %31 ], [ %.02940, %.lr.ph ]
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next49, %wide.trip.count55
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

35:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #10
  br label %._crit_edge57

36:                                               ; preds = %._crit_edge
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #10
  br label %58

._crit_edge57:                                    ; preds = %19, %35
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond56.not = icmp eq i64 %.pre, %wide.trip.count55
  br i1 %exitcond56.not, label %.preheader, label %19, !llvm.loop !15

38:                                               ; preds = %50
  %39 = call noundef i64 @_ZNKSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  %40 = icmp ugt i64 %39, 1
  br i1 %40, label %.lr.ph45, label %._crit_edge46, !llvm.loop !16

.lr.ph45:                                         ; preds = %.preheader, %38
  %41 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #11
          to label %42 unwind label %51

42:                                               ; preds = %.lr.ph45
  %43 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #11
          to label %44 unwind label %51

44:                                               ; preds = %42
  %45 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(24) %45, i64 24, i1 false), !tbaa.struct !17
  invoke void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
          to label %46 unwind label %51

46:                                               ; preds = %44
  %47 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(24) %47, i64 24, i1 false), !tbaa.struct !17
  invoke void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
          to label %48 unwind label %51

48:                                               ; preds = %46
  %49 = invoke noundef ptr @_Z10mergeNodesP4nodeS0_(ptr noundef nonnull %41, ptr noundef nonnull %43)
          to label %50 unwind label %51

50:                                               ; preds = %48
  invoke void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %2, ptr noundef nonnull align 8 dereferenceable(24) %49)
          to label %38 unwind label %51, !llvm.loop !16

51:                                               ; preds = %50, %48, %46, %44, %42, %.lr.ph45
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %58

._crit_edge46:                                    ; preds = %38, %.preheader
  %.0.lcssa = phi ptr [ undef, %.preheader ], [ %49, %38 ]
  %53 = invoke noalias noundef nonnull dereferenceable(400) ptr @_Znam(i64 noundef 400) #11
          to label %54 unwind label %56

54:                                               ; preds = %._crit_edge46
  invoke void @_Z5codesP4nodePii(ptr noundef %.0.lcssa, ptr noundef nonnull %53, i32 noundef 0)
          to label %55 unwind label %56

55:                                               ; preds = %54
  call void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %2) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #10
  ret i32 0

56:                                               ; preds = %54, %._crit_edge46
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %58

58:                                               ; preds = %51, %56, %36
  %.pn34 = phi { ptr, i32 } [ %37, %36 ], [ %52, %51 ], [ %57, %56 ]
  call void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %2) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #10
  br label %59

59:                                               ; preds = %58, %17
  %.pn34.pn = phi { ptr, i32 } [ %.pn34, %58 ], [ %18, %17 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #10
  resume { ptr, i32 } %.pn34.pn
}

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

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueI4nodeSt6vectorIS0_SaIS0_EE7compareE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #0 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #9

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass