; LLVM IR from manishbisht/Competitive-Programming :: Skillenza/DigitalIcean Competitive Programming Challenge (Shortest Distance)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca [2 x %"class.std::vector"], align 16
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %12) #5
  %15 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i32 0, i32 0
  %16 = getelementptr inbounds %"class.std::vector", ptr %15, i64 2
  br label %17

17:                                               ; preds = %17, %0
  %18 = phi ptr [ %15, %0 ], [ %19, %17 ]
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %19 = getelementptr inbounds %"class.std::vector", ptr %18, i64 1
  %20 = icmp eq ptr %19, %16
  br i1 %20, label %21, label %17

21:                                               ; preds = %17
  %22 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %23 unwind label %45

23:                                               ; preds = %21
  store i64 0, ptr %6, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %204, %23
  %25 = load i64, ptr %6, align 8, !tbaa !5
  %26 = load i64, ptr %2, align 8, !tbaa !5
  %27 = icmp slt i64 %25, %26
  br i1 %27, label %28, label %207

28:                                               ; preds = %24
  %29 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 0
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  %30 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 1
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  %31 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %32 unwind label %45

32:                                               ; preds = %28
  store i64 0, ptr %4, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %42, %32
  %34 = load i64, ptr %4, align 8, !tbaa !5
  %35 = load i64, ptr %3, align 8, !tbaa !5
  %36 = icmp slt i64 %34, %35
  br i1 %36, label %37, label %51

37:                                               ; preds = %33
  %38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %39 unwind label %45

39:                                               ; preds = %37
  %40 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 0
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %41 unwind label %45

41:                                               ; preds = %39
  br label %42

42:                                               ; preds = %41
  %43 = load i64, ptr %4, align 8, !tbaa !5
  %44 = add nsw i64 %43, 1
  store i64 %44, ptr %4, align 8, !tbaa !5
  br label %33, !llvm.loop !9

45:                                               ; preds = %201, %198, %60, %58, %51, %39, %37, %28, %21
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %13, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %14, align 4
  %49 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i32 0, i32 0
  %50 = getelementptr inbounds %"class.std::vector", ptr %49, i64 2
  br label %216

51:                                               ; preds = %33
  %52 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %53 unwind label %45

53:                                               ; preds = %51
  store i64 0, ptr %4, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %63, %53
  %55 = load i64, ptr %4, align 8, !tbaa !5
  %56 = load i64, ptr %3, align 8, !tbaa !5
  %57 = icmp slt i64 %55, %56
  br i1 %57, label %58, label %66

58:                                               ; preds = %54
  %59 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %60 unwind label %45

60:                                               ; preds = %58
  %61 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 1
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %62 unwind label %45

62:                                               ; preds = %60
  br label %63

63:                                               ; preds = %62
  %64 = load i64, ptr %4, align 8, !tbaa !5
  %65 = add nsw i64 %64, 1
  store i64 %65, ptr %4, align 8, !tbaa !5
  br label %54, !llvm.loop !11

66:                                               ; preds = %54
  %67 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 0
  %68 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %67) #5
  %69 = sub i64 %68, 1
  store i64 %69, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 1
  %71 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #5
  %72 = sub i64 %71, 1
  store i64 %72, ptr %5, align 8, !tbaa !5
  %73 = load i64, ptr %4, align 8, !tbaa !5
  store i64 %73, ptr %9, align 8, !tbaa !5
  %74 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %74, ptr %10, align 8, !tbaa !5
  store i64 0, ptr %8, align 8, !tbaa !5
  store i64 0, ptr %7, align 8, !tbaa !5
  store i64 0, ptr %11, align 8, !tbaa !5
  %75 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 0
  %76 = load i64, ptr %4, align 8, !tbaa !5
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %76) #5
  %78 = load i64, ptr %77, align 8, !tbaa !5
  %79 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 1
  %80 = load i64, ptr %5, align 8, !tbaa !5
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %80) #5
  %82 = load i64, ptr %81, align 8, !tbaa !5
  %83 = icmp slt i64 %78, %82
  br i1 %83, label %84, label %85

84:                                               ; preds = %66
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %97

85:                                               ; preds = %66
  %86 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 0
  %87 = load i64, ptr %4, align 8, !tbaa !5
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %87) #5
  %89 = load i64, ptr %88, align 8, !tbaa !5
  %90 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 1
  %91 = load i64, ptr %5, align 8, !tbaa !5
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %91) #5
  %93 = load i64, ptr %92, align 8, !tbaa !5
  %94 = icmp sgt i64 %89, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %85
  store i64 1, ptr %7, align 8, !tbaa !5
  br label %96

96:                                               ; preds = %95, %85
  br label %97

97:                                               ; preds = %96, %84
  br label %98

98:                                               ; preds = %195, %97
  %99 = load i64, ptr %9, align 8, !tbaa !5
  %100 = icmp sge i64 %99, 0
  br i1 %100, label %101, label %104

101:                                              ; preds = %98
  %102 = load i64, ptr %10, align 8, !tbaa !5
  %103 = icmp sge i64 %102, 0
  br label %104

104:                                              ; preds = %101, %98
  %105 = phi i1 [ false, %98 ], [ %103, %101 ]
  br i1 %105, label %106, label %198

106:                                              ; preds = %104
  %107 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 0
  %108 = load i64, ptr %9, align 8, !tbaa !5
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %108) #5
  %110 = load i64, ptr %109, align 8, !tbaa !5
  %111 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 1
  %112 = load i64, ptr %10, align 8, !tbaa !5
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %112) #5
  %114 = load i64, ptr %113, align 8, !tbaa !5
  %115 = icmp eq i64 %110, %114
  br i1 %115, label %116, label %132

116:                                              ; preds = %106
  %117 = load i64, ptr %9, align 8, !tbaa !5
  %118 = load i64, ptr %10, align 8, !tbaa !5
  %119 = icmp slt i64 %117, %118
  br i1 %119, label %120, label %121

120:                                              ; preds = %116
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %127

121:                                              ; preds = %116
  %122 = load i64, ptr %10, align 8, !tbaa !5
  %123 = load i64, ptr %9, align 8, !tbaa !5
  %124 = icmp slt i64 %122, %123
  br i1 %124, label %125, label %126

125:                                              ; preds = %121
  store i64 1, ptr %7, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %125, %121
  br label %127

127:                                              ; preds = %126, %120
  %128 = load i64, ptr %9, align 8, !tbaa !5
  %129 = add nsw i64 %128, -1
  store i64 %129, ptr %9, align 8, !tbaa !5
  %130 = load i64, ptr %10, align 8, !tbaa !5
  %131 = add nsw i64 %130, -1
  store i64 %131, ptr %10, align 8, !tbaa !5
  br label %149

132:                                              ; preds = %106
  %133 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 0
  %134 = load i64, ptr %9, align 8, !tbaa !5
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %134) #5
  %136 = load i64, ptr %135, align 8, !tbaa !5
  %137 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 1
  %138 = load i64, ptr %10, align 8, !tbaa !5
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef %138) #5
  %140 = load i64, ptr %139, align 8, !tbaa !5
  %141 = icmp slt i64 %136, %140
  br i1 %141, label %142, label %145

142:                                              ; preds = %132
  %143 = load i64, ptr %10, align 8, !tbaa !5
  %144 = add nsw i64 %143, -1
  store i64 %144, ptr %10, align 8, !tbaa !5
  br label %148

145:                                              ; preds = %132
  %146 = load i64, ptr %9, align 8, !tbaa !5
  %147 = add nsw i64 %146, -1
  store i64 %147, ptr %9, align 8, !tbaa !5
  br label %148

148:                                              ; preds = %145, %142
  br label %149

149:                                              ; preds = %148, %127
  %150 = load i64, ptr %7, align 8, !tbaa !5
  %151 = icmp eq i64 %150, 0
  br i1 %151, label %152, label %173

152:                                              ; preds = %149
  %153 = load i64, ptr %11, align 8, !tbaa !5
  %154 = load i64, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 %154
  %156 = load i64, ptr %4, align 8, !tbaa !5
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %155, i64 noundef %156) #5
  %158 = load i64, ptr %157, align 8, !tbaa !5
  %159 = icmp ne i64 %153, %158
  br i1 %159, label %160, label %173

160:                                              ; preds = %152
  %161 = load i64, ptr %7, align 8, !tbaa !5
  %162 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 %161
  %163 = load i64, ptr %4, align 8, !tbaa !5
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %162, i64 noundef %163) #5
  %165 = load i64, ptr %164, align 8, !tbaa !5
  store i64 %165, ptr %11, align 8, !tbaa !5
  %166 = load i64, ptr %8, align 8, !tbaa !5
  %167 = load i64, ptr %7, align 8, !tbaa !5
  %168 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 %167
  %169 = load i64, ptr %4, align 8, !tbaa !5
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %168, i64 noundef %169) #5
  %171 = load i64, ptr %170, align 8, !tbaa !5
  %172 = add nsw i64 %166, %171
  store i64 %172, ptr %8, align 8, !tbaa !5
  br label %195

173:                                              ; preds = %152, %149
  %174 = load i64, ptr %11, align 8, !tbaa !5
  %175 = load i64, ptr %7, align 8, !tbaa !5
  %176 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 %175
  %177 = load i64, ptr %5, align 8, !tbaa !5
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %176, i64 noundef %177) #5
  %179 = load i64, ptr %178, align 8, !tbaa !5
  %180 = icmp ne i64 %174, %179
  br i1 %180, label %181, label %194

181:                                              ; preds = %173
  %182 = load i64, ptr %7, align 8, !tbaa !5
  %183 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 %182
  %184 = load i64, ptr %5, align 8, !tbaa !5
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %183, i64 noundef %184) #5
  %186 = load i64, ptr %185, align 8, !tbaa !5
  store i64 %186, ptr %11, align 8, !tbaa !5
  %187 = load i64, ptr %8, align 8, !tbaa !5
  %188 = load i64, ptr %7, align 8, !tbaa !5
  %189 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i64 0, i64 %188
  %190 = load i64, ptr %5, align 8, !tbaa !5
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %189, i64 noundef %190) #5
  %192 = load i64, ptr %191, align 8, !tbaa !5
  %193 = add nsw i64 %187, %192
  store i64 %193, ptr %8, align 8, !tbaa !5
  br label %194

194:                                              ; preds = %181, %173
  br label %195

195:                                              ; preds = %194, %160
  %196 = load i64, ptr %9, align 8, !tbaa !5
  store i64 %196, ptr %4, align 8, !tbaa !5
  %197 = load i64, ptr %10, align 8, !tbaa !5
  store i64 %197, ptr %5, align 8, !tbaa !5
  br label %98, !llvm.loop !12

198:                                              ; preds = %104
  %199 = load i64, ptr %8, align 8, !tbaa !5
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %199)
          to label %201 unwind label %45

201:                                              ; preds = %198
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %203 unwind label %45

203:                                              ; preds = %201
  br label %204

204:                                              ; preds = %203
  %205 = load i64, ptr %6, align 8, !tbaa !5
  %206 = add nsw i64 %205, 1
  store i64 %206, ptr %6, align 8, !tbaa !5
  br label %24, !llvm.loop !13

207:                                              ; preds = %24
  store i32 0, ptr %1, align 4
  %208 = getelementptr inbounds [2 x %"class.std::vector"], ptr %12, i32 0, i32 0
  %209 = getelementptr inbounds %"class.std::vector", ptr %208, i64 2
  br label %210

210:                                              ; preds = %210, %207
  %211 = phi ptr [ %209, %207 ], [ %212, %210 ]
  %212 = getelementptr inbounds %"class.std::vector", ptr %211, i64 -1
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %212) #5
  %213 = icmp eq ptr %212, %208
  br i1 %213, label %214, label %210

214:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %215 = load i32, ptr %1, align 4
  ret i32 %215

216:                                              ; preds = %216, %45
  %217 = phi ptr [ %50, %45 ], [ %218, %216 ]
  %218 = getelementptr inbounds %"class.std::vector", ptr %217, i64 -1
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %218) #5
  %219 = icmp eq ptr %218, %49
  br i1 %219, label %220, label %216

220:                                              ; preds = %216
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  br label %221

221:                                              ; preds = %220
  %222 = load ptr, ptr %13, align 8
  %223 = load i32, ptr %14, align 4
  %224 = insertvalue { ptr, i32 } poison, ptr %222, 0
  %225 = insertvalue { ptr, i32 } %224, i32 %223, 1
  resume { ptr, i32 } %225
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress 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)) #4

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca [2 x %"class.std::vector"], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #5
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %.ptr.1 = getelementptr inbounds i8, ptr %4, i64 24
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #5
  %5 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %.preheader62 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

.preheader62:                                     ; preds = %0
  %6 = load i64, ptr %1, align 8, !tbaa !5
  %7 = icmp sgt i64 %6, 0
  br i1 %7, label %.lr.ph77, label %.preheader

.preheader:                                       ; preds = %98, %.preheader62
  %8 = getelementptr inbounds i8, ptr %4, i64 24
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret i32 0

.lr.ph77:                                         ; preds = %.preheader62, %98
  %.04976 = phi i64 [ %99, %98 ], [ 0, %.preheader62 ]
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #5
  %9 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %.preheader58 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader58:                                     ; preds = %.lr.ph77
  %10 = load i64, ptr %2, align 8, !tbaa !5
  %11 = icmp sgt i64 %10, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader58, %14
  %.065 = phi i64 [ %15, %14 ], [ 0, %.preheader58 ]
  %12 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %13 unwind label %.loopexit.split-lp.loopexit

13:                                               ; preds = %.lr.ph
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %14 unwind label %.loopexit.split-lp.loopexit

14:                                               ; preds = %13
  %15 = add nuw nsw i64 %.065, 1
  %16 = load i64, ptr %2, align 8, !tbaa !5
  %17 = icmp slt i64 %15, %16
  br i1 %17, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.loopexit:                                        ; preds = %.lr.ph67, %23
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %13, %.lr.ph
  %lpad.loopexit59 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %.lr.ph77, %._crit_edge, %._crit_edge75, %96
  %lpad.loopexit63 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %0
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit59, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit63, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  %18 = getelementptr inbounds i8, ptr %4, i64 24
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  resume { ptr, i32 } %lpad.phi

._crit_edge:                                      ; preds = %14, %.preheader58
  %19 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %.preheader57 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader57:                                     ; preds = %._crit_edge
  %20 = load i64, ptr %2, align 8, !tbaa !5
  %21 = icmp sgt i64 %20, 0
  br i1 %21, label %.lr.ph67, label %._crit_edge68

.lr.ph67:                                         ; preds = %.preheader57, %24
  %.166 = phi i64 [ %25, %24 ], [ 0, %.preheader57 ]
  %22 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %23 unwind label %.loopexit

23:                                               ; preds = %.lr.ph67
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %24 unwind label %.loopexit

24:                                               ; preds = %23
  %25 = add nuw nsw i64 %.166, 1
  %26 = load i64, ptr %2, align 8, !tbaa !5
  %27 = icmp slt i64 %25, %26
  br i1 %27, label %.lr.ph67, label %._crit_edge68, !llvm.loop !11

._crit_edge68:                                    ; preds = %24, %.preheader57
  %28 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %29 = add i64 %28, -1
  %30 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #5
  %31 = add i64 %30, -1
  store i64 0, ptr %3, align 8, !tbaa !5
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %29) #5
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i64 noundef %31) #5
  %35 = load i64, ptr %34, align 8, !tbaa !5
  %36 = icmp slt i64 %33, %35
  br i1 %36, label %37, label %38

37:                                               ; preds = %._crit_edge68
  store i64 0, ptr %3, align 8, !tbaa !5
  br label %45

38:                                               ; preds = %._crit_edge68
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %29) #5
  %40 = load i64, ptr %39, align 8, !tbaa !5
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i64 noundef %31) #5
  %42 = load i64, ptr %41, align 8, !tbaa !5
  %43 = icmp sgt i64 %40, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %38
  store i64 1, ptr %3, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %38, %44, %37
  %46 = or i64 %29, %31
  %47 = icmp sgt i64 %46, -1
  br i1 %47, label %.lr.ph74, label %._crit_edge75

.lr.ph74:                                         ; preds = %45, %91
  %.272 = phi i64 [ %.146, %91 ], [ %29, %45 ]
  %.04171 = phi i64 [ %.142, %91 ], [ 0, %45 ]
  %.04370 = phi i64 [ %.144, %91 ], [ %31, %45 ]
  %.04769 = phi i64 [ %.148, %91 ], [ 0, %45 ]
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.272) #5
  %49 = load i64, ptr %48, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i64 noundef %.04370) #5
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %52 = icmp eq i64 %49, %51
  br i1 %52, label %53, label %62

53:                                               ; preds = %.lr.ph74
  %54 = icmp ult i64 %.272, %.04370
  br i1 %54, label %55, label %56

55:                                               ; preds = %53
  store i64 0, ptr %3, align 8, !tbaa !5
  br label %59

56:                                               ; preds = %53
  %57 = icmp ult i64 %.04370, %.272
  br i1 %57, label %58, label %59

58:                                               ; preds = %56
  store i64 1, ptr %3, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %56, %58, %55
  %60 = add nsw i64 %.272, -1
  %61 = add nsw i64 %.04370, -1
  br label %72

62:                                               ; preds = %.lr.ph74
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.272) #5
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i64 noundef %.04370) #5
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %67 = icmp slt i64 %64, %66
  br i1 %67, label %68, label %70

68:                                               ; preds = %62
  %69 = add nsw i64 %.04370, -1
  br label %72

70:                                               ; preds = %62
  %71 = add nsw i64 %.272, -1
  br label %72

72:                                               ; preds = %68, %70, %59
  %.146 = phi i64 [ %60, %59 ], [ %.272, %68 ], [ %71, %70 ]
  %.144 = phi i64 [ %61, %59 ], [ %69, %68 ], [ %.04370, %70 ]
  %73 = load i64, ptr %3, align 8, !tbaa !5
  %74 = icmp eq i64 %73, 0
  br i1 %74, label %75, label %78

75:                                               ; preds = %72
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.272) #5
  %77 = load i64, ptr %76, align 8, !tbaa !5
  %.not = icmp eq i64 %.04171, %77
  %.pre = load i64, ptr %3, align 8, !tbaa !5
  br i1 %.not, label %78, label %.sink.split

78:                                               ; preds = %75, %72
  %79 = phi i64 [ %.pre, %75 ], [ %73, %72 ]
  %80 = getelementptr inbounds [2 x %"class.std::vector"], ptr %4, i64 0, i64 %79
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %.04370) #5
  %82 = load i64, ptr %81, align 8, !tbaa !5
  %.not56 = icmp eq i64 %.04171, %82
  br i1 %.not56, label %91, label %83

83:                                               ; preds = %78
  %84 = load i64, ptr %3, align 8, !tbaa !5
  br label %.sink.split

.sink.split:                                      ; preds = %75, %83
  %.pre.sink = phi i64 [ %84, %83 ], [ %.pre, %75 ]
  %.272.sink = phi i64 [ %.04370, %83 ], [ %.272, %75 ]
  %85 = getelementptr inbounds [2 x %"class.std::vector"], ptr %4, i64 0, i64 %.pre.sink
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %.272.sink) #5
  %.142.ph = load i64, ptr %86, align 8, !tbaa !5
  %.sink79 = load i64, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds [2 x %"class.std::vector"], ptr %4, i64 0, i64 %.sink79
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %.272.sink) #5
  %89 = load i64, ptr %88, align 8, !tbaa !5
  %90 = add nsw i64 %89, %.04769
  br label %91

91:                                               ; preds = %.sink.split, %78
  %.148 = phi i64 [ %.04769, %78 ], [ %90, %.sink.split ]
  %.142 = phi i64 [ %.04171, %78 ], [ %.142.ph, %.sink.split ]
  %92 = icmp sgt i64 %.146, -1
  %93 = icmp sgt i64 %.144, -1
  %94 = select i1 %92, i1 %93, i1 false
  br i1 %94, label %.lr.ph74, label %._crit_edge75, !llvm.loop !12

._crit_edge75:                                    ; preds = %91, %45
  %.047.lcssa = phi i64 [ 0, %45 ], [ %.148, %91 ]
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.047.lcssa)
          to label %96 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

96:                                               ; preds = %._crit_edge75
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %98 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

98:                                               ; preds = %96
  %99 = add nuw nsw i64 %.04976, 1
  %100 = load i64, ptr %1, align 8, !tbaa !5
  %101 = icmp slt i64 %99, %100
  br i1 %101, label %.lr.ph77, label %.preheader, !llvm.loop !13
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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


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