; LLVM IR from sunkafei/xcpc-algorithm-templates :: 算法/图论/一般图最大权匹配.ll (Z3addiii)

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

%struct.edge = type { i32, i32, i32 }
%"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 }

@g = external dso_local global [1023 x [1023 x %struct.edge]], align 16
@n = external dso_local global i32, align 4
@num = external dso_local global i32, align 4
@lab = external dso_local global [1023 x i32], align 16
@match = external dso_local global [1023 x i32], align 16
@st = external dso_local global [1023 x i32], align 16
@pa = external dso_local global [1023 x i32], align 16
@from = external dso_local global [1023 x [1023 x i32]], align 16
@S = external dso_local global [1023 x i32], align 16
@flower = external dso_local global [1023 x %"class.std::vector"], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9set_slacki(i32 noundef) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4pushi(i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 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) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6set_stii(i32 noundef, i32 noundef) #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #0 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) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3addiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) #2 {
  %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 i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %7, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %36, %3
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = load i32, ptr @num, align 4, !tbaa !5
  %27 = icmp sle i32 %25, %26
  br i1 %27, label %28, label %34

28:                                               ; preds = %24
  %29 = load i32, ptr %7, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [1023 x i32], ptr @st, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = icmp ne i32 %32, 0
  br label %34

34:                                               ; preds = %28, %24
  %35 = phi i1 [ false, %24 ], [ %33, %28 ]
  br i1 %35, label %36, label %39

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

39:                                               ; preds = %34
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = load i32, ptr @num, align 4, !tbaa !5
  %42 = icmp sgt i32 %40, %41
  br i1 %42, label %43, label %46

43:                                               ; preds = %39
  %44 = load i32, ptr @num, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr @num, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %43, %39
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [1023 x i32], ptr @lab, i64 0, i64 %48
  store i32 0, ptr %49, align 4, !tbaa !5
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [1023 x i32], ptr @S, i64 0, i64 %51
  store i32 0, ptr %52, align 4, !tbaa !5
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [1023 x i32], ptr @match, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [1023 x i32], ptr @match, i64 0, i64 %58
  store i32 %56, ptr %59, align 4, !tbaa !5
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [1023 x %"class.std::vector"], ptr @flower, i64 0, i64 %61
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #5
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [1023 x %"class.std::vector"], ptr @flower, i64 0, i64 %64
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %66 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %66, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  br label %67

67:                                               ; preds = %87, %46
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = icmp ne i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %95

72:                                               ; preds = %67
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [1023 x %"class.std::vector"], ptr @flower, i64 0, i64 %74
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %75, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [1023 x %"class.std::vector"], ptr @flower, i64 0, i64 %77
  %79 = load i32, ptr %8, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [1023 x i32], ptr @match, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [1023 x i32], ptr @st, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  store i32 %85, ptr %9, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %78, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %86 = load i32, ptr %9, align 4, !tbaa !5
  call void @_Z4pushi(i32 noundef %86)
  br label %87

87:                                               ; preds = %72
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1023 x i32], ptr @pa, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [1023 x i32], ptr @st, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  store i32 %94, ptr %8, align 4, !tbaa !5
  br label %67, !llvm.loop !11

95:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [1023 x %"class.std::vector"], ptr @flower, i64 0, i64 %97
  %99 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #5
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %99, ptr %100, align 8
  %101 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef 1) #5
  %102 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %101, ptr %102, align 8
  %103 = load i32, ptr %7, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [1023 x %"class.std::vector"], ptr @flower, i64 0, i64 %104
  %106 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %105) #5
  %107 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %106, ptr %107, align 8
  %108 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8
  %110 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %109, ptr %111)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %112 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %112, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  br label %113

113:                                              ; preds = %133, %95
  %114 = load i32, ptr %13, align 4, !tbaa !5
  %115 = load i32, ptr %5, align 4, !tbaa !5
  %116 = icmp ne i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %141

118:                                              ; preds = %113
  %119 = load i32, ptr %7, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [1023 x %"class.std::vector"], ptr @flower, i64 0, i64 %120
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %121, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %122 = load i32, ptr %7, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [1023 x %"class.std::vector"], ptr @flower, i64 0, i64 %123
  %125 = load i32, ptr %13, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [1023 x i32], ptr @match, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [1023 x i32], ptr @st, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !5
  store i32 %131, ptr %14, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %124, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %132 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z4pushi(i32 noundef %132)
  br label %133

133:                                              ; preds = %118
  %134 = load i32, ptr %14, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [1023 x i32], ptr @pa, i64 0, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [1023 x i32], ptr @st, i64 0, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  store i32 %140, ptr %13, align 4, !tbaa !5
  br label %113, !llvm.loop !12

141:                                              ; preds = %117
  %142 = load i32, ptr %7, align 4, !tbaa !5
  %143 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z6set_stii(i32 noundef %142, i32 noundef %143)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %164, %141
  %145 = load i32, ptr %15, align 4, !tbaa !5
  %146 = load i32, ptr @num, align 4, !tbaa !5
  %147 = icmp sle i32 %145, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %167

149:                                              ; preds = %144
  %150 = load i32, ptr %15, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %151
  %153 = load i32, ptr %7, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [1023 x %struct.edge], ptr %152, i64 0, i64 %154
  %156 = getelementptr inbounds %struct.edge, ptr %155, i32 0, i32 2
  store i32 0, ptr %156, align 4, !tbaa !13
  %157 = load i32, ptr %7, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %158
  %160 = load i32, ptr %15, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [1023 x %struct.edge], ptr %159, i64 0, i64 %161
  %163 = getelementptr inbounds %struct.edge, ptr %162, i32 0, i32 2
  store i32 0, ptr %163, align 4, !tbaa !13
  br label %164

164:                                              ; preds = %149
  %165 = load i32, ptr %15, align 4, !tbaa !5
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %15, align 4, !tbaa !5
  br label %144, !llvm.loop !15

167:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %168

168:                                              ; preds = %180, %167
  %169 = load i32, ptr %16, align 4, !tbaa !5
  %170 = load i32, ptr @n, align 4, !tbaa !5
  %171 = icmp sle i32 %169, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %183

173:                                              ; preds = %168
  %174 = load i32, ptr %7, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %175
  %177 = load i32, ptr %16, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [1023 x i32], ptr %176, i64 0, i64 %178
  store i32 0, ptr %179, align 4, !tbaa !5
  br label %180

180:                                              ; preds = %173
  %181 = load i32, ptr %16, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %16, align 4, !tbaa !5
  br label %168, !llvm.loop !16

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

184:                                              ; preds = %369, %183
  %185 = load i32, ptr %17, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = load i32, ptr %7, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [1023 x %"class.std::vector"], ptr @flower, i64 0, i64 %188
  %190 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %189) #5
  %191 = icmp ult i64 %186, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %184
  store i32 16, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %372

193:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %194 = load i32, ptr %7, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [1023 x %"class.std::vector"], ptr @flower, i64 0, i64 %195
  %197 = load i32, ptr %17, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %196, i64 noundef %198) #5
  %200 = load i32, ptr %199, align 4, !tbaa !5
  store i32 %200, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 1, ptr %20, align 4, !tbaa !5
  br label %201

201:                                              ; preds = %338, %193
  %202 = load i32, ptr %20, align 4, !tbaa !5
  %203 = load i32, ptr @num, align 4, !tbaa !5
  %204 = icmp sle i32 %202, %203
  br i1 %204, label %206, label %205

205:                                              ; preds = %201
  store i32 19, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %341

206:                                              ; preds = %201
  %207 = load i32, ptr %7, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %208
  %210 = load i32, ptr %20, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [1023 x %struct.edge], ptr %209, i64 0, i64 %211
  %213 = getelementptr inbounds %struct.edge, ptr %212, i32 0, i32 2
  %214 = load i32, ptr %213, align 4, !tbaa !13
  %215 = icmp eq i32 %214, 0
  br i1 %215, label %312, label %216

216:                                              ; preds = %206
  %217 = load i32, ptr %19, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %218
  %220 = load i32, ptr %20, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [1023 x %struct.edge], ptr %219, i64 0, i64 %221
  %223 = getelementptr inbounds %struct.edge, ptr %222, i32 0, i32 0
  %224 = load i32, ptr %223, align 4, !tbaa !17
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [1023 x i32], ptr @lab, i64 0, i64 %225
  %227 = load i32, ptr %226, align 4, !tbaa !5
  %228 = load i32, ptr %19, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %229
  %231 = load i32, ptr %20, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [1023 x %struct.edge], ptr %230, i64 0, i64 %232
  %234 = getelementptr inbounds %struct.edge, ptr %233, i32 0, i32 1
  %235 = load i32, ptr %234, align 4, !tbaa !18
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [1023 x i32], ptr @lab, i64 0, i64 %236
  %238 = load i32, ptr %237, align 4, !tbaa !5
  %239 = add nsw i32 %227, %238
  %240 = load i32, ptr %19, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %241
  %243 = load i32, ptr %20, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [1023 x %struct.edge], ptr %242, i64 0, i64 %244
  %246 = getelementptr inbounds %struct.edge, ptr %245, i32 0, i32 0
  %247 = load i32, ptr %246, align 4, !tbaa !17
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %248
  %250 = load i32, ptr %19, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %251
  %253 = load i32, ptr %20, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [1023 x %struct.edge], ptr %252, i64 0, i64 %254
  %256 = getelementptr inbounds %struct.edge, ptr %255, i32 0, i32 1
  %257 = load i32, ptr %256, align 4, !tbaa !18
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [1023 x %struct.edge], ptr %249, i64 0, i64 %258
  %260 = getelementptr inbounds %struct.edge, ptr %259, i32 0, i32 2
  %261 = load i32, ptr %260, align 4, !tbaa !13
  %262 = mul nsw i32 %261, 2
  %263 = sub nsw i32 %239, %262
  %264 = load i32, ptr %7, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %265
  %267 = load i32, ptr %20, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [1023 x %struct.edge], ptr %266, i64 0, i64 %268
  %270 = getelementptr inbounds %struct.edge, ptr %269, i32 0, i32 0
  %271 = load i32, ptr %270, align 4, !tbaa !17
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [1023 x i32], ptr @lab, i64 0, i64 %272
  %274 = load i32, ptr %273, align 4, !tbaa !5
  %275 = load i32, ptr %7, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %276
  %278 = load i32, ptr %20, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [1023 x %struct.edge], ptr %277, i64 0, i64 %279
  %281 = getelementptr inbounds %struct.edge, ptr %280, i32 0, i32 1
  %282 = load i32, ptr %281, align 4, !tbaa !18
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [1023 x i32], ptr @lab, i64 0, i64 %283
  %285 = load i32, ptr %284, align 4, !tbaa !5
  %286 = add nsw i32 %274, %285
  %287 = load i32, ptr %7, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %288
  %290 = load i32, ptr %20, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [1023 x %struct.edge], ptr %289, i64 0, i64 %291
  %293 = getelementptr inbounds %struct.edge, ptr %292, i32 0, i32 0
  %294 = load i32, ptr %293, align 4, !tbaa !17
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %295
  %297 = load i32, ptr %7, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %298
  %300 = load i32, ptr %20, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [1023 x %struct.edge], ptr %299, i64 0, i64 %301
  %303 = getelementptr inbounds %struct.edge, ptr %302, i32 0, i32 1
  %304 = load i32, ptr %303, align 4, !tbaa !18
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [1023 x %struct.edge], ptr %296, i64 0, i64 %305
  %307 = getelementptr inbounds %struct.edge, ptr %306, i32 0, i32 2
  %308 = load i32, ptr %307, align 4, !tbaa !13
  %309 = mul nsw i32 %308, 2
  %310 = sub nsw i32 %286, %309
  %311 = icmp slt i32 %263, %310
  br i1 %311, label %312, label %337

312:                                              ; preds = %216, %206
  %313 = load i32, ptr %19, align 4, !tbaa !5
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %314
  %316 = load i32, ptr %20, align 4, !tbaa !5
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [1023 x %struct.edge], ptr %315, i64 0, i64 %317
  %319 = load i32, ptr %7, align 4, !tbaa !5
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %320
  %322 = load i32, ptr %20, align 4, !tbaa !5
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [1023 x %struct.edge], ptr %321, i64 0, i64 %323
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %324, ptr align 4 %318, i64 12, i1 false), !tbaa.struct !19
  %325 = load i32, ptr %20, align 4, !tbaa !5
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %326
  %328 = load i32, ptr %19, align 4, !tbaa !5
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [1023 x %struct.edge], ptr %327, i64 0, i64 %329
  %331 = load i32, ptr %20, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %332
  %334 = load i32, ptr %7, align 4, !tbaa !5
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [1023 x %struct.edge], ptr %333, i64 0, i64 %335
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %336, ptr align 4 %330, i64 12, i1 false), !tbaa.struct !19
  br label %337

337:                                              ; preds = %312, %216
  br label %338

338:                                              ; preds = %337
  %339 = load i32, ptr %20, align 4, !tbaa !5
  %340 = add nsw i32 %339, 1
  store i32 %340, ptr %20, align 4, !tbaa !5
  br label %201, !llvm.loop !20

341:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 1, ptr %21, align 4, !tbaa !5
  br label %342

342:                                              ; preds = %365, %341
  %343 = load i32, ptr %21, align 4, !tbaa !5
  %344 = load i32, ptr @n, align 4, !tbaa !5
  %345 = icmp sle i32 %343, %344
  br i1 %345, label %347, label %346

346:                                              ; preds = %342
  store i32 22, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %368

347:                                              ; preds = %342
  %348 = load i32, ptr %19, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %349
  %351 = load i32, ptr %21, align 4, !tbaa !5
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [1023 x i32], ptr %350, i64 0, i64 %352
  %354 = load i32, ptr %353, align 4, !tbaa !5
  %355 = icmp ne i32 %354, 0
  br i1 %355, label %356, label %364

356:                                              ; preds = %347
  %357 = load i32, ptr %19, align 4, !tbaa !5
  %358 = load i32, ptr %7, align 4, !tbaa !5
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %359
  %361 = load i32, ptr %21, align 4, !tbaa !5
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [1023 x i32], ptr %360, i64 0, i64 %362
  store i32 %357, ptr %363, align 4, !tbaa !5
  br label %364

364:                                              ; preds = %356, %347
  br label %365

365:                                              ; preds = %364
  %366 = load i32, ptr %21, align 4, !tbaa !5
  %367 = add nsw i32 %366, 1
  store i32 %367, ptr %21, align 4, !tbaa !5
  br label %342, !llvm.loop !21

368:                                              ; preds = %346
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %369

369:                                              ; preds = %368
  %370 = load i32, ptr %17, align 4, !tbaa !5
  %371 = add nsw i32 %370, 1
  store i32 %371, ptr %17, align 4, !tbaa !5
  br label %184, !llvm.loop !22

372:                                              ; preds = %192
  %373 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z9set_slacki(i32 noundef %373)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 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)) #2 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !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 = !{!14, !6, i64 8}
!14 = !{!"_ZTS4edge", !6, i64 0, !6, i64 4, !6, i64 8}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = !{!14, !6, i64 0}
!18 = !{!14, !6, i64 4}
!19 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.edge = type { i32, i32, i32 }
%"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 }

@g = external dso_local local_unnamed_addr global [1023 x [1023 x %struct.edge]], align 16
@n = external dso_local local_unnamed_addr global i32, align 4
@num = external dso_local local_unnamed_addr global i32, align 4
@lab = external dso_local local_unnamed_addr global [1023 x i32], align 16
@match = external dso_local local_unnamed_addr global [1023 x i32], align 16
@st = external dso_local local_unnamed_addr global [1023 x i32], align 16
@pa = external dso_local local_unnamed_addr global [1023 x i32], align 16
@from = external dso_local local_unnamed_addr global [1023 x [1023 x i32]], align 16
@S = external dso_local local_unnamed_addr global [1023 x i32], align 16
@flower = external dso_local global [1023 x %"class.std::vector"], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9set_slacki(i32 noundef) local_unnamed_addr #0

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4pushi(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 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 #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6set_stii(i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3addiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 %1, ptr %4, align 4, !tbaa !5
  %10 = load i32, ptr @n, align 4, !tbaa !5
  %11 = load i32, ptr @num, align 4, !tbaa !5
  %12 = sext i32 %10 to i64
  %smax = tail call i32 @llvm.smax.i32(i32 %11, i32 %10)
  %wide.trip.count = sext i32 %smax to i64
  br label %13

13:                                               ; preds = %14, %3
  %indvars.iv = phi i64 [ %indvars.iv.next, %14 ], [ %12, %3 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv, %wide.trip.count
  br i1 %exitcond.not, label %.critedge, label %14

14:                                               ; preds = %13
  %15 = getelementptr inbounds [1023 x i32], ptr @st, i64 0, i64 %indvars.iv.next
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %.critedge.thread, label %13, !llvm.loop !9

.critedge:                                        ; preds = %13
  %17 = add nsw i32 %11, 1
  store i32 %17, ptr @num, align 4, !tbaa !5
  br label %.critedge.thread

.critedge.thread:                                 ; preds = %14, %.critedge
  %.072118 = trunc i64 %indvars.iv.next to i32
  %sext = shl i64 %indvars.iv.next, 32
  %18 = ashr exact i64 %sext, 32
  %19 = getelementptr inbounds [1023 x i32], ptr @lab, i64 0, i64 %18
  store i32 0, ptr %19, align 4, !tbaa !5
  %20 = getelementptr inbounds [1023 x i32], ptr @S, i64 0, i64 %18
  store i32 0, ptr %20, align 4, !tbaa !5
  %21 = sext i32 %1 to i64
  %22 = getelementptr inbounds [1023 x i32], ptr @match, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = getelementptr inbounds [1023 x i32], ptr @match, i64 0, i64 %18
  store i32 %23, ptr %24, align 4, !tbaa !5
  %25 = getelementptr inbounds [1023 x %"class.std::vector"], ptr @flower, i64 0, i64 %18
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 %0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %.not7992 = icmp eq i32 %26, %0
  br i1 %.not7992, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.critedge.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %27 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  store ptr %27, ptr %7, align 8
  %28 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef 1) #7
  %29 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %28, ptr %29)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 %2, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %.not8093 = icmp eq i32 %30, %2
  br i1 %.not8093, label %._crit_edge96, label %.lr.ph95

.lr.ph:                                           ; preds = %.critedge.thread, %.lr.ph
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %31 = load i32, ptr %5, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [1023 x i32], ptr @match, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [1023 x i32], ptr @st, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  store i32 %37, ptr %6, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %38 = load i32, ptr %6, align 4, !tbaa !5
  call void @_Z4pushi(i32 noundef %38)
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [1023 x i32], ptr @pa, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [1023 x i32], ptr @st, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  store i32 %45, ptr %5, align 4, !tbaa !5
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %.not79 = icmp eq i32 %45, %46
  br i1 %.not79, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge96:                                    ; preds = %.lr.ph95, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @_Z6set_stii(i32 noundef %.072118, i32 noundef %.072118)
  %47 = load i32, ptr @num, align 4, !tbaa !5
  %.not8197 = icmp slt i32 %47, 1
  br i1 %.not8197, label %.preheader88, label %.lr.ph100.preheader

.lr.ph100.preheader:                              ; preds = %._crit_edge96
  %48 = zext nneg i32 %47 to i64
  %xtraiter = and i64 %48, 1
  %49 = icmp eq i32 %47, 1
  br i1 %49, label %.preheader88.loopexit.unr-lcssa, label %.lr.ph100.preheader.new

.lr.ph100.preheader.new:                          ; preds = %.lr.ph100.preheader
  %unroll_iter = and i64 %48, 2147483646
  br label %.lr.ph100

.lr.ph95:                                         ; preds = %._crit_edge, %.lr.ph95
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %50 = load i32, ptr %8, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [1023 x i32], ptr @match, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [1023 x i32], ptr @st, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  store i32 %56, ptr %9, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %57 = load i32, ptr %9, align 4, !tbaa !5
  call void @_Z4pushi(i32 noundef %57)
  %58 = load i32, ptr %9, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [1023 x i32], ptr @pa, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [1023 x i32], ptr @st, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  store i32 %64, ptr %8, align 4, !tbaa !5
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %.not80 = icmp eq i32 %64, %65
  br i1 %.not80, label %._crit_edge96, label %.lr.ph95, !llvm.loop !12

.preheader88.loopexit.unr-lcssa:                  ; preds = %.lr.ph100, %.lr.ph100.preheader
  %indvars.iv120.unr = phi i64 [ 1, %.lr.ph100.preheader ], [ %indvars.iv.next121.1, %.lr.ph100 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader88, label %.lr.ph100.epil

.lr.ph100.epil:                                   ; preds = %.preheader88.loopexit.unr-lcssa
  %66 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %indvars.iv120.unr, i64 %18, i32 2
  store i32 0, ptr %66, align 4, !tbaa !13
  %67 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %18, i64 %indvars.iv120.unr, i32 2
  store i32 0, ptr %67, align 4, !tbaa !13
  br label %.preheader88

.preheader88:                                     ; preds = %.lr.ph100.epil, %.preheader88.loopexit.unr-lcssa, %._crit_edge96
  %68 = load i32, ptr @n, align 4, !tbaa !5
  %.not82101 = icmp slt i32 %68, 1
  br i1 %.not82101, label %.preheader87, label %.lr.ph103.preheader

.lr.ph103.preheader:                              ; preds = %.preheader88
  %69 = mul nsw i64 %18, 4092
  %70 = getelementptr i8, ptr @from, i64 %69
  %scevgep = getelementptr i8, ptr %70, i64 4
  %71 = zext nneg i32 %68 to i64
  %72 = shl nuw nsw i64 %71, 2
  call void @llvm.memset.p0.i64(ptr align 4 %scevgep, i8 0, i64 %72, i1 false), !tbaa !5
  br label %.preheader87

.lr.ph100:                                        ; preds = %.lr.ph100, %.lr.ph100.preheader.new
  %indvars.iv120 = phi i64 [ 1, %.lr.ph100.preheader.new ], [ %indvars.iv.next121.1, %.lr.ph100 ]
  %niter = phi i64 [ 0, %.lr.ph100.preheader.new ], [ %niter.next.1, %.lr.ph100 ]
  %73 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %indvars.iv120, i64 %18, i32 2
  store i32 0, ptr %73, align 4, !tbaa !13
  %74 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %18, i64 %indvars.iv120, i32 2
  store i32 0, ptr %74, align 4, !tbaa !13
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %75 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %indvars.iv.next121, i64 %18, i32 2
  store i32 0, ptr %75, align 4, !tbaa !13
  %76 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %18, i64 %indvars.iv.next121, i32 2
  store i32 0, ptr %76, align 4, !tbaa !13
  %indvars.iv.next121.1 = add nuw nsw i64 %indvars.iv120, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader88.loopexit.unr-lcssa, label %.lr.ph100, !llvm.loop !15

.preheader87:                                     ; preds = %.lr.ph103.preheader, %.preheader88
  %77 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  %.not115 = icmp eq i64 %77, 0
  br i1 %.not115, label %._crit_edge114, label %.lr.ph113.preheader

.lr.ph113.preheader:                              ; preds = %.preheader87
  %78 = mul nsw i64 %18, 4092
  br label %.lr.ph113

._crit_edge114:                                   ; preds = %._crit_edge111, %.preheader87
  call void @_Z9set_slacki(i32 noundef %.072118)
  ret void

.lr.ph113:                                        ; preds = %.lr.ph113.preheader, %._crit_edge111
  %indvars.iv138 = phi i64 [ %indvars.iv.next139, %._crit_edge111 ], [ 0, %.lr.ph113.preheader ]
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %indvars.iv138) #7
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = load i32, ptr @num, align 4, !tbaa !5
  %.not83104 = icmp slt i32 %81, 1
  br i1 %.not83104, label %.preheader, label %.lr.ph107

.lr.ph107:                                        ; preds = %.lr.ph113
  %82 = sext i32 %80 to i64
  %83 = add nuw i32 %81, 1
  %wide.trip.count131 = zext i32 %83 to i64
  br label %124

.preheader:                                       ; preds = %164, %.lr.ph113
  %84 = load i32, ptr @n, align 4, !tbaa !5
  %.not84108 = icmp slt i32 %84, 1
  br i1 %.not84108, label %._crit_edge111, label %.lr.ph110

.lr.ph110:                                        ; preds = %.preheader
  %85 = sext i32 %80 to i64
  %86 = add nuw i32 %84, 1
  %wide.trip.count136 = zext i32 %86 to i64
  %87 = zext nneg i32 %84 to i64
  %min.iters.check = icmp ult i32 %84, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph110
  %indvars.iv133.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %.lr.ph110 ], [ %ind.end, %middle.block ]
  %88 = zext nneg i32 %84 to i64
  %89 = and i32 %84, 1
  %lcmp.mod163.not = icmp eq i32 %89, 0
  br i1 %lcmp.mod163.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %90 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %85, i64 %indvars.iv133.ph
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %.not85.prol = icmp eq i32 %91, 0
  br i1 %.not85.prol, label %scalar.ph.prol.loopexit.unr-lcssa, label %92

92:                                               ; preds = %scalar.ph.prol
  %93 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %18, i64 %indvars.iv133.ph
  store i32 %80, ptr %93, align 4, !tbaa !5
  br label %scalar.ph.prol.loopexit.unr-lcssa

scalar.ph.prol.loopexit.unr-lcssa:                ; preds = %92, %scalar.ph.prol
  %indvars.iv.next134.prol = add nuw nsw i64 %indvars.iv133.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol.loopexit.unr-lcssa, %scalar.ph.preheader
  %indvars.iv133.unr = phi i64 [ %indvars.iv133.ph, %scalar.ph.preheader ], [ %indvars.iv.next134.prol, %scalar.ph.prol.loopexit.unr-lcssa ]
  %94 = icmp eq i64 %indvars.iv133.ph, %88
  br i1 %94, label %._crit_edge111, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph110
  %.neg = mul nsw i64 %85, -4092
  %95 = add nsw i64 %.neg, %78
  %diff.check = icmp ult i64 %95, 32
  br i1 %diff.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %87, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %pred.store.continue159, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %pred.store.continue159 ]
  %offset.idx = or disjoint i64 %index, 1
  %96 = or disjoint i64 %index, 5
  %97 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %85, i64 %offset.idx
  %98 = getelementptr inbounds i8, ptr %97, i64 16
  %wide.load = load <4 x i32>, ptr %97, align 4, !tbaa !5
  %wide.load145 = load <4 x i32>, ptr %98, align 4, !tbaa !5
  %99 = icmp ne <4 x i32> %wide.load, zeroinitializer
  %100 = icmp ne <4 x i32> %wide.load145, zeroinitializer
  %101 = extractelement <4 x i1> %99, i64 0
  br i1 %101, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %102 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %18, i64 %offset.idx
  store i32 %80, ptr %102, align 4, !tbaa !5
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %103 = extractelement <4 x i1> %99, i64 1
  br i1 %103, label %pred.store.if146, label %pred.store.continue147

pred.store.if146:                                 ; preds = %pred.store.continue
  %104 = or disjoint i64 %index, 2
  %105 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %18, i64 %104
  store i32 %80, ptr %105, align 4, !tbaa !5
  br label %pred.store.continue147

pred.store.continue147:                           ; preds = %pred.store.if146, %pred.store.continue
  %106 = extractelement <4 x i1> %99, i64 2
  br i1 %106, label %pred.store.if148, label %pred.store.continue149

pred.store.if148:                                 ; preds = %pred.store.continue147
  %107 = or disjoint i64 %index, 3
  %108 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %18, i64 %107
  store i32 %80, ptr %108, align 4, !tbaa !5
  br label %pred.store.continue149

pred.store.continue149:                           ; preds = %pred.store.if148, %pred.store.continue147
  %109 = extractelement <4 x i1> %99, i64 3
  br i1 %109, label %pred.store.if150, label %pred.store.continue151

pred.store.if150:                                 ; preds = %pred.store.continue149
  %110 = or disjoint i64 %index, 4
  %111 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %18, i64 %110
  store i32 %80, ptr %111, align 4, !tbaa !5
  br label %pred.store.continue151

pred.store.continue151:                           ; preds = %pred.store.if150, %pred.store.continue149
  %112 = extractelement <4 x i1> %100, i64 0
  br i1 %112, label %pred.store.if152, label %pred.store.continue153

pred.store.if152:                                 ; preds = %pred.store.continue151
  %113 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %18, i64 %96
  store i32 %80, ptr %113, align 4, !tbaa !5
  br label %pred.store.continue153

pred.store.continue153:                           ; preds = %pred.store.if152, %pred.store.continue151
  %114 = extractelement <4 x i1> %100, i64 1
  br i1 %114, label %pred.store.if154, label %pred.store.continue155

pred.store.if154:                                 ; preds = %pred.store.continue153
  %115 = or disjoint i64 %index, 6
  %116 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %18, i64 %115
  store i32 %80, ptr %116, align 4, !tbaa !5
  br label %pred.store.continue155

pred.store.continue155:                           ; preds = %pred.store.if154, %pred.store.continue153
  %117 = extractelement <4 x i1> %100, i64 2
  br i1 %117, label %pred.store.if156, label %pred.store.continue157

pred.store.if156:                                 ; preds = %pred.store.continue155
  %118 = or disjoint i64 %index, 7
  %119 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %18, i64 %118
  store i32 %80, ptr %119, align 4, !tbaa !5
  br label %pred.store.continue157

pred.store.continue157:                           ; preds = %pred.store.if156, %pred.store.continue155
  %120 = extractelement <4 x i1> %100, i64 3
  br i1 %120, label %pred.store.if158, label %pred.store.continue159

pred.store.if158:                                 ; preds = %pred.store.continue157
  %121 = add i64 %index, 8
  %122 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %18, i64 %121
  store i32 %80, ptr %122, align 4, !tbaa !5
  br label %pred.store.continue159

pred.store.continue159:                           ; preds = %pred.store.if158, %pred.store.continue157
  %index.next = add nuw i64 %index, 8
  %123 = icmp eq i64 %index.next, %n.vec
  br i1 %123, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %pred.store.continue159
  %cmp.n = icmp eq i64 %n.vec, %87
  br i1 %cmp.n, label %._crit_edge111, label %scalar.ph.preheader

124:                                              ; preds = %.lr.ph107, %164
  %indvars.iv128 = phi i64 [ 1, %.lr.ph107 ], [ %indvars.iv.next129, %164 ]
  %125 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %18, i64 %indvars.iv128
  %126 = getelementptr inbounds i8, ptr %125, i64 8
  %127 = load i32, ptr %126, align 4, !tbaa !13
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %160, label %129

129:                                              ; preds = %124
  %130 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %82, i64 %indvars.iv128
  %131 = load i32, ptr %130, align 4, !tbaa !19
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [1023 x i32], ptr @lab, i64 0, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = getelementptr inbounds i8, ptr %130, i64 4
  %136 = load i32, ptr %135, align 4, !tbaa !20
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [1023 x i32], ptr @lab, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = add nsw i32 %139, %134
  %141 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %132, i64 %137, i32 2
  %142 = load i32, ptr %141, align 4, !tbaa !13
  %143 = shl i32 %142, 1
  %144 = sub i32 %140, %143
  %145 = load i32, ptr %125, align 4, !tbaa !19
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [1023 x i32], ptr @lab, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = getelementptr inbounds i8, ptr %125, i64 4
  %150 = load i32, ptr %149, align 4, !tbaa !20
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [1023 x i32], ptr @lab, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = add nsw i32 %153, %148
  %155 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %146, i64 %151, i32 2
  %156 = load i32, ptr %155, align 4, !tbaa !13
  %157 = shl i32 %156, 1
  %158 = sub i32 %154, %157
  %159 = icmp slt i32 %144, %158
  br i1 %159, label %160, label %164

160:                                              ; preds = %129, %124
  %161 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %82, i64 %indvars.iv128
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %125, ptr noundef nonnull align 4 dereferenceable(12) %161, i64 12, i1 false), !tbaa.struct !21
  %162 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %indvars.iv128, i64 %82
  %163 = getelementptr inbounds [1023 x [1023 x %struct.edge]], ptr @g, i64 0, i64 %indvars.iv128, i64 %18
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %163, ptr noundef nonnull align 4 dereferenceable(12) %162, i64 12, i1 false), !tbaa.struct !21
  br label %164

164:                                              ; preds = %129, %160
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %exitcond132.not = icmp eq i64 %indvars.iv.next129, %wide.trip.count131
  br i1 %exitcond132.not, label %.preheader, label %124, !llvm.loop !22

._crit_edge111:                                   ; preds = %scalar.ph.prol.loopexit, %175, %middle.block, %.preheader
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %165 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  %166 = icmp ugt i64 %165, %indvars.iv.next139
  br i1 %166, label %.lr.ph113, label %._crit_edge114, !llvm.loop !23

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %175
  %indvars.iv133 = phi i64 [ %indvars.iv.next134.1, %175 ], [ %indvars.iv133.unr, %scalar.ph.prol.loopexit ]
  %167 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %85, i64 %indvars.iv133
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %.not85 = icmp eq i32 %168, 0
  br i1 %.not85, label %scalar.ph.1, label %169

169:                                              ; preds = %scalar.ph
  %170 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %18, i64 %indvars.iv133
  store i32 %80, ptr %170, align 4, !tbaa !5
  br label %scalar.ph.1

scalar.ph.1:                                      ; preds = %scalar.ph, %169
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  %171 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %85, i64 %indvars.iv.next134
  %172 = load i32, ptr %171, align 4, !tbaa !5
  %.not85.1 = icmp eq i32 %172, 0
  br i1 %.not85.1, label %175, label %173

173:                                              ; preds = %scalar.ph.1
  %174 = getelementptr inbounds [1023 x [1023 x i32]], ptr @from, i64 0, i64 %18, i64 %indvars.iv.next134
  store i32 %80, ptr %174, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %173, %scalar.ph.1
  %indvars.iv.next134.1 = add nuw nsw i64 %indvars.iv133, 2
  %exitcond137.not.1 = icmp eq i64 %indvars.iv.next134.1, %wide.trip.count136
  br i1 %exitcond137.not.1, label %._crit_edge111, label %scalar.ph, !llvm.loop !24
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 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 #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"int", !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 = !{!14, !6, i64 8}
!14 = !{!"_ZTS4edge", !6, i64 0, !6, i64 4, !6, i64 8}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !17, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = !{!14, !6, i64 0}
!20 = !{!14, !6, i64 4}
!21 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10, !17}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass