; LLVM IR from ShahjalalShohag/code-library :: Data Structures (DSU with Rollbacks)

; 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" }
%struct.DSU = type <{ %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.0", i8, [7 x i8] }>
%"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.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.DSUQueue = type { %struct.DSU, %"class.std::vector.5" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<update, std::allocator<update>>::_Vector_impl" }
%"struct.std::_Vector_base<update, std::allocator<update>>::_Vector_impl" = type { %"struct.std::_Vector_base<update, std::allocator<update>>::_Vector_impl_data" }
%"struct.std::_Vector_base<update, std::allocator<update>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.update = type { i8, i32, i32 }

@u = external dso_local global [200009 x i32], align 16
@v = external dso_local global [200009 x i32], align 16
@a = external dso_local global [200009 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.DSU, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.DSUQueue, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.update, align 4
  %12 = alloca { i64, i32 }, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.update, align 4
  %16 = alloca { i64, i32 }, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %19 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %20 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %21 = getelementptr i8, ptr %20, i64 -24
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %22
  %24 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %23, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 104, ptr %5) #8
  %28 = load i32, ptr %2, align 4, !tbaa !8
  call void @_ZN3DSUC2Ei(ptr noundef nonnull align 8 dereferenceable(97) %5, i32 noundef %28)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 1, ptr %6, align 4, !tbaa !8
  br label %29

29:                                               ; preds = %45, %0
  %30 = load i32, ptr %6, align 4, !tbaa !8
  %31 = load i32, ptr %3, align 4, !tbaa !8
  %32 = icmp sle i32 %30, %31
  br i1 %32, label %34, label %33

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

34:                                               ; preds = %29
  %35 = load i32, ptr %6, align 4, !tbaa !8
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %36
  %38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %39 unwind label %48

39:                                               ; preds = %34
  %40 = load i32, ptr %6, align 4, !tbaa !8
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %41
  %43 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(4) %42)
          to label %44 unwind label %48

44:                                               ; preds = %39
  br label %45

45:                                               ; preds = %44
  %46 = load i32, ptr %6, align 4, !tbaa !8
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %6, align 4, !tbaa !8
  br label %29, !llvm.loop !11

48:                                               ; preds = %39, %34
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %7, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %180

52:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 128, ptr %9) #8
  %53 = load i32, ptr %2, align 4, !tbaa !8
  invoke void @_ZN8DSUQueueC2Ei(ptr noundef nonnull align 8 dereferenceable(128) %9, i32 noundef %53)
          to label %54 unwind label %60

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 1, ptr %10, align 4, !tbaa !8
  br label %55

55:                                               ; preds = %79, %54
  %56 = load i32, ptr %10, align 4, !tbaa !8
  %57 = load i32, ptr %3, align 4, !tbaa !8
  %58 = icmp sle i32 %56, %57
  br i1 %58, label %64, label %59

59:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %86

60:                                               ; preds = %52
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %7, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %8, align 4
  br label %179

64:                                               ; preds = %55
  %65 = load i32, ptr %10, align 4, !tbaa !8
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !8
  %69 = load i32, ptr %10, align 4, !tbaa !8
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !8
  invoke void @_ZN6updateC2Eii(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef %68, i32 noundef %72)
          to label %73 unwind label %82

73:                                               ; preds = %64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %11, i64 12, i1 false)
  %74 = getelementptr inbounds { i64, i32 }, ptr %12, i32 0, i32 0
  %75 = load i64, ptr %74, align 4
  %76 = getelementptr inbounds { i64, i32 }, ptr %12, i32 0, i32 1
  %77 = load i32, ptr %76, align 4
  invoke void @_ZN8DSUQueue4pushE6update(ptr noundef nonnull align 8 dereferenceable(128) %9, i64 %75, i32 %77)
          to label %78 unwind label %82

78:                                               ; preds = %73
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %10, align 4, !tbaa !8
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %10, align 4, !tbaa !8
  br label %55, !llvm.loop !13

82:                                               ; preds = %73, %64
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %7, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %178

86:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 1, ptr %13, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 1, ptr %14, align 4, !tbaa !8
  br label %87

87:                                               ; preds = %146, %86
  %88 = load i32, ptr %13, align 4, !tbaa !8
  %89 = load i32, ptr %3, align 4, !tbaa !8
  %90 = icmp sle i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %149

92:                                               ; preds = %87
  br label %93

93:                                               ; preds = %109, %92
  %94 = load i32, ptr %14, align 4, !tbaa !8
  %95 = load i32, ptr %13, align 4, !tbaa !8
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %106, label %97

97:                                               ; preds = %93
  %98 = invoke noundef zeroext i1 @_ZN8DSUQueue12is_bipartiteEv(ptr noundef nonnull align 8 dereferenceable(128) %9)
          to label %99 unwind label %112

99:                                               ; preds = %97
  br i1 %98, label %104, label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %14, align 4, !tbaa !8
  %102 = load i32, ptr %3, align 4, !tbaa !8
  %103 = icmp sle i32 %101, %102
  br label %104

104:                                              ; preds = %100, %99
  %105 = phi i1 [ false, %99 ], [ %103, %100 ]
  br label %106

106:                                              ; preds = %104, %93
  %107 = phi i1 [ true, %93 ], [ %105, %104 ]
  br i1 %107, label %108, label %116

108:                                              ; preds = %106
  invoke void @_ZN8DSUQueue3popEv(ptr noundef nonnull align 8 dereferenceable(128) %9)
          to label %109 unwind label %112

109:                                              ; preds = %108
  %110 = load i32, ptr %14, align 4, !tbaa !8
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %14, align 4, !tbaa !8
  br label %93, !llvm.loop !14

112:                                              ; preds = %140, %131, %116, %108, %97
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %7, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %178

116:                                              ; preds = %106
  %117 = invoke noundef zeroext i1 @_ZN8DSUQueue12is_bipartiteEv(ptr noundef nonnull align 8 dereferenceable(128) %9)
          to label %118 unwind label %112

118:                                              ; preds = %116
  br i1 %117, label %119, label %125

119:                                              ; preds = %118
  %120 = load i32, ptr %14, align 4, !tbaa !8
  %121 = sub nsw i32 %120, 1
  %122 = load i32, ptr %13, align 4, !tbaa !8
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [200009 x i32], ptr @a, i64 0, i64 %123
  store i32 %121, ptr %124, align 4, !tbaa !8
  br label %131

125:                                              ; preds = %118
  %126 = load i32, ptr %3, align 4, !tbaa !8
  %127 = add nsw i32 %126, 1
  %128 = load i32, ptr %13, align 4, !tbaa !8
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [200009 x i32], ptr @a, i64 0, i64 %129
  store i32 %127, ptr %130, align 4, !tbaa !8
  br label %131

131:                                              ; preds = %125, %119
  %132 = load i32, ptr %13, align 4, !tbaa !8
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !8
  %136 = load i32, ptr %13, align 4, !tbaa !8
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !8
  invoke void @_ZN6updateC2Eii(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef %135, i32 noundef %139)
          to label %140 unwind label %112

140:                                              ; preds = %131
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %15, i64 12, i1 false)
  %141 = getelementptr inbounds { i64, i32 }, ptr %16, i32 0, i32 0
  %142 = load i64, ptr %141, align 4
  %143 = getelementptr inbounds { i64, i32 }, ptr %16, i32 0, i32 1
  %144 = load i32, ptr %143, align 4
  invoke void @_ZN8DSUQueue4pushE6update(ptr noundef nonnull align 8 dereferenceable(128) %9, i64 %142, i32 %144)
          to label %145 unwind label %112

145:                                              ; preds = %140
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %13, align 4, !tbaa !8
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %13, align 4, !tbaa !8
  br label %87, !llvm.loop !15

149:                                              ; preds = %91
  br label %150

150:                                              ; preds = %175, %149
  %151 = load i32, ptr %4, align 4, !tbaa !8
  %152 = add nsw i32 %151, -1
  store i32 %152, ptr %4, align 4, !tbaa !8
  %153 = icmp ne i32 %151, 0
  br i1 %153, label %154, label %176

154:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %155 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %156 unwind label %168

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %155, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %158 unwind label %168

158:                                              ; preds = %156
  %159 = load i32, ptr %17, align 4, !tbaa !8
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [200009 x i32], ptr @a, i64 0, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !8
  %163 = load i32, ptr %18, align 4, !tbaa !8
  %164 = icmp sle i32 %162, %163
  br i1 %164, label %165, label %172

165:                                              ; preds = %158
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %167 unwind label %168

167:                                              ; preds = %165
  br label %175

168:                                              ; preds = %172, %165, %156, %154
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %7, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %178

172:                                              ; preds = %158
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %174 unwind label %168

174:                                              ; preds = %172
  br label %175

175:                                              ; preds = %174, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %150, !llvm.loop !16

176:                                              ; preds = %150
  store i32 0, ptr %1, align 4
  call void @_ZN8DSUQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %9) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %9) #8
  call void @_ZN3DSUD2Ev(ptr noundef nonnull align 8 dereferenceable(97) %5) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %177 = load i32, ptr %1, align 4
  ret i32 %177

178:                                              ; preds = %168, %112, %82
  call void @_ZN8DSUQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %9) #8
  br label %179

179:                                              ; preds = %178, %60
  call void @llvm.lifetime.end.p0(i64 128, ptr %9) #8
  br label %180

180:                                              ; preds = %179, %48
  call void @_ZN3DSUD2Ev(ptr noundef nonnull align 8 dereferenceable(97) %5) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %181

181:                                              ; preds = %180
  %182 = load ptr, ptr %7, align 8
  %183 = load i32, ptr %8, align 4
  %184 = insertvalue { ptr, i32 } poison, ptr %182, 0
  %185 = insertvalue { ptr, i32 } %184, i32 %183, 1
  resume { ptr, i32 } %185
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3DSUC2Ei(ptr noundef nonnull align 8 dereferenceable(97), i32 noundef) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8DSUQueueC2Ei(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8DSUQueue4pushE6update(ptr noundef nonnull align 8 dereferenceable(128), i64, i32) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6updateC2Eii(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN8DSUQueue12is_bipartiteEv(ptr noundef nonnull align 8 dereferenceable(128)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8DSUQueue3popEv(ptr noundef nonnull align 8 dereferenceable(128)) #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8DSUQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3DSUD2Ev(ptr noundef nonnull align 8 dereferenceable(97)) unnamed_addr #7 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


; 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" }
%struct.DSU = type <{ %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.0", i8, [7 x i8] }>
%"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.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.DSUQueue = type { %struct.DSU, %"class.std::vector.5" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<update, std::allocator<update>>::_Vector_impl" }
%"struct.std::_Vector_base<update, std::allocator<update>>::_Vector_impl" = type { %"struct.std::_Vector_base<update, std::allocator<update>>::_Vector_impl_data" }
%"struct.std::_Vector_base<update, std::allocator<update>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.update = type { i8, i32, i32 }

@u = external dso_local global [200009 x i32], align 16
@v = external dso_local global [200009 x i32], align 16
@a = external dso_local local_unnamed_addr global [200009 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %struct.DSU, align 8
  %5 = alloca %struct.DSUQueue, align 8
  %6 = alloca %struct.update, align 8
  %7 = alloca %struct.update, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %11 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %13
  %15 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %4) #7
  %19 = load i32, ptr %1, align 4, !tbaa !8
  call void @_ZN3DSUC2Ei(ptr noundef nonnull align 8 dereferenceable(97) %4, i32 noundef %19)
  %20 = load i32, ptr %2, align 4, !tbaa !8
  %.not45 = icmp slt i32 %20, 1
  br i1 %.not45, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %28, %0
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %5) #7
  %21 = load i32, ptr %1, align 4, !tbaa !8
  invoke void @_ZN8DSUQueueC2Ei(ptr noundef nonnull align 8 dereferenceable(128) %5, i32 noundef %21)
          to label %.preheader43 unwind label %34

.preheader43:                                     ; preds = %._crit_edge
  %22 = load i32, ptr %2, align 4, !tbaa !8
  %.not3147 = icmp slt i32 %22, 1
  br i1 %.not3147, label %.preheader, label %.lr.ph49

.lr.ph49:                                         ; preds = %.preheader43
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  br label %36

.lr.ph:                                           ; preds = %0, %28
  %indvars.iv = phi i64 [ %indvars.iv.next, %28 ], [ 1, %0 ]
  %23 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %indvars.iv
  %24 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %25 unwind label %31

25:                                               ; preds = %.lr.ph
  %26 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %indvars.iv
  %27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %28 unwind label %31

28:                                               ; preds = %25
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %29 = load i32, ptr %2, align 4, !tbaa !8
  %30 = sext i32 %29 to i64
  %.not.not = icmp slt i64 %indvars.iv, %30
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

31:                                               ; preds = %25, %.lr.ph
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %89

.preheader42:                                     ; preds = %41
  %33 = icmp slt i32 %42, 1
  br i1 %33, label %.preheader, label %.preheader41.lr.ph

.preheader41.lr.ph:                               ; preds = %.preheader42
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  br label %.preheader41

34:                                               ; preds = %._crit_edge
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %88

36:                                               ; preds = %.lr.ph49, %41
  %indvars.iv58 = phi i64 [ 1, %.lr.ph49 ], [ %indvars.iv.next59, %41 ]
  %37 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %indvars.iv58
  %38 = load i32, ptr %37, align 4, !tbaa !8
  %39 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %indvars.iv58
  %40 = load i32, ptr %39, align 4, !tbaa !8
  call void @_ZN6updateC2Eii(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef %38, i32 noundef %40)
  %.sroa.011.0.copyload = load i64, ptr %6, align 8
  %.sroa.212.0.copyload = load i32, ptr %.sroa.212.0..sroa_idx, align 8
  invoke void @_ZN8DSUQueue4pushE6update(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 %.sroa.011.0.copyload, i32 %.sroa.212.0.copyload)
          to label %41 unwind label %44

41:                                               ; preds = %36
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %42 = load i32, ptr %2, align 4, !tbaa !8
  %43 = sext i32 %42 to i64
  %.not31.not = icmp slt i64 %indvars.iv58, %43
  br i1 %.not31.not, label %36, label %.preheader42, !llvm.loop !13

44:                                               ; preds = %36
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %87

.preheader41:                                     ; preds = %.preheader41.lr.ph, %69
  %indvars.iv61 = phi i64 [ 1, %.preheader41.lr.ph ], [ %indvars.iv.next62, %69 ]
  %.02352 = phi i32 [ 1, %.preheader41.lr.ph ], [ %.1, %69 ]
  br label %48

.preheader:                                       ; preds = %69, %.preheader43, %.preheader42
  %46 = load i32, ptr %3, align 4, !tbaa !8
  %47 = add nsw i32 %46, -1
  store i32 %47, ptr %3, align 4, !tbaa !8
  %.not3353 = icmp eq i32 %46, 0
  br i1 %.not3353, label %._crit_edge55, label %.lr.ph54

48:                                               ; preds = %.preheader41, %56
  %.1 = phi i32 [ %57, %56 ], [ %.02352, %.preheader41 ]
  %49 = sext i32 %.1 to i64
  %50 = icmp sgt i64 %indvars.iv61, %49
  br i1 %50, label %.critedge, label %51

51:                                               ; preds = %48
  %52 = invoke noundef zeroext i1 @_ZN8DSUQueue12is_bipartiteEv(ptr noundef nonnull align 8 dereferenceable(128) %5)
          to label %53 unwind label %.loopexit

53:                                               ; preds = %51
  %54 = load i32, ptr %2, align 4
  %55 = icmp sgt i32 %.1, %54
  %.not36 = select i1 %52, i1 true, i1 %55
  br i1 %.not36, label %58, label %.critedge

.critedge:                                        ; preds = %48, %53
  invoke void @_ZN8DSUQueue3popEv(ptr noundef nonnull align 8 dereferenceable(128) %5)
          to label %56 unwind label %.loopexit

56:                                               ; preds = %.critedge
  %57 = add nsw i32 %.1, 1
  br label %48, !llvm.loop !14

.loopexit:                                        ; preds = %51, %.critedge
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %87

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

58:                                               ; preds = %53
  %59 = invoke noundef zeroext i1 @_ZN8DSUQueue12is_bipartiteEv(ptr noundef nonnull align 8 dereferenceable(128) %5)
          to label %60 unwind label %.loopexit.split-lp

60:                                               ; preds = %58
  %61 = add nsw i32 %.1, -1
  %62 = load i32, ptr %2, align 4
  %63 = add nsw i32 %62, 1
  %.sink = select i1 %59, i32 %61, i32 %63
  %64 = getelementptr inbounds [200009 x i32], ptr @a, i64 0, i64 %indvars.iv61
  store i32 %.sink, ptr %64, align 4
  %65 = getelementptr inbounds [200009 x i32], ptr @u, i64 0, i64 %indvars.iv61
  %66 = load i32, ptr %65, align 4, !tbaa !8
  %67 = getelementptr inbounds [200009 x i32], ptr @v, i64 0, i64 %indvars.iv61
  %68 = load i32, ptr %67, align 4, !tbaa !8
  call void @_ZN6updateC2Eii(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 noundef %66, i32 noundef %68)
  %.sroa.0.0.copyload = load i64, ptr %7, align 8
  %.sroa.2.0.copyload = load i32, ptr %.sroa.2.0..sroa_idx, align 8
  invoke void @_ZN8DSUQueue4pushE6update(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 %.sroa.0.0.copyload, i32 %.sroa.2.0.copyload)
          to label %69 unwind label %.loopexit.split-lp

69:                                               ; preds = %60
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %70 = load i32, ptr %2, align 4, !tbaa !8
  %71 = sext i32 %70 to i64
  %.not32.not = icmp slt i64 %indvars.iv61, %71
  br i1 %.not32.not, label %.preheader41, label %.preheader, !llvm.loop !15

.lr.ph54:                                         ; preds = %.preheader, %84
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %72 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %73 unwind label %82

73:                                               ; preds = %.lr.ph54
  %74 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %72, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %.invoke unwind label %82

.invoke:                                          ; preds = %73
  %75 = load i32, ptr %8, align 4, !tbaa !8
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [200009 x i32], ptr @a, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !8
  %79 = load i32, ptr %9, align 4, !tbaa !8
  %.not34 = icmp sgt i32 %78, %79
  %80 = select i1 %.not34, ptr @.str.1, ptr @.str
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %80)
          to label %84 unwind label %82

82:                                               ; preds = %.invoke, %73, %.lr.ph54
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %87

84:                                               ; preds = %.invoke
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  %85 = load i32, ptr %3, align 4, !tbaa !8
  %86 = add nsw i32 %85, -1
  store i32 %86, ptr %3, align 4, !tbaa !8
  %.not33 = icmp eq i32 %85, 0
  br i1 %.not33, label %._crit_edge55, label %.lr.ph54, !llvm.loop !16

._crit_edge55:                                    ; preds = %84, %.preheader
  call void @_ZN8DSUQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %5) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %5) #7
  call void @_ZN3DSUD2Ev(ptr noundef nonnull align 8 dereferenceable(97) %4) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

87:                                               ; preds = %.loopexit, %.loopexit.split-lp, %82, %44
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %83, %82 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN8DSUQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %5) #7
  br label %88

88:                                               ; preds = %87, %34
  %.pn.pn = phi { ptr, i32 } [ %.pn, %87 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %5) #7
  br label %89

89:                                               ; preds = %88, %31
  %.pn39 = phi { ptr, i32 } [ %32, %31 ], [ %.pn.pn, %88 ]
  call void @_ZN3DSUD2Ev(ptr noundef nonnull align 8 dereferenceable(97) %4) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn39
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3DSUC2Ei(ptr noundef nonnull align 8 dereferenceable(97), i32 noundef) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8DSUQueueC2Ei(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8DSUQueue4pushE6update(ptr noundef nonnull align 8 dereferenceable(128), i64, i32) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6updateC2Eii(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN8DSUQueue12is_bipartiteEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8DSUQueue3popEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8DSUQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #6 align 2

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

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

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


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