; LLVM IR from eyangch/competitive-programming :: Codeforces/1530 (d)

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

@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@a = external dso_local global [200000 x i64], align 16
@ans = external dso_local global [200000 x i64], align 16
@f = external dso_local global [200000 x i8], align 16
@fp = external dso_local global [200000 x i8], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %26 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %27 = getelementptr i8, ptr %26, i64 -24
  %28 = load i64, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %28
  %30 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %29, ptr noundef null)
  %31 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  br label %33

33:                                               ; preds = %274, %0
  %34 = load i64, ptr @T, align 8, !tbaa !8
  %35 = add nsw i64 %34, -1
  store i64 %35, ptr @T, align 8, !tbaa !8
  %36 = icmp ne i64 %34, 0
  br i1 %36, label %37, label %278

37:                                               ; preds = %33
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %39

39:                                               ; preds = %52, %37
  %40 = load i64, ptr %2, align 8, !tbaa !8
  %41 = load i64, ptr @N, align 8, !tbaa !8
  %42 = icmp slt i64 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %55

44:                                               ; preds = %39
  %45 = load i64, ptr %2, align 8, !tbaa !8
  %46 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %45
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %46)
  %48 = load i64, ptr %2, align 8, !tbaa !8
  %49 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %48
  %50 = load i64, ptr %49, align 8, !tbaa !8
  %51 = add nsw i64 %50, -1
  store i64 %51, ptr %49, align 8, !tbaa !8
  br label %52

52:                                               ; preds = %44
  %53 = load i64, ptr %2, align 8, !tbaa !8
  %54 = add nsw i64 %53, 1
  store i64 %54, ptr %2, align 8, !tbaa !8
  br label %39, !llvm.loop !11

55:                                               ; preds = %43
  %56 = load i64, ptr @N, align 8, !tbaa !8
  %57 = getelementptr inbounds i8, ptr @f, i64 %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !13
  call void @_ZSt4fillIPbiEvT_S1_RKT0_(ptr noundef @f, ptr noundef %57, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  %58 = load i64, ptr @N, align 8, !tbaa !8
  %59 = getelementptr inbounds i8, ptr @fp, i64 %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !13
  call void @_ZSt4fillIPbiEvT_S1_RKT0_(ptr noundef @fp, ptr noundef %59, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #7
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store i64 0, ptr %6, align 8, !tbaa !8
  br label %60

60:                                               ; preds = %70, %55
  %61 = load i64, ptr %6, align 8, !tbaa !8
  %62 = load i64, ptr @N, align 8, !tbaa !8
  %63 = icmp slt i64 %61, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %73

65:                                               ; preds = %60
  %66 = load i64, ptr %6, align 8, !tbaa !8
  %67 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !8
  %69 = getelementptr inbounds [200000 x i8], ptr @fp, i64 0, i64 %68
  store i8 1, ptr %69, align 1, !tbaa !15
  br label %70

70:                                               ; preds = %65
  %71 = load i64, ptr %6, align 8, !tbaa !8
  %72 = add nsw i64 %71, 1
  store i64 %72, ptr %6, align 8, !tbaa !8
  br label %60, !llvm.loop !17

73:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !8
  br label %74

74:                                               ; preds = %91, %73
  %75 = load i64, ptr %7, align 8, !tbaa !8
  %76 = load i64, ptr @N, align 8, !tbaa !8
  %77 = icmp slt i64 %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %94

79:                                               ; preds = %74
  %80 = load i64, ptr %7, align 8, !tbaa !8
  %81 = getelementptr inbounds [200000 x i8], ptr @fp, i64 0, i64 %80
  %82 = load i8, ptr %81, align 1, !tbaa !15, !range !18, !noundef !19
  %83 = trunc i8 %82 to i1
  br i1 %83, label %90, label %84

84:                                               ; preds = %79
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %85 unwind label %86

85:                                               ; preds = %84
  br label %90

86:                                               ; preds = %84
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %8, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %277

90:                                               ; preds = %85, %79
  br label %91

91:                                               ; preds = %90
  %92 = load i64, ptr %7, align 8, !tbaa !8
  %93 = add nsw i64 %92, 1
  store i64 %93, ptr %7, align 8, !tbaa !8
  br label %74, !llvm.loop !20

94:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #7
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store ptr %5, ptr %12, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %95 = load ptr, ptr %12, align 8, !tbaa !21
  %96 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #7
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %98 = load ptr, ptr %12, align 8, !tbaa !21
  %99 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #7
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %99, ptr %100, align 8
  br label %101

101:                                              ; preds = %132, %94
  %102 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %102, label %104, label %103

103:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %134

104:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %106 = load i64, ptr %105, align 8, !tbaa !8
  store i64 %106, ptr %15, align 8, !tbaa !8
  %107 = load i64, ptr %15, align 8, !tbaa !8
  %108 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !8
  %110 = getelementptr inbounds [200000 x i8], ptr @f, i64 0, i64 %109
  %111 = load i8, ptr %110, align 1, !tbaa !15, !range !18, !noundef !19
  %112 = trunc i8 %111 to i1
  br i1 %112, label %113, label %119

113:                                              ; preds = %104
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %114 unwind label %115

114:                                              ; preds = %113
  br label %131

115:                                              ; preds = %113
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %8, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %276

119:                                              ; preds = %104
  %120 = load i64, ptr %15, align 8, !tbaa !8
  %121 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %120
  %122 = load i64, ptr %121, align 8, !tbaa !8
  %123 = load i64, ptr %15, align 8, !tbaa !8
  %124 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %123
  store i64 %122, ptr %124, align 8, !tbaa !8
  %125 = load i64, ptr %15, align 8, !tbaa !8
  %126 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %125
  %127 = load i64, ptr %126, align 8, !tbaa !8
  %128 = getelementptr inbounds [200000 x i8], ptr @f, i64 0, i64 %127
  store i8 1, ptr %128, align 1, !tbaa !15
  %129 = load i64, ptr %11, align 8, !tbaa !8
  %130 = add nsw i64 %129, 1
  store i64 %130, ptr %11, align 8, !tbaa !8
  br label %131

131:                                              ; preds = %119, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %132

132:                                              ; preds = %131
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br label %101

134:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store i64 0, ptr %16, align 8, !tbaa !8
  br label %135

135:                                              ; preds = %172, %134
  %136 = load i64, ptr %16, align 8, !tbaa !8
  %137 = load i64, ptr @N, align 8, !tbaa !8
  %138 = icmp slt i64 %136, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %175

140:                                              ; preds = %135
  %141 = load i64, ptr %16, align 8, !tbaa !8
  %142 = getelementptr inbounds [200000 x i8], ptr @fp, i64 0, i64 %141
  %143 = load i8, ptr %142, align 1, !tbaa !15, !range !18, !noundef !19
  %144 = trunc i8 %143 to i1
  br i1 %144, label %146, label %145

145:                                              ; preds = %140
  br label %172

146:                                              ; preds = %140
  %147 = load i64, ptr %16, align 8, !tbaa !8
  %148 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %147
  %149 = load i64, ptr %148, align 8, !tbaa !8
  %150 = getelementptr inbounds [200000 x i8], ptr @f, i64 0, i64 %149
  %151 = load i8, ptr %150, align 1, !tbaa !15, !range !18, !noundef !19
  %152 = trunc i8 %151 to i1
  br i1 %152, label %153, label %159

153:                                              ; preds = %146
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %154 unwind label %155

154:                                              ; preds = %153
  br label %171

155:                                              ; preds = %153
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %8, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %276

159:                                              ; preds = %146
  %160 = load i64, ptr %16, align 8, !tbaa !8
  %161 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %160
  %162 = load i64, ptr %161, align 8, !tbaa !8
  %163 = load i64, ptr %16, align 8, !tbaa !8
  %164 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %163
  store i64 %162, ptr %164, align 8, !tbaa !8
  %165 = load i64, ptr %16, align 8, !tbaa !8
  %166 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %165
  %167 = load i64, ptr %166, align 8, !tbaa !8
  %168 = getelementptr inbounds [200000 x i8], ptr @f, i64 0, i64 %167
  store i8 1, ptr %168, align 1, !tbaa !15
  %169 = load i64, ptr %11, align 8, !tbaa !8
  %170 = add nsw i64 %169, 1
  store i64 %170, ptr %11, align 8, !tbaa !8
  br label %171

171:                                              ; preds = %159, %154
  br label %172

172:                                              ; preds = %171, %145
  %173 = load i64, ptr %16, align 8, !tbaa !8
  %174 = add nsw i64 %173, 1
  store i64 %174, ptr %16, align 8, !tbaa !8
  br label %135, !llvm.loop !23

175:                                              ; preds = %139
  %176 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %177 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %176, ptr %177, align 8
  %178 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %179 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %178, ptr %179, align 8
  %180 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8
  %182 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %181, ptr %183)
          to label %184 unwind label %196

184:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 0, ptr %19, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %185 = load i64, ptr @N, align 8, !tbaa !8
  %186 = sub nsw i64 %185, 1
  store i64 %186, ptr %20, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store ptr %10, ptr %21, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %187 = load ptr, ptr %21, align 8, !tbaa !21
  %188 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %187) #7
  %189 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %188, ptr %189, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %190 = load ptr, ptr %21, align 8, !tbaa !21
  %191 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %190) #7
  %192 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %191, ptr %192, align 8
  br label %193

193:                                              ; preds = %239, %184
  %194 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  br i1 %194, label %200, label %195

195:                                              ; preds = %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %241

196:                                              ; preds = %175
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %8, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %9, align 4
  br label %276

200:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %202 = load i64, ptr %201, align 8, !tbaa !8
  store i64 %202, ptr %24, align 8, !tbaa !8
  br label %203

203:                                              ; preds = %208, %200
  %204 = load i64, ptr %19, align 8, !tbaa !8
  %205 = getelementptr inbounds [200000 x i8], ptr @f, i64 0, i64 %204
  %206 = load i8, ptr %205, align 1, !tbaa !15, !range !18, !noundef !19
  %207 = trunc i8 %206 to i1
  br i1 %207, label %208, label %211

208:                                              ; preds = %203
  %209 = load i64, ptr %19, align 8, !tbaa !8
  %210 = add nsw i64 %209, 1
  store i64 %210, ptr %19, align 8, !tbaa !8
  br label %203, !llvm.loop !24

211:                                              ; preds = %203
  br label %212

212:                                              ; preds = %217, %211
  %213 = load i64, ptr %20, align 8, !tbaa !8
  %214 = getelementptr inbounds [200000 x i8], ptr @f, i64 0, i64 %213
  %215 = load i8, ptr %214, align 1, !tbaa !15, !range !18, !noundef !19
  %216 = trunc i8 %215 to i1
  br i1 %216, label %217, label %220

217:                                              ; preds = %212
  %218 = load i64, ptr %20, align 8, !tbaa !8
  %219 = add nsw i64 %218, -1
  store i64 %219, ptr %20, align 8, !tbaa !8
  br label %212, !llvm.loop !25

220:                                              ; preds = %212
  %221 = load i64, ptr %20, align 8, !tbaa !8
  %222 = load i64, ptr %24, align 8, !tbaa !8
  %223 = icmp eq i64 %221, %222
  br i1 %223, label %224, label %231

224:                                              ; preds = %220
  %225 = load i64, ptr %19, align 8, !tbaa !8
  %226 = getelementptr inbounds [200000 x i8], ptr @f, i64 0, i64 %225
  store i8 1, ptr %226, align 1, !tbaa !15
  %227 = load i64, ptr %19, align 8, !tbaa !8
  %228 = add nsw i64 %227, 1
  store i64 %228, ptr %19, align 8, !tbaa !8
  %229 = load i64, ptr %24, align 8, !tbaa !8
  %230 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %229
  store i64 %227, ptr %230, align 8, !tbaa !8
  br label %238

231:                                              ; preds = %220
  %232 = load i64, ptr %20, align 8, !tbaa !8
  %233 = getelementptr inbounds [200000 x i8], ptr @f, i64 0, i64 %232
  store i8 1, ptr %233, align 1, !tbaa !15
  %234 = load i64, ptr %20, align 8, !tbaa !8
  %235 = add nsw i64 %234, -1
  store i64 %235, ptr %20, align 8, !tbaa !8
  %236 = load i64, ptr %24, align 8, !tbaa !8
  %237 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %236
  store i64 %234, ptr %237, align 8, !tbaa !8
  br label %238

238:                                              ; preds = %231, %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %239

239:                                              ; preds = %238
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br label %193

241:                                              ; preds = %195
  %242 = load i64, ptr %11, align 8, !tbaa !8
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %242)
          to label %244 unwind label %252

244:                                              ; preds = %241
  %245 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %243, i8 noundef signext 10)
          to label %246 unwind label %252

246:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  store i64 0, ptr %25, align 8, !tbaa !8
  br label %247

247:                                              ; preds = %265, %246
  %248 = load i64, ptr %25, align 8, !tbaa !8
  %249 = load i64, ptr @N, align 8, !tbaa !8
  %250 = icmp slt i64 %248, %249
  br i1 %250, label %256, label %251

251:                                              ; preds = %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %272

252:                                              ; preds = %272, %244, %241
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %8, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %9, align 4
  br label %275

256:                                              ; preds = %247
  %257 = load i64, ptr %25, align 8, !tbaa !8
  %258 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %257
  %259 = load i64, ptr %258, align 8, !tbaa !8
  %260 = add nsw i64 %259, 1
  %261 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %260)
          to label %262 unwind label %268

262:                                              ; preds = %256
  %263 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %261, i8 noundef signext 32)
          to label %264 unwind label %268

264:                                              ; preds = %262
  br label %265

265:                                              ; preds = %264
  %266 = load i64, ptr %25, align 8, !tbaa !8
  %267 = add nsw i64 %266, 1
  store i64 %267, ptr %25, align 8, !tbaa !8
  br label %247, !llvm.loop !26

268:                                              ; preds = %262, %256
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %8, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %275

272:                                              ; preds = %251
  %273 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
          to label %274 unwind label %252

274:                                              ; preds = %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  br label %33, !llvm.loop !27

275:                                              ; preds = %268, %252
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %276

276:                                              ; preds = %275, %196, %155, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  br label %277

277:                                              ; preds = %276, %86
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  br label %280

278:                                              ; preds = %33
  %279 = load i32, ptr %1, align 4
  ret i32 %279

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #1 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !10, i64 0}
!17 = distinct !{!17, !12}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !12}
!21 = !{!22, !22, i64 0}
!22 = !{!"any pointer", !10, i64 0}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@a = external dso_local global [200000 x i64], align 16
@ans = external dso_local local_unnamed_addr global [200000 x i64], align 16
@f = external dso_local global [200000 x i8], align 16
@fp = external dso_local global [200000 x i8], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %13 = getelementptr i8, ptr %12, i64 -24
  %14 = load i64, ptr %13, align 8
  %15 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %14
  %16 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %15, ptr noundef null)
  %17 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %18 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  %19 = load i64, ptr @T, align 8, !tbaa !8
  %20 = add nsw i64 %19, -1
  store i64 %20, ptr @T, align 8, !tbaa !8
  %.not93 = icmp eq i64 %19, 0
  br i1 %.not93, label %._crit_edge96, label %.lr.ph95

.lr.ph95:                                         ; preds = %0, %160
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %22 = load i64, ptr @N, align 8, !tbaa !8
  %23 = icmp sgt i64 %22, 0
  br i1 %23, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph95
  %.lcssa = phi i64 [ %22, %.lr.ph95 ], [ %35, %.lr.ph ]
  %24 = getelementptr inbounds i8, ptr @f, i64 %.lcssa
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 0, ptr %1, align 4, !tbaa !11
  call void @_ZSt4fillIPbiEvT_S1_RKT0_(ptr noundef nonnull @f, ptr noundef nonnull %24, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %25 = load i64, ptr @N, align 8, !tbaa !8
  %26 = getelementptr inbounds i8, ptr @fp, i64 %25
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 0, ptr %2, align 4, !tbaa !11
  call void @_ZSt4fillIPbiEvT_S1_RKT0_(ptr noundef nonnull @fp, ptr noundef nonnull %26, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %27 = load i64, ptr @N, align 8, !tbaa !8
  %28 = icmp sgt i64 %27, 0
  br i1 %28, label %.lr.ph66.preheader, label %._crit_edge67.thread

.lr.ph66.preheader:                               ; preds = %._crit_edge
  %xtraiter = and i64 %27, 3
  %29 = icmp ult i64 %27, 4
  br i1 %29, label %._crit_edge67.unr-lcssa, label %.lr.ph66.preheader.new

.lr.ph66.preheader.new:                           ; preds = %.lr.ph66.preheader
  %unroll_iter = and i64 %27, 9223372036854775804
  br label %.lr.ph66

._crit_edge67.thread:                             ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  br label %._crit_edge71

.lr.ph:                                           ; preds = %.lr.ph95, %.lr.ph
  %.03263 = phi i64 [ %34, %.lr.ph ], [ 0, %.lr.ph95 ]
  %30 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %.03263
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %30)
  %32 = load i64, ptr %30, align 8, !tbaa !8
  %33 = add nsw i64 %32, -1
  store i64 %33, ptr %30, align 8, !tbaa !8
  %34 = add nuw nsw i64 %.03263, 1
  %35 = load i64, ptr @N, align 8, !tbaa !8
  %36 = icmp slt i64 %34, %35
  br i1 %36, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge67.unr-lcssa:                          ; preds = %.lr.ph66, %.lr.ph66.preheader
  %.03364.unr = phi i64 [ 0, %.lr.ph66.preheader ], [ %56, %.lr.ph66 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge67, label %.lr.ph66.epil

.lr.ph66.epil:                                    ; preds = %._crit_edge67.unr-lcssa, %.lr.ph66.epil
  %.03364.epil = phi i64 [ %40, %.lr.ph66.epil ], [ %.03364.unr, %._crit_edge67.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph66.epil ], [ 0, %._crit_edge67.unr-lcssa ]
  %37 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %.03364.epil
  %38 = load i64, ptr %37, align 8, !tbaa !8
  %39 = getelementptr inbounds [200000 x i8], ptr @fp, i64 0, i64 %38
  store i8 1, ptr %39, align 1, !tbaa !15
  %40 = add nuw nsw i64 %.03364.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_edge67, label %.lr.ph66.epil, !llvm.loop !17

._crit_edge67:                                    ; preds = %.lr.ph66.epil, %._crit_edge67.unr-lcssa
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store i64 0, ptr %4, align 8, !tbaa !8
  br i1 %28, label %.lr.ph70, label %._crit_edge71

.lr.ph66:                                         ; preds = %.lr.ph66, %.lr.ph66.preheader.new
  %.03364 = phi i64 [ 0, %.lr.ph66.preheader.new ], [ %56, %.lr.ph66 ]
  %niter = phi i64 [ 0, %.lr.ph66.preheader.new ], [ %niter.next.3, %.lr.ph66 ]
  %41 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %.03364
  %42 = load i64, ptr %41, align 16, !tbaa !8
  %43 = getelementptr inbounds [200000 x i8], ptr @fp, i64 0, i64 %42
  store i8 1, ptr %43, align 1, !tbaa !15
  %44 = or disjoint i64 %.03364, 1
  %45 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %44
  %46 = load i64, ptr %45, align 8, !tbaa !8
  %47 = getelementptr inbounds [200000 x i8], ptr @fp, i64 0, i64 %46
  store i8 1, ptr %47, align 1, !tbaa !15
  %48 = or disjoint i64 %.03364, 2
  %49 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %48
  %50 = load i64, ptr %49, align 16, !tbaa !8
  %51 = getelementptr inbounds [200000 x i8], ptr @fp, i64 0, i64 %50
  store i8 1, ptr %51, align 1, !tbaa !15
  %52 = or disjoint i64 %.03364, 3
  %53 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %52
  %54 = load i64, ptr %53, align 8, !tbaa !8
  %55 = getelementptr inbounds [200000 x i8], ptr @fp, i64 0, i64 %54
  store i8 1, ptr %55, align 1, !tbaa !15
  %56 = add nuw nsw i64 %.03364, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge67.unr-lcssa, label %.lr.ph66, !llvm.loop !19

._crit_edge71:                                    ; preds = %67, %._crit_edge67.thread, %._crit_edge67
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %57 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  store ptr %57, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %58 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  store ptr %58, ptr %7, align 8
  %59 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %59, label %.lr.ph74, label %._crit_edge75

.lr.ph70:                                         ; preds = %._crit_edge67, %67
  %60 = phi i64 [ %68, %67 ], [ %27, %._crit_edge67 ]
  %storemerge68 = phi i64 [ %70, %67 ], [ 0, %._crit_edge67 ]
  %61 = getelementptr inbounds [200000 x i8], ptr @fp, i64 0, i64 %storemerge68
  %62 = load i8, ptr %61, align 1, !tbaa !15, !range !20, !noundef !21
  %63 = trunc nuw i8 %62 to i1
  br i1 %63, label %67, label %64

64:                                               ; preds = %.lr.ph70
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %._crit_edge98 unwind label %65

._crit_edge98:                                    ; preds = %64
  %.pre = load i64, ptr %4, align 8, !tbaa !8
  %.pre99 = load i64, ptr @N, align 8, !tbaa !8
  br label %67

65:                                               ; preds = %64
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %164

67:                                               ; preds = %._crit_edge98, %.lr.ph70
  %68 = phi i64 [ %.pre99, %._crit_edge98 ], [ %60, %.lr.ph70 ]
  %69 = phi i64 [ %.pre, %._crit_edge98 ], [ %storemerge68, %.lr.ph70 ]
  %70 = add nsw i64 %69, 1
  store i64 %70, ptr %4, align 8, !tbaa !8
  %71 = icmp slt i64 %70, %68
  br i1 %71, label %.lr.ph70, label %._crit_edge71, !llvm.loop !22

._crit_edge75:                                    ; preds = %87, %._crit_edge71
  %.044.lcssa = phi i64 [ 0, %._crit_edge71 ], [ %.145, %87 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  store i64 0, ptr %9, align 8, !tbaa !8
  %72 = load i64, ptr @N, align 8, !tbaa !8
  %73 = icmp sgt i64 %72, 0
  br i1 %73, label %.lr.ph80, label %._crit_edge81

.lr.ph74:                                         ; preds = %._crit_edge71, %87
  %.04472 = phi i64 [ %.145, %87 ], [ 0, %._crit_edge71 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %75 = load i64, ptr %74, align 8, !tbaa !8
  store i64 %75, ptr %8, align 8, !tbaa !8
  %76 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %75
  %77 = load i64, ptr %76, align 8, !tbaa !8
  %78 = getelementptr inbounds [200000 x i8], ptr @f, i64 0, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !15, !range !20, !noundef !21
  %80 = trunc nuw i8 %79 to i1
  br i1 %80, label %81, label %84

81:                                               ; preds = %.lr.ph74
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %87 unwind label %82

82:                                               ; preds = %81
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %163

84:                                               ; preds = %.lr.ph74
  %85 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %75
  store i64 %77, ptr %85, align 8, !tbaa !8
  store i8 1, ptr %78, align 1, !tbaa !15
  %86 = add nsw i64 %.04472, 1
  br label %87

87:                                               ; preds = %81, %84
  %.145 = phi i64 [ %.04472, %81 ], [ %86, %84 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %89 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %89, label %.lr.ph74, label %._crit_edge75

._crit_edge81:                                    ; preds = %108, %._crit_edge75
  %.246.lcssa = phi i64 [ %.044.lcssa, %._crit_edge75 ], [ %.3, %108 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %90 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %91 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %90, ptr %91)
          to label %113 unwind label %120

.lr.ph80:                                         ; preds = %._crit_edge75, %108
  %92 = phi i64 [ %109, %108 ], [ %72, %._crit_edge75 ]
  %.24678 = phi i64 [ %.3, %108 ], [ %.044.lcssa, %._crit_edge75 ]
  %storemerge5277 = phi i64 [ %111, %108 ], [ 0, %._crit_edge75 ]
  %93 = getelementptr inbounds [200000 x i8], ptr @fp, i64 0, i64 %storemerge5277
  %94 = load i8, ptr %93, align 1, !tbaa !15, !range !20, !noundef !21
  %95 = trunc nuw i8 %94 to i1
  br i1 %95, label %96, label %108

96:                                               ; preds = %.lr.ph80
  %97 = getelementptr inbounds [200000 x i64], ptr @a, i64 0, i64 %storemerge5277
  %98 = load i64, ptr %97, align 8, !tbaa !8
  %99 = getelementptr inbounds [200000 x i8], ptr @f, i64 0, i64 %98
  %100 = load i8, ptr %99, align 1, !tbaa !15, !range !20, !noundef !21
  %101 = trunc nuw i8 %100 to i1
  br i1 %101, label %102, label %105

102:                                              ; preds = %96
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %._crit_edge100 unwind label %103

._crit_edge100:                                   ; preds = %102
  %.pre101 = load i64, ptr %9, align 8, !tbaa !8
  %.pre102 = load i64, ptr @N, align 8, !tbaa !8
  br label %108

103:                                              ; preds = %102
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %163

105:                                              ; preds = %96
  %106 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %storemerge5277
  store i64 %98, ptr %106, align 8, !tbaa !8
  store i8 1, ptr %99, align 1, !tbaa !15
  %107 = add nsw i64 %.24678, 1
  br label %108

108:                                              ; preds = %._crit_edge100, %105, %.lr.ph80
  %109 = phi i64 [ %.pre102, %._crit_edge100 ], [ %92, %105 ], [ %92, %.lr.ph80 ]
  %110 = phi i64 [ %.pre101, %._crit_edge100 ], [ %storemerge5277, %105 ], [ %storemerge5277, %.lr.ph80 ]
  %.3 = phi i64 [ %.24678, %._crit_edge100 ], [ %107, %105 ], [ %.24678, %.lr.ph80 ]
  %111 = add nsw i64 %110, 1
  store i64 %111, ptr %9, align 8, !tbaa !8
  %112 = icmp slt i64 %111, %109
  br i1 %112, label %.lr.ph80, label %._crit_edge81, !llvm.loop !23

113:                                              ; preds = %._crit_edge81
  %114 = load i64, ptr @N, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %115 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  store ptr %115, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %116 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  store ptr %116, ptr %11, align 8
  %117 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  br i1 %117, label %.lr.ph88.preheader, label %._crit_edge89

.lr.ph88.preheader:                               ; preds = %113
  %118 = add nsw i64 %114, -1
  br label %.lr.ph88

._crit_edge89:                                    ; preds = %135, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.246.lcssa)
          to label %141 unwind label %146

120:                                              ; preds = %._crit_edge81
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %163

.lr.ph88:                                         ; preds = %.lr.ph88.preheader, %135
  %.03486 = phi i64 [ %..lcssa106, %135 ], [ %118, %.lr.ph88.preheader ]
  %.03585 = phi i64 [ %.lcssa104..136.lcssa108, %135 ], [ 0, %.lr.ph88.preheader ]
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  %123 = load i64, ptr %122, align 8, !tbaa !8
  br label %124

124:                                              ; preds = %124, %.lr.ph88
  %.136 = phi i64 [ %.03585, %.lr.ph88 ], [ %128, %124 ]
  %125 = getelementptr inbounds [200000 x i8], ptr @f, i64 0, i64 %.136
  %126 = load i8, ptr %125, align 1, !tbaa !15, !range !20, !noundef !21
  %127 = trunc nuw i8 %126 to i1
  %128 = add nsw i64 %.136, 1
  br i1 %127, label %124, label %.preheader, !llvm.loop !24

.preheader:                                       ; preds = %124
  %129 = getelementptr inbounds [200000 x i8], ptr @f, i64 0, i64 %.136
  br label %130

130:                                              ; preds = %130, %.preheader
  %.1 = phi i64 [ %134, %130 ], [ %.03486, %.preheader ]
  %131 = getelementptr inbounds [200000 x i8], ptr @f, i64 0, i64 %.1
  %132 = load i8, ptr %131, align 1, !tbaa !15, !range !20, !noundef !21
  %133 = trunc nuw i8 %132 to i1
  %134 = add nsw i64 %.1, -1
  br i1 %133, label %130, label %135, !llvm.loop !25

135:                                              ; preds = %130
  %136 = getelementptr inbounds [200000 x i8], ptr @f, i64 0, i64 %.1
  %137 = icmp eq i64 %.1, %123
  %. = select i1 %137, ptr %129, ptr %136
  %.136.lcssa108..1.lcssa109 = select i1 %137, i64 %.136, i64 %.1
  %.lcssa104..136.lcssa108 = select i1 %137, i64 %128, i64 %.136
  %..lcssa106 = select i1 %137, i64 %123, i64 %134
  store i8 1, ptr %., align 1, !tbaa !15
  %138 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %123
  store i64 %.136.lcssa108..1.lcssa109, ptr %138, align 8
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  %140 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  br i1 %140, label %.lr.ph88, label %._crit_edge89

141:                                              ; preds = %._crit_edge89
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %119, i8 noundef signext 10)
          to label %.preheader58 unwind label %146

.preheader58:                                     ; preds = %141
  %143 = load i64, ptr @N, align 8, !tbaa !8
  %144 = icmp sgt i64 %143, 0
  br i1 %144, label %.lr.ph91, label %._crit_edge92

._crit_edge92:                                    ; preds = %154, %.preheader58
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
          to label %160 unwind label %146

146:                                              ; preds = %._crit_edge92, %141, %._crit_edge89
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %163

.lr.ph91:                                         ; preds = %.preheader58, %154
  %.090 = phi i64 [ %155, %154 ], [ 0, %.preheader58 ]
  %148 = getelementptr inbounds [200000 x i64], ptr @ans, i64 0, i64 %.090
  %149 = load i64, ptr %148, align 8, !tbaa !8
  %150 = add nsw i64 %149, 1
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %150)
          to label %152 unwind label %158

152:                                              ; preds = %.lr.ph91
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %151, i8 noundef signext 32)
          to label %154 unwind label %158

154:                                              ; preds = %152
  %155 = add nuw nsw i64 %.090, 1
  %156 = load i64, ptr @N, align 8, !tbaa !8
  %157 = icmp slt i64 %155, %156
  br i1 %157, label %.lr.ph91, label %._crit_edge92, !llvm.loop !26

158:                                              ; preds = %152, %.lr.ph91
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %163

160:                                              ; preds = %._crit_edge92
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  %161 = load i64, ptr @T, align 8, !tbaa !8
  %162 = add nsw i64 %161, -1
  store i64 %162, ptr @T, align 8, !tbaa !8
  %.not = icmp eq i64 %161, 0
  br i1 %.not, label %._crit_edge96, label %.lr.ph95, !llvm.loop !27

163:                                              ; preds = %146, %158, %120, %103, %82
  %.pn54 = phi { ptr, i32 } [ %83, %82 ], [ %104, %103 ], [ %121, %120 ], [ %159, %158 ], [ %147, %146 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %164

164:                                              ; preds = %163, %65
  %.pn56 = phi { ptr, i32 } [ %66, %65 ], [ %.pn54, %163 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn56

._crit_edge96:                                    ; preds = %160, %0
  ret i32 0
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5

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

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

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

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


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