; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2012-13/March 2013 (13 Mar G1)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@cin = external dso_local global %"class.std::basic_ifstream", align 8
@cout = external dso_local global %"class.std::basic_ofstream", align 8
@dp = external dso_local global [1001 x [1001 x [2 x i64]]], align 16
@p1 = external dso_local global %"class.std::vector", align 8
@p2 = external dso_local global %"class.std::vector", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %38, %0
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %41

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = icmp slt i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %31
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @p1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  br label %37

36:                                               ; preds = %31
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @p2, ptr noundef nonnull align 4 dereferenceable(4) %4)
  br label %37

37:                                               ; preds = %36, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %38

38:                                               ; preds = %37
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %3, align 4, !tbaa !5
  br label %26, !llvm.loop !9

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

42:                                               ; preds = %74, %41
  %43 = load i32, ptr %5, align 4, !tbaa !5
  %44 = icmp slt i32 %43, 1001
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %77

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %70, %46
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = icmp slt i32 %48, 1001
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %73

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

52:                                               ; preds = %66, %51
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 2
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %69

56:                                               ; preds = %52
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %58
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [1001 x [2 x i64]], ptr %59, i64 0, i64 %61
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [2 x i64], ptr %62, i64 0, i64 %64
  store i64 1000000000000000000, ptr %65, align 8, !tbaa !11
  br label %66

66:                                               ; preds = %56
  %67 = load i32, ptr %8, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %8, align 4, !tbaa !5
  br label %52, !llvm.loop !13

69:                                               ; preds = %55
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %7, align 4, !tbaa !5
  br label %47, !llvm.loop !14

73:                                               ; preds = %50
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %5, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %5, align 4, !tbaa !5
  br label %42, !llvm.loop !15

77:                                               ; preds = %45
  %78 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @p1) #8
  %79 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %78, ptr %79, align 8
  %80 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @p1) #8
  %81 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %80, ptr %81, align 8
  %82 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %83, ptr %85)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) @p1, ptr noundef nonnull align 4 dereferenceable(4) %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  %86 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @p1) #8
  %87 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %86, ptr %87, align 8
  %88 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @p1) #8
  %89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %88, ptr %89, align 8
  %90 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %91, ptr %93)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) @p2, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  %94 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @p2) #8
  %95 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %94, ptr %95, align 8
  %96 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @p2) #8
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  %98 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %99, ptr %101)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %102 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @p1) #8
  %103 = sub i64 %102, 1
  %104 = trunc i64 %103 to i32
  store i32 %104, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %105 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @p2) #8
  %106 = sub i64 %105, 1
  %107 = trunc i64 %106 to i32
  store i32 %107, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %364, %77
  %109 = load i32, ptr %19, align 4, !tbaa !5
  %110 = load i32, ptr %17, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  %112 = icmp slt i32 %109, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %108
  store i32 14, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %367

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

115:                                              ; preds = %360, %114
  %116 = load i32, ptr %20, align 4, !tbaa !5
  %117 = load i32, ptr %18, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  %119 = icmp slt i32 %116, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %115
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %363

121:                                              ; preds = %115
  %122 = load i32, ptr %19, align 4, !tbaa !5
  %123 = icmp eq i32 %122, 0
  br i1 %123, label %124, label %143

124:                                              ; preds = %121
  %125 = load i32, ptr %20, align 4, !tbaa !5
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %143

127:                                              ; preds = %124
  %128 = load i32, ptr %17, align 4, !tbaa !5
  %129 = load i32, ptr %18, align 4, !tbaa !5
  %130 = add nsw i32 %128, %129
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p2, i64 noundef 1) #8
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = mul nsw i32 %130, %132
  %134 = sext i32 %133 to i64
  store i64 %134, ptr getelementptr inbounds ([2 x i64], ptr getelementptr inbounds ([1001 x [2 x i64]], ptr @dp, i64 0, i64 1), i64 0, i64 1), align 8, !tbaa !11
  %135 = load i32, ptr %17, align 4, !tbaa !5
  %136 = load i32, ptr %18, align 4, !tbaa !5
  %137 = add nsw i32 %135, %136
  %138 = sub nsw i32 0, %137
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p1, i64 noundef 1) #8
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = mul nsw i32 %138, %140
  %142 = sext i32 %141 to i64
  store i64 %142, ptr getelementptr inbounds ([1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 1), align 16, !tbaa !11
  br label %360

143:                                              ; preds = %124, %121
  %144 = load i32, ptr %19, align 4, !tbaa !5
  %145 = icmp sgt i32 %144, 0
  br i1 %145, label %146, label %251

146:                                              ; preds = %143
  %147 = load i32, ptr %19, align 4, !tbaa !5
  %148 = load i32, ptr %17, align 4, !tbaa !5
  %149 = icmp slt i32 %147, %148
  br i1 %149, label %150, label %198

150:                                              ; preds = %146
  %151 = load i32, ptr %19, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %153
  %155 = load i32, ptr %20, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [1001 x [2 x i64]], ptr %154, i64 0, i64 %156
  %158 = getelementptr inbounds [2 x i64], ptr %157, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %159 = load i32, ptr %17, align 4, !tbaa !5
  %160 = load i32, ptr %18, align 4, !tbaa !5
  %161 = add nsw i32 %159, %160
  %162 = load i32, ptr %19, align 4, !tbaa !5
  %163 = sub nsw i32 %161, %162
  %164 = load i32, ptr %20, align 4, !tbaa !5
  %165 = sub nsw i32 %163, %164
  %166 = load i32, ptr %19, align 4, !tbaa !5
  %167 = add nsw i32 %166, 1
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p1, i64 noundef %168) #8
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = load i32, ptr %19, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p1, i64 noundef %172) #8
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = sub nsw i32 %170, %174
  %176 = call i32 @llvm.abs.i32(i32 %175, i1 true)
  %177 = mul nsw i32 %165, %176
  %178 = sext i32 %177 to i64
  %179 = load i32, ptr %19, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %180
  %182 = load i32, ptr %20, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [1001 x [2 x i64]], ptr %181, i64 0, i64 %183
  %185 = getelementptr inbounds [2 x i64], ptr %184, i64 0, i64 0
  %186 = load i64, ptr %185, align 16, !tbaa !11
  %187 = add nsw i64 %178, %186
  store i64 %187, ptr %21, align 8, !tbaa !11
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %189 = load i64, ptr %188, align 8, !tbaa !11
  %190 = load i32, ptr %19, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %192
  %194 = load i32, ptr %20, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [1001 x [2 x i64]], ptr %193, i64 0, i64 %195
  %197 = getelementptr inbounds [2 x i64], ptr %196, i64 0, i64 0
  store i64 %189, ptr %197, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %198

198:                                              ; preds = %150, %146
  %199 = load i32, ptr %20, align 4, !tbaa !5
  %200 = load i32, ptr %18, align 4, !tbaa !5
  %201 = icmp slt i32 %199, %200
  br i1 %201, label %202, label %250

202:                                              ; preds = %198
  %203 = load i32, ptr %19, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %204
  %206 = load i32, ptr %20, align 4, !tbaa !5
  %207 = add nsw i32 %206, 1
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [1001 x [2 x i64]], ptr %205, i64 0, i64 %208
  %210 = getelementptr inbounds [2 x i64], ptr %209, i64 0, i64 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %211 = load i32, ptr %17, align 4, !tbaa !5
  %212 = load i32, ptr %18, align 4, !tbaa !5
  %213 = add nsw i32 %211, %212
  %214 = load i32, ptr %19, align 4, !tbaa !5
  %215 = sub nsw i32 %213, %214
  %216 = load i32, ptr %20, align 4, !tbaa !5
  %217 = sub nsw i32 %215, %216
  %218 = load i32, ptr %20, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p2, i64 noundef %220) #8
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %223 = load i32, ptr %19, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p1, i64 noundef %224) #8
  %226 = load i32, ptr %225, align 4, !tbaa !5
  %227 = sub nsw i32 %222, %226
  %228 = call i32 @llvm.abs.i32(i32 %227, i1 true)
  %229 = mul nsw i32 %217, %228
  %230 = sext i32 %229 to i64
  %231 = load i32, ptr %19, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %232
  %234 = load i32, ptr %20, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [1001 x [2 x i64]], ptr %233, i64 0, i64 %235
  %237 = getelementptr inbounds [2 x i64], ptr %236, i64 0, i64 0
  %238 = load i64, ptr %237, align 16, !tbaa !11
  %239 = add nsw i64 %230, %238
  store i64 %239, ptr %22, align 8, !tbaa !11
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %210, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %241 = load i64, ptr %240, align 8, !tbaa !11
  %242 = load i32, ptr %19, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %243
  %245 = load i32, ptr %20, align 4, !tbaa !5
  %246 = add nsw i32 %245, 1
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [1001 x [2 x i64]], ptr %244, i64 0, i64 %247
  %249 = getelementptr inbounds [2 x i64], ptr %248, i64 0, i64 1
  store i64 %241, ptr %249, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %250

250:                                              ; preds = %202, %198
  br label %251

251:                                              ; preds = %250, %143
  %252 = load i32, ptr %20, align 4, !tbaa !5
  %253 = icmp sgt i32 %252, 0
  br i1 %253, label %254, label %359

254:                                              ; preds = %251
  %255 = load i32, ptr %19, align 4, !tbaa !5
  %256 = load i32, ptr %17, align 4, !tbaa !5
  %257 = icmp slt i32 %255, %256
  br i1 %257, label %258, label %306

258:                                              ; preds = %254
  %259 = load i32, ptr %19, align 4, !tbaa !5
  %260 = add nsw i32 %259, 1
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %261
  %263 = load i32, ptr %20, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [1001 x [2 x i64]], ptr %262, i64 0, i64 %264
  %266 = getelementptr inbounds [2 x i64], ptr %265, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %267 = load i32, ptr %17, align 4, !tbaa !5
  %268 = load i32, ptr %18, align 4, !tbaa !5
  %269 = add nsw i32 %267, %268
  %270 = load i32, ptr %19, align 4, !tbaa !5
  %271 = sub nsw i32 %269, %270
  %272 = load i32, ptr %20, align 4, !tbaa !5
  %273 = sub nsw i32 %271, %272
  %274 = load i32, ptr %19, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  %276 = sext i32 %275 to i64
  %277 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p1, i64 noundef %276) #8
  %278 = load i32, ptr %277, align 4, !tbaa !5
  %279 = load i32, ptr %20, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p2, i64 noundef %280) #8
  %282 = load i32, ptr %281, align 4, !tbaa !5
  %283 = sub nsw i32 %278, %282
  %284 = call i32 @llvm.abs.i32(i32 %283, i1 true)
  %285 = mul nsw i32 %273, %284
  %286 = sext i32 %285 to i64
  %287 = load i32, ptr %19, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %288
  %290 = load i32, ptr %20, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [1001 x [2 x i64]], ptr %289, i64 0, i64 %291
  %293 = getelementptr inbounds [2 x i64], ptr %292, i64 0, i64 1
  %294 = load i64, ptr %293, align 8, !tbaa !11
  %295 = add nsw i64 %286, %294
  store i64 %295, ptr %23, align 8, !tbaa !11
  %296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %266, ptr noundef nonnull align 8 dereferenceable(8) %23)
  %297 = load i64, ptr %296, align 8, !tbaa !11
  %298 = load i32, ptr %19, align 4, !tbaa !5
  %299 = add nsw i32 %298, 1
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %300
  %302 = load i32, ptr %20, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [1001 x [2 x i64]], ptr %301, i64 0, i64 %303
  %305 = getelementptr inbounds [2 x i64], ptr %304, i64 0, i64 0
  store i64 %297, ptr %305, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %306

306:                                              ; preds = %258, %254
  %307 = load i32, ptr %20, align 4, !tbaa !5
  %308 = load i32, ptr %18, align 4, !tbaa !5
  %309 = icmp slt i32 %307, %308
  br i1 %309, label %310, label %358

310:                                              ; preds = %306
  %311 = load i32, ptr %19, align 4, !tbaa !5
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %312
  %314 = load i32, ptr %20, align 4, !tbaa !5
  %315 = add nsw i32 %314, 1
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [1001 x [2 x i64]], ptr %313, i64 0, i64 %316
  %318 = getelementptr inbounds [2 x i64], ptr %317, i64 0, i64 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %319 = load i32, ptr %17, align 4, !tbaa !5
  %320 = load i32, ptr %18, align 4, !tbaa !5
  %321 = add nsw i32 %319, %320
  %322 = load i32, ptr %19, align 4, !tbaa !5
  %323 = sub nsw i32 %321, %322
  %324 = load i32, ptr %20, align 4, !tbaa !5
  %325 = sub nsw i32 %323, %324
  %326 = load i32, ptr %20, align 4, !tbaa !5
  %327 = add nsw i32 %326, 1
  %328 = sext i32 %327 to i64
  %329 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p2, i64 noundef %328) #8
  %330 = load i32, ptr %329, align 4, !tbaa !5
  %331 = load i32, ptr %20, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p2, i64 noundef %332) #8
  %334 = load i32, ptr %333, align 4, !tbaa !5
  %335 = sub nsw i32 %330, %334
  %336 = call i32 @llvm.abs.i32(i32 %335, i1 true)
  %337 = mul nsw i32 %325, %336
  %338 = sext i32 %337 to i64
  %339 = load i32, ptr %19, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %340
  %342 = load i32, ptr %20, align 4, !tbaa !5
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds [1001 x [2 x i64]], ptr %341, i64 0, i64 %343
  %345 = getelementptr inbounds [2 x i64], ptr %344, i64 0, i64 1
  %346 = load i64, ptr %345, align 8, !tbaa !11
  %347 = add nsw i64 %338, %346
  store i64 %347, ptr %24, align 8, !tbaa !11
  %348 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %318, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %349 = load i64, ptr %348, align 8, !tbaa !11
  %350 = load i32, ptr %19, align 4, !tbaa !5
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %351
  %353 = load i32, ptr %20, align 4, !tbaa !5
  %354 = add nsw i32 %353, 1
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds [1001 x [2 x i64]], ptr %352, i64 0, i64 %355
  %357 = getelementptr inbounds [2 x i64], ptr %356, i64 0, i64 1
  store i64 %349, ptr %357, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %358

358:                                              ; preds = %310, %306
  br label %359

359:                                              ; preds = %358, %251
  br label %360

360:                                              ; preds = %359, %127
  %361 = load i32, ptr %20, align 4, !tbaa !5
  %362 = add nsw i32 %361, 1
  store i32 %362, ptr %20, align 4, !tbaa !5
  br label %115, !llvm.loop !16

363:                                              ; preds = %120
  br label %364

364:                                              ; preds = %363
  %365 = load i32, ptr %19, align 4, !tbaa !5
  %366 = add nsw i32 %365, 1
  store i32 %366, ptr %19, align 4, !tbaa !5
  br label %108, !llvm.loop !17

367:                                              ; preds = %113
  %368 = load i32, ptr %17, align 4, !tbaa !5
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %369
  %371 = load i32, ptr %18, align 4, !tbaa !5
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds [1001 x [2 x i64]], ptr %370, i64 0, i64 %372
  %374 = getelementptr inbounds [2 x i64], ptr %373, i64 0, i64 0
  %375 = load i32, ptr %17, align 4, !tbaa !5
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %376
  %378 = load i32, ptr %18, align 4, !tbaa !5
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds [1001 x [2 x i64]], ptr %377, i64 0, i64 %379
  %381 = getelementptr inbounds [2 x i64], ptr %380, i64 0, i64 1
  %382 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %374, ptr noundef nonnull align 8 dereferenceable(8) %381)
  %383 = load i64, ptr %382, align 8, !tbaa !11
  %384 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @cout, i64 noundef %383)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %385 = load i32, ptr %1, align 4
  ret i32 %385
}

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #7

; 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

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

%"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 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@cin = external dso_local global %"class.std::basic_ifstream", align 8
@cout = external dso_local global %"class.std::basic_ofstream", align 8
@dp = external dso_local global [1001 x [1001 x [2 x i64]]], align 16
@p1 = external dso_local global %"class.std::vector", align 8
@p2 = external dso_local global %"class.std::vector", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph, label %.preheader105.preheader

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.093107 = phi i32 [ %15, %.lr.ph ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = icmp slt i32 %13, 0
  %p1.p2 = select i1 %14, ptr @p1, ptr @p2
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %p1.p2, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  %15 = add nuw nsw i32 %.093107, 1
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %.lr.ph, label %.preheader105.preheader, !llvm.loop !9

.preheader105.preheader:                          ; preds = %.lr.ph, %0
  br label %.preheader105

.preheader105:                                    ; preds = %.preheader105.preheader, %160
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %160 ], [ 0, %.preheader105.preheader ]
  br label %.preheader104

18:                                               ; preds = %160
  %19 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @p1) #8
  %20 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @p1) #8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %19, ptr %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) @p1, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  %21 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @p1) #8
  %22 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @p1) #8
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %21, ptr %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) @p2, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  %23 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @p2) #8
  %24 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @p2) #8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %23, ptr %24)
  %25 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @p1) #8
  %26 = trunc i64 %25 to i32
  %27 = add i32 %26, -1
  %28 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @p2) #8
  %29 = trunc i64 %28 to i32
  %30 = add i32 %29, -1
  %31 = icmp sgt i32 %26, 0
  br i1 %31, label %.preheader.lr.ph, label %._crit_edge116

.preheader.lr.ph:                                 ; preds = %18
  %32 = icmp sgt i32 %29, 0
  %.neg = add i32 %30, %27
  br i1 %32, label %.preheader.us.preheader, label %._crit_edge116

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %33 = zext nneg i32 %30 to i64
  %34 = zext nneg i32 %27 to i64
  %wide.trip.count134 = and i64 %25, 2147483647
  %wide.trip.count = and i64 %28, 2147483647
  %35 = icmp sgt i32 %30, 0
  %exitcond128.peel.not = icmp eq i64 %wide.trip.count, 1
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %indvars.iv130 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next131, %._crit_edge.us ]
  %.092.neg115.us = phi i32 [ 0, %.preheader.us.preheader ], [ %.092.neg.us, %._crit_edge.us ]
  %.not.us = icmp eq i64 %indvars.iv130, 0
  %36 = icmp ult i64 %indvars.iv130, %34
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %37 = add i32 %.neg, %.092.neg115.us
  %38 = trunc nuw nsw i64 %indvars.iv130 to i32
  %or.cond.us.peel = icmp eq i64 %indvars.iv130, 0
  br i1 %or.cond.us.peel, label %71, label %39

39:                                               ; preds = %.preheader.us
  br i1 %36, label %40, label %55

40:                                               ; preds = %39
  %41 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next131, i64 0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p1, i64 noundef %indvars.iv.next131) #8
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p1, i64 noundef %indvars.iv130) #8
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = sub nsw i32 %43, %45
  %47 = call i32 @llvm.abs.i32(i32 %46, i1 true)
  %48 = mul nsw i32 %47, %37
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv130, i64 0
  %51 = load i64, ptr %50, align 16, !tbaa !11
  %52 = add nsw i64 %51, %49
  store i64 %52, ptr %5, align 8, !tbaa !11
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %54 = load i64, ptr %53, align 8, !tbaa !11
  store i64 %54, ptr %41, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %55

55:                                               ; preds = %40, %39
  br i1 %35, label %56, label %81

56:                                               ; preds = %55
  %57 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv130, i64 1, i64 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p2, i64 noundef 1) #8
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p1, i64 noundef %indvars.iv130) #8
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = sub nsw i32 %59, %61
  %63 = call i32 @llvm.abs.i32(i32 %62, i1 true)
  %64 = mul nsw i32 %63, %37
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv130, i64 0
  %67 = load i64, ptr %66, align 16, !tbaa !11
  %68 = add nsw i64 %67, %65
  store i64 %68, ptr %6, align 8, !tbaa !11
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %70 = load i64, ptr %69, align 8, !tbaa !11
  store i64 %70, ptr %57, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %81

71:                                               ; preds = %.preheader.us
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p2, i64 noundef 1) #8
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = mul nsw i32 %73, %.neg
  %75 = sext i32 %74 to i64
  store i64 %75, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !11
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p1, i64 noundef 1) #8
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = mul i32 %.neg, %77
  %79 = sub i32 0, %78
  %80 = sext i32 %79 to i64
  store i64 %80, ptr getelementptr inbounds (i8, ptr @dp, i64 16016), align 16, !tbaa !11
  br label %81

81:                                               ; preds = %55, %56, %71
  br i1 %exitcond128.peel.not, label %._crit_edge.us, label %.peel.next

.peel.next:                                       ; preds = %81, %154
  %indvars.iv124 = phi i64 [ %indvars.iv.next125, %154 ], [ 1, %81 ]
  %.0.neg112.us = phi i32 [ %.0.neg.us, %154 ], [ -1, %81 ]
  br i1 %.not.us, label %118, label %82

82:                                               ; preds = %.peel.next
  br i1 %36, label %83, label %99

83:                                               ; preds = %82
  %84 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next131, i64 %indvars.iv124
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %85 = add i32 %37, %.0.neg112.us
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p1, i64 noundef %indvars.iv.next131) #8
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p1, i64 noundef %indvars.iv130) #8
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = sub nsw i32 %87, %89
  %91 = call i32 @llvm.abs.i32(i32 %90, i1 true)
  %92 = mul nsw i32 %91, %85
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv130, i64 %indvars.iv124
  %95 = load i64, ptr %94, align 16, !tbaa !11
  %96 = add nsw i64 %95, %93
  store i64 %96, ptr %5, align 8, !tbaa !11
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %98 = load i64, ptr %97, align 8, !tbaa !11
  store i64 %98, ptr %84, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %99

99:                                               ; preds = %83, %82
  %100 = icmp ult i64 %indvars.iv124, %33
  br i1 %100, label %101, label %118

101:                                              ; preds = %99
  %102 = add nuw nsw i64 %indvars.iv124, 1
  %103 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv130, i64 %102, i64 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %104 = add i32 %37, %.0.neg112.us
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p2, i64 noundef %102) #8
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p1, i64 noundef %indvars.iv130) #8
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = sub nsw i32 %106, %108
  %110 = call i32 @llvm.abs.i32(i32 %109, i1 true)
  %111 = mul nsw i32 %110, %104
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv130, i64 %indvars.iv124
  %114 = load i64, ptr %113, align 16, !tbaa !11
  %115 = add nsw i64 %114, %112
  store i64 %115, ptr %6, align 8, !tbaa !11
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %117 = load i64, ptr %116, align 8, !tbaa !11
  store i64 %117, ptr %103, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %118

118:                                              ; preds = %.peel.next, %99, %101
  br i1 %36, label %119, label %135

119:                                              ; preds = %118
  %120 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next131, i64 %indvars.iv124
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %121 = add i32 %37, %.0.neg112.us
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p1, i64 noundef %indvars.iv.next131) #8
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p2, i64 noundef %indvars.iv124) #8
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = sub nsw i32 %123, %125
  %127 = call i32 @llvm.abs.i32(i32 %126, i1 true)
  %128 = mul nsw i32 %127, %121
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv130, i64 %indvars.iv124, i64 1
  %131 = load i64, ptr %130, align 8, !tbaa !11
  %132 = add nsw i64 %131, %129
  store i64 %132, ptr %7, align 8, !tbaa !11
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %134 = load i64, ptr %133, align 8, !tbaa !11
  store i64 %134, ptr %120, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %135

135:                                              ; preds = %119, %118
  %136 = icmp ult i64 %indvars.iv124, %33
  br i1 %136, label %137, label %154

137:                                              ; preds = %135
  %138 = add nuw nsw i64 %indvars.iv124, 1
  %139 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv130, i64 %138, i64 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %140 = add i32 %37, %.0.neg112.us
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p2, i64 noundef %138) #8
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @p2, i64 noundef %indvars.iv124) #8
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = sub nsw i32 %142, %144
  %146 = call i32 @llvm.abs.i32(i32 %145, i1 true)
  %147 = mul nsw i32 %146, %140
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv130, i64 %indvars.iv124, i64 1
  %150 = load i64, ptr %149, align 8, !tbaa !11
  %151 = add nsw i64 %150, %148
  store i64 %151, ptr %8, align 8, !tbaa !11
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %153 = load i64, ptr %152, align 8, !tbaa !11
  store i64 %153, ptr %139, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %154

154:                                              ; preds = %137, %135
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %155 = trunc nuw nsw i64 %indvars.iv124 to i32
  %.0.neg.us = xor i32 %155, -1
  %exitcond128.not = icmp eq i64 %indvars.iv.next125, %wide.trip.count
  br i1 %exitcond128.not, label %._crit_edge.us, label %.peel.next, !llvm.loop !13

._crit_edge.us:                                   ; preds = %154, %81
  %.092.neg.us = xor i32 %38, -1
  %exitcond135.not = icmp eq i64 %indvars.iv.next131, %wide.trip.count134
  br i1 %exitcond135.not, label %._crit_edge116, label %.preheader.us, !llvm.loop !15

.preheader104:                                    ; preds = %.preheader104.1, %.preheader105
  %indvars.iv = phi i64 [ 0, %.preheader105 ], [ %indvars.iv.next.1, %.preheader104.1 ]
  %156 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv120, i64 %indvars.iv, i64 0
  store i64 1000000000000000000, ptr %156, align 16, !tbaa !11
  %157 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv120, i64 %indvars.iv, i64 1
  store i64 1000000000000000000, ptr %157, align 8, !tbaa !11
  %exitcond.not = icmp eq i64 %indvars.iv, 1000
  br i1 %exitcond.not, label %160, label %.preheader104.1, !llvm.loop !16

.preheader104.1:                                  ; preds = %.preheader104
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %158 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv120, i64 %indvars.iv.next, i64 0
  store i64 1000000000000000000, ptr %158, align 16, !tbaa !11
  %159 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv120, i64 %indvars.iv.next, i64 1
  store i64 1000000000000000000, ptr %159, align 8, !tbaa !11
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  br label %.preheader104

160:                                              ; preds = %.preheader104
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %exitcond123.not = icmp eq i64 %indvars.iv.next121, 1001
  br i1 %exitcond123.not, label %18, label %.preheader105, !llvm.loop !17

._crit_edge116:                                   ; preds = %._crit_edge.us, %.preheader.lr.ph, %18
  %161 = sext i32 %27 to i64
  %162 = sext i32 %30 to i64
  %163 = getelementptr inbounds [1001 x [1001 x [2 x i64]]], ptr @dp, i64 0, i64 %161, i64 %162
  %164 = getelementptr inbounds i8, ptr %163, i64 8
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef nonnull align 8 dereferenceable(8) %164)
  %166 = load i64, ptr %165, align 8, !tbaa !11
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @cout, i64 noundef %166)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0
}

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

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 #2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #7

; 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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !10, !14}
!14 = !{!"llvm.loop.peeled.count", i32 1}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass