; LLVM IR from jorgemf/c-evolutionary-library :: examples/tsp/TSPCrossover.ll (ZN12TSPCrossover5crossEP10IndividualS1_S1_)

; 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.MTRand_int32 = type { i8 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12TSPCrossover5crossEP10IndividualS1_S1_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %class.MTRand_int32, align 1
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %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 %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %28 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  call void @_ZN12MTRand_int32C2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = getelementptr inbounds ptr, ptr %30, i64 3
  %32 = load ptr, ptr %31, align 8
  %33 = invoke noundef ptr %32(ptr noundef nonnull align 8 dereferenceable(64) %29)
          to label %34 unwind label %73

34:                                               ; preds = %4
  store ptr %33, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = getelementptr inbounds ptr, ptr %36, i64 3
  %38 = load ptr, ptr %37, align 8
  %39 = invoke noundef ptr %38(ptr noundef nonnull align 8 dereferenceable(64) %35)
          to label %40 unwind label %77

40:                                               ; preds = %34
  store ptr %39, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = getelementptr inbounds ptr, ptr %42, i64 3
  %44 = load ptr, ptr %43, align 8
  %45 = invoke noundef ptr %44(ptr noundef nonnull align 8 dereferenceable(64) %41)
          to label %46 unwind label %81

46:                                               ; preds = %40
  store ptr %45, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = invoke noundef i32 @_ZN13TSPIndividual15getNumberCitiesEv(ptr noundef nonnull align 8 dereferenceable(64) %47)
          to label %49 unwind label %85

49:                                               ; preds = %46
  store i32 %48, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %50 = invoke noundef i64 @_ZN12MTRand_int32clEv(ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %51 unwind label %89

51:                                               ; preds = %49
  %52 = load i32, ptr %15, align 4, !tbaa !11
  %53 = sext i32 %52 to i64
  %54 = urem i64 %50, %53
  %55 = trunc i64 %54 to i32
  store i32 %55, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %56 = load i32, ptr %16, align 4, !tbaa !11
  %57 = add nsw i32 %56, 1
  %58 = sext i32 %57 to i64
  %59 = invoke noundef i64 @_ZN12MTRand_int32clEv(ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %60 unwind label %93

60:                                               ; preds = %51
  %61 = load i32, ptr %15, align 4, !tbaa !11
  %62 = load i32, ptr %16, align 4, !tbaa !11
  %63 = sub nsw i32 %61, %62
  %64 = sext i32 %63 to i64
  %65 = urem i64 %59, %64
  %66 = add i64 %58, %65
  %67 = trunc i64 %66 to i32
  store i32 %67, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %68

68:                                               ; preds = %107, %60
  %69 = load i32, ptr %18, align 4, !tbaa !11
  %70 = load i32, ptr %15, align 4, !tbaa !11
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %97, label %72

72:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %110

73:                                               ; preds = %4
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %11, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %12, align 4
  br label %268

77:                                               ; preds = %34
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %11, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %12, align 4
  br label %267

81:                                               ; preds = %40
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %11, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %12, align 4
  br label %266

85:                                               ; preds = %46
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %11, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %12, align 4
  br label %265

89:                                               ; preds = %49
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %11, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %12, align 4
  br label %264

93:                                               ; preds = %51
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %11, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %264

97:                                               ; preds = %68
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = load i32, ptr %18, align 4, !tbaa !11
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds i32, ptr %98, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !11
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = load i32, ptr %18, align 4, !tbaa !11
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds i32, ptr %103, i64 %105
  store i32 %102, ptr %106, align 4, !tbaa !11
  br label %107

107:                                              ; preds = %97
  %108 = load i32, ptr %18, align 4, !tbaa !11
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %18, align 4, !tbaa !11
  br label %68, !llvm.loop !13

110:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %111 = load i32, ptr %16, align 4, !tbaa !11
  store i32 %111, ptr %19, align 4, !tbaa !11
  br label %112

112:                                              ; preds = %138, %110
  %113 = load i32, ptr %19, align 4, !tbaa !11
  %114 = load i32, ptr %17, align 4, !tbaa !11
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %141

117:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %118

118:                                              ; preds = %130, %117
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = load i32, ptr %19, align 4, !tbaa !11
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i32, ptr %119, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !11
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = load i32, ptr %20, align 4, !tbaa !11
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i32, ptr %124, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !11
  %129 = icmp ne i32 %123, %128
  br i1 %129, label %130, label %133

130:                                              ; preds = %118
  %131 = load i32, ptr %20, align 4, !tbaa !11
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %20, align 4, !tbaa !11
  br label %118, !llvm.loop !15

133:                                              ; preds = %118
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = load i32, ptr %20, align 4, !tbaa !11
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds i32, ptr %134, i64 %136
  store i32 0, ptr %137, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %138

138:                                              ; preds = %133
  %139 = load i32, ptr %19, align 4, !tbaa !11
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %19, align 4, !tbaa !11
  br label %112, !llvm.loop !16

141:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %21, align 4, !tbaa !11
  br label %142

142:                                              ; preds = %188, %141
  %143 = load i32, ptr %21, align 4, !tbaa !11
  %144 = load i32, ptr %16, align 4, !tbaa !11
  %145 = icmp slt i32 %143, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %191

147:                                              ; preds = %142
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  %149 = load i32, ptr %21, align 4, !tbaa !11
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds i32, ptr %148, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !11
  %153 = icmp eq i32 %152, 0
  br i1 %153, label %154, label %187

154:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %155 = load i32, ptr %21, align 4, !tbaa !11
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %22, align 4, !tbaa !11
  br label %157

157:                                              ; preds = %164, %154
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = load i32, ptr %21, align 4, !tbaa !11
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds i32, ptr %158, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !11
  %163 = icmp eq i32 %162, 0
  br i1 %163, label %164, label %186

164:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = load i32, ptr %21, align 4, !tbaa !11
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds i32, ptr %165, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !11
  store i32 %169, ptr %23, align 4, !tbaa !11
  %170 = load ptr, ptr %14, align 8, !tbaa !5
  %171 = load i32, ptr %22, align 4, !tbaa !11
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds i32, ptr %170, i64 %172
  %174 = load i32, ptr %173, align 4, !tbaa !11
  %175 = load ptr, ptr %14, align 8, !tbaa !5
  %176 = load i32, ptr %21, align 4, !tbaa !11
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds i32, ptr %175, i64 %177
  store i32 %174, ptr %178, align 4, !tbaa !11
  %179 = load i32, ptr %23, align 4, !tbaa !11
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  %181 = load i32, ptr %22, align 4, !tbaa !11
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds i32, ptr %180, i64 %182
  store i32 %179, ptr %183, align 4, !tbaa !11
  %184 = load i32, ptr %22, align 4, !tbaa !11
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %157, !llvm.loop !17

186:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %187

187:                                              ; preds = %186, %147
  br label %188

188:                                              ; preds = %187
  %189 = load i32, ptr %21, align 4, !tbaa !11
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %21, align 4, !tbaa !11
  br label %142, !llvm.loop !18

191:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %192 = load i32, ptr %15, align 4, !tbaa !11
  %193 = sub nsw i32 %192, 1
  store i32 %193, ptr %24, align 4, !tbaa !11
  br label %194

194:                                              ; preds = %240, %191
  %195 = load i32, ptr %24, align 4, !tbaa !11
  %196 = load i32, ptr %17, align 4, !tbaa !11
  %197 = icmp sge i32 %195, %196
  br i1 %197, label %199, label %198

198:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %243

199:                                              ; preds = %194
  %200 = load ptr, ptr %14, align 8, !tbaa !5
  %201 = load i32, ptr %24, align 4, !tbaa !11
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds i32, ptr %200, i64 %202
  %204 = load i32, ptr %203, align 4, !tbaa !11
  %205 = icmp eq i32 %204, 0
  br i1 %205, label %206, label %239

206:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %207 = load i32, ptr %24, align 4, !tbaa !11
  %208 = sub nsw i32 %207, 1
  store i32 %208, ptr %25, align 4, !tbaa !11
  br label %209

209:                                              ; preds = %216, %206
  %210 = load ptr, ptr %14, align 8, !tbaa !5
  %211 = load i32, ptr %24, align 4, !tbaa !11
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds i32, ptr %210, i64 %212
  %214 = load i32, ptr %213, align 4, !tbaa !11
  %215 = icmp eq i32 %214, 0
  br i1 %215, label %216, label %238

216:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %217 = load ptr, ptr %14, align 8, !tbaa !5
  %218 = load i32, ptr %24, align 4, !tbaa !11
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds i32, ptr %217, i64 %219
  %221 = load i32, ptr %220, align 4, !tbaa !11
  store i32 %221, ptr %26, align 4, !tbaa !11
  %222 = load ptr, ptr %14, align 8, !tbaa !5
  %223 = load i32, ptr %25, align 4, !tbaa !11
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds i32, ptr %222, i64 %224
  %226 = load i32, ptr %225, align 4, !tbaa !11
  %227 = load ptr, ptr %14, align 8, !tbaa !5
  %228 = load i32, ptr %24, align 4, !tbaa !11
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds i32, ptr %227, i64 %229
  store i32 %226, ptr %230, align 4, !tbaa !11
  %231 = load i32, ptr %26, align 4, !tbaa !11
  %232 = load ptr, ptr %14, align 8, !tbaa !5
  %233 = load i32, ptr %25, align 4, !tbaa !11
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds i32, ptr %232, i64 %234
  store i32 %231, ptr %235, align 4, !tbaa !11
  %236 = load i32, ptr %25, align 4, !tbaa !11
  %237 = add nsw i32 %236, -1
  store i32 %237, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %209, !llvm.loop !19

238:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %239

239:                                              ; preds = %238, %199
  br label %240

240:                                              ; preds = %239
  %241 = load i32, ptr %24, align 4, !tbaa !11
  %242 = add nsw i32 %241, -1
  store i32 %242, ptr %24, align 4, !tbaa !11
  br label %194, !llvm.loop !20

243:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %244 = load i32, ptr %16, align 4, !tbaa !11
  store i32 %244, ptr %27, align 4, !tbaa !11
  br label %245

245:                                              ; preds = %260, %243
  %246 = load i32, ptr %27, align 4, !tbaa !11
  %247 = load i32, ptr %17, align 4, !tbaa !11
  %248 = icmp slt i32 %246, %247
  br i1 %248, label %250, label %249

249:                                              ; preds = %245
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  br label %263

250:                                              ; preds = %245
  %251 = load ptr, ptr %13, align 8, !tbaa !5
  %252 = load i32, ptr %27, align 4, !tbaa !11
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds i32, ptr %251, i64 %253
  %255 = load i32, ptr %254, align 4, !tbaa !11
  %256 = load ptr, ptr %14, align 8, !tbaa !5
  %257 = load i32, ptr %27, align 4, !tbaa !11
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds i32, ptr %256, i64 %258
  store i32 %255, ptr %259, align 4, !tbaa !11
  br label %260

260:                                              ; preds = %250
  %261 = load i32, ptr %27, align 4, !tbaa !11
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %27, align 4, !tbaa !11
  br label %245, !llvm.loop !21

263:                                              ; preds = %249
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @_ZN12MTRand_int32D2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  ret void

264:                                              ; preds = %93, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %265

265:                                              ; preds = %264, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %266

266:                                              ; preds = %265, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %267

267:                                              ; preds = %266, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %268

268:                                              ; preds = %267, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @_ZN12MTRand_int32D2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  br label %269

269:                                              ; preds = %268
  %270 = load ptr, ptr %11, align 8
  %271 = load i32, ptr %12, align 4
  %272 = insertvalue { ptr, i32 } poison, ptr %270, 0
  %273 = insertvalue { ptr, i32 } %272, i32 %271, 1
  resume { ptr, i32 } %273
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN13TSPIndividual15getNumberCitiesEv(ptr noundef nonnull align 8 dereferenceable(64)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN12MTRand_int32clEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !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.MTRand_int32 = type { i8 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12TSPCrossover5crossEP10IndividualS1_S1_(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.MTRand_int32, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  call void @_ZN12MTRand_int32C2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5)
  %6 = load ptr, ptr %1, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 24
  %8 = load ptr, ptr %7, align 8
  %9 = invoke noundef ptr %8(ptr noundef nonnull align 8 dereferenceable(64) %1)
          to label %10 unwind label %61

10:                                               ; preds = %4
  %11 = ptrtoint ptr %9 to i64
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 24
  %14 = load ptr, ptr %13, align 8
  %15 = invoke noundef ptr %14(ptr noundef nonnull align 8 dereferenceable(64) %2)
          to label %16 unwind label %63

16:                                               ; preds = %10
  %17 = ptrtoint ptr %15 to i64
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 24
  %20 = load ptr, ptr %19, align 8
  %21 = invoke noundef ptr %20(ptr noundef nonnull align 8 dereferenceable(64) %3)
          to label %22 unwind label %65

22:                                               ; preds = %16
  %23 = ptrtoint ptr %21 to i64
  %24 = call noundef i32 @_ZN13TSPIndividual15getNumberCitiesEv(ptr noundef nonnull align 8 dereferenceable(64) %3)
  %25 = invoke noundef i64 @_ZN12MTRand_int32clEv(ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %26 unwind label %67

26:                                               ; preds = %22
  %27 = sext i32 %24 to i64
  %28 = urem i64 %25, %27
  %29 = trunc i64 %28 to i32
  %30 = invoke noundef i64 @_ZN12MTRand_int32clEv(ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %31 unwind label %69

31:                                               ; preds = %26
  %32 = add i64 %28, 1
  %33 = sub nsw i32 %24, %29
  %34 = sext i32 %33 to i64
  %35 = urem i64 %30, %34
  %36 = add i64 %32, %35
  %37 = trunc i64 %36 to i32
  %38 = icmp sgt i32 %24, 0
  br i1 %38, label %.lr.ph.preheader, label %.preheader100

.lr.ph.preheader:                                 ; preds = %31
  %wide.trip.count = zext nneg i32 %24 to i64
  %min.iters.check = icmp ult i32 %24, 8
  %39 = sub i64 %23, %11
  %diff.check = icmp ult i64 %39, 32
  %or.cond = or i1 %min.iters.check, %diff.check
  br i1 %or.cond, label %.lr.ph.preheader162, label %vector.ph

.lr.ph.preheader162:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader162, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader162 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader162 ]
  %40 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv.prol
  %41 = load i32, ptr %40, align 4, !tbaa !8
  %42 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv.prol
  store i32 %41, ptr %42, align 4, !tbaa !8
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !11

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader162
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader162 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %43 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %44 = icmp ugt i64 %43, -4
  br i1 %44, label %.preheader100, label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %45 = getelementptr inbounds i32, ptr %9, i64 %index
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %wide.load = load <4 x i32>, ptr %45, align 4, !tbaa !8
  %wide.load144 = load <4 x i32>, ptr %46, align 4, !tbaa !8
  %47 = getelementptr inbounds i32, ptr %21, i64 %index
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  store <4 x i32> %wide.load, ptr %47, align 4, !tbaa !8
  store <4 x i32> %wide.load144, ptr %48, align 4, !tbaa !8
  %index.next = add nuw i64 %index, 8
  %49 = icmp eq i64 %index.next, %n.vec
  br i1 %49, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader100, label %.lr.ph.preheader162

.preheader100:                                    ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %31
  %50 = icmp slt i32 %29, %37
  br i1 %50, label %.preheader99.preheader, label %.preheader98

.preheader99.preheader:                           ; preds = %.preheader100
  %sext = shl i64 %28, 32
  %51 = ashr exact i64 %sext, 32
  %sext140 = shl i64 %36, 32
  %52 = ashr exact i64 %sext140, 32
  %53 = sub i64 %36, %28
  %.neg = add nsw i64 %51, 1
  %xtraiter163 = and i64 %53, 1
  %lcmp.mod164.not = icmp eq i64 %xtraiter163, 0
  br i1 %lcmp.mod164.not, label %.preheader99.prol.loopexit, label %.preheader99.prol

.preheader99.prol:                                ; preds = %.preheader99.preheader
  %54 = getelementptr inbounds i32, ptr %15, i64 %51
  %55 = load i32, ptr %54, align 4, !tbaa !8
  br label %56

56:                                               ; preds = %56, %.preheader99.prol
  %indvars.iv116.prol = phi i64 [ %indvars.iv.next117.prol, %56 ], [ 0, %.preheader99.prol ]
  %57 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv116.prol
  %58 = load i32, ptr %57, align 4, !tbaa !8
  %.not.prol = icmp eq i32 %55, %58
  %indvars.iv.next117.prol = add nuw nsw i64 %indvars.iv116.prol, 1
  br i1 %.not.prol, label %.preheader99.prol.loopexit.unr-lcssa, label %56, !llvm.loop !17

.preheader99.prol.loopexit.unr-lcssa:             ; preds = %56
  %59 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv116.prol
  store i32 0, ptr %59, align 4, !tbaa !8
  %indvars.iv.next120.prol = add nsw i64 %51, 1
  br label %.preheader99.prol.loopexit

.preheader99.prol.loopexit:                       ; preds = %.preheader99.prol.loopexit.unr-lcssa, %.preheader99.preheader
  %indvars.iv119.unr = phi i64 [ %51, %.preheader99.preheader ], [ %indvars.iv.next120.prol, %.preheader99.prol.loopexit.unr-lcssa ]
  %60 = icmp eq i64 %52, %.neg
  br i1 %60, label %.preheader98, label %.preheader99.preheader.new

.preheader99.preheader.new:                       ; preds = %.preheader99.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %15, i64 4
  br label %.preheader99

61:                                               ; preds = %4
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %129

63:                                               ; preds = %10
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %129

65:                                               ; preds = %16
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %129

67:                                               ; preds = %22
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %129

69:                                               ; preds = %26
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %129

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %71 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv
  %72 = load i32, ptr %71, align 4, !tbaa !8
  %73 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv
  store i32 %72, ptr %73, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %74 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv.next
  %75 = load i32, ptr %74, align 4, !tbaa !8
  %76 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv.next
  store i32 %75, ptr %76, align 4, !tbaa !8
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %77 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv.next.1
  %78 = load i32, ptr %77, align 4, !tbaa !8
  %79 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv.next.1
  store i32 %78, ptr %79, align 4, !tbaa !8
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %80 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv.next.2
  %81 = load i32, ptr %80, align 4, !tbaa !8
  %82 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv.next.2
  store i32 %81, ptr %82, align 4, !tbaa !8
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %.preheader100, label %.lr.ph, !llvm.loop !18

.preheader99:                                     ; preds = %95, %.preheader99.preheader.new
  %indvars.iv119 = phi i64 [ %indvars.iv119.unr, %.preheader99.preheader.new ], [ %indvars.iv.next120.1, %95 ]
  %83 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv119
  %84 = load i32, ptr %83, align 4, !tbaa !8
  br label %87

.preheader98:                                     ; preds = %.preheader99.prol.loopexit, %95, %.preheader100
  %85 = icmp sgt i32 %29, 0
  br i1 %85, label %.lr.ph106.preheader, label %.preheader95

.lr.ph106.preheader:                              ; preds = %.preheader98
  %86 = and i64 %28, 2147483647
  br label %.lr.ph106

87:                                               ; preds = %87, %.preheader99
  %indvars.iv116 = phi i64 [ %indvars.iv.next117, %87 ], [ 0, %.preheader99 ]
  %88 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv116
  %89 = load i32, ptr %88, align 4, !tbaa !8
  %.not = icmp eq i32 %84, %89
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  br i1 %.not, label %.preheader99.1, label %87, !llvm.loop !17

.preheader99.1:                                   ; preds = %87
  %90 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv116
  store i32 0, ptr %90, align 4, !tbaa !8
  %gep = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv119
  %91 = load i32, ptr %gep, align 4, !tbaa !8
  br label %92

92:                                               ; preds = %92, %.preheader99.1
  %indvars.iv116.1 = phi i64 [ %indvars.iv.next117.1, %92 ], [ 0, %.preheader99.1 ]
  %93 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv116.1
  %94 = load i32, ptr %93, align 4, !tbaa !8
  %.not.1 = icmp eq i32 %91, %94
  %indvars.iv.next117.1 = add nuw nsw i64 %indvars.iv116.1, 1
  br i1 %.not.1, label %95, label %92, !llvm.loop !17

95:                                               ; preds = %92
  %96 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv116.1
  store i32 0, ptr %96, align 4, !tbaa !8
  %indvars.iv.next120.1 = add nsw i64 %indvars.iv119, 2
  %97 = icmp slt i64 %indvars.iv.next120.1, %52
  br i1 %97, label %.preheader99, label %.preheader98, !llvm.loop !19

.preheader95:                                     ; preds = %.loopexit97, %.preheader98
  %.not.not109 = icmp sgt i32 %24, %37
  br i1 %.not.not109, label %.lr.ph112.preheader, label %.preheader

.lr.ph112.preheader:                              ; preds = %.preheader95
  %98 = add i32 %24, -2
  %sext141 = shl i64 %36, 32
  %99 = ashr exact i64 %sext141, 32
  br label %.lr.ph112

.lr.ph106:                                        ; preds = %.lr.ph106.preheader, %.loopexit97
  %indvars.iv122 = phi i64 [ 0, %.lr.ph106.preheader ], [ %indvars.iv.next123, %.loopexit97 ]
  %100 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv122
  %101 = load i32, ptr %100, align 4, !tbaa !8
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %.preheader96, label %.loopexit97

.preheader96:                                     ; preds = %.lr.ph106, %.preheader96
  %indvars.iv124 = phi i64 [ %indvars.iv.next125, %.preheader96 ], [ %indvars.iv122, %.lr.ph106 ]
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %103 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv.next125
  %104 = load i32, ptr %103, align 4, !tbaa !8
  store i32 %104, ptr %100, align 4, !tbaa !8
  store i32 0, ptr %103, align 4, !tbaa !8
  %.pr = load i32, ptr %100, align 4, !tbaa !8
  %105 = icmp eq i32 %.pr, 0
  br i1 %105, label %.preheader96, label %.loopexit97, !llvm.loop !20

.loopexit97:                                      ; preds = %.preheader96, %.lr.ph106
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %106 = icmp ult i64 %indvars.iv.next123, %86
  br i1 %106, label %.lr.ph106, label %.preheader95, !llvm.loop !21

.preheader:                                       ; preds = %.loopexit, %.preheader95
  br i1 %50, label %.lr.ph114.preheader, label %._crit_edge

.lr.ph114.preheader:                              ; preds = %.preheader
  %sext142 = shl i64 %28, 32
  %107 = ashr exact i64 %sext142, 32
  %sext143 = shl i64 %36, 32
  %108 = ashr exact i64 %sext143, 32
  %109 = sub nsw i64 %108, %107
  %min.iters.check149 = icmp ult i64 %109, 8
  %110 = sub i64 %23, %17
  %diff.check146 = icmp ult i64 %110, 32
  %or.cond160 = or i1 %min.iters.check149, %diff.check146
  br i1 %or.cond160, label %.lr.ph114.preheader161, label %vector.ph150

.lr.ph114.preheader161:                           ; preds = %middle.block147, %.lr.ph114.preheader
  %indvars.iv137.ph = phi i64 [ %107, %.lr.ph114.preheader ], [ %ind.end, %middle.block147 ]
  br label %.lr.ph114

vector.ph150:                                     ; preds = %.lr.ph114.preheader
  %n.vec152 = and i64 %109, -8
  %ind.end = add nsw i64 %107, %n.vec152
  br label %vector.body154

vector.body154:                                   ; preds = %vector.body154, %vector.ph150
  %index155 = phi i64 [ 0, %vector.ph150 ], [ %index.next158, %vector.body154 ]
  %offset.idx = add i64 %107, %index155
  %111 = getelementptr inbounds i32, ptr %15, i64 %offset.idx
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  %wide.load156 = load <4 x i32>, ptr %111, align 4, !tbaa !8
  %wide.load157 = load <4 x i32>, ptr %112, align 4, !tbaa !8
  %113 = getelementptr inbounds i32, ptr %21, i64 %offset.idx
  %114 = getelementptr inbounds i8, ptr %113, i64 16
  store <4 x i32> %wide.load156, ptr %113, align 4, !tbaa !8
  store <4 x i32> %wide.load157, ptr %114, align 4, !tbaa !8
  %index.next158 = add nuw i64 %index155, 8
  %115 = icmp eq i64 %index.next158, %n.vec152
  br i1 %115, label %middle.block147, label %vector.body154, !llvm.loop !22

middle.block147:                                  ; preds = %vector.body154
  %cmp.n159 = icmp eq i64 %109, %n.vec152
  br i1 %cmp.n159, label %._crit_edge, label %.lr.ph114.preheader161

.lr.ph112:                                        ; preds = %.lr.ph112.preheader, %.loopexit
  %indvars.iv133 = phi i64 [ %27, %.lr.ph112.preheader ], [ %indvars.iv.next134, %.loopexit ]
  %indvars.iv128 = phi i32 [ %98, %.lr.ph112.preheader ], [ %indvars.iv.next129, %.loopexit ]
  %indvars.iv.next134 = add nsw i64 %indvars.iv133, -1
  %116 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv.next134
  %117 = load i32, ptr %116, align 4, !tbaa !8
  %118 = icmp eq i32 %117, 0
  br i1 %118, label %119, label %.loopexit

119:                                              ; preds = %.lr.ph112
  %120 = sext i32 %indvars.iv128 to i64
  br label %121

121:                                              ; preds = %119, %121
  %indvars.iv130 = phi i64 [ %120, %119 ], [ %indvars.iv.next131, %121 ]
  %122 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv130
  %123 = load i32, ptr %122, align 4, !tbaa !8
  store i32 %123, ptr %116, align 4, !tbaa !8
  store i32 0, ptr %122, align 4, !tbaa !8
  %indvars.iv.next131 = add nsw i64 %indvars.iv130, -1
  %.pr94 = load i32, ptr %116, align 4, !tbaa !8
  %124 = icmp eq i32 %.pr94, 0
  br i1 %124, label %121, label %.loopexit, !llvm.loop !23

.loopexit:                                        ; preds = %121, %.lr.ph112
  %.not.not = icmp sgt i64 %indvars.iv.next134, %99
  %indvars.iv.next129 = add i32 %indvars.iv128, -1
  br i1 %.not.not, label %.lr.ph112, label %.preheader, !llvm.loop !24

._crit_edge:                                      ; preds = %.lr.ph114, %middle.block147, %.preheader
  call void @_ZN12MTRand_int32D2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  ret void

.lr.ph114:                                        ; preds = %.lr.ph114.preheader161, %.lr.ph114
  %indvars.iv137 = phi i64 [ %indvars.iv.next138, %.lr.ph114 ], [ %indvars.iv137.ph, %.lr.ph114.preheader161 ]
  %125 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv137
  %126 = load i32, ptr %125, align 4, !tbaa !8
  %127 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv137
  store i32 %126, ptr %127, align 4, !tbaa !8
  %indvars.iv.next138 = add nsw i64 %indvars.iv137, 1
  %128 = icmp slt i64 %indvars.iv.next138, %108
  br i1 %128, label %.lr.ph114, label %._crit_edge, !llvm.loop !25

129:                                              ; preds = %63, %67, %69, %65, %61
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %62, %61 ], [ %64, %63 ], [ %66, %65 ], [ %70, %69 ], [ %68, %67 ]
  call void @_ZN12MTRand_int32D2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN13TSPIndividual15getNumberCitiesEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN12MTRand_int32clEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

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

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

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

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

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


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