; LLVM IR from eyangch/competitive-programming :: USACOcontests/silver/2018.01 (rental)

; 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::array" = type { [100000 x i32] }
%"struct.std::array.0" = type { [100000 x i64] }
%"struct.std::array.1" = type { [100000 x %"struct.std::pair"] }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::greater" = type { i8 }
%"struct.std::greater.2" = type { i8 }

@.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 i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::array", align 4
  %11 = alloca %"struct.std::array", align 4
  %12 = alloca %"struct.std::array.0", align 8
  %13 = alloca %"struct.std::array.0", align 8
  %14 = alloca %"struct.std::array.1", align 4
  %15 = alloca %"struct.std::pair", align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::greater", align 1
  %22 = alloca %"struct.std::greater.2", align 1
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 520, ptr %2) #9
  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) #9
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %3, ptr noundef @.str.1, i32 noundef 16)
          to label %26 unwind label %44

26:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %28 unwind label %48

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %30 unwind label %48

30:                                               ; preds = %28
  %31 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %32 unwind label %48

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 400000, ptr %10) #9
  call void @llvm.memset.p0.i64(ptr align 4 %10, i8 0, i64 400000, i1 false)
  call void @llvm.lifetime.start.p0(i64 400000, ptr %11) #9
  call void @llvm.memset.p0.i64(ptr align 4 %11, i8 0, i64 400000, i1 false)
  call void @llvm.lifetime.start.p0(i64 800000, ptr %12) #9
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 800000, i1 false)
  call void @llvm.lifetime.start.p0(i64 800000, ptr %13) #9
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 800000, i1 false)
  call void @llvm.lifetime.start.p0(i64 800000, ptr %14) #9
  invoke void @_ZNSt5arrayISt4pairIiiELm100000EEC2Ev(ptr noundef nonnull align 4 dereferenceable(800000) %14)
          to label %33 unwind label %52

33:                                               ; preds = %32
  %34 = call noundef ptr @_ZNSt5arrayISt4pairIiiELm100000EE5beginEv(ptr noundef nonnull align 4 dereferenceable(800000) %14) #10
  %35 = call noundef ptr @_ZNSt5arrayISt4pairIiiELm100000EE3endEv(ptr noundef nonnull align 4 dereferenceable(800000) %14) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !9
  %36 = invoke i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %37 unwind label %56

37:                                               ; preds = %33
  store i64 %36, ptr %15, align 4
  invoke void @_ZSt4fillIPSt4pairIiiES1_EvT_S3_RKT0_(ptr noundef %34, ptr noundef %35, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %38 unwind label %56

38:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %66, %38
  %40 = load i32, ptr %18, align 4, !tbaa !9
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %60, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %73

44:                                               ; preds = %0
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %4, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %5, align 4
  br label %280

48:                                               ; preds = %30, %28, %26
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %4, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %5, align 4
  br label %279

52:                                               ; preds = %130, %124, %118, %32
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %4, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %5, align 4
  br label %278

56:                                               ; preds = %37, %33
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %4, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %278

60:                                               ; preds = %39
  %61 = load i32, ptr %18, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000) %10, i64 noundef %62) #9
  %64 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) %63)
          to label %65 unwind label %69

65:                                               ; preds = %60
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %18, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %18, align 4, !tbaa !9
  br label %39, !llvm.loop !11

69:                                               ; preds = %60
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %4, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %278

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

74:                                               ; preds = %92, %73
  %75 = load i32, ptr %19, align 4, !tbaa !9
  %76 = load i32, ptr %8, align 4, !tbaa !9
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %79, label %78

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

79:                                               ; preds = %74
  %80 = load i32, ptr %19, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %14, i64 noundef %81) #9
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %82) #9
  %84 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) %83)
          to label %85 unwind label %95

85:                                               ; preds = %79
  %86 = load i32, ptr %19, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %14, i64 noundef %87) #9
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %88) #9
  %90 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %84, ptr noundef nonnull align 4 dereferenceable(4) %89)
          to label %91 unwind label %95

91:                                               ; preds = %85
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %19, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %19, align 4, !tbaa !9
  br label %74, !llvm.loop !13

95:                                               ; preds = %85, %79
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %4, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %278

99:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %111, %99
  %101 = load i32, ptr %20, align 4, !tbaa !9
  %102 = load i32, ptr %9, align 4, !tbaa !9
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %105, label %104

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

105:                                              ; preds = %100
  %106 = load i32, ptr %20, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000) %11, i64 noundef %107) #9
  %109 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) %108)
          to label %110 unwind label %114

110:                                              ; preds = %105
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %20, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %20, align 4, !tbaa !9
  br label %100, !llvm.loop !14

114:                                              ; preds = %105
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %4, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %278

118:                                              ; preds = %104
  %119 = call noundef ptr @_ZNSt5arrayIiLm100000EE5beginEv(ptr noundef nonnull align 4 dereferenceable(400000) %10) #10
  %120 = call noundef ptr @_ZNSt5arrayIiLm100000EE5beginEv(ptr noundef nonnull align 4 dereferenceable(400000) %10) #10
  %121 = load i32, ptr %7, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr %120, i64 %122
  invoke void @_ZSt4sortIPiEvT_S1_(ptr noundef %119, ptr noundef %123)
          to label %124 unwind label %52

124:                                              ; preds = %118
  %125 = call noundef ptr @_ZNSt5arrayISt4pairIiiELm100000EE5beginEv(ptr noundef nonnull align 4 dereferenceable(800000) %14) #10
  %126 = call noundef ptr @_ZNSt5arrayISt4pairIiiELm100000EE5beginEv(ptr noundef nonnull align 4 dereferenceable(800000) %14) #10
  %127 = load i32, ptr %8, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds %"struct.std::pair", ptr %126, i64 %128
  invoke void @_ZSt4sortIPSt4pairIiiESt7greaterIS1_EEvT_S5_T0_(ptr noundef %125, ptr noundef %129)
          to label %130 unwind label %52

130:                                              ; preds = %124
  %131 = call noundef ptr @_ZNSt5arrayIiLm100000EE5beginEv(ptr noundef nonnull align 4 dereferenceable(400000) %11) #10
  %132 = call noundef ptr @_ZNSt5arrayIiLm100000EE5beginEv(ptr noundef nonnull align 4 dereferenceable(400000) %11) #10
  %133 = load i32, ptr %9, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds i32, ptr %132, i64 %134
  invoke void @_ZSt4sortIPiSt7greaterIiEEvT_S3_T0_(ptr noundef %131, ptr noundef %135)
          to label %136 unwind label %52

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

137:                                              ; preds = %151, %136
  %138 = load i32, ptr %23, align 4, !tbaa !9
  %139 = load i32, ptr %7, align 4, !tbaa !9
  %140 = icmp slt i32 %138, %139
  br i1 %140, label %142, label %141

141:                                              ; preds = %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %154

142:                                              ; preds = %137
  %143 = load i32, ptr %23, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000) %11, i64 noundef %144) #9
  %146 = load i32, ptr %145, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = load i32, ptr %23, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm100000EEixEm(ptr noundef nonnull align 8 dereferenceable(800000) %13, i64 noundef %149) #9
  store i64 %147, ptr %150, align 8, !tbaa !5
  br label %151

151:                                              ; preds = %142
  %152 = load i32, ptr %23, align 4, !tbaa !9
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %23, align 4, !tbaa !9
  br label %137, !llvm.loop !15

154:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 0, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  %155 = load i32, ptr %7, align 4, !tbaa !9
  %156 = sub nsw i32 %155, 1
  store i32 %156, ptr %25, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %259, %154
  %158 = load i32, ptr %25, align 4, !tbaa !9
  %159 = icmp sge i32 %158, 0
  br i1 %159, label %161, label %160

160:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %266

161:                                              ; preds = %157
  br label %162

162:                                              ; preds = %186, %161
  %163 = load i32, ptr %24, align 4, !tbaa !9
  %164 = load i32, ptr %8, align 4, !tbaa !9
  %165 = icmp slt i32 %163, %164
  br i1 %165, label %166, label %184

166:                                              ; preds = %162
  %167 = load i32, ptr %25, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000) %10, i64 noundef %168) #9
  %170 = load i32, ptr %169, align 4, !tbaa !9
  %171 = load i32, ptr %24, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %14, i64 noundef %172) #9
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %173) #9
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = icmp sge i32 %170, %175
  br i1 %176, label %177, label %184

177:                                              ; preds = %166
  %178 = load i32, ptr %24, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %14, i64 noundef %179) #9
  %181 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %180) #9
  %182 = load i32, ptr %181, align 4, !tbaa !9
  %183 = icmp ne i32 %182, 0
  br label %184

184:                                              ; preds = %177, %166, %162
  %185 = phi i1 [ false, %166 ], [ false, %162 ], [ %183, %177 ]
  br i1 %185, label %186, label %216

186:                                              ; preds = %184
  %187 = load i32, ptr %24, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %14, i64 noundef %188) #9
  %190 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %189) #9
  %191 = load i32, ptr %190, align 4, !tbaa !9
  %192 = load i32, ptr %24, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %14, i64 noundef %193) #9
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %194) #9
  %196 = load i32, ptr %195, align 4, !tbaa !9
  %197 = mul nsw i32 %191, %196
  %198 = sext i32 %197 to i64
  %199 = load i32, ptr %25, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm100000EEixEm(ptr noundef nonnull align 8 dereferenceable(800000) %12, i64 noundef %200) #9
  %202 = load i64, ptr %201, align 8, !tbaa !5
  %203 = add nsw i64 %202, %198
  store i64 %203, ptr %201, align 8, !tbaa !5
  %204 = load i32, ptr %24, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %14, i64 noundef %205) #9
  %207 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %206) #9
  %208 = load i32, ptr %207, align 4, !tbaa !9
  %209 = load i32, ptr %25, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000) %10, i64 noundef %210) #9
  %212 = load i32, ptr %211, align 4, !tbaa !9
  %213 = sub nsw i32 %212, %208
  store i32 %213, ptr %211, align 4, !tbaa !9
  %214 = load i32, ptr %24, align 4, !tbaa !9
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %24, align 4, !tbaa !9
  br label %162, !llvm.loop !16

216:                                              ; preds = %184
  %217 = load i32, ptr %24, align 4, !tbaa !9
  %218 = load i32, ptr %8, align 4, !tbaa !9
  %219 = icmp slt i32 %217, %218
  br i1 %219, label %220, label %247

220:                                              ; preds = %216
  %221 = load i32, ptr %24, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %14, i64 noundef %222) #9
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %223) #9
  %225 = load i32, ptr %224, align 4, !tbaa !9
  %226 = load i32, ptr %25, align 4, !tbaa !9
  %227 = sext i32 %226 to i64
  %228 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000) %10, i64 noundef %227) #9
  %229 = load i32, ptr %228, align 4, !tbaa !9
  %230 = mul nsw i32 %225, %229
  %231 = sext i32 %230 to i64
  %232 = load i32, ptr %25, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm100000EEixEm(ptr noundef nonnull align 8 dereferenceable(800000) %12, i64 noundef %233) #9
  %235 = load i64, ptr %234, align 8, !tbaa !5
  %236 = add nsw i64 %235, %231
  store i64 %236, ptr %234, align 8, !tbaa !5
  %237 = load i32, ptr %25, align 4, !tbaa !9
  %238 = sext i32 %237 to i64
  %239 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000) %10, i64 noundef %238) #9
  %240 = load i32, ptr %239, align 4, !tbaa !9
  %241 = load i32, ptr %24, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %14, i64 noundef %242) #9
  %244 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %243) #9
  %245 = load i32, ptr %244, align 4, !tbaa !9
  %246 = sub nsw i32 %245, %240
  store i32 %246, ptr %244, align 4, !tbaa !9
  br label %247

247:                                              ; preds = %220, %216
  %248 = load i32, ptr %25, align 4, !tbaa !9
  %249 = sext i32 %248 to i64
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm100000EEixEm(ptr noundef nonnull align 8 dereferenceable(800000) %13, i64 noundef %249) #9
  %251 = load i32, ptr %25, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm100000EEixEm(ptr noundef nonnull align 8 dereferenceable(800000) %12, i64 noundef %252) #9
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %250, ptr noundef nonnull align 8 dereferenceable(8) %253)
          to label %255 unwind label %262

255:                                              ; preds = %247
  %256 = load i64, ptr %254, align 8, !tbaa !5
  %257 = load i64, ptr %6, align 8, !tbaa !5
  %258 = add nsw i64 %257, %256
  store i64 %258, ptr %6, align 8, !tbaa !5
  br label %259

259:                                              ; preds = %255
  %260 = load i32, ptr %25, align 4, !tbaa !9
  %261 = add nsw i32 %260, -1
  store i32 %261, ptr %25, align 4, !tbaa !9
  br label %157, !llvm.loop !17

262:                                              ; preds = %247
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %4, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %277

266:                                              ; preds = %160
  %267 = load i64, ptr %6, align 8, !tbaa !5
  %268 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %267)
          to label %269 unwind label %273

269:                                              ; preds = %266
  %270 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %268, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %271 unwind label %273

271:                                              ; preds = %269
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 800000, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 800000, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 800000, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 400000, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 400000, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #9
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #9
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #9
  call void @llvm.lifetime.end.p0(i64 520, ptr %2) #9
  %272 = load i32, ptr %1, align 4
  ret i32 %272

273:                                              ; preds = %269, %266
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %4, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %5, align 4
  br label %277

277:                                              ; preds = %273, %262
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %278

278:                                              ; preds = %277, %114, %95, %69, %56, %52
  call void @llvm.lifetime.end.p0(i64 800000, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 800000, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 800000, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 400000, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 400000, ptr %10) #9
  br label %279

279:                                              ; preds = %278, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #9
  br label %280

280:                                              ; preds = %279, %44
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #9
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #9
  call void @llvm.lifetime.end.p0(i64 520, ptr %2) #9
  br label %281

281:                                              ; preds = %280
  %282 = load ptr, ptr %4, align 8
  %283 = load i32, ptr %5, align 4
  %284 = insertvalue { ptr, i32 } poison, ptr %282, 0
  %285 = insertvalue { ptr, i32 } %284, i32 %283, 1
  resume { ptr, i32 } %285
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt5arrayISt4pairIiiELm100000EEC2Ev(ptr noundef nonnull align 4 dereferenceable(800000)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayISt4pairIiiELm100000EE5beginEv(ptr noundef nonnull align 4 dereferenceable(800000)) #6 align 2

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayISt4pairIiiELm100000EE3endEv(ptr noundef nonnull align 4 dereferenceable(800000)) #6 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000), i64 noundef) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8)) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000), i64 noundef) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8)) #7

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

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIiLm100000EE5beginEv(ptr noundef nonnull align 4 dereferenceable(400000)) #6 align 2

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

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

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

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

; 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)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #7 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(none) }

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

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


; 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::array" = type { [100000 x i32] }
%"struct.std::array.0" = type { [100000 x i64] }
%"struct.std::array.1" = type { [100000 x %"struct.std::pair"] }
%"struct.std::pair" = type { i32, i32 }

@.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 i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::array", align 4
  %7 = alloca %"struct.std::array", align 4
  %8 = alloca %"struct.std::array.0", align 8
  %9 = alloca %"struct.std::array.0", align 8
  %10 = alloca %"struct.std::array.1", align 4
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %1) #9
  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) #9
  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 %14 unwind label %31

14:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %15 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %16 unwind label %33

16:                                               ; preds = %14
  %17 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %18 unwind label %33

18:                                               ; preds = %16
  %19 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %20 unwind label %33

20:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 400000, ptr nonnull %6) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(400000) %6, i8 0, i64 400000, i1 false)
  call void @llvm.lifetime.start.p0(i64 400000, ptr nonnull %7) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(400000) %7, i8 0, i64 400000, i1 false)
  call void @llvm.lifetime.start.p0(i64 800000, ptr nonnull %8) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(800000) %8, i8 0, i64 800000, i1 false)
  call void @llvm.lifetime.start.p0(i64 800000, ptr nonnull %9) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(800000) %9, i8 0, i64 800000, i1 false)
  call void @llvm.lifetime.start.p0(i64 800000, ptr nonnull %10) #9
  invoke void @_ZNSt5arrayISt4pairIiiELm100000EEC2Ev(ptr noundef nonnull align 4 dereferenceable(800000) %10)
          to label %21 unwind label %35

21:                                               ; preds = %20
  %22 = call noundef ptr @_ZNSt5arrayISt4pairIiiELm100000EE5beginEv(ptr noundef nonnull align 4 dereferenceable(800000) %10) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #9
  store i32 0, ptr %13, align 4, !tbaa !5
  %23 = invoke i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %24 unwind label %37

24:                                               ; preds = %21
  %25 = call noundef ptr @_ZNSt5arrayISt4pairIiiELm100000EE3endEv(ptr noundef nonnull align 4 dereferenceable(800000) %10) #10
  store i64 %23, ptr %11, align 8
  invoke void @_ZSt4fillIPSt4pairIiiES1_EvT_S3_RKT0_(ptr noundef %22, ptr noundef %25, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %26 unwind label %37

26:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.lr.ph, label %.preheader57

.preheader57:                                     ; preds = %41, %26
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph60, label %.preheader56

31:                                               ; preds = %0
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %162

33:                                               ; preds = %18, %16, %14
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %161

35:                                               ; preds = %78, %74, %._crit_edge, %20
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %160

37:                                               ; preds = %24, %21
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %160

.lr.ph:                                           ; preds = %26, %41
  %indvars.iv = phi i64 [ %indvars.iv.next, %41 ], [ 0, %26 ]
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000) %6, i64 noundef %indvars.iv) #9
  %40 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %39)
          to label %41 unwind label %45

41:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = icmp slt i64 %indvars.iv.next, %43
  br i1 %44, label %.lr.ph, label %.preheader57, !llvm.loop !9

45:                                               ; preds = %.lr.ph
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %160

.preheader56:                                     ; preds = %56, %.preheader57
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph62, label %._crit_edge

.lr.ph60:                                         ; preds = %.preheader57, %56
  %indvars.iv81 = phi i64 [ %indvars.iv.next82, %56 ], [ 0, %.preheader57 ]
  %49 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %10, i64 noundef %indvars.iv81) #9
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %49) #9
  %51 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %50)
          to label %52 unwind label %60

52:                                               ; preds = %.lr.ph60
  %53 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %10, i64 noundef %indvars.iv81) #9
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %53) #9
  %55 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 4 dereferenceable(4) %54)
          to label %56 unwind label %60

56:                                               ; preds = %52
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = icmp slt i64 %indvars.iv.next82, %58
  br i1 %59, label %.lr.ph60, label %.preheader56, !llvm.loop !11

60:                                               ; preds = %52, %.lr.ph60
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %160

._crit_edge:                                      ; preds = %68, %.preheader56
  %62 = call noundef ptr @_ZNSt5arrayIiLm100000EE5beginEv(ptr noundef nonnull align 4 dereferenceable(400000) %6) #10
  %63 = load i32, ptr %3, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds i32, ptr %62, i64 %64
  invoke void @_ZSt4sortIPiEvT_S1_(ptr noundef %62, ptr noundef %65)
          to label %74 unwind label %35

.lr.ph62:                                         ; preds = %.preheader56, %68
  %indvars.iv84 = phi i64 [ %indvars.iv.next85, %68 ], [ 0, %.preheader56 ]
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000) %7, i64 noundef %indvars.iv84) #9
  %67 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %66)
          to label %68 unwind label %72

68:                                               ; preds = %.lr.ph62
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = icmp slt i64 %indvars.iv.next85, %70
  br i1 %71, label %.lr.ph62, label %._crit_edge, !llvm.loop !12

72:                                               ; preds = %.lr.ph62
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %160

74:                                               ; preds = %._crit_edge
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds %"struct.std::pair", ptr %22, i64 %76
  invoke void @_ZSt4sortIPSt4pairIiiESt7greaterIS1_EEvT_S5_T0_(ptr noundef %22, ptr noundef %77)
          to label %78 unwind label %35

78:                                               ; preds = %74
  %79 = call noundef ptr @_ZNSt5arrayIiLm100000EE5beginEv(ptr noundef nonnull align 4 dereferenceable(400000) %7) #10
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds i32, ptr %79, i64 %81
  invoke void @_ZSt4sortIPiSt7greaterIiEEvT_S3_T0_(ptr noundef %79, ptr noundef %82)
          to label %.preheader55 unwind label %35

.preheader55:                                     ; preds = %78
  %83 = load i32, ptr %3, align 4, !tbaa !5
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %.lr.ph64, label %._crit_edge76

.preheader54:                                     ; preds = %.lr.ph64
  %85 = icmp sgt i32 %91, 0
  br i1 %85, label %.preheader.preheader, label %._crit_edge76

.preheader.preheader:                             ; preds = %.preheader54
  %86 = zext nneg i32 %91 to i64
  br label %.preheader

.lr.ph64:                                         ; preds = %.preheader55, %.lr.ph64
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %.lr.ph64 ], [ 0, %.preheader55 ]
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000) %7, i64 noundef %indvars.iv87) #9
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm100000EEixEm(ptr noundef nonnull align 8 dereferenceable(800000) %9, i64 noundef %indvars.iv87) #9
  store i64 %89, ptr %90, align 8, !tbaa !13
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %91 = load i32, ptr %3, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = icmp slt i64 %indvars.iv.next88, %92
  br i1 %93, label %.lr.ph64, label %.preheader54, !llvm.loop !15

.preheader:                                       ; preds = %.preheader.preheader, %148
  %indvars.iv93 = phi i64 [ %86, %.preheader.preheader ], [ %indvars.iv.next94, %148 ]
  %.03874 = phi i32 [ 0, %.preheader.preheader ], [ %.1.lcssa, %148 ]
  %.04373 = phi i64 [ 0, %.preheader.preheader ], [ %153, %148 ]
  %indvars.iv.next94 = add nsw i64 %indvars.iv93, -1
  %94 = load i32, ptr %4, align 4, !tbaa !5
  %95 = icmp slt i32 %.03874, %94
  br i1 %95, label %.lr.ph66.preheader, label %.critedge

.lr.ph66.preheader:                               ; preds = %.preheader
  %96 = sext i32 %.03874 to i64
  br label %.lr.ph66

._crit_edge76:                                    ; preds = %148, %.preheader55, %.preheader54
  %.043.lcssa = phi i64 [ 0, %.preheader54 ], [ 0, %.preheader55 ], [ %153, %148 ]
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.043.lcssa)
          to label %155 unwind label %158

.lr.ph66:                                         ; preds = %.lr.ph66.preheader, %107
  %indvars.iv90 = phi i64 [ %96, %.lr.ph66.preheader ], [ %indvars.iv.next91, %107 ]
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000) %6, i64 noundef %indvars.iv.next94) #9
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %10, i64 noundef %indvars.iv90) #9
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %100) #9
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %.not = icmp slt i32 %99, %102
  br i1 %.not, label %.critedge.loopexit, label %103

103:                                              ; preds = %.lr.ph66
  %104 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %10, i64 noundef %indvars.iv90) #9
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %104) #9
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %.not50 = icmp eq i32 %106, 0
  br i1 %.not50, label %.critedge.loopexit, label %107

107:                                              ; preds = %103
  %108 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %10, i64 noundef %indvars.iv90) #9
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %108) #9
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %10, i64 noundef %indvars.iv90) #9
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %111) #9
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = mul nsw i32 %113, %110
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm100000EEixEm(ptr noundef nonnull align 8 dereferenceable(800000) %8, i64 noundef %indvars.iv.next94) #9
  %117 = load i64, ptr %116, align 8, !tbaa !13
  %118 = add nsw i64 %117, %115
  store i64 %118, ptr %116, align 8, !tbaa !13
  %119 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %10, i64 noundef %indvars.iv90) #9
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %119) #9
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000) %6, i64 noundef %indvars.iv.next94) #9
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = sub nsw i32 %123, %121
  store i32 %124, ptr %122, align 4, !tbaa !5
  %indvars.iv.next91 = add nsw i64 %indvars.iv90, 1
  %125 = load i32, ptr %4, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = icmp slt i64 %indvars.iv.next91, %126
  br i1 %127, label %.lr.ph66, label %.critedge.loopexit, !llvm.loop !16

.critedge.loopexit:                               ; preds = %.lr.ph66, %107, %103
  %.1.lcssa.ph.in = phi i64 [ %indvars.iv90, %103 ], [ %indvars.iv.next91, %107 ], [ %indvars.iv90, %.lr.ph66 ]
  %.1.lcssa.ph = trunc i64 %.1.lcssa.ph.in to i32
  %.pre = load i32, ptr %4, align 4, !tbaa !5
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.preheader
  %128 = phi i32 [ %94, %.preheader ], [ %.pre, %.critedge.loopexit ]
  %.1.lcssa = phi i32 [ %.03874, %.preheader ], [ %.1.lcssa.ph, %.critedge.loopexit ]
  %129 = icmp slt i32 %.1.lcssa, %128
  br i1 %129, label %130, label %148

130:                                              ; preds = %.critedge
  %131 = sext i32 %.1.lcssa to i64
  %132 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %10, i64 noundef %131) #9
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %132) #9
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000) %6, i64 noundef %indvars.iv.next94) #9
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = mul nsw i32 %136, %134
  %138 = sext i32 %137 to i64
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm100000EEixEm(ptr noundef nonnull align 8 dereferenceable(800000) %8, i64 noundef %indvars.iv.next94) #9
  %140 = load i64, ptr %139, align 8, !tbaa !13
  %141 = add nsw i64 %140, %138
  store i64 %141, ptr %139, align 8, !tbaa !13
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000) %6, i64 noundef %indvars.iv.next94) #9
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayISt4pairIiiELm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(800000) %10, i64 noundef %131) #9
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %144) #9
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = sub nsw i32 %146, %143
  store i32 %147, ptr %145, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %130, %.critedge
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm100000EEixEm(ptr noundef nonnull align 8 dereferenceable(800000) %9, i64 noundef %indvars.iv.next94) #9
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm100000EEixEm(ptr noundef nonnull align 8 dereferenceable(800000) %8, i64 noundef %indvars.iv.next94) #9
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %149, ptr noundef nonnull align 8 dereferenceable(8) %150)
  %152 = load i64, ptr %151, align 8, !tbaa !13
  %153 = add nsw i64 %152, %.04373
  %154 = icmp sgt i64 %indvars.iv93, 1
  br i1 %154, label %.preheader, label %._crit_edge76, !llvm.loop !17

155:                                              ; preds = %._crit_edge76
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %157 unwind label %158

157:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 800000, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 800000, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 800000, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #9
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #9
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %1) #9
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %1) #9
  ret i32 0

158:                                              ; preds = %155, %._crit_edge76
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %160

160:                                              ; preds = %158, %72, %60, %45, %37, %35
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %61, %60 ], [ %73, %72 ], [ %159, %158 ], [ %36, %35 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 800000, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 800000, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 800000, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %6) #9
  br label %161

161:                                              ; preds = %160, %33
  %.pn.pn = phi { ptr, i32 } [ %.pn, %160 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #9
  br label %162

162:                                              ; preds = %161, %31
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %161 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #9
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %1) #9
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %1) #9
  resume { ptr, i32 } %.pn.pn.pn
}

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

; Function Attrs: mustprogress 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(...)

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt5arrayISt4pairIiiELm100000EEC2Ev(ptr noundef nonnull align 4 dereferenceable(800000)) unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm100000EEixEm(ptr noundef nonnull align 4 dereferenceable(400000), i64 noundef) local_unnamed_addr #7 align 2

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

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

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

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

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

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

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

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

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

; 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)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #7 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nofree nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(none) }

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

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


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