; LLVM IR from tangjz/acm-icpc :: usaco/Training/Chapter 2 Bigger challenges (comehome)

; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<char, std::pair<const char, int>, std::_Select1st<std::pair<const char, int>>, std::less<char>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<char, std::pair<const char, int>, std::_Select1st<std::pair<const char, int>>, std::less<char>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::priority_queue" = type <{ %"class.std::vector.8", [8 x i8] }>
%"struct.std::pair" = type { i32, i32 }

@number = external dso_local global %"class.std::map", align 8
@name = external dso_local global %"class.std::vector", align 8
@dis = external dso_local global %"class.std::vector.3", align 8
@g = external dso_local global [53 x %"class.std::vector.8"], align 16
@Q = external dso_local global %"class.std::priority_queue", align 8
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@visited = external dso_local global [53 x i8], align 16
@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZL3INF = external hidden constant i32, align 4
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z11transformedc(i8 noundef signext) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca %"struct.std::pair", align 4
  %13 = alloca %"struct.std::pair", align 4
  %14 = alloca %"struct.std::pair", align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::pair", align 4
  store i32 0, ptr %1, align 4
  %17 = load ptr, ptr @stdin, align 8, !tbaa !5
  %18 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.5, ptr noundef %17)
  %19 = load ptr, ptr @stdout, align 8, !tbaa !5
  %20 = call ptr @freopen(ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef %19)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.8, ptr noundef @m)
  store i32 1, ptr @n, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  store i8 90, ptr %9, align 1, !tbaa !11
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIciSt4lessIcESaISt4pairIKciEEEixEOc(ptr noundef nonnull align 8 dereferenceable(48) @number, ptr noundef nonnull align 1 dereferenceable(1) %9)
  store i32 1, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  store i8 0, ptr %10, align 1, !tbaa !11
  call void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) @name, ptr noundef nonnull align 1 dereferenceable(1) %10)
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  store i8 90, ptr %11, align 1, !tbaa !11
  call void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) @name, ptr noundef nonnull align 1 dereferenceable(1) %11)
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %83, %0
  %24 = load i32, ptr %2, align 4, !tbaa !9
  %25 = load i32, ptr @m, align 4, !tbaa !9
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %27, label %86

27:                                               ; preds = %23
  br label %28

28:                                               ; preds = %47, %27
  %29 = call i32 @getchar()
  %30 = trunc i32 %29 to i8
  store i8 %30, ptr %8, align 1, !tbaa !11
  %31 = sext i8 %30 to i32
  %32 = icmp slt i32 %31, 65
  br i1 %32, label %45, label %33

33:                                               ; preds = %28
  %34 = load i8, ptr %8, align 1, !tbaa !11
  %35 = sext i8 %34 to i32
  %36 = icmp sgt i32 %35, 90
  br i1 %36, label %37, label %41

37:                                               ; preds = %33
  %38 = load i8, ptr %8, align 1, !tbaa !11
  %39 = sext i8 %38 to i32
  %40 = icmp slt i32 %39, 97
  br i1 %40, label %45, label %41

41:                                               ; preds = %37, %33
  %42 = load i8, ptr %8, align 1, !tbaa !11
  %43 = sext i8 %42 to i32
  %44 = icmp sgt i32 %43, 122
  br label %45

45:                                               ; preds = %41, %37, %28
  %46 = phi i1 [ true, %37 ], [ true, %28 ], [ %44, %41 ]
  br i1 %46, label %47, label %48

47:                                               ; preds = %45
  br label %28, !llvm.loop !12

48:                                               ; preds = %45
  %49 = load i8, ptr %8, align 1, !tbaa !11
  %50 = call noundef i32 @_Z11transformedc(i8 noundef signext %49)
  store i32 %50, ptr %3, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %70, %48
  %52 = call i32 @getchar()
  %53 = trunc i32 %52 to i8
  store i8 %53, ptr %8, align 1, !tbaa !11
  %54 = sext i8 %53 to i32
  %55 = icmp slt i32 %54, 65
  br i1 %55, label %68, label %56

56:                                               ; preds = %51
  %57 = load i8, ptr %8, align 1, !tbaa !11
  %58 = sext i8 %57 to i32
  %59 = icmp sgt i32 %58, 90
  br i1 %59, label %60, label %64

60:                                               ; preds = %56
  %61 = load i8, ptr %8, align 1, !tbaa !11
  %62 = sext i8 %61 to i32
  %63 = icmp slt i32 %62, 97
  br i1 %63, label %68, label %64

64:                                               ; preds = %60, %56
  %65 = load i8, ptr %8, align 1, !tbaa !11
  %66 = sext i8 %65 to i32
  %67 = icmp sgt i32 %66, 122
  br label %68

68:                                               ; preds = %64, %60, %51
  %69 = phi i1 [ true, %60 ], [ true, %51 ], [ %67, %64 ]
  br i1 %69, label %70, label %71

70:                                               ; preds = %68
  br label %51, !llvm.loop !14

71:                                               ; preds = %68
  %72 = load i8, ptr %8, align 1, !tbaa !11
  %73 = call noundef i32 @_Z11transformedc(i8 noundef signext %72)
  store i32 %73, ptr %4, align 4, !tbaa !9
  %74 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.8, ptr noundef %5)
  %75 = load i32, ptr %3, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [53 x %"class.std::vector.8"], ptr @g, i64 0, i64 %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %78 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i64 %78, ptr %12, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %79 = load i32, ptr %4, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [53 x %"class.std::vector.8"], ptr @g, i64 0, i64 %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %82 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i64 %82, ptr %13, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %83

83:                                               ; preds = %71
  %84 = load i32, ptr %2, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %2, align 4, !tbaa !9
  br label %23, !llvm.loop !15

86:                                               ; preds = %23
  %87 = load i32, ptr @n, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  %89 = sext i32 %88 to i64
  call void @_ZNSt6vectorIiSaIiEE6assignEmRKi(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %89, ptr noundef nonnull align 4 dereferenceable(4) @_ZL3INF)
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef 1) #6
  store i32 0, ptr %90, align 4, !tbaa !9
  %91 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds ([53 x %"class.std::vector.8"], ptr @g, i64 0, i64 1)) #6
  %92 = trunc i64 %91 to i32
  store i32 %92, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %126, %86
  %94 = load i32, ptr %2, align 4, !tbaa !9
  %95 = load i32, ptr %6, align 4, !tbaa !9
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %97, label %129

97:                                               ; preds = %93
  %98 = load i32, ptr %2, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds ([53 x %"class.std::vector.8"], ptr @g, i64 0, i64 1), i64 noundef %99) #6
  %101 = getelementptr inbounds %"struct.std::pair", ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 4, !tbaa !16
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %103) #6
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = load i32, ptr %2, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds ([53 x %"class.std::vector.8"], ptr @g, i64 0, i64 1), i64 noundef %107) #6
  %109 = getelementptr inbounds %"struct.std::pair", ptr %108, i32 0, i32 0
  %110 = load i32, ptr %109, align 4, !tbaa !18
  %111 = icmp sgt i32 %105, %110
  br i1 %111, label %112, label %125

112:                                              ; preds = %97
  %113 = load i32, ptr %2, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds ([53 x %"class.std::vector.8"], ptr @g, i64 0, i64 1), i64 noundef %114) #6
  %116 = getelementptr inbounds %"struct.std::pair", ptr %115, i32 0, i32 0
  %117 = load i32, ptr %116, align 4, !tbaa !18
  %118 = load i32, ptr %2, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds ([53 x %"class.std::vector.8"], ptr @g, i64 0, i64 1), i64 noundef %119) #6
  %121 = getelementptr inbounds %"struct.std::pair", ptr %120, i32 0, i32 1
  %122 = load i32, ptr %121, align 4, !tbaa !16
  %123 = sext i32 %122 to i64
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %123) #6
  store i32 %117, ptr %124, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %112, %97
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %2, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %2, align 4, !tbaa !9
  br label %93, !llvm.loop !19

129:                                              ; preds = %93
  store i32 2, ptr %2, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %139, %129
  %131 = load i32, ptr %2, align 4, !tbaa !9
  %132 = load i32, ptr @n, align 4, !tbaa !9
  %133 = icmp sle i32 %131, %132
  br i1 %133, label %134, label %142

134:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %135 = load i32, ptr %2, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %136) #6
  %138 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %137, ptr noundef nonnull align 4 dereferenceable(4) %2)
  store i64 %138, ptr %14, align 4
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %139

139:                                              ; preds = %134
  %140 = load i32, ptr %2, align 4, !tbaa !9
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %2, align 4, !tbaa !9
  br label %130, !llvm.loop !20

142:                                              ; preds = %130
  store i8 1, ptr getelementptr inbounds ([53 x i8], ptr @visited, i64 0, i64 1), align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 2, ptr %15, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %211, %142
  %144 = load i32, ptr %15, align 4, !tbaa !9
  %145 = load i32, ptr @n, align 4, !tbaa !9
  %146 = icmp slt i32 %144, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %214

148:                                              ; preds = %143
  br label %149

149:                                              ; preds = %153, %148
  %150 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %151 = getelementptr inbounds %"struct.std::pair", ptr %150, i32 0, i32 1
  %152 = load i32, ptr %151, align 4, !tbaa !16
  store i32 %152, ptr %3, align 4, !tbaa !9
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br label %153

153:                                              ; preds = %149
  %154 = load i32, ptr %3, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [53 x i8], ptr @visited, i64 0, i64 %155
  %157 = load i8, ptr %156, align 1, !tbaa !21, !range !23, !noundef !24
  %158 = trunc i8 %157 to i1
  br i1 %158, label %149, label %159, !llvm.loop !25

159:                                              ; preds = %153
  %160 = load i32, ptr %3, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [53 x i8], ptr @visited, i64 0, i64 %161
  store i8 1, ptr %162, align 1, !tbaa !21
  %163 = load i32, ptr %3, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [53 x %"class.std::vector.8"], ptr @g, i64 0, i64 %164
  %166 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %165) #6
  %167 = trunc i64 %166 to i32
  store i32 %167, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %207, %159
  %169 = load i32, ptr %2, align 4, !tbaa !9
  %170 = load i32, ptr %6, align 4, !tbaa !9
  %171 = icmp slt i32 %169, %170
  br i1 %171, label %172, label %210

172:                                              ; preds = %168
  %173 = load i32, ptr %3, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %174) #6
  %176 = load i32, ptr %175, align 4, !tbaa !9
  %177 = load i32, ptr %3, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [53 x %"class.std::vector.8"], ptr @g, i64 0, i64 %178
  %180 = load i32, ptr %2, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %181) #6
  %183 = getelementptr inbounds %"struct.std::pair", ptr %182, i32 0, i32 0
  %184 = load i32, ptr %183, align 4, !tbaa !18
  %185 = add nsw i32 %176, %184
  store i32 %185, ptr %7, align 4, !tbaa !9
  %186 = load i32, ptr %3, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [53 x %"class.std::vector.8"], ptr @g, i64 0, i64 %187
  %189 = load i32, ptr %2, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %188, i64 noundef %190) #6
  %192 = getelementptr inbounds %"struct.std::pair", ptr %191, i32 0, i32 1
  %193 = load i32, ptr %192, align 4, !tbaa !16
  store i32 %193, ptr %4, align 4, !tbaa !9
  %194 = load i32, ptr %7, align 4, !tbaa !9
  %195 = load i32, ptr %4, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %196) #6
  %198 = load i32, ptr %197, align 4, !tbaa !9
  %199 = icmp slt i32 %194, %198
  br i1 %199, label %200, label %206

200:                                              ; preds = %172
  %201 = load i32, ptr %7, align 4, !tbaa !9
  %202 = load i32, ptr %4, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %203) #6
  store i32 %201, ptr %204, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %205 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i64 %205, ptr %16, align 4
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 4 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %206

206:                                              ; preds = %200, %172
  br label %207

207:                                              ; preds = %206
  %208 = load i32, ptr %2, align 4, !tbaa !9
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %2, align 4, !tbaa !9
  br label %168, !llvm.loop !26

210:                                              ; preds = %168
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %15, align 4, !tbaa !9
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %15, align 4, !tbaa !9
  br label %143, !llvm.loop !27

214:                                              ; preds = %147
  store i32 0, ptr %7, align 4, !tbaa !9
  store i32 2, ptr %2, align 4, !tbaa !9
  br label %215

215:                                              ; preds = %246, %214
  %216 = load i32, ptr %2, align 4, !tbaa !9
  %217 = load i32, ptr @n, align 4, !tbaa !9
  %218 = icmp sle i32 %216, %217
  br i1 %218, label %219, label %249

219:                                              ; preds = %215
  %220 = load i32, ptr %2, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @name, i64 noundef %221) #6
  %223 = load i8, ptr %222, align 1, !tbaa !11
  %224 = sext i8 %223 to i32
  %225 = icmp sle i32 65, %224
  br i1 %225, label %226, label %245

226:                                              ; preds = %219
  %227 = load i32, ptr %2, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @name, i64 noundef %228) #6
  %230 = load i8, ptr %229, align 1, !tbaa !11
  %231 = sext i8 %230 to i32
  %232 = icmp sle i32 %231, 90
  br i1 %232, label %233, label %245

233:                                              ; preds = %226
  %234 = load i32, ptr %2, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %235) #6
  %237 = load i32, ptr %236, align 4, !tbaa !9
  %238 = load i32, ptr %7, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %239) #6
  %241 = load i32, ptr %240, align 4, !tbaa !9
  %242 = icmp slt i32 %237, %241
  br i1 %242, label %243, label %245

243:                                              ; preds = %233
  %244 = load i32, ptr %2, align 4, !tbaa !9
  store i32 %244, ptr %7, align 4, !tbaa !9
  br label %245

245:                                              ; preds = %243, %233, %226, %219
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %2, align 4, !tbaa !9
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %2, align 4, !tbaa !9
  br label %215, !llvm.loop !28

249:                                              ; preds = %215
  %250 = load i32, ptr %7, align 4, !tbaa !9
  %251 = sext i32 %250 to i64
  %252 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @name, i64 noundef %251) #6
  %253 = load i8, ptr %252, align 1, !tbaa !11
  %254 = sext i8 %253 to i32
  %255 = load i32, ptr %7, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %256) #6
  %258 = load i32, ptr %257, align 4, !tbaa !9
  %259 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %254, i32 noundef %258)
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %260 = load i32, ptr %1, align 4
  ret i32 %260
}

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #2

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare i32 @getchar() #4

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = !{!17, !10, i64 4}
!17 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!18 = !{!17, !10, i64 0}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !13}
!26 = distinct !{!26, !13}
!27 = distinct !{!27, !13}
!28 = distinct !{!28, !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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<char, std::pair<const char, int>, std::_Select1st<std::pair<const char, int>>, std::less<char>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<char, std::pair<const char, int>, std::_Select1st<std::pair<const char, int>>, std::less<char>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::priority_queue" = type <{ %"class.std::vector.8", [8 x i8] }>
%"struct.std::pair" = type { i32, i32 }

@number = external dso_local global %"class.std::map", align 8
@name = external dso_local global %"class.std::vector", align 8
@dis = external dso_local global %"class.std::vector.3", align 8
@g = external dso_local global [53 x %"class.std::vector.8"], align 16
@Q = external dso_local global %"class.std::priority_queue", align 8
@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local global i32, align 4
@visited = external dso_local local_unnamed_addr global [53 x i8], align 16
@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZL3INF = external hidden constant i32, align 4
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z11transformedc(i8 noundef signext) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = load ptr, ptr @stdin, align 8, !tbaa !5
  %14 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef %13)
  %15 = load ptr, ptr @stdout, align 8, !tbaa !5
  %16 = tail call ptr @freopen(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %17 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.8, ptr noundef nonnull @m)
  store i32 1, ptr @n, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  store i8 90, ptr %6, align 1, !tbaa !11
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIciSt4lessIcESaISt4pairIKciEEEixEOc(ptr noundef nonnull align 8 dereferenceable(48) @number, ptr noundef nonnull align 1 dereferenceable(1) %6)
  store i32 1, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  store i8 0, ptr %7, align 1, !tbaa !11
  call void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) @name, ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  store i8 90, ptr %8, align 1, !tbaa !11
  call void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) @name, ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  %19 = load i32, ptr @m, align 4, !tbaa !9
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.preheader37, label %._crit_edge

.preheader37:                                     ; preds = %0, %37
  %21 = phi i32 [ %49, %37 ], [ 0, %0 ]
  br label %.critedge

.critedge:                                        ; preds = %.critedge.backedge, %.preheader37
  %22 = call i32 @getchar()
  %sext = shl i32 %22, 24
  %23 = ashr exact i32 %sext, 24
  %24 = icmp slt i32 %23, 65
  br i1 %24, label %.critedge.backedge, label %25

.critedge.backedge:                               ; preds = %.critedge, %25
  br label %.critedge, !llvm.loop !12

25:                                               ; preds = %.critedge
  %26 = add nsw i32 %23, -91
  %or.cond = icmp ult i32 %26, 6
  %27 = icmp ugt i32 %23, 122
  %or.cond10 = or i1 %27, %or.cond
  br i1 %or.cond10, label %.critedge.backedge, label %28

28:                                               ; preds = %25
  %29 = trunc i32 %22 to i8
  %30 = call noundef i32 @_Z11transformedc(i8 noundef signext %29)
  store i32 %30, ptr %2, align 4, !tbaa !9
  br label %.critedge7

.critedge7:                                       ; preds = %.critedge7.backedge, %28
  %31 = call i32 @getchar()
  %sext35 = shl i32 %31, 24
  %32 = ashr exact i32 %sext35, 24
  %33 = icmp slt i32 %32, 65
  br i1 %33, label %.critedge7.backedge, label %34

.critedge7.backedge:                              ; preds = %.critedge7, %34
  br label %.critedge7, !llvm.loop !14

34:                                               ; preds = %.critedge7
  %35 = add nsw i32 %32, -91
  %or.cond5 = icmp ult i32 %35, 6
  %36 = icmp ugt i32 %32, 122
  %or.cond13 = or i1 %36, %or.cond5
  br i1 %or.cond13, label %.critedge7.backedge, label %37

37:                                               ; preds = %34
  %38 = trunc i32 %31 to i8
  %39 = call noundef i32 @_Z11transformedc(i8 noundef signext %38)
  store i32 %39, ptr %3, align 4, !tbaa !9
  %40 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.8, ptr noundef nonnull %4)
  %41 = load i32, ptr %2, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [53 x %"class.std::vector.8"], ptr @g, i64 0, i64 %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %44 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i64 %44, ptr %9, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %45 = load i32, ptr %3, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [53 x %"class.std::vector.8"], ptr @g, i64 0, i64 %46
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %48 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %2)
  store i64 %48, ptr %10, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  %49 = add nuw nsw i32 %21, 1
  %50 = load i32, ptr @m, align 4, !tbaa !9
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %.preheader37, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %37, %0
  %52 = load i32, ptr @n, align 4, !tbaa !9
  %53 = add nsw i32 %52, 1
  %54 = sext i32 %53 to i64
  call void @_ZNSt6vectorIiSaIiEE6assignEmRKi(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %54, ptr noundef nonnull align 4 dereferenceable(4) @_ZL3INF)
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef 1) #7
  store i32 0, ptr %55, align 4, !tbaa !9
  %56 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @g, i64 24)) #7
  %57 = trunc i64 %56 to i32
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %.lr.ph, label %.preheader36

.preheader36:                                     ; preds = %79, %._crit_edge
  store i32 2, ptr %1, align 4, !tbaa !9
  %59 = load i32, ptr @n, align 4, !tbaa !9
  %.not45 = icmp slt i32 %59, 2
  br i1 %.not45, label %._crit_edge54.thread, label %.lr.ph47

._crit_edge54.thread:                             ; preds = %.preheader36
  store i8 1, ptr getelementptr inbounds (i8, ptr @visited, i64 1), align 1, !tbaa !16
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %._crit_edge59

.lr.ph:                                           ; preds = %._crit_edge, %79
  %60 = phi i32 [ %80, %79 ], [ 0, %._crit_edge ]
  %61 = zext nneg i32 %60 to i64
  %62 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @g, i64 24), i64 noundef %61) #7
  %63 = getelementptr inbounds i8, ptr %62, i64 4
  %64 = load i32, ptr %63, align 4, !tbaa !18
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %65) #7
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @g, i64 24), i64 noundef %61) #7
  %69 = load i32, ptr %68, align 4, !tbaa !20
  %70 = icmp sgt i32 %67, %69
  br i1 %70, label %71, label %79

71:                                               ; preds = %.lr.ph
  %72 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @g, i64 24), i64 noundef %61) #7
  %73 = load i32, ptr %72, align 4, !tbaa !20
  %74 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @g, i64 24), i64 noundef %61) #7
  %75 = getelementptr inbounds i8, ptr %74, i64 4
  %76 = load i32, ptr %75, align 4, !tbaa !18
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %77) #7
  store i32 %73, ptr %78, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %.lr.ph, %71
  %80 = add nuw nsw i32 %60, 1
  %81 = icmp slt i32 %80, %57
  br i1 %81, label %.lr.ph, label %.preheader36, !llvm.loop !21

.lr.ph47:                                         ; preds = %.preheader36, %.lr.ph47
  %storemerge3146 = phi i32 [ %86, %.lr.ph47 ], [ 2, %.preheader36 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %82 = sext i32 %storemerge3146 to i64
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %82) #7
  %84 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %83, ptr noundef nonnull align 4 dereferenceable(4) %1)
  store i64 %84, ptr %11, align 8
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  %85 = load i32, ptr %1, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %1, align 4, !tbaa !9
  %87 = load i32, ptr @n, align 4, !tbaa !9
  %.not.not = icmp slt i32 %85, %87
  br i1 %.not.not, label %.lr.ph47, label %._crit_edge48, !llvm.loop !22

._crit_edge48:                                    ; preds = %.lr.ph47
  store i8 1, ptr getelementptr inbounds (i8, ptr @visited, i64 1), align 1, !tbaa !16
  %88 = icmp sgt i32 %87, 2
  br i1 %88, label %.preheader, label %._crit_edge54

.preheader:                                       ; preds = %._crit_edge48, %._crit_edge52
  %.053 = phi i32 [ %140, %._crit_edge52 ], [ 2, %._crit_edge48 ]
  br label %90

._crit_edge54:                                    ; preds = %._crit_edge52, %._crit_edge48
  %89 = phi i32 [ %87, %._crit_edge48 ], [ %141, %._crit_edge52 ]
  store i32 0, ptr %5, align 4, !tbaa !9
  store i32 2, ptr %1, align 4, !tbaa !9
  %.not3355 = icmp slt i32 %89, 2
  br i1 %.not3355, label %._crit_edge59, label %.lr.ph58

90:                                               ; preds = %.preheader, %90
  %91 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %92 = getelementptr inbounds i8, ptr %91, i64 4
  %93 = load i32, ptr %92, align 4, !tbaa !18
  store i32 %93, ptr %2, align 4, !tbaa !9
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %94 = load i32, ptr %2, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [53 x i8], ptr @visited, i64 0, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !16, !range !23, !noundef !24
  %98 = trunc nuw i8 %97 to i1
  br i1 %98, label %90, label %99, !llvm.loop !25

99:                                               ; preds = %90
  %100 = getelementptr inbounds [53 x i8], ptr @visited, i64 0, i64 %95
  store i8 1, ptr %100, align 1, !tbaa !16
  %101 = getelementptr inbounds [53 x %"class.std::vector.8"], ptr @g, i64 0, i64 %95
  %102 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %101) #7
  %103 = trunc i64 %102 to i32
  store i32 0, ptr %1, align 4, !tbaa !9
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %.lr.ph51, label %._crit_edge52

.lr.ph51:                                         ; preds = %99, %136
  %105 = load i32, ptr %2, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %106) #7
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = load i32, ptr %2, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [53 x %"class.std::vector.8"], ptr @g, i64 0, i64 %110
  %112 = load i32, ptr %1, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %113) #7
  %115 = load i32, ptr %114, align 4, !tbaa !20
  %116 = add nsw i32 %115, %108
  store i32 %116, ptr %5, align 4, !tbaa !9
  %117 = load i32, ptr %2, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [53 x %"class.std::vector.8"], ptr @g, i64 0, i64 %118
  %120 = load i32, ptr %1, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %121) #7
  %123 = getelementptr inbounds i8, ptr %122, i64 4
  %124 = load i32, ptr %123, align 4, !tbaa !18
  store i32 %124, ptr %3, align 4, !tbaa !9
  %125 = load i32, ptr %5, align 4, !tbaa !9
  %126 = sext i32 %124 to i64
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %126) #7
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = icmp slt i32 %125, %128
  br i1 %129, label %130, label %136

130:                                              ; preds = %.lr.ph51
  %131 = load i32, ptr %5, align 4, !tbaa !9
  %132 = load i32, ptr %3, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %133) #7
  store i32 %131, ptr %134, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %135 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i64 %135, ptr %12, align 8
  call void @_ZNSt14priority_queueISt4pairIiiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %136

136:                                              ; preds = %.lr.ph51, %130
  %137 = load i32, ptr %1, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %1, align 4, !tbaa !9
  %139 = icmp slt i32 %138, %103
  br i1 %139, label %.lr.ph51, label %._crit_edge52, !llvm.loop !26

._crit_edge52:                                    ; preds = %136, %99
  %140 = add nuw nsw i32 %.053, 1
  %141 = load i32, ptr @n, align 4, !tbaa !9
  %142 = icmp slt i32 %140, %141
  br i1 %142, label %.preheader, label %._crit_edge54, !llvm.loop !27

.lr.ph58:                                         ; preds = %._crit_edge54, %162
  %storemerge3256 = phi i32 [ %164, %162 ], [ 2, %._crit_edge54 ]
  %143 = sext i32 %storemerge3256 to i64
  %144 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @name, i64 noundef %143) #7
  %145 = load i8, ptr %144, align 1, !tbaa !11
  %146 = icmp sgt i8 %145, 64
  %.pre = load i32, ptr %1, align 4, !tbaa !9
  br i1 %146, label %147, label %162

147:                                              ; preds = %.lr.ph58
  %148 = sext i32 %.pre to i64
  %149 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @name, i64 noundef %148) #7
  %150 = load i8, ptr %149, align 1, !tbaa !11
  %151 = icmp slt i8 %150, 91
  %.pre62 = load i32, ptr %1, align 4, !tbaa !9
  br i1 %151, label %152, label %162

152:                                              ; preds = %147
  %153 = sext i32 %.pre62 to i64
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %153) #7
  %155 = load i32, ptr %154, align 4, !tbaa !9
  %156 = load i32, ptr %5, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %157) #7
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = icmp slt i32 %155, %159
  %.pre63 = load i32, ptr %1, align 4, !tbaa !9
  br i1 %160, label %161, label %162

161:                                              ; preds = %152
  store i32 %.pre63, ptr %5, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %.lr.ph58, %147, %152, %161
  %163 = phi i32 [ %.pre, %.lr.ph58 ], [ %.pre62, %147 ], [ %.pre63, %152 ], [ %.pre63, %161 ]
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %1, align 4, !tbaa !9
  %165 = load i32, ptr @n, align 4, !tbaa !9
  %.not33.not = icmp slt i32 %163, %165
  br i1 %.not33.not, label %.lr.ph58, label %._crit_edge59.loopexit, !llvm.loop !28

._crit_edge59.loopexit:                           ; preds = %162
  %.pre64 = load i32, ptr %5, align 4, !tbaa !9
  %166 = sext i32 %.pre64 to i64
  br label %._crit_edge59

._crit_edge59:                                    ; preds = %._crit_edge54.thread, %._crit_edge59.loopexit, %._crit_edge54
  %167 = phi i64 [ %166, %._crit_edge59.loopexit ], [ 0, %._crit_edge54 ], [ 0, %._crit_edge54.thread ]
  %168 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @name, i64 noundef %167) #7
  %169 = load i8, ptr %168, align 1, !tbaa !11
  %170 = sext i8 %169 to i32
  %171 = load i32, ptr %5, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @dis, i64 noundef %172) #7
  %174 = load i32, ptr %173, align 4, !tbaa !9
  %175 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %170, i32 noundef %174)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

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

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

; Function Attrs: inlinehint mustprogress nofree nounwind uwtable
declare noundef i32 @getchar() local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

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

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

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

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

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass