; LLVM IR from eyangch/competitive-programming :: USACOtraining/2.1 (sort3)

; 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"

%"struct.std::array" = type { [3 x i32] }
%"struct.std::array.0" = type { [1000 x i32] }
%"struct.std::array.1" = type { [1000 x i8] }
%"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 }

@N = external dso_local global i32, align 4
@ops = external dso_local global i32, align 4
@hmny = external dso_local global %"struct.std::array", align 4
@records = external dso_local global %"struct.std::array.0", align 4
@sorted = external dso_local global %"struct.std::array.1", align 1
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 520, ptr %2) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %2, ptr noundef @.str, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 512, ptr %3) #6
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %3, ptr noundef @.str.1, i32 noundef 16)
          to label %17 unwind label %24

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

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

20:                                               ; preds = %36, %19
  %21 = load i32, ptr %6, align 4, !tbaa !5
  %22 = icmp slt i32 %21, 3
  br i1 %22, label %32, label %23

23:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %39

24:                                               ; preds = %0
  %25 = landingpad { ptr, i32 }
          cleanup
  %26 = extractvalue { ptr, i32 } %25, 0
  store ptr %26, ptr %4, align 8
  %27 = extractvalue { ptr, i32 } %25, 1
  store i32 %27, ptr %5, align 4
  br label %313

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

32:                                               ; preds = %20
  %33 = load i32, ptr %6, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) @hmny, i64 noundef %34) #6
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %32
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %6, align 4, !tbaa !5
  br label %20, !llvm.loop !9

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

40:                                               ; preds = %63, %39
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = load i32, ptr @N, align 4, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %70

45:                                               ; preds = %40
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %47) #6
  %49 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) %48)
          to label %50 unwind label %66

50:                                               ; preds = %45
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %52) #6
  store i8 0, ptr %53, align 1, !tbaa !11
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %55) #6
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = sub nsw i32 %57, 1
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) @hmny, i64 noundef %59) #6
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %60, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %50
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %7, align 4, !tbaa !5
  br label %40, !llvm.loop !13

66:                                               ; preds = %45
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %4, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %312

70:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %88, %70
  %72 = load i32, ptr %8, align 4, !tbaa !5
  %73 = load i32, ptr @N, align 4, !tbaa !5
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %91

76:                                               ; preds = %71
  %77 = load i32, ptr %8, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %78) #6
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = load i32, ptr %8, align 4, !tbaa !5
  %82 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %80, i32 noundef %81)
  br i1 %82, label %83, label %87

83:                                               ; preds = %76
  %84 = load i32, ptr %8, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %85) #6
  store i8 1, ptr %86, align 1, !tbaa !11
  br label %87

87:                                               ; preds = %83, %76
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %8, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %8, align 4, !tbaa !5
  br label %71, !llvm.loop !14

91:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %163, %91
  %93 = load i32, ptr %9, align 4, !tbaa !5
  %94 = load i32, ptr @N, align 4, !tbaa !5
  %95 = sub nsw i32 %94, 1
  %96 = icmp slt i32 %93, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %92
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %166

98:                                               ; preds = %92
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %100) #6
  %102 = load i8, ptr %101, align 1, !tbaa !11, !range !15, !noundef !16
  %103 = trunc i8 %102 to i1
  br i1 %103, label %104, label %105

104:                                              ; preds = %98
  br label %163

105:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %106 = load i32, ptr %9, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %11, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %159, %105
  %109 = load i32, ptr %11, align 4, !tbaa !5
  %110 = load i32, ptr @N, align 4, !tbaa !5
  %111 = icmp slt i32 %109, %110
  br i1 %111, label %113, label %112

112:                                              ; preds = %108
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %162

113:                                              ; preds = %108
  %114 = load i32, ptr %11, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %115) #6
  %117 = load i8, ptr %116, align 1, !tbaa !11, !range !15, !noundef !16
  %118 = trunc i8 %117 to i1
  br i1 %118, label %119, label %120

119:                                              ; preds = %113
  br label %159

120:                                              ; preds = %113
  %121 = load i32, ptr %9, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %122) #6
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = load i32, ptr %11, align 4, !tbaa !5
  %126 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %124, i32 noundef %125)
  br i1 %126, label %127, label %158

127:                                              ; preds = %120
  %128 = load i32, ptr %11, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %129) #6
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = load i32, ptr %9, align 4, !tbaa !5
  %133 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %131, i32 noundef %132)
  br i1 %133, label %134, label %158

134:                                              ; preds = %127
  %135 = load i32, ptr @ops, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr @ops, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %137 = load i32, ptr %9, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %138) #6
  %140 = load i32, ptr %139, align 4, !tbaa !5
  store i32 %140, ptr %12, align 4, !tbaa !5
  %141 = load i32, ptr %11, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %142) #6
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = load i32, ptr %9, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %146) #6
  store i32 %144, ptr %147, align 4, !tbaa !5
  %148 = load i32, ptr %12, align 4, !tbaa !5
  %149 = load i32, ptr %11, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %150) #6
  store i32 %148, ptr %151, align 4, !tbaa !5
  %152 = load i32, ptr %9, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %153) #6
  store i8 1, ptr %154, align 1, !tbaa !11
  %155 = load i32, ptr %11, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %156) #6
  store i8 1, ptr %157, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %158

158:                                              ; preds = %134, %127, %120
  br label %159

159:                                              ; preds = %158, %119
  %160 = load i32, ptr %11, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %11, align 4, !tbaa !5
  br label %108, !llvm.loop !17

162:                                              ; preds = %112
  br label %163

163:                                              ; preds = %162, %104
  %164 = load i32, ptr %9, align 4, !tbaa !5
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %9, align 4, !tbaa !5
  br label %92, !llvm.loop !18

166:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %302, %166
  %168 = load i32, ptr %13, align 4, !tbaa !5
  %169 = load i32, ptr @N, align 4, !tbaa !5
  %170 = sub nsw i32 %169, 1
  %171 = icmp slt i32 %168, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %167
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %305

173:                                              ; preds = %167
  %174 = load i32, ptr %13, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %175) #6
  %177 = load i8, ptr %176, align 1, !tbaa !11, !range !15, !noundef !16
  %178 = trunc i8 %177 to i1
  br i1 %178, label %179, label %180

179:                                              ; preds = %173
  br label %302

180:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %181 = load i32, ptr %13, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %14, align 4, !tbaa !5
  br label %183

183:                                              ; preds = %298, %180
  %184 = load i32, ptr %14, align 4, !tbaa !5
  %185 = load i32, ptr @N, align 4, !tbaa !5
  %186 = icmp slt i32 %184, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %183
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %301

188:                                              ; preds = %183
  %189 = load i32, ptr %14, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %190) #6
  %192 = load i8, ptr %191, align 1, !tbaa !11, !range !15, !noundef !16
  %193 = trunc i8 %192 to i1
  br i1 %193, label %200, label %194

194:                                              ; preds = %188
  %195 = load i32, ptr %13, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %196) #6
  %198 = load i8, ptr %197, align 1, !tbaa !11, !range !15, !noundef !16
  %199 = trunc i8 %198 to i1
  br i1 %199, label %200, label %201

200:                                              ; preds = %194, %188
  br label %298

201:                                              ; preds = %194
  %202 = load i32, ptr %13, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %203) #6
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = load i32, ptr %14, align 4, !tbaa !5
  %207 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %205, i32 noundef %206)
  br i1 %207, label %208, label %239

208:                                              ; preds = %201
  %209 = load i32, ptr %14, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %210) #6
  %212 = load i32, ptr %211, align 4, !tbaa !5
  %213 = load i32, ptr %13, align 4, !tbaa !5
  %214 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %212, i32 noundef %213)
  br i1 %214, label %215, label %239

215:                                              ; preds = %208
  %216 = load i32, ptr @ops, align 4, !tbaa !5
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr @ops, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %218 = load i32, ptr %13, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %219) #6
  %221 = load i32, ptr %220, align 4, !tbaa !5
  store i32 %221, ptr %15, align 4, !tbaa !5
  %222 = load i32, ptr %14, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %223) #6
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = load i32, ptr %13, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %227) #6
  store i32 %225, ptr %228, align 4, !tbaa !5
  %229 = load i32, ptr %15, align 4, !tbaa !5
  %230 = load i32, ptr %14, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %231) #6
  store i32 %229, ptr %232, align 4, !tbaa !5
  %233 = load i32, ptr %13, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %234) #6
  store i8 1, ptr %235, align 1, !tbaa !11
  %236 = load i32, ptr %14, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %237) #6
  store i8 1, ptr %238, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %297

239:                                              ; preds = %208, %201
  %240 = load i32, ptr %13, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %241) #6
  %243 = load i32, ptr %242, align 4, !tbaa !5
  %244 = load i32, ptr %14, align 4, !tbaa !5
  %245 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %243, i32 noundef %244)
  %246 = zext i1 %245 to i32
  %247 = load i32, ptr %14, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %248) #6
  %250 = load i32, ptr %249, align 4, !tbaa !5
  %251 = load i32, ptr %13, align 4, !tbaa !5
  %252 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %250, i32 noundef %251)
  %253 = zext i1 %252 to i32
  %254 = xor i32 %246, %253
  %255 = icmp ne i32 %254, 0
  br i1 %255, label %256, label %296

256:                                              ; preds = %239
  %257 = load i32, ptr @ops, align 4, !tbaa !5
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr @ops, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %259 = load i32, ptr %13, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %260) #6
  %262 = load i32, ptr %261, align 4, !tbaa !5
  store i32 %262, ptr %16, align 4, !tbaa !5
  %263 = load i32, ptr %14, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %264) #6
  %266 = load i32, ptr %265, align 4, !tbaa !5
  %267 = load i32, ptr %13, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %268) #6
  store i32 %266, ptr %269, align 4, !tbaa !5
  %270 = load i32, ptr %16, align 4, !tbaa !5
  %271 = load i32, ptr %14, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %272) #6
  store i32 %270, ptr %273, align 4, !tbaa !5
  %274 = load i32, ptr %13, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %275) #6
  %277 = load i32, ptr %276, align 4, !tbaa !5
  %278 = load i32, ptr %13, align 4, !tbaa !5
  %279 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %277, i32 noundef %278)
  br i1 %279, label %280, label %284

280:                                              ; preds = %256
  %281 = load i32, ptr %13, align 4, !tbaa !5
  %282 = sext i32 %281 to i64
  %283 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %282) #6
  store i8 1, ptr %283, align 1, !tbaa !11
  br label %284

284:                                              ; preds = %280, %256
  %285 = load i32, ptr %14, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %286) #6
  %288 = load i32, ptr %287, align 4, !tbaa !5
  %289 = load i32, ptr %14, align 4, !tbaa !5
  %290 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %288, i32 noundef %289)
  br i1 %290, label %291, label %295

291:                                              ; preds = %284
  %292 = load i32, ptr %14, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %293) #6
  store i8 1, ptr %294, align 1, !tbaa !11
  br label %295

295:                                              ; preds = %291, %284
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %296

296:                                              ; preds = %295, %239
  br label %297

297:                                              ; preds = %296, %215
  br label %298

298:                                              ; preds = %297, %200
  %299 = load i32, ptr %14, align 4, !tbaa !5
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr %14, align 4, !tbaa !5
  br label %183, !llvm.loop !19

301:                                              ; preds = %187
  br label %302

302:                                              ; preds = %301, %179
  %303 = load i32, ptr %13, align 4, !tbaa !5
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %13, align 4, !tbaa !5
  br label %167, !llvm.loop !20

305:                                              ; preds = %172
  %306 = load i32, ptr @ops, align 4, !tbaa !5
  %307 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %306)
          to label %308 unwind label %28

308:                                              ; preds = %305
  %309 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %307, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %310 unwind label %28

310:                                              ; preds = %308
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #6
  call void @llvm.lifetime.end.p0(i64 520, ptr %2) #6
  %311 = load i32, ptr %1, align 4
  ret i32 %311

312:                                              ; preds = %66, %28
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #6
  br label %313

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

314:                                              ; preds = %313
  %315 = load ptr, ptr %4, align 8
  %316 = load i32, ptr %5, align 4
  %317 = insertvalue { ptr, i32 } poison, ptr %315, 0
  %318 = insertvalue { ptr, i32 } %317, i32 %316, 1
  resume { ptr, i32 } %318
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #3 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 #3 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)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000), i64 noundef) #1 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 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 #1 align 2

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

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

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

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


; 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"

%"struct.std::array" = type { [3 x i32] }
%"struct.std::array.0" = type { [1000 x i32] }
%"struct.std::array.1" = type { [1000 x i8] }
%"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 }

@N = external dso_local global i32, align 4
@ops = external dso_local local_unnamed_addr global i32, align 4
@hmny = external dso_local global %"struct.std::array", align 4
@records = external dso_local global %"struct.std::array.0", align 4
@sorted = external dso_local global %"struct.std::array.1", align 1
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef, i32 noundef) local_unnamed_addr #1

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

3:                                                ; preds = %0
  %4 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) @N)
          to label %.preheader84.preheader unwind label %12

.preheader84.preheader:                           ; preds = %3
  %5 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) @hmny, i64 noundef 0) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  %6 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) @hmny, i64 noundef 1) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  %7 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) @hmny, i64 noundef 2) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  %8 = load i32, ptr @N, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

10:                                               ; preds = %0
  %11 = landingpad { ptr, i32 }
          cleanup
  br label %152

12:                                               ; preds = %148, %._crit_edge, %3
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %151

.preheader82:                                     ; preds = %17
  %14 = icmp sgt i32 %26, 0
  br i1 %14, label %.lr.ph88, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader84.preheader, %17
  %indvars.iv = phi i64 [ %indvars.iv.next, %17 ], [ 0, %.preheader84.preheader ]
  %15 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv) #6
  %16 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %17 unwind label %29

17:                                               ; preds = %.lr.ph
  %18 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %indvars.iv) #6
  store i8 0, ptr %18, align 1, !tbaa !9
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv) #6
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = add nsw i32 %20, -1
  %22 = sext i32 %21 to i64
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) @hmny, i64 noundef %22) #6
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %23, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = load i32, ptr @N, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = icmp slt i64 %indvars.iv.next, %27
  br i1 %28, label %.lr.ph, label %.preheader82, !llvm.loop !11

29:                                               ; preds = %.lr.ph
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %151

.preheader81:                                     ; preds = %38
  %31 = icmp sgt i32 %39, 1
  br i1 %31, label %.lr.ph93, label %._crit_edge

.lr.ph88:                                         ; preds = %.preheader82, %38
  %indvars.iv101 = phi i64 [ %indvars.iv.next102, %38 ], [ 0, %.preheader82 ]
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv101) #6
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = trunc nuw nsw i64 %indvars.iv101 to i32
  %35 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %33, i32 noundef %34)
  br i1 %35, label %36, label %38

36:                                               ; preds = %.lr.ph88
  %37 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %indvars.iv101) #6
  store i8 1, ptr %37, align 1, !tbaa !9
  br label %38

38:                                               ; preds = %.lr.ph88, %36
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %39 = load i32, ptr @N, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = icmp slt i64 %indvars.iv.next102, %40
  br i1 %41, label %.lr.ph88, label %.preheader81, !llvm.loop !13

.preheader78:                                     ; preds = %.loopexit80
  %42 = icmp sgt i32 %76, 1
  br i1 %42, label %.lr.ph98, label %._crit_edge

.lr.ph93:                                         ; preds = %.preheader81, %.loopexit80
  %indvars.iv109 = phi i64 [ %.pre124, %.loopexit80 ], [ 0, %.preheader81 ]
  %indvars.iv104 = phi i64 [ %indvars.iv.next105, %.loopexit80 ], [ 1, %.preheader81 ]
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %indvars.iv109) #6
  %44 = load i8, ptr %43, align 1, !tbaa !9, !range !14, !noundef !15
  %45 = trunc nuw i8 %44 to i1
  %.pre = load i32, ptr @N, align 4, !tbaa !5
  %.pre124 = add nuw nsw i64 %indvars.iv109, 1
  %46 = sext i32 %.pre to i64
  %47 = icmp sge i64 %.pre124, %46
  %or.cond.not = select i1 %45, i1 true, i1 %47
  br i1 %or.cond.not, label %.loopexit80, label %.lr.ph91.preheader

.lr.ph91.preheader:                               ; preds = %.lr.ph93
  %48 = trunc nuw nsw i64 %indvars.iv109 to i32
  br label %.lr.ph91

.lr.ph91:                                         ; preds = %.lr.ph91.preheader, %72
  %indvars.iv106 = phi i64 [ %indvars.iv104, %.lr.ph91.preheader ], [ %indvars.iv.next107, %72 ]
  %49 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %indvars.iv106) #6
  %50 = load i8, ptr %49, align 1, !tbaa !9, !range !14, !noundef !15
  %51 = trunc nuw i8 %50 to i1
  br i1 %51, label %72, label %52

52:                                               ; preds = %.lr.ph91
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv109) #6
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = trunc nuw nsw i64 %indvars.iv106 to i32
  %56 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %54, i32 noundef %55)
  br i1 %56, label %57, label %72

57:                                               ; preds = %52
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv106) #6
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %59, i32 noundef %48)
  br i1 %60, label %61, label %72

61:                                               ; preds = %57
  %62 = load i32, ptr @ops, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr @ops, align 4, !tbaa !5
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv109) #6
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv106) #6
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv109) #6
  store i32 %67, ptr %68, align 4, !tbaa !5
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv106) #6
  store i32 %65, ptr %69, align 4, !tbaa !5
  %70 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %indvars.iv109) #6
  store i8 1, ptr %70, align 1, !tbaa !9
  %71 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %indvars.iv106) #6
  store i8 1, ptr %71, align 1, !tbaa !9
  br label %72

72:                                               ; preds = %52, %57, %61, %.lr.ph91
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %73 = load i32, ptr @N, align 4, !tbaa !5
  %74 = trunc nuw i64 %indvars.iv.next107 to i32
  %75 = icmp sgt i32 %73, %74
  br i1 %75, label %.lr.ph91, label %.loopexit80, !llvm.loop !16

.loopexit80:                                      ; preds = %72, %.lr.ph93
  %76 = phi i32 [ %.pre, %.lr.ph93 ], [ %73, %72 ]
  %77 = add nsw i32 %76, -1
  %78 = sext i32 %77 to i64
  %79 = icmp slt i64 %.pre124, %78
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  br i1 %79, label %.lr.ph93, label %.preheader78, !llvm.loop !17

._crit_edge:                                      ; preds = %.loopexit, %.preheader84.preheader, %.preheader82, %.preheader81, %.preheader78
  %80 = load i32, ptr @ops, align 4, !tbaa !5
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %80)
          to label %148 unwind label %12

.lr.ph98:                                         ; preds = %.preheader78, %.loopexit
  %indvars.iv118 = phi i64 [ %.pre125, %.loopexit ], [ 0, %.preheader78 ]
  %indvars.iv113 = phi i64 [ %indvars.iv.next114, %.loopexit ], [ 1, %.preheader78 ]
  %82 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %indvars.iv118) #6
  %83 = load i8, ptr %82, align 1, !tbaa !9, !range !14, !noundef !15
  %84 = trunc nuw i8 %83 to i1
  %.pre122 = load i32, ptr @N, align 4, !tbaa !5
  %.pre125 = add nuw nsw i64 %indvars.iv118, 1
  %85 = sext i32 %.pre122 to i64
  %86 = icmp sge i64 %.pre125, %85
  %or.cond134.not = select i1 %84, i1 true, i1 %86
  br i1 %or.cond134.not, label %.loopexit, label %.lr.ph96.preheader

.lr.ph96.preheader:                               ; preds = %.lr.ph98
  %.pre126 = trunc nuw nsw i64 %indvars.iv118 to i32
  %87 = trunc nuw nsw i64 %indvars.iv118 to i32
  br label %.lr.ph96

.lr.ph96:                                         ; preds = %.lr.ph96.preheader, %140
  %indvars.iv115 = phi i64 [ %indvars.iv113, %.lr.ph96.preheader ], [ %indvars.iv.next116, %140 ]
  %88 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %indvars.iv115) #6
  %89 = load i8, ptr %88, align 1, !tbaa !9, !range !14, !noundef !15
  %90 = trunc nuw i8 %89 to i1
  br i1 %90, label %140, label %91

91:                                               ; preds = %.lr.ph96
  %92 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %indvars.iv118) #6
  %93 = load i8, ptr %92, align 1, !tbaa !9, !range !14, !noundef !15
  %94 = trunc nuw i8 %93 to i1
  br i1 %94, label %140, label %95

95:                                               ; preds = %91
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv118) #6
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = trunc nuw nsw i64 %indvars.iv115 to i32
  %99 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %97, i32 noundef %98)
  br i1 %99, label %100, label %._crit_edge123

100:                                              ; preds = %95
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv115) #6
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %102, i32 noundef %87)
  br i1 %103, label %104, label %._crit_edge123

104:                                              ; preds = %100
  %105 = load i32, ptr @ops, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr @ops, align 4, !tbaa !5
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv118) #6
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv115) #6
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv118) #6
  store i32 %110, ptr %111, align 4, !tbaa !5
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv115) #6
  store i32 %108, ptr %112, align 4, !tbaa !5
  %113 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %indvars.iv118) #6
  store i8 1, ptr %113, align 1, !tbaa !9
  br label %.sink.split

._crit_edge123:                                   ; preds = %95, %100
  %.pre-phi = phi i32 [ %87, %100 ], [ %.pre126, %95 ]
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv118) #6
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %115, i32 noundef %98)
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv115) #6
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %118, i32 noundef %.pre-phi)
  %120 = xor i1 %116, %119
  br i1 %120, label %121, label %140

121:                                              ; preds = %._crit_edge123
  %122 = load i32, ptr @ops, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr @ops, align 4, !tbaa !5
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv118) #6
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv115) #6
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv118) #6
  store i32 %127, ptr %128, align 4, !tbaa !5
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv115) #6
  store i32 %125, ptr %129, align 4, !tbaa !5
  %130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv118) #6
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %131, i32 noundef %.pre-phi)
  br i1 %132, label %133, label %135

133:                                              ; preds = %121
  %134 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %indvars.iv118) #6
  store i8 1, ptr %134, align 1, !tbaa !9
  br label %135

135:                                              ; preds = %133, %121
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm1000EEixEm(ptr noundef nonnull align 4 dereferenceable(4000) @records, i64 noundef %indvars.iv115) #6
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = call noundef zeroext i1 @_Z16isInCorrectPlaceii(i32 noundef %137, i32 noundef %98)
  br i1 %138, label %.sink.split, label %140

.sink.split:                                      ; preds = %135, %104
  %139 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000) @sorted, i64 noundef %indvars.iv115) #6
  store i8 1, ptr %139, align 1, !tbaa !9
  br label %140

140:                                              ; preds = %.sink.split, %135, %._crit_edge123, %.lr.ph96, %91
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %141 = load i32, ptr @N, align 4, !tbaa !5
  %142 = trunc nuw i64 %indvars.iv.next116 to i32
  %143 = icmp sgt i32 %141, %142
  br i1 %143, label %.lr.ph96, label %.loopexit, !llvm.loop !18

.loopexit:                                        ; preds = %140, %.lr.ph98
  %144 = phi i32 [ %.pre122, %.lr.ph98 ], [ %141, %140 ]
  %145 = add nsw i32 %144, -1
  %146 = sext i32 %145 to i64
  %147 = icmp slt i64 %.pre125, %146
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  br i1 %147, label %.lr.ph98, label %._crit_edge, !llvm.loop !19

148:                                              ; preds = %._crit_edge
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %150 unwind label %12

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

151:                                              ; preds = %29, %12
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %13, %12 ]
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #6
  br label %152

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #3 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 #3 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 #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm1000EEixEm(ptr noundef nonnull align 1 dereferenceable(1000), i64 noundef) local_unnamed_addr #1 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

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

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

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

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

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


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