; LLVM IR from eyangch/competitive-programming :: USACOcontests/silver/2014.12 (cowjog)

; 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_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"struct.std::pair" = type { i64, i64 }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::basic_ifstream", align 8
  %3 = alloca %"class.std::basic_ofstream", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i8, align 1
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 520, ptr %2) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %2, ptr noundef @.str, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 512, ptr %3) #6
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %3, ptr noundef @.str.1, i32 noundef 16)
          to label %17 unwind label %47

17:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 0, ptr %8, align 8, !tbaa !5
  %18 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %19 unwind label %51

19:                                               ; preds = %17
  %20 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %21 unwind label %51

21:                                               ; preds = %19
  %22 = load i64, ptr %6, align 8, !tbaa !5
  %23 = call ptr @llvm.stacksave.p0()
  store ptr %23, ptr %9, align 8
  %24 = alloca i64, i64 %22, align 16
  store i64 %22, ptr %10, align 8
  %25 = load i64, ptr %6, align 8, !tbaa !5
  %26 = alloca i8, i64 %25, align 16
  store i64 %25, ptr %11, align 8
  %27 = load i64, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %26, i64 %27
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  store i8 1, ptr %12, align 1, !tbaa !9
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %26, ptr noundef %28, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %29 unwind label %55

29:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  %30 = load i64, ptr %6, align 8, !tbaa !5
  %31 = alloca %"struct.std::pair", i64 %30, align 16
  store i64 %30, ptr %13, align 8
  %32 = icmp eq i64 %30, 0
  br i1 %32, label %40, label %33

33:                                               ; preds = %29
  %34 = getelementptr inbounds %"struct.std::pair", ptr %31, i64 %30
  br label %35

35:                                               ; preds = %37, %33
  %36 = phi ptr [ %31, %33 ], [ %38, %37 ]
  invoke void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %36)
          to label %37 unwind label %51

37:                                               ; preds = %35
  %38 = getelementptr inbounds %"struct.std::pair", ptr %36, i64 1
  %39 = icmp eq ptr %38, %34
  br i1 %39, label %40, label %35

40:                                               ; preds = %37, %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %41

41:                                               ; preds = %72, %40
  %42 = load i32, ptr %14, align 4, !tbaa !11
  %43 = sext i32 %42 to i64
  %44 = load i64, ptr %6, align 8, !tbaa !5
  %45 = icmp slt i64 %43, %44
  br i1 %45, label %59, label %46

46:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %79

47:                                               ; preds = %0
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %4, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %5, align 4
  br label %175

51:                                               ; preds = %169, %166, %35, %19, %17
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %4, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %5, align 4
  br label %174

55:                                               ; preds = %21
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %4, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  br label %174

59:                                               ; preds = %41
  %60 = load i32, ptr %14, align 4, !tbaa !11
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %"struct.std::pair", ptr %31, i64 %61
  %63 = getelementptr inbounds %"struct.std::pair", ptr %62, i32 0, i32 0
  %64 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %63)
          to label %65 unwind label %75

65:                                               ; preds = %59
  %66 = load i32, ptr %14, align 4, !tbaa !11
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds %"struct.std::pair", ptr %31, i64 %67
  %69 = getelementptr inbounds %"struct.std::pair", ptr %68, i32 0, i32 1
  %70 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 8 dereferenceable(8) %69)
          to label %71 unwind label %75

71:                                               ; preds = %65
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %14, align 4, !tbaa !11
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %14, align 4, !tbaa !11
  br label %41, !llvm.loop !13

75:                                               ; preds = %65, %59
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %4, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %174

79:                                               ; preds = %46
  %80 = load i64, ptr %6, align 8, !tbaa !5
  %81 = sub nsw i64 %80, 1
  %82 = getelementptr inbounds %"struct.std::pair", ptr %31, i64 %81
  %83 = getelementptr inbounds %"struct.std::pair", ptr %82, i32 0, i32 0
  %84 = load i64, ptr %83, align 16, !tbaa !15
  %85 = load i64, ptr %6, align 8, !tbaa !5
  %86 = sub nsw i64 %85, 1
  %87 = getelementptr inbounds %"struct.std::pair", ptr %31, i64 %86
  %88 = getelementptr inbounds %"struct.std::pair", ptr %87, i32 0, i32 1
  %89 = load i64, ptr %88, align 8, !tbaa !17
  %90 = load i64, ptr %7, align 8, !tbaa !5
  %91 = mul nsw i64 %89, %90
  %92 = add nsw i64 %84, %91
  %93 = load i64, ptr %6, align 8, !tbaa !5
  %94 = sub nsw i64 %93, 1
  %95 = getelementptr inbounds i64, ptr %24, i64 %94
  store i64 %92, ptr %95, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %96 = load i64, ptr %6, align 8, !tbaa !5
  %97 = sub nsw i64 %96, 2
  %98 = trunc i64 %97 to i32
  store i32 %98, ptr %15, align 4, !tbaa !11
  br label %99

99:                                               ; preds = %143, %79
  %100 = load i32, ptr %15, align 4, !tbaa !11
  %101 = icmp sge i32 %100, 0
  br i1 %101, label %103, label %102

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

103:                                              ; preds = %99
  %104 = load i32, ptr %15, align 4, !tbaa !11
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds %"struct.std::pair", ptr %31, i64 %105
  %107 = getelementptr inbounds %"struct.std::pair", ptr %106, i32 0, i32 0
  %108 = load i64, ptr %107, align 16, !tbaa !15
  %109 = load i32, ptr %15, align 4, !tbaa !11
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds %"struct.std::pair", ptr %31, i64 %110
  %112 = getelementptr inbounds %"struct.std::pair", ptr %111, i32 0, i32 1
  %113 = load i64, ptr %112, align 8, !tbaa !17
  %114 = load i64, ptr %7, align 8, !tbaa !5
  %115 = mul nsw i64 %113, %114
  %116 = add nsw i64 %108, %115
  %117 = load i32, ptr %15, align 4, !tbaa !11
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds i64, ptr %24, i64 %118
  store i64 %116, ptr %119, align 8, !tbaa !5
  %120 = load i32, ptr %15, align 4, !tbaa !11
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i64, ptr %24, i64 %121
  %123 = load i64, ptr %122, align 8, !tbaa !5
  %124 = load i32, ptr %15, align 4, !tbaa !11
  %125 = add nsw i32 %124, 1
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i64, ptr %24, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !5
  %129 = icmp sge i64 %123, %128
  br i1 %129, label %130, label %142

130:                                              ; preds = %103
  %131 = load i32, ptr %15, align 4, !tbaa !11
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds i8, ptr %26, i64 %132
  store i8 0, ptr %133, align 1, !tbaa !9
  %134 = load i32, ptr %15, align 4, !tbaa !11
  %135 = add nsw i32 %134, 1
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds i64, ptr %24, i64 %136
  %138 = load i64, ptr %137, align 8, !tbaa !5
  %139 = load i32, ptr %15, align 4, !tbaa !11
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds i64, ptr %24, i64 %140
  store i64 %138, ptr %141, align 8, !tbaa !5
  br label %142

142:                                              ; preds = %130, %103
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %15, align 4, !tbaa !11
  %145 = add nsw i32 %144, -1
  store i32 %145, ptr %15, align 4, !tbaa !11
  br label %99, !llvm.loop !18

146:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %147

147:                                              ; preds = %163, %146
  %148 = load i32, ptr %16, align 4, !tbaa !11
  %149 = sext i32 %148 to i64
  %150 = load i64, ptr %6, align 8, !tbaa !5
  %151 = icmp slt i64 %149, %150
  br i1 %151, label %153, label %152

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

153:                                              ; preds = %147
  %154 = load i32, ptr %16, align 4, !tbaa !11
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds i8, ptr %26, i64 %155
  %157 = load i8, ptr %156, align 1, !tbaa !9, !range !19, !noundef !20
  %158 = trunc i8 %157 to i1
  br i1 %158, label %159, label %162

159:                                              ; preds = %153
  %160 = load i64, ptr %8, align 8, !tbaa !5
  %161 = add nsw i64 %160, 1
  store i64 %161, ptr %8, align 8, !tbaa !5
  br label %162

162:                                              ; preds = %159, %153
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %16, align 4, !tbaa !11
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %16, align 4, !tbaa !11
  br label %147, !llvm.loop !21

166:                                              ; preds = %152
  %167 = load i64, ptr %8, align 8, !tbaa !5
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %167)
          to label %169 unwind label %51

169:                                              ; preds = %166
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %171 unwind label %51

171:                                              ; preds = %169
  store i32 0, ptr %1, align 4
  %172 = load ptr, ptr %9, align 8
  call void @llvm.stackrestore.p0(ptr %172)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #6
  call void @llvm.lifetime.end.p0(i64 520, ptr %2) #6
  %173 = load i32, ptr %1, align 4
  ret i32 %173

174:                                              ; preds = %75, %55, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #6
  br label %175

175:                                              ; preds = %174, %47
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #6
  call void @llvm.lifetime.end.p0(i64 520, ptr %2) #6
  br label %176

176:                                              ; preds = %175
  %177 = load ptr, ptr %4, align 8
  %178 = load i32, ptr %5, align 4
  %179 = insertvalue { ptr, i32 } poison, ptr %177, 0
  %180 = insertvalue { ptr, i32 } %179, i32 %178, 1
  resume { ptr, i32 } %180
}

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #4

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSSt4pairIxxE", !6, i64 0, !6, i64 8}
!17 = !{!16, !6, i64 8}
!18 = distinct !{!18, !14}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !14}


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

%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"struct.std::pair" = type { i64, i64 }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::basic_ifstream", align 8
  %2 = alloca %"class.std::basic_ofstream", align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %1) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %1, ptr noundef nonnull @.str, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %2) #6
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %2, ptr noundef nonnull @.str.1, i32 noundef 16)
          to label %6 unwind label %41

6:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %7 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %8 unwind label %43

8:                                                ; preds = %6
  %9 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %10 unwind label %43

10:                                               ; preds = %8
  %11 = load i64, ptr %3, align 8, !tbaa !5
  %12 = call ptr @llvm.stacksave.p0()
  %13 = alloca i64, i64 %11, align 16
  %14 = load i64, ptr %3, align 8, !tbaa !5
  %15 = alloca i8, i64 %14, align 16
  %16 = getelementptr inbounds i8, ptr %15, i64 %14
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  store i8 1, ptr %5, align 1, !tbaa !9
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %17 unwind label %45

17:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  %18 = load i64, ptr %3, align 8, !tbaa !5
  %19 = alloca %"struct.std::pair", i64 %18, align 16
  %20 = icmp eq i64 %18, 0
  br i1 %20, label %._crit_edge, label %21

21:                                               ; preds = %17
  %22 = getelementptr inbounds %"struct.std::pair", ptr %19, i64 %18
  br label %23

23:                                               ; preds = %23, %21
  %24 = phi ptr [ %19, %21 ], [ %25, %23 ]
  call void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %26 = icmp eq ptr %25, %22
  br i1 %26, label %.loopexit, label %23

.loopexit:                                        ; preds = %23
  %.pre = load i64, ptr %3, align 8, !tbaa !5
  %27 = icmp sgt i64 %.pre, 0
  br i1 %27, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %52, %17, %.loopexit
  %.lcssa = phi i64 [ %.pre, %.loopexit ], [ 0, %17 ], [ %53, %52 ]
  %28 = add nsw i64 %.lcssa, -1
  %29 = getelementptr inbounds %"struct.std::pair", ptr %19, i64 %28
  %30 = load i64, ptr %29, align 16, !tbaa !11
  %31 = getelementptr inbounds i8, ptr %29, i64 8
  %32 = load i64, ptr %31, align 8, !tbaa !13
  %33 = load i64, ptr %4, align 8, !tbaa !5
  %34 = mul nsw i64 %33, %32
  %35 = add nsw i64 %34, %30
  %36 = getelementptr inbounds i64, ptr %13, i64 %28
  store i64 %35, ptr %36, align 8, !tbaa !5
  %37 = trunc i64 %.lcssa to i32
  %38 = add i32 %37, -2
  %39 = icmp sgt i32 %38, -1
  br i1 %39, label %.lr.ph39.preheader, label %.preheader

.lr.ph39.preheader:                               ; preds = %._crit_edge
  %40 = zext nneg i32 %38 to i64
  br label %.lr.ph39

41:                                               ; preds = %0
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %104

43:                                               ; preds = %100, %._crit_edge43, %8, %6
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %103

45:                                               ; preds = %10
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br label %103

.lr.ph:                                           ; preds = %.loopexit, %52
  %indvars.iv = phi i64 [ %indvars.iv.next, %52 ], [ 0, %.loopexit ]
  %47 = getelementptr inbounds %"struct.std::pair", ptr %19, i64 %indvars.iv
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(8) %47)
          to label %49 unwind label %55

49:                                               ; preds = %.lr.ph
  %50 = getelementptr inbounds i8, ptr %47, i64 8
  %51 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 8 dereferenceable(8) %50)
          to label %52 unwind label %55

52:                                               ; preds = %49
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %53 = load i64, ptr %3, align 8, !tbaa !5
  %54 = icmp sgt i64 %53, %indvars.iv.next
  br i1 %54, label %.lr.ph, label %._crit_edge, !llvm.loop !14

55:                                               ; preds = %49, %.lr.ph
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %103

.preheader:                                       ; preds = %70, %._crit_edge
  %57 = icmp sgt i64 %.lcssa, 0
  br i1 %57, label %.lr.ph42.preheader, label %._crit_edge43

.lr.ph42.preheader:                               ; preds = %.preheader
  %xtraiter = and i64 %.lcssa, 7
  %58 = icmp ult i64 %.lcssa, 8
  br i1 %58, label %._crit_edge43.loopexit.unr-lcssa, label %.lr.ph42.preheader.new

.lr.ph42.preheader.new:                           ; preds = %.lr.ph42.preheader
  %unroll_iter = and i64 %.lcssa, 9223372036854775800
  br label %.lr.ph42

.lr.ph39:                                         ; preds = %.lr.ph39.preheader, %70
  %indvars.iv47 = phi i64 [ %40, %.lr.ph39.preheader ], [ %indvars.iv.next48, %70 ]
  %59 = getelementptr inbounds %"struct.std::pair", ptr %19, i64 %indvars.iv47
  %60 = load i64, ptr %59, align 16, !tbaa !11
  %61 = getelementptr inbounds i8, ptr %59, i64 8
  %62 = load i64, ptr %61, align 8, !tbaa !13
  %63 = mul nsw i64 %62, %33
  %64 = add nsw i64 %63, %60
  %65 = getelementptr inbounds i64, ptr %13, i64 %indvars.iv47
  store i64 %64, ptr %65, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 8
  %67 = load i64, ptr %66, align 8, !tbaa !5
  %.not = icmp slt i64 %64, %67
  br i1 %.not, label %70, label %68

68:                                               ; preds = %.lr.ph39
  %69 = getelementptr inbounds i8, ptr %15, i64 %indvars.iv47
  store i8 0, ptr %69, align 1, !tbaa !9
  store i64 %67, ptr %65, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %.lr.ph39, %68
  %indvars.iv.next48 = add nsw i64 %indvars.iv47, -1
  %71 = icmp sgt i64 %indvars.iv47, 0
  br i1 %71, label %.lr.ph39, label %.preheader, !llvm.loop !16

._crit_edge43.loopexit.unr-lcssa:                 ; preds = %.lr.ph42, %.lr.ph42.preheader
  %spec.select.lcssa.ph = phi i64 [ poison, %.lr.ph42.preheader ], [ %spec.select.7, %.lr.ph42 ]
  %indvars.iv50.unr = phi i64 [ 0, %.lr.ph42.preheader ], [ %indvars.iv.next51.7, %.lr.ph42 ]
  %.02740.unr = phi i64 [ 0, %.lr.ph42.preheader ], [ %spec.select.7, %.lr.ph42 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge43, label %.lr.ph42.epil

.lr.ph42.epil:                                    ; preds = %._crit_edge43.loopexit.unr-lcssa, %.lr.ph42.epil
  %indvars.iv50.epil = phi i64 [ %indvars.iv.next51.epil, %.lr.ph42.epil ], [ %indvars.iv50.unr, %._crit_edge43.loopexit.unr-lcssa ]
  %.02740.epil = phi i64 [ %spec.select.epil, %.lr.ph42.epil ], [ %.02740.unr, %._crit_edge43.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph42.epil ], [ 0, %._crit_edge43.loopexit.unr-lcssa ]
  %72 = getelementptr inbounds i8, ptr %15, i64 %indvars.iv50.epil
  %73 = load i8, ptr %72, align 1, !tbaa !9, !range !17, !noundef !18
  %74 = zext nneg i8 %73 to i64
  %spec.select.epil = add nuw nsw i64 %.02740.epil, %74
  %indvars.iv.next51.epil = add nuw nsw i64 %indvars.iv50.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge43, label %.lr.ph42.epil, !llvm.loop !19

._crit_edge43:                                    ; preds = %._crit_edge43.loopexit.unr-lcssa, %.lr.ph42.epil, %.preheader
  %.027.lcssa = phi i64 [ 0, %.preheader ], [ %spec.select.lcssa.ph, %._crit_edge43.loopexit.unr-lcssa ], [ %spec.select.epil, %.lr.ph42.epil ]
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.027.lcssa)
          to label %100 unwind label %43

.lr.ph42:                                         ; preds = %.lr.ph42, %.lr.ph42.preheader.new
  %indvars.iv50 = phi i64 [ 0, %.lr.ph42.preheader.new ], [ %indvars.iv.next51.7, %.lr.ph42 ]
  %.02740 = phi i64 [ 0, %.lr.ph42.preheader.new ], [ %spec.select.7, %.lr.ph42 ]
  %niter = phi i64 [ 0, %.lr.ph42.preheader.new ], [ %niter.next.7, %.lr.ph42 ]
  %76 = getelementptr inbounds i8, ptr %15, i64 %indvars.iv50
  %77 = load i8, ptr %76, align 8, !tbaa !9, !range !17, !noundef !18
  %78 = zext nneg i8 %77 to i64
  %spec.select = add nuw nsw i64 %.02740, %78
  %indvars.iv.next51 = or disjoint i64 %indvars.iv50, 1
  %79 = getelementptr inbounds i8, ptr %15, i64 %indvars.iv.next51
  %80 = load i8, ptr %79, align 1, !tbaa !9, !range !17, !noundef !18
  %81 = zext nneg i8 %80 to i64
  %spec.select.1 = add nuw nsw i64 %spec.select, %81
  %indvars.iv.next51.1 = or disjoint i64 %indvars.iv50, 2
  %82 = getelementptr inbounds i8, ptr %15, i64 %indvars.iv.next51.1
  %83 = load i8, ptr %82, align 2, !tbaa !9, !range !17, !noundef !18
  %84 = zext nneg i8 %83 to i64
  %spec.select.2 = add nuw nsw i64 %spec.select.1, %84
  %indvars.iv.next51.2 = or disjoint i64 %indvars.iv50, 3
  %85 = getelementptr inbounds i8, ptr %15, i64 %indvars.iv.next51.2
  %86 = load i8, ptr %85, align 1, !tbaa !9, !range !17, !noundef !18
  %87 = zext nneg i8 %86 to i64
  %spec.select.3 = add nuw nsw i64 %spec.select.2, %87
  %indvars.iv.next51.3 = or disjoint i64 %indvars.iv50, 4
  %88 = getelementptr inbounds i8, ptr %15, i64 %indvars.iv.next51.3
  %89 = load i8, ptr %88, align 4, !tbaa !9, !range !17, !noundef !18
  %90 = zext nneg i8 %89 to i64
  %spec.select.4 = add nuw nsw i64 %spec.select.3, %90
  %indvars.iv.next51.4 = or disjoint i64 %indvars.iv50, 5
  %91 = getelementptr inbounds i8, ptr %15, i64 %indvars.iv.next51.4
  %92 = load i8, ptr %91, align 1, !tbaa !9, !range !17, !noundef !18
  %93 = zext nneg i8 %92 to i64
  %spec.select.5 = add nuw nsw i64 %spec.select.4, %93
  %indvars.iv.next51.5 = or disjoint i64 %indvars.iv50, 6
  %94 = getelementptr inbounds i8, ptr %15, i64 %indvars.iv.next51.5
  %95 = load i8, ptr %94, align 2, !tbaa !9, !range !17, !noundef !18
  %96 = zext nneg i8 %95 to i64
  %spec.select.6 = add nuw nsw i64 %spec.select.5, %96
  %indvars.iv.next51.6 = or disjoint i64 %indvars.iv50, 7
  %97 = getelementptr inbounds i8, ptr %15, i64 %indvars.iv.next51.6
  %98 = load i8, ptr %97, align 1, !tbaa !9, !range !17, !noundef !18
  %99 = zext nneg i8 %98 to i64
  %spec.select.7 = add nuw nsw i64 %spec.select.6, %99
  %indvars.iv.next51.7 = add nuw nsw i64 %indvars.iv50, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge43.loopexit.unr-lcssa, label %.lr.ph42, !llvm.loop !21

100:                                              ; preds = %._crit_edge43
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %102 unwind label %43

102:                                              ; preds = %100
  call void @llvm.stackrestore.p0(ptr %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %1) #6
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %1) #6
  ret i32 0

103:                                              ; preds = %55, %45, %43
  %.pn = phi { ptr, i32 } [ %56, %55 ], [ %44, %43 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #6
  br label %104

104:                                              ; preds = %103, %41
  %.pn.pn = phi { ptr, i32 } [ %.pn, %103 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %1) #6
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4

; 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 nounwind uwtable
declare dso_local void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIxxE", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !15}


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