; LLVM IR from conradlee/network-community-benchmark :: comm_algs/louvain/graph_binary.ll (ZN5GraphC2Eiiii)

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

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

; Function Attrs: nounwind
declare i32 @rand() #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) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2Eiiii(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca ptr, align 8
  %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 double, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  %28 = load ptr, ptr %6, align 8
  %29 = call i32 @getpid() #5
  call void @srand(i32 noundef %29) #5
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = mul nsw i32 %30, %31
  %33 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
  store i32 %32, ptr %33, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  %34 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
  %35 = load i32, ptr %34, align 8, !tbaa !11
  %36 = sext i32 %35 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %36, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %37 unwind label %44

37:                                               ; preds = %5
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %56, %37
  %39 = load i32, ptr %15, align 4, !tbaa !9
  %40 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
  %41 = load i32, ptr %40, align 8, !tbaa !11
  %42 = icmp slt i32 %39, %41
  br i1 %42, label %48, label %43

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

44:                                               ; preds = %5
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %13, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %14, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  br label %276

48:                                               ; preds = %38
  %49 = load i32, ptr %15, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %50) #5
  %52 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !11
  %54 = sext i32 %53 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %54, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %55 unwind label %59

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

56:                                               ; preds = %55
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %15, align 4, !tbaa !9
  br label %38, !llvm.loop !13

59:                                               ; preds = %48
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %13, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  br label %276

63:                                               ; preds = %43
  %64 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 1
  store i32 0, ptr %64, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %154, %63
  %66 = load i32, ptr %17, align 4, !tbaa !9
  %67 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !11
  %69 = icmp slt i32 %66, %68
  br i1 %69, label %71, label %70

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

71:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %19, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %150, %71
  %75 = load i32, ptr %19, align 4, !tbaa !9
  %76 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
  %77 = load i32, ptr %76, align 8, !tbaa !11
  %78 = icmp slt i32 %75, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %74
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %153

80:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %81 = call i32 @rand() #5
  %82 = sitofp i32 %81 to double
  %83 = fmul double %82, 1.000000e+00
  %84 = fdiv double %83, 0x41DFFFFFFFC00000
  store double %84, ptr %20, align 8, !tbaa !16
  %85 = load i32, ptr %17, align 4, !tbaa !9
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = sdiv i32 %85, %86
  %88 = load i32, ptr %19, align 4, !tbaa !9
  %89 = load i32, ptr %7, align 4, !tbaa !9
  %90 = sdiv i32 %88, %89
  %91 = icmp eq i32 %87, %90
  br i1 %91, label %92, label %119

92:                                               ; preds = %80
  %93 = load double, ptr %20, align 8, !tbaa !16
  %94 = load i32, ptr %8, align 4, !tbaa !9
  %95 = sitofp i32 %94 to double
  %96 = fmul double %95, 1.000000e+00
  %97 = load i32, ptr %7, align 4, !tbaa !9
  %98 = sitofp i32 %97 to double
  %99 = fsub double %98, 1.000000e+00
  %100 = fdiv double %96, %99
  %101 = fcmp ole double %93, %100
  br i1 %101, label %102, label %118

102:                                              ; preds = %92
  %103 = load i32, ptr %19, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %104) #5
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %107) #5
  store i32 1, ptr %108, align 4, !tbaa !9
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %110) #5
  %112 = load i32, ptr %19, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %113) #5
  store i32 1, ptr %114, align 4, !tbaa !9
  %115 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 1
  %116 = load i32, ptr %115, align 4, !tbaa !15
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %115, align 4, !tbaa !15
  br label %118

118:                                              ; preds = %102, %92
  br label %149

119:                                              ; preds = %80
  %120 = load double, ptr %20, align 8, !tbaa !16
  %121 = load i32, ptr %10, align 4, !tbaa !9
  %122 = sitofp i32 %121 to double
  %123 = fmul double %122, 1.000000e+00
  %124 = load i32, ptr %7, align 4, !tbaa !9
  %125 = sitofp i32 %124 to double
  %126 = load i32, ptr %9, align 4, !tbaa !9
  %127 = sitofp i32 %126 to double
  %128 = fsub double %127, 1.000000e+00
  %129 = fmul double %125, %128
  %130 = fdiv double %123, %129
  %131 = fcmp ole double %120, %130
  br i1 %131, label %132, label %148

132:                                              ; preds = %119
  %133 = load i32, ptr %19, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %134) #5
  %136 = load i32, ptr %17, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %137) #5
  store i32 1, ptr %138, align 4, !tbaa !9
  %139 = load i32, ptr %17, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %140) #5
  %142 = load i32, ptr %19, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %143) #5
  store i32 1, ptr %144, align 4, !tbaa !9
  %145 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 1
  %146 = load i32, ptr %145, align 4, !tbaa !15
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %145, align 4, !tbaa !15
  br label %148

148:                                              ; preds = %132, %119
  br label %149

149:                                              ; preds = %148, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %19, align 4, !tbaa !9
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %19, align 4, !tbaa !9
  br label %74, !llvm.loop !18

153:                                              ; preds = %79
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %17, align 4, !tbaa !9
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %17, align 4, !tbaa !9
  br label %65, !llvm.loop !19

157:                                              ; preds = %70
  %158 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 1
  %159 = load i32, ptr %158, align 4, !tbaa !15
  %160 = mul nsw i32 2, %159
  %161 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 2
  store i32 %160, ptr %161, align 8, !tbaa !20
  %162 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 5
  store ptr null, ptr %162, align 8, !tbaa !21
  %163 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
  %164 = load i32, ptr %163, align 8, !tbaa !11
  %165 = sext i32 %164 to i64
  %166 = mul nsw i64 %165, 4
  %167 = call noalias ptr @malloc(i64 noundef %166) #6
  %168 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 3
  store ptr %167, ptr %168, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %202, %157
  %170 = load i32, ptr %21, align 4, !tbaa !9
  %171 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
  %172 = load i32, ptr %171, align 8, !tbaa !11
  %173 = icmp slt i32 %170, %172
  br i1 %173, label %175, label %174

174:                                              ; preds = %169
  store i32 11, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %205

175:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %176

176:                                              ; preds = %192, %175
  %177 = load i32, ptr %23, align 4, !tbaa !9
  %178 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
  %179 = load i32, ptr %178, align 8, !tbaa !11
  %180 = icmp slt i32 %177, %179
  br i1 %180, label %182, label %181

181:                                              ; preds = %176
  store i32 14, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %195

182:                                              ; preds = %176
  %183 = load i32, ptr %21, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %184) #5
  %186 = load i32, ptr %23, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %185, i64 noundef %187) #5
  %189 = load i32, ptr %188, align 4, !tbaa !9
  %190 = load i32, ptr %22, align 4, !tbaa !9
  %191 = add nsw i32 %190, %189
  store i32 %191, ptr %22, align 4, !tbaa !9
  br label %192

192:                                              ; preds = %182
  %193 = load i32, ptr %23, align 4, !tbaa !9
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %23, align 4, !tbaa !9
  br label %176, !llvm.loop !23

195:                                              ; preds = %181
  %196 = load i32, ptr %22, align 4, !tbaa !9
  %197 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 3
  %198 = load ptr, ptr %197, align 8, !tbaa !22
  %199 = load i32, ptr %21, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i32, ptr %198, i64 %200
  store i32 %196, ptr %201, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %202

202:                                              ; preds = %195
  %203 = load i32, ptr %21, align 4, !tbaa !9
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %21, align 4, !tbaa !9
  br label %169, !llvm.loop !24

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

206:                                              ; preds = %227, %205
  %207 = load i32, ptr %24, align 4, !tbaa !9
  %208 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
  %209 = load i32, ptr %208, align 8, !tbaa !11
  %210 = icmp slt i32 %207, %209
  br i1 %210, label %212, label %211

211:                                              ; preds = %206
  store i32 17, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %230

212:                                              ; preds = %206
  %213 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 3
  %214 = load ptr, ptr %213, align 8, !tbaa !22
  %215 = load i32, ptr %24, align 4, !tbaa !9
  %216 = sub nsw i32 %215, 1
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds i32, ptr %214, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !9
  %220 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 3
  %221 = load ptr, ptr %220, align 8, !tbaa !22
  %222 = load i32, ptr %24, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds i32, ptr %221, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !9
  %226 = add nsw i32 %225, %219
  store i32 %226, ptr %224, align 4, !tbaa !9
  br label %227

227:                                              ; preds = %212
  %228 = load i32, ptr %24, align 4, !tbaa !9
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %24, align 4, !tbaa !9
  br label %206, !llvm.loop !25

230:                                              ; preds = %211
  %231 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 1
  %232 = load i32, ptr %231, align 4, !tbaa !15
  %233 = sext i32 %232 to i64
  %234 = mul nsw i64 %233, 8
  %235 = call noalias ptr @malloc(i64 noundef %234) #6
  %236 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 4
  store ptr %235, ptr %236, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %237

237:                                              ; preds = %272, %230
  %238 = load i32, ptr %26, align 4, !tbaa !9
  %239 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
  %240 = load i32, ptr %239, align 8, !tbaa !11
  %241 = icmp slt i32 %238, %240
  br i1 %241, label %243, label %242

242:                                              ; preds = %237
  store i32 20, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %275

243:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %268, %243
  %245 = load i32, ptr %27, align 4, !tbaa !9
  %246 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 0
  %247 = load i32, ptr %246, align 8, !tbaa !11
  %248 = icmp slt i32 %245, %247
  br i1 %248, label %250, label %249

249:                                              ; preds = %244
  store i32 23, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %271

250:                                              ; preds = %244
  %251 = load i32, ptr %26, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %252) #5
  %254 = load i32, ptr %27, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %253, i64 noundef %255) #5
  %257 = load i32, ptr %256, align 4, !tbaa !9
  %258 = icmp eq i32 %257, 1
  br i1 %258, label %259, label %267

259:                                              ; preds = %250
  %260 = load i32, ptr %27, align 4, !tbaa !9
  %261 = getelementptr inbounds %class.Graph, ptr %28, i32 0, i32 4
  %262 = load ptr, ptr %261, align 8, !tbaa !26
  %263 = load i32, ptr %25, align 4, !tbaa !9
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %25, align 4, !tbaa !9
  %265 = sext i32 %263 to i64
  %266 = getelementptr inbounds i32, ptr %262, i64 %265
  store i32 %260, ptr %266, align 4, !tbaa !9
  br label %267

267:                                              ; preds = %259, %250
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %27, align 4, !tbaa !9
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %27, align 4, !tbaa !9
  br label %244, !llvm.loop !27

271:                                              ; preds = %249
  br label %272

272:                                              ; preds = %271
  %273 = load i32, ptr %26, align 4, !tbaa !9
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %26, align 4, !tbaa !9
  br label %237, !llvm.loop !28

275:                                              ; preds = %242
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  ret void

276:                                              ; preds = %59, %44
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  br label %277

277:                                              ; preds = %276
  %278 = load ptr, ptr %13, align 8
  %279 = load i32, ptr %14, align 4
  %280 = insertvalue { ptr, i32 } poison, ptr %278, 0
  %281 = insertvalue { ptr, i32 } %280, i32 %279, 1
  resume { ptr, i32 } %281
}

; Function Attrs: nounwind
declare i32 @getpid() #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS5Graph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!12, !10, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{!12, !10, i64 8}
!21 = !{!12, !6, i64 32}
!22 = !{!12, !6, i64 16}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = !{!12, !6, i64 24}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14}


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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

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

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #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 #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2Eiiii(ptr nocapture noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca i32, align 4
  %9 = tail call i32 @getpid() #5
  tail call void @srand(i32 noundef %9) #5
  %10 = mul nsw i32 %3, %1
  store i32 %10, ptr %0, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  %11 = sext i32 %10 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %11, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %12 unwind label %29

12:                                               ; preds = %5
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  %13 = load i32, ptr %0, align 8, !tbaa !5
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 0, ptr %15, align 4, !tbaa !11
  br label %._crit_edge.._crit_edge73_crit_edge

._crit_edge:                                      ; preds = %34
  %16 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 0, ptr %16, align 4, !tbaa !11
  %17 = icmp sgt i32 %35, 0
  br i1 %17, label %.lr.ph72, label %._crit_edge.._crit_edge73_crit_edge

._crit_edge.._crit_edge73_crit_edge:              ; preds = %._crit_edge.thread, %._crit_edge
  %18 = phi ptr [ %15, %._crit_edge.thread ], [ %16, %._crit_edge ]
  %19 = phi i32 [ %13, %._crit_edge.thread ], [ %35, %._crit_edge ]
  %.pre120 = sext i32 %19 to i64
  br label %._crit_edge73

.lr.ph72:                                         ; preds = %._crit_edge
  %20 = sitofp i32 %4 to double
  %21 = sitofp i32 %1 to double
  %22 = sitofp i32 %3 to double
  %23 = fadd double %22, -1.000000e+00
  %24 = fmul double %23, %21
  %25 = fdiv double %20, %24
  %26 = sitofp i32 %2 to double
  %27 = fadd double %21, -1.000000e+00
  %28 = fdiv double %26, %27
  br label %52

29:                                               ; preds = %5
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  br label %126

.lr.ph:                                           ; preds = %12, %34
  %indvars.iv = phi i64 [ %indvars.iv.next, %34 ], [ 0, %12 ]
  %31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
  %32 = load i32, ptr %0, align 8, !tbaa !5
  %33 = sext i32 %32 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  store i32 0, ptr %8, align 4, !tbaa !12
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %33, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %34 unwind label %38

34:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = load i32, ptr %0, align 8, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = icmp slt i64 %indvars.iv.next, %36
  br i1 %37, label %.lr.ph, label %._crit_edge, !llvm.loop !13

38:                                               ; preds = %.lr.ph
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  br label %126

.loopexit.loopexit:                               ; preds = %75
  %.pre119 = sext i32 %76 to i64
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %52
  %.pre-phi = phi i64 [ %.pre119, %.loopexit.loopexit ], [ %54, %52 ]
  %40 = phi i32 [ %76, %.loopexit.loopexit ], [ %53, %52 ]
  %41 = icmp slt i64 %indvars.iv.next101, %.pre-phi
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  br i1 %41, label %52, label %._crit_edge73.loopexit, !llvm.loop !15

._crit_edge73.loopexit:                           ; preds = %.loopexit
  %.pre = load i32, ptr %16, align 4, !tbaa !11
  %42 = shl nsw i32 %.pre, 1
  br label %._crit_edge73

._crit_edge73:                                    ; preds = %._crit_edge.._crit_edge73_crit_edge, %._crit_edge73.loopexit
  %43 = phi ptr [ %18, %._crit_edge.._crit_edge73_crit_edge ], [ %16, %._crit_edge73.loopexit ]
  %.pre-phi121 = phi i64 [ %.pre120, %._crit_edge.._crit_edge73_crit_edge ], [ %.pre-phi, %._crit_edge73.loopexit ]
  %44 = phi i32 [ 0, %._crit_edge.._crit_edge73_crit_edge ], [ %42, %._crit_edge73.loopexit ]
  %45 = phi i32 [ %19, %._crit_edge.._crit_edge73_crit_edge ], [ %40, %._crit_edge73.loopexit ]
  %46 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %44, ptr %46, align 8, !tbaa !16
  %47 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr null, ptr %47, align 8, !tbaa !17
  %48 = shl nsw i64 %.pre-phi121, 2
  %49 = call noalias ptr @malloc(i64 noundef %48) #6
  %50 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %49, ptr %50, align 8, !tbaa !18
  %51 = icmp sgt i32 %45, 0
  br i1 %51, label %.preheader65, label %._crit_edge82

52:                                               ; preds = %.lr.ph72, %.loopexit
  %53 = phi i32 [ %35, %.lr.ph72 ], [ %40, %.loopexit ]
  %indvars.iv100 = phi i64 [ 0, %.lr.ph72 ], [ %indvars.iv.next101, %.loopexit ]
  %indvars.iv95 = phi i64 [ 1, %.lr.ph72 ], [ %indvars.iv.next96, %.loopexit ]
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %54 = sext i32 %53 to i64
  %55 = icmp slt i64 %indvars.iv.next101, %54
  br i1 %55, label %.lr.ph69, label %.loopexit

.lr.ph69:                                         ; preds = %52
  %56 = trunc nuw nsw i64 %indvars.iv100 to i32
  br label %57

57:                                               ; preds = %.lr.ph69, %75
  %indvars.iv97 = phi i64 [ %indvars.iv95, %.lr.ph69 ], [ %indvars.iv.next98, %75 ]
  %58 = call i32 @rand() #5
  %59 = sitofp i32 %58 to double
  %60 = fdiv double %59, 0x41DFFFFFFFC00000
  %61 = sdiv i32 %56, %1
  %62 = trunc nuw nsw i64 %indvars.iv97 to i32
  %63 = sdiv i32 %62, %1
  %64 = icmp eq i32 %61, %63
  br i1 %64, label %65, label %67

65:                                               ; preds = %57
  %66 = fcmp ugt double %60, %28
  br i1 %66, label %75, label %.sink.split

67:                                               ; preds = %57
  %68 = fcmp ugt double %60, %25
  br i1 %68, label %75, label %.sink.split

.sink.split:                                      ; preds = %67, %65
  %69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv97) #5
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %indvars.iv100) #5
  store i32 1, ptr %70, align 4, !tbaa !12
  %71 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv100) #5
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %indvars.iv97) #5
  store i32 1, ptr %72, align 4, !tbaa !12
  %73 = load i32, ptr %16, align 4, !tbaa !11
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %16, align 4, !tbaa !11
  br label %75

75:                                               ; preds = %.sink.split, %67, %65
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %76 = load i32, ptr %0, align 8, !tbaa !5
  %77 = trunc nuw i64 %indvars.iv.next98 to i32
  %78 = icmp sgt i32 %76, %77
  br i1 %78, label %57, label %.loopexit.loopexit, !llvm.loop !19

.preheader65:                                     ; preds = %._crit_edge73, %._crit_edge77
  %79 = phi ptr [ %83, %._crit_edge77 ], [ %49, %._crit_edge73 ]
  %80 = phi i32 [ %85, %._crit_edge77 ], [ %45, %._crit_edge73 ]
  %indvars.iv106 = phi i64 [ %indvars.iv.next107, %._crit_edge77 ], [ 0, %._crit_edge73 ]
  %81 = icmp sgt i32 %80, 0
  br i1 %81, label %.lr.ph76, label %._crit_edge77

.preheader64:                                     ; preds = %._crit_edge77
  %82 = icmp sgt i32 %85, 1
  br i1 %82, label %.lr.ph81.preheader, label %._crit_edge82

.lr.ph81.preheader:                               ; preds = %.preheader64
  %load_initial = load i32, ptr %83, align 4
  br label %.lr.ph81

._crit_edge77.loopexit:                           ; preds = %.lr.ph76
  %.pre118 = load ptr, ptr %50, align 8, !tbaa !18
  br label %._crit_edge77

._crit_edge77:                                    ; preds = %._crit_edge77.loopexit, %.preheader65
  %83 = phi ptr [ %79, %.preheader65 ], [ %.pre118, %._crit_edge77.loopexit ]
  %.056.lcssa = phi i32 [ 0, %.preheader65 ], [ %91, %._crit_edge77.loopexit ]
  %84 = getelementptr inbounds i32, ptr %83, i64 %indvars.iv106
  store i32 %.056.lcssa, ptr %84, align 4, !tbaa !12
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %85 = load i32, ptr %0, align 8, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = icmp slt i64 %indvars.iv.next107, %86
  br i1 %87, label %.preheader65, label %.preheader64, !llvm.loop !20

.lr.ph76:                                         ; preds = %.preheader65, %.lr.ph76
  %indvars.iv103 = phi i64 [ %indvars.iv.next104, %.lr.ph76 ], [ 0, %.preheader65 ]
  %.05674 = phi i32 [ %91, %.lr.ph76 ], [ 0, %.preheader65 ]
  %88 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv106) #5
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %indvars.iv103) #5
  %90 = load i32, ptr %89, align 4, !tbaa !12
  %91 = add nsw i32 %90, %.05674
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %92 = load i32, ptr %0, align 8, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = icmp slt i64 %indvars.iv.next104, %93
  br i1 %94, label %.lr.ph76, label %._crit_edge77.loopexit, !llvm.loop !21

._crit_edge82:                                    ; preds = %.lr.ph81, %._crit_edge73, %.preheader64
  %95 = phi i32 [ %85, %.preheader64 ], [ %45, %._crit_edge73 ], [ %105, %.lr.ph81 ]
  %96 = load i32, ptr %43, align 4, !tbaa !11
  %97 = sext i32 %96 to i64
  %98 = shl nsw i64 %97, 3
  %99 = call noalias ptr @malloc(i64 noundef %98) #6
  %100 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %99, ptr %100, align 8, !tbaa !22
  %101 = icmp sgt i32 %95, 0
  br i1 %101, label %.preheader, label %._crit_edge90

.lr.ph81:                                         ; preds = %.lr.ph81.preheader, %.lr.ph81
  %store_forwarded = phi i32 [ %load_initial, %.lr.ph81.preheader ], [ %104, %.lr.ph81 ]
  %indvars.iv109 = phi i64 [ 1, %.lr.ph81.preheader ], [ %indvars.iv.next110, %.lr.ph81 ]
  %102 = getelementptr i32, ptr %83, i64 %indvars.iv109
  %103 = load i32, ptr %102, align 4, !tbaa !12
  %104 = add nsw i32 %103, %store_forwarded
  store i32 %104, ptr %102, align 4, !tbaa !12
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %105 = load i32, ptr %0, align 8, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = icmp slt i64 %indvars.iv.next110, %106
  br i1 %107, label %.lr.ph81, label %._crit_edge82, !llvm.loop !23

.preheader:                                       ; preds = %._crit_edge82, %._crit_edge86
  %108 = phi i32 [ %110, %._crit_edge86 ], [ %95, %._crit_edge82 ]
  %indvars.iv115 = phi i64 [ %indvars.iv.next116, %._crit_edge86 ], [ 0, %._crit_edge82 ]
  %.05388 = phi i32 [ %.1.lcssa, %._crit_edge86 ], [ 0, %._crit_edge82 ]
  %109 = icmp sgt i32 %108, 0
  br i1 %109, label %.lr.ph85, label %.preheader.._crit_edge86_crit_edge

.preheader.._crit_edge86_crit_edge:               ; preds = %.preheader
  %.pre122 = sext i32 %108 to i64
  br label %._crit_edge86

._crit_edge90:                                    ; preds = %._crit_edge86, %._crit_edge82
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  ret void

._crit_edge86:                                    ; preds = %122, %.preheader.._crit_edge86_crit_edge
  %.pre-phi123 = phi i64 [ %.pre122, %.preheader.._crit_edge86_crit_edge ], [ %124, %122 ]
  %110 = phi i32 [ %108, %.preheader.._crit_edge86_crit_edge ], [ %123, %122 ]
  %.1.lcssa = phi i32 [ %.05388, %.preheader.._crit_edge86_crit_edge ], [ %.2, %122 ]
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %111 = icmp slt i64 %indvars.iv.next116, %.pre-phi123
  br i1 %111, label %.preheader, label %._crit_edge90, !llvm.loop !24

.lr.ph85:                                         ; preds = %.preheader, %122
  %indvars.iv112 = phi i64 [ %indvars.iv.next113, %122 ], [ 0, %.preheader ]
  %.183 = phi i32 [ %.2, %122 ], [ %.05388, %.preheader ]
  %112 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv115) #5
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %indvars.iv112) #5
  %114 = load i32, ptr %113, align 4, !tbaa !12
  %115 = icmp eq i32 %114, 1
  br i1 %115, label %116, label %122

116:                                              ; preds = %.lr.ph85
  %117 = load ptr, ptr %100, align 8, !tbaa !22
  %118 = add nsw i32 %.183, 1
  %119 = sext i32 %.183 to i64
  %120 = getelementptr inbounds i32, ptr %117, i64 %119
  %121 = trunc nuw nsw i64 %indvars.iv112 to i32
  store i32 %121, ptr %120, align 4, !tbaa !12
  br label %122

122:                                              ; preds = %.lr.ph85, %116
  %.2 = phi i32 [ %118, %116 ], [ %.183, %.lr.ph85 ]
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %123 = load i32, ptr %0, align 8, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = icmp slt i64 %indvars.iv.next113, %124
  br i1 %125, label %.lr.ph85, label %._crit_edge86, !llvm.loop !26

126:                                              ; preds = %38, %29
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  resume { ptr, i32 } %.pn
}

; Function Attrs: nounwind
declare i32 @getpid() local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nounwind "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 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 #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 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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, !7, i64 0}
!6 = !{!"_ZTS5Graph", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!6, !7, i64 8}
!17 = !{!6, !10, i64 32}
!18 = !{!6, !10, i64 16}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = !{!6, !10, i64 24}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14, !25}
!25 = !{!"llvm.loop.unswitch.partial.disable"}
!26 = distinct !{!26, !14}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass