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

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

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

45:                                               ; preds = %63, %44
  %46 = load i32, ptr %19, align 4, !tbaa !9
  %47 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !11
  %49 = icmp slt i32 %46, %48
  br i1 %49, label %55, label %50

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

51:                                               ; preds = %7
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %17, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %18, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  br label %328

55:                                               ; preds = %45
  %56 = load i32, ptr %19, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %57) #5
  %59 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !11
  %61 = sext i32 %60 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %61, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %62 unwind label %66

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

63:                                               ; preds = %62
  %64 = load i32, ptr %19, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %19, align 4, !tbaa !9
  br label %45, !llvm.loop !13

66:                                               ; preds = %55
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %17, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  br label %328

70:                                               ; preds = %50
  %71 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 1
  store i32 0, ptr %71, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %206, %70
  %73 = load i32, ptr %21, align 4, !tbaa !9
  %74 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !11
  %76 = icmp slt i32 %73, %75
  br i1 %76, label %78, label %77

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

78:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %79 = load i32, ptr %21, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %23, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %202, %78
  %82 = load i32, ptr %23, align 4, !tbaa !9
  %83 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
  %84 = load i32, ptr %83, align 8, !tbaa !11
  %85 = icmp slt i32 %82, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %81
  store i32 8, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %205

87:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %88 = call i32 @rand() #5
  %89 = sitofp i32 %88 to double
  %90 = fmul double %89, 1.000000e+00
  %91 = fdiv double %90, 0x41DFFFFFFFC00000
  store double %91, ptr %24, align 8, !tbaa !16
  %92 = load i32, ptr %21, align 4, !tbaa !9
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = sdiv i32 %92, %93
  %95 = load i32, ptr %23, align 4, !tbaa !9
  %96 = load i32, ptr %9, align 4, !tbaa !9
  %97 = sdiv i32 %95, %96
  %98 = icmp eq i32 %94, %97
  br i1 %98, label %99, label %126

99:                                               ; preds = %87
  %100 = load double, ptr %24, align 8, !tbaa !16
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = sitofp i32 %101 to double
  %103 = fmul double %102, 1.000000e+00
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = sitofp i32 %104 to double
  %106 = fsub double %105, 1.000000e+00
  %107 = fdiv double %103, %106
  %108 = fcmp ole double %100, %107
  br i1 %108, label %109, label %125

109:                                              ; preds = %99
  %110 = load i32, ptr %23, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %111) #5
  %113 = load i32, ptr %21, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %114) #5
  store i32 1, ptr %115, align 4, !tbaa !9
  %116 = load i32, ptr %21, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %117) #5
  %119 = load i32, ptr %23, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %120) #5
  store i32 1, ptr %121, align 4, !tbaa !9
  %122 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 1
  %123 = load i32, ptr %122, align 4, !tbaa !15
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %122, align 4, !tbaa !15
  br label %125

125:                                              ; preds = %109, %99
  br label %201

126:                                              ; preds = %87
  %127 = load i32, ptr %21, align 4, !tbaa !9
  %128 = load i32, ptr %9, align 4, !tbaa !9
  %129 = load i32, ptr %11, align 4, !tbaa !9
  %130 = mul nsw i32 %128, %129
  %131 = sdiv i32 %127, %130
  %132 = load i32, ptr %23, align 4, !tbaa !9
  %133 = load i32, ptr %9, align 4, !tbaa !9
  %134 = load i32, ptr %11, align 4, !tbaa !9
  %135 = mul nsw i32 %133, %134
  %136 = sdiv i32 %132, %135
  %137 = icmp eq i32 %131, %136
  br i1 %137, label %138, label %168

138:                                              ; preds = %126
  %139 = load double, ptr %24, align 8, !tbaa !16
  %140 = load i32, ptr %12, align 4, !tbaa !9
  %141 = sitofp i32 %140 to double
  %142 = fmul double %141, 1.000000e+00
  %143 = load i32, ptr %9, align 4, !tbaa !9
  %144 = sitofp i32 %143 to double
  %145 = load i32, ptr %11, align 4, !tbaa !9
  %146 = sitofp i32 %145 to double
  %147 = fsub double %146, 1.000000e+00
  %148 = fmul double %144, %147
  %149 = fdiv double %142, %148
  %150 = fcmp ole double %139, %149
  br i1 %150, label %151, label %167

151:                                              ; preds = %138
  %152 = load i32, ptr %23, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %153) #5
  %155 = load i32, ptr %21, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %154, i64 noundef %156) #5
  store i32 1, ptr %157, align 4, !tbaa !9
  %158 = load i32, ptr %21, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %159) #5
  %161 = load i32, ptr %23, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %162) #5
  store i32 1, ptr %163, align 4, !tbaa !9
  %164 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 1
  %165 = load i32, ptr %164, align 4, !tbaa !15
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %164, align 4, !tbaa !15
  br label %167

167:                                              ; preds = %151, %138
  br label %200

168:                                              ; preds = %126
  %169 = load double, ptr %24, align 8, !tbaa !16
  %170 = load i32, ptr %14, align 4, !tbaa !9
  %171 = sitofp i32 %170 to double
  %172 = fmul double %171, 1.000000e+00
  %173 = load i32, ptr %9, align 4, !tbaa !9
  %174 = load i32, ptr %11, align 4, !tbaa !9
  %175 = mul nsw i32 %173, %174
  %176 = sitofp i32 %175 to double
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = sitofp i32 %177 to double
  %179 = fsub double %178, 1.000000e+00
  %180 = fmul double %176, %179
  %181 = fdiv double %172, %180
  %182 = fcmp ole double %169, %181
  br i1 %182, label %183, label %199

183:                                              ; preds = %168
  %184 = load i32, ptr %23, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %185) #5
  %187 = load i32, ptr %21, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %186, i64 noundef %188) #5
  store i32 1, ptr %189, align 4, !tbaa !9
  %190 = load i32, ptr %21, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %191) #5
  %193 = load i32, ptr %23, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef %194) #5
  store i32 1, ptr %195, align 4, !tbaa !9
  %196 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 1
  %197 = load i32, ptr %196, align 4, !tbaa !15
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %196, align 4, !tbaa !15
  br label %199

199:                                              ; preds = %183, %168
  br label %200

200:                                              ; preds = %199, %167
  br label %201

201:                                              ; preds = %200, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %23, align 4, !tbaa !9
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %23, align 4, !tbaa !9
  br label %81, !llvm.loop !18

205:                                              ; preds = %86
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %21, align 4, !tbaa !9
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %21, align 4, !tbaa !9
  br label %72, !llvm.loop !19

209:                                              ; preds = %77
  %210 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 1
  %211 = load i32, ptr %210, align 4, !tbaa !15
  %212 = mul nsw i32 2, %211
  %213 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 2
  store i32 %212, ptr %213, align 8, !tbaa !20
  %214 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 5
  store ptr null, ptr %214, align 8, !tbaa !21
  %215 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
  %216 = load i32, ptr %215, align 8, !tbaa !11
  %217 = sext i32 %216 to i64
  %218 = mul nsw i64 %217, 4
  %219 = call noalias ptr @malloc(i64 noundef %218) #6
  %220 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 3
  store ptr %219, ptr %220, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %221

221:                                              ; preds = %254, %209
  %222 = load i32, ptr %25, align 4, !tbaa !9
  %223 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
  %224 = load i32, ptr %223, align 8, !tbaa !11
  %225 = icmp slt i32 %222, %224
  br i1 %225, label %227, label %226

226:                                              ; preds = %221
  store i32 11, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %257

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

228:                                              ; preds = %244, %227
  %229 = load i32, ptr %27, align 4, !tbaa !9
  %230 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
  %231 = load i32, ptr %230, align 8, !tbaa !11
  %232 = icmp slt i32 %229, %231
  br i1 %232, label %234, label %233

233:                                              ; preds = %228
  store i32 14, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %247

234:                                              ; preds = %228
  %235 = load i32, ptr %25, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %236) #5
  %238 = load i32, ptr %27, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %237, i64 noundef %239) #5
  %241 = load i32, ptr %240, align 4, !tbaa !9
  %242 = load i32, ptr %26, align 4, !tbaa !9
  %243 = add nsw i32 %242, %241
  store i32 %243, ptr %26, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %234
  %245 = load i32, ptr %27, align 4, !tbaa !9
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %27, align 4, !tbaa !9
  br label %228, !llvm.loop !23

247:                                              ; preds = %233
  %248 = load i32, ptr %26, align 4, !tbaa !9
  %249 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 3
  %250 = load ptr, ptr %249, align 8, !tbaa !22
  %251 = load i32, ptr %25, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds i32, ptr %250, i64 %252
  store i32 %248, ptr %253, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %254

254:                                              ; preds = %247
  %255 = load i32, ptr %25, align 4, !tbaa !9
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %25, align 4, !tbaa !9
  br label %221, !llvm.loop !24

257:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 1, ptr %28, align 4, !tbaa !9
  br label %258

258:                                              ; preds = %279, %257
  %259 = load i32, ptr %28, align 4, !tbaa !9
  %260 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
  %261 = load i32, ptr %260, align 8, !tbaa !11
  %262 = icmp slt i32 %259, %261
  br i1 %262, label %264, label %263

263:                                              ; preds = %258
  store i32 17, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %282

264:                                              ; preds = %258
  %265 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 3
  %266 = load ptr, ptr %265, align 8, !tbaa !22
  %267 = load i32, ptr %28, align 4, !tbaa !9
  %268 = sub nsw i32 %267, 1
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds i32, ptr %266, i64 %269
  %271 = load i32, ptr %270, align 4, !tbaa !9
  %272 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 3
  %273 = load ptr, ptr %272, align 8, !tbaa !22
  %274 = load i32, ptr %28, align 4, !tbaa !9
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds i32, ptr %273, i64 %275
  %277 = load i32, ptr %276, align 4, !tbaa !9
  %278 = add nsw i32 %277, %271
  store i32 %278, ptr %276, align 4, !tbaa !9
  br label %279

279:                                              ; preds = %264
  %280 = load i32, ptr %28, align 4, !tbaa !9
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %28, align 4, !tbaa !9
  br label %258, !llvm.loop !25

282:                                              ; preds = %263
  %283 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 1
  %284 = load i32, ptr %283, align 4, !tbaa !15
  %285 = sext i32 %284 to i64
  %286 = mul nsw i64 %285, 8
  %287 = call noalias ptr @malloc(i64 noundef %286) #6
  %288 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 4
  store ptr %287, ptr %288, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store i32 0, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %289

289:                                              ; preds = %324, %282
  %290 = load i32, ptr %30, align 4, !tbaa !9
  %291 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
  %292 = load i32, ptr %291, align 8, !tbaa !11
  %293 = icmp slt i32 %290, %292
  br i1 %293, label %295, label %294

294:                                              ; preds = %289
  store i32 20, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %327

295:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %296

296:                                              ; preds = %320, %295
  %297 = load i32, ptr %31, align 4, !tbaa !9
  %298 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 0
  %299 = load i32, ptr %298, align 8, !tbaa !11
  %300 = icmp slt i32 %297, %299
  br i1 %300, label %302, label %301

301:                                              ; preds = %296
  store i32 23, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %323

302:                                              ; preds = %296
  %303 = load i32, ptr %30, align 4, !tbaa !9
  %304 = sext i32 %303 to i64
  %305 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %304) #5
  %306 = load i32, ptr %31, align 4, !tbaa !9
  %307 = sext i32 %306 to i64
  %308 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %305, i64 noundef %307) #5
  %309 = load i32, ptr %308, align 4, !tbaa !9
  %310 = icmp eq i32 %309, 1
  br i1 %310, label %311, label %319

311:                                              ; preds = %302
  %312 = load i32, ptr %31, align 4, !tbaa !9
  %313 = getelementptr inbounds %class.Graph, ptr %32, i32 0, i32 4
  %314 = load ptr, ptr %313, align 8, !tbaa !26
  %315 = load i32, ptr %29, align 4, !tbaa !9
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr %29, align 4, !tbaa !9
  %317 = sext i32 %315 to i64
  %318 = getelementptr inbounds i32, ptr %314, i64 %317
  store i32 %312, ptr %318, align 4, !tbaa !9
  br label %319

319:                                              ; preds = %311, %302
  br label %320

320:                                              ; preds = %319
  %321 = load i32, ptr %31, align 4, !tbaa !9
  %322 = add nsw i32 %321, 1
  store i32 %322, ptr %31, align 4, !tbaa !9
  br label %296, !llvm.loop !27

323:                                              ; preds = %301
  br label %324

324:                                              ; preds = %323
  %325 = load i32, ptr %30, align 4, !tbaa !9
  %326 = add nsw i32 %325, 1
  store i32 %326, ptr %30, align 4, !tbaa !9
  br label %289, !llvm.loop !28

327:                                              ; preds = %294
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  ret void

328:                                              ; preds = %66, %51
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  br label %329

329:                                              ; preds = %328
  %330 = load ptr, ptr %17, align 8
  %331 = load i32, ptr %18, align 4
  %332 = insertvalue { ptr, i32 } poison, ptr %330, 0
  %333 = insertvalue { ptr, i32 } %332, i32 %331, 1
  resume { ptr, i32 } %333
}

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

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 #2 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) #4 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)) #2 align 2

; Function Attrs: nounwind
declare i32 @rand() #3

; 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) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 = { 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 = { 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 #4 = { 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 #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: mustprogress uwtable
define dso_local void @_ZN5GraphC2Eiiiiii(ptr nocapture noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca i32, align 4
  %11 = tail call i64 @time(ptr noundef null) #5
  %12 = trunc i64 %11 to i32
  tail call void @srand(i32 noundef %12) #5
  %13 = mul nsw i32 %3, %1
  %14 = mul nsw i32 %13, %5
  store i32 %14, ptr %0, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  %15 = sext i32 %14 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %15, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %16 unwind label %39

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

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

._crit_edge:                                      ; preds = %44
  %20 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 0, ptr %20, align 4, !tbaa !11
  %21 = icmp sgt i32 %45, 0
  br i1 %21, label %.lr.ph88, label %._crit_edge.._crit_edge89_crit_edge

._crit_edge.._crit_edge89_crit_edge:              ; preds = %._crit_edge.thread, %._crit_edge
  %22 = phi ptr [ %19, %._crit_edge.thread ], [ %20, %._crit_edge ]
  %23 = phi i32 [ %17, %._crit_edge.thread ], [ %45, %._crit_edge ]
  %.pre136 = sext i32 %23 to i64
  br label %._crit_edge89

.lr.ph88:                                         ; preds = %._crit_edge
  %24 = sitofp i32 %6 to double
  %25 = sitofp i32 %13 to double
  %26 = sitofp i32 %5 to double
  %27 = fadd double %26, -1.000000e+00
  %28 = fmul double %27, %25
  %29 = fdiv double %24, %28
  %30 = sitofp i32 %4 to double
  %31 = sitofp i32 %1 to double
  %32 = sitofp i32 %3 to double
  %33 = fadd double %32, -1.000000e+00
  %34 = fmul double %33, %31
  %35 = fdiv double %30, %34
  %36 = sitofp i32 %2 to double
  %37 = fadd double %31, -1.000000e+00
  %38 = fdiv double %36, %37
  br label %62

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

.lr.ph:                                           ; preds = %16, %44
  %indvars.iv = phi i64 [ %indvars.iv.next, %44 ], [ 0, %16 ]
  %41 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #5
  %42 = load i32, ptr %0, align 8, !tbaa !5
  %43 = sext i32 %42 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  store i32 0, ptr %10, align 4, !tbaa !12
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %43, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %44 unwind label %48

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

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

.loopexit.loopexit:                               ; preds = %91
  %.pre135 = sext i32 %92 to i64
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %62
  %.pre-phi = phi i64 [ %.pre135, %.loopexit.loopexit ], [ %64, %62 ]
  %50 = phi i32 [ %92, %.loopexit.loopexit ], [ %63, %62 ]
  %51 = icmp slt i64 %indvars.iv.next117, %.pre-phi
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  br i1 %51, label %62, label %._crit_edge89.loopexit, !llvm.loop !15

._crit_edge89.loopexit:                           ; preds = %.loopexit
  %.pre = load i32, ptr %20, align 4, !tbaa !11
  %52 = shl nsw i32 %.pre, 1
  br label %._crit_edge89

._crit_edge89:                                    ; preds = %._crit_edge.._crit_edge89_crit_edge, %._crit_edge89.loopexit
  %53 = phi ptr [ %22, %._crit_edge.._crit_edge89_crit_edge ], [ %20, %._crit_edge89.loopexit ]
  %.pre-phi137 = phi i64 [ %.pre136, %._crit_edge.._crit_edge89_crit_edge ], [ %.pre-phi, %._crit_edge89.loopexit ]
  %54 = phi i32 [ 0, %._crit_edge.._crit_edge89_crit_edge ], [ %52, %._crit_edge89.loopexit ]
  %55 = phi i32 [ %23, %._crit_edge.._crit_edge89_crit_edge ], [ %50, %._crit_edge89.loopexit ]
  %56 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %54, ptr %56, align 8, !tbaa !16
  %57 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr null, ptr %57, align 8, !tbaa !17
  %58 = shl nsw i64 %.pre-phi137, 2
  %59 = call noalias ptr @malloc(i64 noundef %58) #6
  %60 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %59, ptr %60, align 8, !tbaa !18
  %61 = icmp sgt i32 %55, 0
  br i1 %61, label %.preheader81, label %._crit_edge98

62:                                               ; preds = %.lr.ph88, %.loopexit
  %63 = phi i32 [ %45, %.lr.ph88 ], [ %50, %.loopexit ]
  %indvars.iv116 = phi i64 [ 0, %.lr.ph88 ], [ %indvars.iv.next117, %.loopexit ]
  %indvars.iv111 = phi i64 [ 1, %.lr.ph88 ], [ %indvars.iv.next112, %.loopexit ]
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %64 = sext i32 %63 to i64
  %65 = icmp slt i64 %indvars.iv.next117, %64
  br i1 %65, label %.lr.ph85, label %.loopexit

.lr.ph85:                                         ; preds = %62
  %66 = trunc nuw nsw i64 %indvars.iv116 to i32
  br label %67

67:                                               ; preds = %.lr.ph85, %91
  %indvars.iv113 = phi i64 [ %indvars.iv111, %.lr.ph85 ], [ %indvars.iv.next114, %91 ]
  %68 = call i32 @rand() #5
  %69 = sitofp i32 %68 to double
  %70 = fdiv double %69, 0x41DFFFFFFFC00000
  %71 = sdiv i32 %66, %1
  %72 = trunc nuw nsw i64 %indvars.iv113 to i32
  %73 = sdiv i32 %72, %1
  %74 = icmp eq i32 %71, %73
  br i1 %74, label %75, label %77

75:                                               ; preds = %67
  %76 = fcmp ugt double %70, %38
  br i1 %76, label %91, label %.sink.split

77:                                               ; preds = %67
  %78 = sdiv i32 %66, %13
  %79 = sdiv i32 %72, %13
  %80 = icmp eq i32 %78, %79
  br i1 %80, label %81, label %83

81:                                               ; preds = %77
  %82 = fcmp ugt double %70, %35
  br i1 %82, label %91, label %.sink.split

83:                                               ; preds = %77
  %84 = fcmp ugt double %70, %29
  br i1 %84, label %91, label %.sink.split

.sink.split:                                      ; preds = %83, %81, %75
  %85 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv113) #5
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %indvars.iv116) #5
  store i32 1, ptr %86, align 4, !tbaa !12
  %87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv116) #5
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %indvars.iv113) #5
  store i32 1, ptr %88, align 4, !tbaa !12
  %89 = load i32, ptr %20, align 4, !tbaa !11
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %20, align 4, !tbaa !11
  br label %91

91:                                               ; preds = %.sink.split, %81, %83, %75
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %92 = load i32, ptr %0, align 8, !tbaa !5
  %93 = trunc nuw i64 %indvars.iv.next114 to i32
  %94 = icmp sgt i32 %92, %93
  br i1 %94, label %67, label %.loopexit.loopexit, !llvm.loop !19

.preheader81:                                     ; preds = %._crit_edge89, %._crit_edge93
  %95 = phi ptr [ %99, %._crit_edge93 ], [ %59, %._crit_edge89 ]
  %96 = phi i32 [ %101, %._crit_edge93 ], [ %55, %._crit_edge89 ]
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %._crit_edge93 ], [ 0, %._crit_edge89 ]
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %.lr.ph92, label %._crit_edge93

.preheader80:                                     ; preds = %._crit_edge93
  %98 = icmp sgt i32 %101, 1
  br i1 %98, label %.lr.ph97.preheader, label %._crit_edge98

.lr.ph97.preheader:                               ; preds = %.preheader80
  %load_initial = load i32, ptr %99, align 4
  br label %.lr.ph97

._crit_edge93.loopexit:                           ; preds = %.lr.ph92
  %.pre134 = load ptr, ptr %60, align 8, !tbaa !18
  br label %._crit_edge93

._crit_edge93:                                    ; preds = %._crit_edge93.loopexit, %.preheader81
  %99 = phi ptr [ %95, %.preheader81 ], [ %.pre134, %._crit_edge93.loopexit ]
  %.072.lcssa = phi i32 [ 0, %.preheader81 ], [ %107, %._crit_edge93.loopexit ]
  %100 = getelementptr inbounds i32, ptr %99, i64 %indvars.iv122
  store i32 %.072.lcssa, ptr %100, align 4, !tbaa !12
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %101 = load i32, ptr %0, align 8, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = icmp slt i64 %indvars.iv.next123, %102
  br i1 %103, label %.preheader81, label %.preheader80, !llvm.loop !20

.lr.ph92:                                         ; preds = %.preheader81, %.lr.ph92
  %indvars.iv119 = phi i64 [ %indvars.iv.next120, %.lr.ph92 ], [ 0, %.preheader81 ]
  %.07290 = phi i32 [ %107, %.lr.ph92 ], [ 0, %.preheader81 ]
  %104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv122) #5
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef %indvars.iv119) #5
  %106 = load i32, ptr %105, align 4, !tbaa !12
  %107 = add nsw i32 %106, %.07290
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %108 = load i32, ptr %0, align 8, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = icmp slt i64 %indvars.iv.next120, %109
  br i1 %110, label %.lr.ph92, label %._crit_edge93.loopexit, !llvm.loop !21

._crit_edge98:                                    ; preds = %.lr.ph97, %._crit_edge89, %.preheader80
  %111 = phi i32 [ %101, %.preheader80 ], [ %55, %._crit_edge89 ], [ %121, %.lr.ph97 ]
  %112 = load i32, ptr %53, align 4, !tbaa !11
  %113 = sext i32 %112 to i64
  %114 = shl nsw i64 %113, 3
  %115 = call noalias ptr @malloc(i64 noundef %114) #6
  %116 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %115, ptr %116, align 8, !tbaa !22
  %117 = icmp sgt i32 %111, 0
  br i1 %117, label %.preheader, label %._crit_edge106

.lr.ph97:                                         ; preds = %.lr.ph97.preheader, %.lr.ph97
  %store_forwarded = phi i32 [ %load_initial, %.lr.ph97.preheader ], [ %120, %.lr.ph97 ]
  %indvars.iv125 = phi i64 [ 1, %.lr.ph97.preheader ], [ %indvars.iv.next126, %.lr.ph97 ]
  %118 = getelementptr i32, ptr %99, i64 %indvars.iv125
  %119 = load i32, ptr %118, align 4, !tbaa !12
  %120 = add nsw i32 %119, %store_forwarded
  store i32 %120, ptr %118, align 4, !tbaa !12
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %121 = load i32, ptr %0, align 8, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = icmp slt i64 %indvars.iv.next126, %122
  br i1 %123, label %.lr.ph97, label %._crit_edge98, !llvm.loop !23

.preheader:                                       ; preds = %._crit_edge98, %._crit_edge102
  %124 = phi i32 [ %126, %._crit_edge102 ], [ %111, %._crit_edge98 ]
  %indvars.iv131 = phi i64 [ %indvars.iv.next132, %._crit_edge102 ], [ 0, %._crit_edge98 ]
  %.069104 = phi i32 [ %.1.lcssa, %._crit_edge102 ], [ 0, %._crit_edge98 ]
  %125 = icmp sgt i32 %124, 0
  br i1 %125, label %.lr.ph101, label %.preheader.._crit_edge102_crit_edge

.preheader.._crit_edge102_crit_edge:              ; preds = %.preheader
  %.pre138 = sext i32 %124 to i64
  br label %._crit_edge102

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

._crit_edge102:                                   ; preds = %138, %.preheader.._crit_edge102_crit_edge
  %.pre-phi139 = phi i64 [ %.pre138, %.preheader.._crit_edge102_crit_edge ], [ %140, %138 ]
  %126 = phi i32 [ %124, %.preheader.._crit_edge102_crit_edge ], [ %139, %138 ]
  %.1.lcssa = phi i32 [ %.069104, %.preheader.._crit_edge102_crit_edge ], [ %.2, %138 ]
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %127 = icmp slt i64 %indvars.iv.next132, %.pre-phi139
  br i1 %127, label %.preheader, label %._crit_edge106, !llvm.loop !24

.lr.ph101:                                        ; preds = %.preheader, %138
  %indvars.iv128 = phi i64 [ %indvars.iv.next129, %138 ], [ 0, %.preheader ]
  %.199 = phi i32 [ %.2, %138 ], [ %.069104, %.preheader ]
  %128 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv131) #5
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef %indvars.iv128) #5
  %130 = load i32, ptr %129, align 4, !tbaa !12
  %131 = icmp eq i32 %130, 1
  br i1 %131, label %132, label %138

132:                                              ; preds = %.lr.ph101
  %133 = load ptr, ptr %116, align 8, !tbaa !22
  %134 = add nsw i32 %.199, 1
  %135 = sext i32 %.199 to i64
  %136 = getelementptr inbounds i32, ptr %133, i64 %135
  %137 = trunc nuw nsw i64 %indvars.iv128 to i32
  store i32 %137, ptr %136, align 4, !tbaa !12
  br label %138

138:                                              ; preds = %.lr.ph101, %132
  %.2 = phi i32 [ %134, %132 ], [ %.199, %.lr.ph101 ]
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %139 = load i32, ptr %0, align 8, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = icmp slt i64 %indvars.iv.next129, %140
  br i1 %141, label %.lr.ph101, label %._crit_edge102, !llvm.loop !26

142:                                              ; preds = %48, %39
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 #2 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 #4 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 #2 align 2

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #3

; 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 #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 = { 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 = { 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 #4 = { 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 #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