; LLVM IR from alenic/realGA :: src/realga.ll (ZN6RealGA6evolveEv)

; 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.RealChromosome = type <{ %"class.std::vector", float, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.RealGA = type { ptr, %"class.std::vector", %"class.std::vector", %"class.std::vector.0", %"class.std::vector.0", %class.RealGAOptions, ptr, %"class.std::vector", float, i32, ptr, ptr, ptr, i32, float }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<RealChromosome, std::allocator<RealChromosome>>::_Vector_impl" }
%"struct.std::_Vector_base<RealChromosome, std::allocator<RealChromosome>>::_Vector_impl" = type { %"struct.std::_Vector_base<RealChromosome, std::allocator<RealChromosome>>::_Vector_impl_data" }
%"struct.std::_Vector_base<RealChromosome, std::allocator<RealChromosome>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.RealGAOptions = type { i64, i64, %"class.std::vector", %"class.std::vector", i32, i32, float, i8, i32, i32, float, i32, i32, i32, float, float, float, float }

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN14RealChromosomeC1Ei(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #3

; 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 noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6RealGA11evalFitnessERK14RealChromosome(ptr noundef nonnull align 8 dereferenceable(296), ptr noundef nonnull align 8 dereferenceable(28)) #4 align 2

declare noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6RealGA6evolveEv(ptr noundef nonnull align 8 dereferenceable(296) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %class.RealChromosome, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #6
  %13 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 5
  %14 = getelementptr inbounds %class.RealGAOptions, ptr %13, i32 0, i32 1
  %15 = load i64, ptr %14, align 8, !tbaa !9
  %16 = trunc i64 %15 to i32
  call void @_ZN14RealChromosomeC1Ei(ptr noundef nonnull align 8 dereferenceable(28) %3, i32 noundef %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !28
  %17 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 3
  call void @_ZN6RealGA17fillFitnessValuesERSt6vectorI14RealChromosomeSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(296) %12, ptr noundef nonnull align 8 dereferenceable(24) %17)
  %18 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 7
  %19 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 5
  %20 = getelementptr inbounds %class.RealGAOptions, ptr %19, i32 0, i32 0
  %21 = load i64, ptr %20, align 8, !tbaa !29
  %22 = sub i64 %21, 1
  %23 = trunc i64 %22 to i32
  %24 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 9
  %25 = load i32, ptr %24, align 4, !tbaa !30
  %26 = add nsw i32 %25, 1
  %27 = invoke noundef float @_ZN4RALG11kthSmallestERSt6vectorIfSaIfEEiii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 0, i32 noundef %23, i32 noundef %26)
          to label %28 unwind label %66

28:                                               ; preds = %1
  %29 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 8
  store float %27, ptr %29, align 8, !tbaa !31
  br label %30

30:                                               ; preds = %161, %61, %28
  %31 = load i32, ptr %6, align 4, !tbaa !28
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 5
  %34 = getelementptr inbounds %class.RealGAOptions, ptr %33, i32 0, i32 0
  %35 = load i64, ptr %34, align 8, !tbaa !29
  %36 = icmp ult i64 %32, %35
  br i1 %36, label %37, label %164

37:                                               ; preds = %30
  %38 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 7
  %39 = load i32, ptr %6, align 4, !tbaa !28
  %40 = sext i32 %39 to i64
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %40) #6
  %42 = load float, ptr %41, align 4, !tbaa !32
  %43 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 8
  %44 = load float, ptr %43, align 8, !tbaa !31
  %45 = fcmp olt float %42, %44
  br i1 %45, label %46, label %70

46:                                               ; preds = %37
  %47 = load i32, ptr %7, align 4, !tbaa !28
  %48 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 9
  %49 = load i32, ptr %48, align 4, !tbaa !30
  %50 = icmp sle i32 %47, %49
  br i1 %50, label %51, label %70

51:                                               ; preds = %46
  %52 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 3
  %53 = load i32, ptr %6, align 4, !tbaa !28
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %54) #6
  %56 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 4
  %57 = load i32, ptr %6, align 4, !tbaa !28
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %58) #6
  %60 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %59, ptr noundef nonnull align 8 dereferenceable(28) %55)
          to label %61 unwind label %66

61:                                               ; preds = %51
  %62 = load i32, ptr %6, align 4, !tbaa !28
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %6, align 4, !tbaa !28
  %64 = load i32, ptr %7, align 4, !tbaa !28
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %7, align 4, !tbaa !28
  br label %30, !llvm.loop !33

66:                                               ; preds = %155, %110, %102, %96, %77, %70, %51, %1
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %8, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %9, align 4
  br label %222

70:                                               ; preds = %46, %37
  %71 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 10
  %72 = load ptr, ptr %71, align 8, !tbaa !35
  %73 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 7
  %74 = load ptr, ptr %72, align 8, !tbaa !36
  %75 = getelementptr inbounds ptr, ptr %74, i64 2
  %76 = load ptr, ptr %75, align 8
  invoke void %76(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %77 unwind label %66

77:                                               ; preds = %70
  %78 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 11
  %79 = load ptr, ptr %78, align 8, !tbaa !38
  %80 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 3
  %81 = load i32, ptr %4, align 4, !tbaa !28
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %82) #6
  %84 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 3
  %85 = load i32, ptr %5, align 4, !tbaa !28
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %86) #6
  %88 = load ptr, ptr %79, align 8, !tbaa !36
  %89 = getelementptr inbounds ptr, ptr %88, i64 2
  %90 = load ptr, ptr %89, align 8
  invoke void %90(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull align 8 dereferenceable(28) %83, ptr noundef nonnull align 8 dereferenceable(28) %87, ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %91 unwind label %66

91:                                               ; preds = %77
  %92 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 5
  %93 = getelementptr inbounds %class.RealGAOptions, ptr %92, i32 0, i32 13
  %94 = load i32, ptr %93, align 4, !tbaa !39
  %95 = icmp eq i32 %94, 2
  br i1 %95, label %96, label %102

96:                                               ; preds = %91
  %97 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 12
  %98 = load ptr, ptr %97, align 8, !tbaa !40
  %99 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 14
  %100 = load float, ptr %99, align 4, !tbaa !41
  invoke void @_ZN8Mutation21setMutationPercentageEf(ptr noundef nonnull align 8 dereferenceable(16) %98, float noundef %100)
          to label %101 unwind label %66

101:                                              ; preds = %96
  br label %102

102:                                              ; preds = %101, %91
  %103 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 12
  %104 = load ptr, ptr %103, align 8, !tbaa !40
  %105 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 1
  %106 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 2
  %107 = load ptr, ptr %104, align 8, !tbaa !36
  %108 = getelementptr inbounds ptr, ptr %107, i64 2
  %109 = load ptr, ptr %108, align 8
  invoke void %109(ptr noundef nonnull align 8 dereferenceable(16) %104, ptr noundef nonnull align 8 dereferenceable(28) %3, ptr noundef nonnull align 8 dereferenceable(24) %105, ptr noundef nonnull align 8 dereferenceable(24) %106)
          to label %110 unwind label %66

110:                                              ; preds = %102
  %111 = invoke noundef float @_ZN6RealGA11evalFitnessERK14RealChromosome(ptr noundef nonnull align 8 dereferenceable(296) %12, ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %112 unwind label %66

112:                                              ; preds = %110
  %113 = getelementptr inbounds %class.RealChromosome, ptr %3, i32 0, i32 1
  store float %111, ptr %113, align 8, !tbaa !42
  %114 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 5
  %115 = getelementptr inbounds %class.RealGAOptions, ptr %114, i32 0, i32 7
  %116 = load i8, ptr %115, align 4, !tbaa !44, !range !45, !noundef !46
  %117 = trunc i8 %116 to i1
  br i1 %117, label %118, label %155

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

119:                                              ; preds = %151, %118
  %120 = load i32, ptr %10, align 4, !tbaa !28
  %121 = load i32, ptr %6, align 4, !tbaa !28
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %154

124:                                              ; preds = %119
  %125 = getelementptr inbounds %class.RealChromosome, ptr %3, i32 0, i32 1
  %126 = load float, ptr %125, align 8, !tbaa !42
  %127 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 4
  %128 = load i32, ptr %10, align 4, !tbaa !28
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %129) #6
  %131 = getelementptr inbounds %class.RealChromosome, ptr %130, i32 0, i32 1
  %132 = load float, ptr %131, align 8, !tbaa !42
  %133 = fcmp oeq float %126, %132
  br i1 %133, label %134, label %150

134:                                              ; preds = %124
  %135 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 12
  %136 = load ptr, ptr %135, align 8, !tbaa !40
  %137 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 1
  %138 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 2
  %139 = load ptr, ptr %136, align 8, !tbaa !36
  %140 = getelementptr inbounds ptr, ptr %139, i64 2
  %141 = load ptr, ptr %140, align 8
  invoke void %141(ptr noundef nonnull align 8 dereferenceable(16) %136, ptr noundef nonnull align 8 dereferenceable(28) %3, ptr noundef nonnull align 8 dereferenceable(24) %137, ptr noundef nonnull align 8 dereferenceable(24) %138)
          to label %142 unwind label %146

142:                                              ; preds = %134
  %143 = invoke noundef float @_ZN6RealGA11evalFitnessERK14RealChromosome(ptr noundef nonnull align 8 dereferenceable(296) %12, ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %144 unwind label %146

144:                                              ; preds = %142
  %145 = getelementptr inbounds %class.RealChromosome, ptr %3, i32 0, i32 1
  store float %143, ptr %145, align 8, !tbaa !42
  br label %150

146:                                              ; preds = %142, %134
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %8, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %222

150:                                              ; preds = %144, %124
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %10, align 4, !tbaa !28
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %10, align 4, !tbaa !28
  br label %119, !llvm.loop !47

154:                                              ; preds = %123
  br label %155

155:                                              ; preds = %154, %112
  %156 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 4
  %157 = load i32, ptr %6, align 4, !tbaa !28
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %158) #6
  %160 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %159, ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %161 unwind label %66

161:                                              ; preds = %155
  %162 = load i32, ptr %6, align 4, !tbaa !28
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %6, align 4, !tbaa !28
  br label %30, !llvm.loop !33

164:                                              ; preds = %30
  %165 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 5
  %166 = getelementptr inbounds %class.RealGAOptions, ptr %165, i32 0, i32 13
  %167 = load i32, ptr %166, align 4, !tbaa !39
  %168 = icmp eq i32 %167, 2
  br i1 %168, label %169, label %192

169:                                              ; preds = %164
  %170 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 14
  %171 = load float, ptr %170, align 4, !tbaa !41
  %172 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 5
  %173 = getelementptr inbounds %class.RealGAOptions, ptr %172, i32 0, i32 17
  %174 = load float, ptr %173, align 4, !tbaa !48
  %175 = fcmp ogt float %171, %174
  br i1 %175, label %176, label %186

176:                                              ; preds = %169
  %177 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 5
  %178 = getelementptr inbounds %class.RealGAOptions, ptr %177, i32 0, i32 16
  %179 = load float, ptr %178, align 8, !tbaa !49
  %180 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 13
  %181 = load i32, ptr %180, align 8, !tbaa !50
  %182 = sitofp i32 %181 to float
  %183 = fneg float %179
  %184 = call float @llvm.fmuladd.f32(float %183, float %182, float 1.000000e+00)
  %185 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 14
  store float %184, ptr %185, align 4, !tbaa !41
  br label %191

186:                                              ; preds = %169
  %187 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 5
  %188 = getelementptr inbounds %class.RealGAOptions, ptr %187, i32 0, i32 17
  %189 = load float, ptr %188, align 4, !tbaa !48
  %190 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 14
  store float %189, ptr %190, align 4, !tbaa !41
  br label %191

191:                                              ; preds = %186, %176
  br label %192

192:                                              ; preds = %191, %164
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !28
  br label %193

193:                                              ; preds = %211, %192
  %194 = load i32, ptr %11, align 4, !tbaa !28
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 3
  %197 = call noundef i64 @_ZNKSt6vectorI14RealChromosomeSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %196) #6
  %198 = icmp ult i64 %195, %197
  br i1 %198, label %200, label %199

199:                                              ; preds = %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %218

200:                                              ; preds = %193
  %201 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 4
  %202 = load i32, ptr %11, align 4, !tbaa !28
  %203 = sext i32 %202 to i64
  %204 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %201, i64 noundef %203) #6
  %205 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 3
  %206 = load i32, ptr %11, align 4, !tbaa !28
  %207 = sext i32 %206 to i64
  %208 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %205, i64 noundef %207) #6
  %209 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %208, ptr noundef nonnull align 8 dereferenceable(28) %204)
          to label %210 unwind label %214

210:                                              ; preds = %200
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %11, align 4, !tbaa !28
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %11, align 4, !tbaa !28
  br label %193, !llvm.loop !51

214:                                              ; preds = %200
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %8, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %222

218:                                              ; preds = %199
  %219 = getelementptr inbounds %class.RealGA, ptr %12, i32 0, i32 13
  %220 = load i32, ptr %219, align 8, !tbaa !50
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %219, align 8, !tbaa !50
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #6
  ret void

222:                                              ; preds = %214, %146, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #6
  br label %223

223:                                              ; preds = %222
  %224 = load ptr, ptr %8, align 8
  %225 = load i32, ptr %9, align 4
  %226 = insertvalue { ptr, i32 } poison, ptr %224, 0
  %227 = insertvalue { ptr, i32 } %226, i32 %225, 1
  resume { ptr, i32 } %227
}

declare noundef float @_ZN4RALG11kthSmallestERSt6vectorIfSaIfEEiii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i32 noundef) #2

declare void @_ZN8Mutation21setMutationPercentageEf(ptr noundef nonnull align 8 dereferenceable(16), float noundef) #2

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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, !20, i64 112}
!10 = !{!"_ZTS6RealGA", !11, i64 8, !11, i64 32, !15, i64 56, !15, i64 80, !19, i64 104, !6, i64 224, !11, i64 232, !23, i64 256, !21, i64 260, !6, i64 264, !6, i64 272, !6, i64 280, !21, i64 288, !23, i64 292}
!11 = !{!"_ZTSSt6vectorIfSaIfEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_ZTSSt6vectorI14RealChromosomeSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseI14RealChromosomeSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI14RealChromosomeSaIS0_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseI14RealChromosomeSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTS13RealGAOptions", !20, i64 0, !20, i64 8, !11, i64 16, !11, i64 40, !21, i64 64, !22, i64 68, !23, i64 72, !24, i64 76, !25, i64 80, !21, i64 84, !23, i64 88, !26, i64 92, !21, i64 96, !27, i64 100, !23, i64 104, !23, i64 108, !23, i64 112, !23, i64 116}
!20 = !{!"long", !7, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTS11VerboseType", !7, i64 0}
!23 = !{!"float", !7, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"_ZTS13SelectionType", !7, i64 0}
!26 = !{!"_ZTS13CrossoverType", !7, i64 0}
!27 = !{!"_ZTS12MutationType", !7, i64 0}
!28 = !{!21, !21, i64 0}
!29 = !{!10, !20, i64 104}
!30 = !{!10, !21, i64 260}
!31 = !{!10, !23, i64 256}
!32 = !{!23, !23, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!10, !6, i64 264}
!36 = !{!37, !37, i64 0}
!37 = !{!"vtable pointer", !8, i64 0}
!38 = !{!10, !6, i64 272}
!39 = !{!10, !27, i64 204}
!40 = !{!10, !6, i64 280}
!41 = !{!10, !23, i64 292}
!42 = !{!43, !23, i64 24}
!43 = !{!"_ZTS14RealChromosome", !11, i64 0, !23, i64 24}
!44 = !{!10, !24, i64 180}
!45 = !{i8 0, i8 2}
!46 = !{}
!47 = distinct !{!47, !34}
!48 = !{!10, !23, i64 220}
!49 = !{!10, !23, i64 216}
!50 = !{!10, !21, i64 288}
!51 = distinct !{!51, !34}


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

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN14RealChromosomeC1Ei(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #3

; 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 noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6RealGA11evalFitnessERK14RealChromosome(ptr noundef nonnull align 8 dereferenceable(296), ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #4 align 2

declare noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6RealGA6evolveEv(ptr noundef nonnull align 8 dereferenceable(296) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.RealChromosome, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  %5 = getelementptr inbounds i8, ptr %0, i64 104
  %6 = getelementptr inbounds i8, ptr %0, i64 112
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = trunc i64 %7 to i32
  call void @_ZN14RealChromosomeC1Ei(ptr noundef nonnull align 8 dereferenceable(28) %2, i32 noundef %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %9 = getelementptr inbounds i8, ptr %0, i64 56
  call void @_ZN6RealGA17fillFitnessValuesERSt6vectorI14RealChromosomeSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef nonnull align 8 dereferenceable(24) %9)
  %10 = getelementptr inbounds i8, ptr %0, i64 232
  %11 = load i64, ptr %5, align 8, !tbaa !27
  %12 = trunc i64 %11 to i32
  %13 = add i32 %12, -1
  %14 = getelementptr inbounds i8, ptr %0, i64 260
  %15 = load i32, ptr %14, align 4, !tbaa !28
  %16 = add nsw i32 %15, 1
  %17 = invoke noundef float @_ZN4RALG11kthSmallestERSt6vectorIfSaIfEEiii(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 0, i32 noundef %13, i32 noundef %16)
          to label %18 unwind label %.loopexit.split-lp

18:                                               ; preds = %1
  %19 = getelementptr inbounds i8, ptr %0, i64 256
  store float %17, ptr %19, align 8, !tbaa !29
  %20 = load i64, ptr %5, align 8, !tbaa !27
  %.not48 = icmp eq i64 %20, 0
  br i1 %.not48, label %.outer._crit_edge, label %.lr.ph40.lr.ph

.lr.ph40.lr.ph:                                   ; preds = %18
  %21 = getelementptr inbounds i8, ptr %0, i64 264
  %22 = getelementptr inbounds i8, ptr %0, i64 272
  %23 = getelementptr inbounds i8, ptr %0, i64 204
  %24 = getelementptr inbounds i8, ptr %0, i64 280
  %25 = getelementptr inbounds i8, ptr %0, i64 292
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = getelementptr inbounds i8, ptr %0, i64 32
  %28 = getelementptr inbounds i8, ptr %2, i64 24
  %29 = getelementptr inbounds i8, ptr %0, i64 180
  %30 = getelementptr inbounds i8, ptr %0, i64 80
  br label %.lr.ph40

.lr.ph40:                                         ; preds = %.lr.ph40.lr.ph, %.outer
  %31 = phi i64 [ 0, %.lr.ph40.lr.ph ], [ %47, %.outer ]
  %.022.ph42 = phi i32 [ 0, %.lr.ph40.lr.ph ], [ %46, %.outer ]
  %.023.ph41 = phi i32 [ 0, %.lr.ph40.lr.ph ], [ %45, %.outer ]
  %32 = sext i32 %.023.ph41 to i64
  br label %33

33:                                               ; preds = %.lr.ph40, %101
  %indvars.iv58 = phi i64 [ %32, %.lr.ph40 ], [ %indvars.iv.next59, %101 ]
  %34 = phi i64 [ %31, %.lr.ph40 ], [ %indvars.iv.next59, %101 ]
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %34) #6
  %36 = load float, ptr %35, align 4, !tbaa !30
  %37 = load float, ptr %19, align 8, !tbaa !29
  %38 = fcmp uge float %36, %37
  %39 = load i32, ptr %14, align 4
  %.not = icmp sgt i32 %.022.ph42, %39
  %or.cond = select i1 %38, i1 true, i1 %.not
  br i1 %or.cond, label %50, label %40

40:                                               ; preds = %33
  %41 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %34) #6
  %42 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %34) #6
  %43 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %42, ptr noundef nonnull align 8 dereferenceable(28) %41)
          to label %.outer unwind label %.loopexit28.loopexit.split-lp

.outer:                                           ; preds = %40
  %44 = trunc nsw i64 %indvars.iv58 to i32
  %45 = add nsw i32 %44, 1
  %46 = add nuw nsw i32 %.022.ph42, 1
  %47 = sext i32 %45 to i64
  %48 = load i64, ptr %5, align 8, !tbaa !27
  %49 = icmp ugt i64 %48, %47
  br i1 %49, label %.lr.ph40, label %.outer._crit_edge, !llvm.loop !31

.loopexit28.loopexit:                             ; preds = %.loopexit, %77, %72, %69, %55, %50
  %lpad.loopexit29 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit28

.loopexit28.loopexit.split-lp:                    ; preds = %40
  %lpad.loopexit.split-lp30 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit28

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

50:                                               ; preds = %33
  %51 = load ptr, ptr %21, align 8, !tbaa !33
  %52 = load ptr, ptr %51, align 8, !tbaa !34
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  %54 = load ptr, ptr %53, align 8
  invoke void %54(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %55 unwind label %.loopexit28.loopexit

55:                                               ; preds = %50
  %56 = load ptr, ptr %22, align 8, !tbaa !36
  %57 = load i32, ptr %3, align 4, !tbaa !37
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %58) #6
  %60 = load i32, ptr %4, align 4, !tbaa !37
  %61 = sext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %61) #6
  %63 = load ptr, ptr %56, align 8, !tbaa !34
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  %65 = load ptr, ptr %64, align 8
  invoke void %65(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 8 dereferenceable(28) %59, ptr noundef nonnull align 8 dereferenceable(28) %62, ptr noundef nonnull align 8 dereferenceable(28) %2)
          to label %66 unwind label %.loopexit28.loopexit

66:                                               ; preds = %55
  %67 = load i32, ptr %23, align 4, !tbaa !38
  %68 = icmp eq i32 %67, 2
  br i1 %68, label %69, label %72

69:                                               ; preds = %66
  %70 = load ptr, ptr %24, align 8, !tbaa !39
  %71 = load float, ptr %25, align 4, !tbaa !40
  invoke void @_ZN8Mutation21setMutationPercentageEf(ptr noundef nonnull align 8 dereferenceable(16) %70, float noundef %71)
          to label %72 unwind label %.loopexit28.loopexit

72:                                               ; preds = %69, %66
  %73 = load ptr, ptr %24, align 8, !tbaa !39
  %74 = load ptr, ptr %73, align 8, !tbaa !34
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  %76 = load ptr, ptr %75, align 8
  invoke void %76(ptr noundef nonnull align 8 dereferenceable(16) %73, ptr noundef nonnull align 8 dereferenceable(28) %2, ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %77 unwind label %.loopexit28.loopexit

77:                                               ; preds = %72
  %78 = invoke noundef float @_ZN6RealGA11evalFitnessERK14RealChromosome(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef nonnull align 8 dereferenceable(28) %2)
          to label %79 unwind label %.loopexit28.loopexit

79:                                               ; preds = %77
  store float %78, ptr %28, align 8, !tbaa !41
  %80 = load i8, ptr %29, align 4, !tbaa !43, !range !44, !noundef !45
  %81 = trunc nuw i8 %80 to i1
  %82 = icmp sgt i64 %indvars.iv58, 0
  %or.cond47 = and i1 %82, %81
  br i1 %or.cond47, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %79
  %wide.trip.count = and i64 %indvars.iv58, 4294967295
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %98
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %98 ]
  %83 = load float, ptr %28, align 8, !tbaa !41
  %84 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv) #6
  %85 = getelementptr inbounds i8, ptr %84, i64 24
  %86 = load float, ptr %85, align 8, !tbaa !41
  %87 = fcmp oeq float %83, %86
  br i1 %87, label %88, label %98

88:                                               ; preds = %.lr.ph
  %89 = load ptr, ptr %24, align 8, !tbaa !39
  %90 = load ptr, ptr %89, align 8, !tbaa !34
  %91 = getelementptr inbounds i8, ptr %90, i64 16
  %92 = load ptr, ptr %91, align 8
  invoke void %92(ptr noundef nonnull align 8 dereferenceable(16) %89, ptr noundef nonnull align 8 dereferenceable(28) %2, ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %93 unwind label %96

93:                                               ; preds = %88
  %94 = invoke noundef float @_ZN6RealGA11evalFitnessERK14RealChromosome(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef nonnull align 8 dereferenceable(28) %2)
          to label %95 unwind label %96

95:                                               ; preds = %93
  store float %94, ptr %28, align 8, !tbaa !41
  br label %98

96:                                               ; preds = %93, %88
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit28

98:                                               ; preds = %.lr.ph, %95
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !46

.loopexit:                                        ; preds = %98, %79
  %99 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %34) #6
  %100 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %99, ptr noundef nonnull align 8 dereferenceable(28) %2)
          to label %101 unwind label %.loopexit28.loopexit

101:                                              ; preds = %.loopexit
  %indvars.iv.next59 = add nsw i64 %indvars.iv58, 1
  %102 = load i64, ptr %5, align 8, !tbaa !27
  %103 = icmp ugt i64 %102, %indvars.iv.next59
  br i1 %103, label %33, label %.outer._crit_edge, !llvm.loop !31

.outer._crit_edge:                                ; preds = %.outer, %101, %18
  %104 = getelementptr inbounds i8, ptr %0, i64 204
  %105 = load i32, ptr %104, align 4, !tbaa !38
  %106 = icmp eq i32 %105, 2
  br i1 %106, label %107, label %121

107:                                              ; preds = %.outer._crit_edge
  %108 = getelementptr inbounds i8, ptr %0, i64 292
  %109 = load float, ptr %108, align 4, !tbaa !40
  %110 = getelementptr inbounds i8, ptr %0, i64 220
  %111 = load float, ptr %110, align 4, !tbaa !47
  %112 = fcmp ogt float %109, %111
  br i1 %112, label %113, label %.sink.split

113:                                              ; preds = %107
  %114 = getelementptr inbounds i8, ptr %0, i64 216
  %115 = load float, ptr %114, align 8, !tbaa !48
  %116 = getelementptr inbounds i8, ptr %0, i64 288
  %117 = load i32, ptr %116, align 8, !tbaa !49
  %118 = sitofp i32 %117 to float
  %119 = fneg float %115
  %120 = call float @llvm.fmuladd.f32(float %119, float %118, float 1.000000e+00)
  br label %.sink.split

.sink.split:                                      ; preds = %107, %113
  %.sink = phi float [ %120, %113 ], [ %111, %107 ]
  store float %.sink, ptr %108, align 4, !tbaa !40
  br label %121

121:                                              ; preds = %.sink.split, %.outer._crit_edge
  %122 = call noundef i64 @_ZNKSt6vectorI14RealChromosomeSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %.not49 = icmp eq i64 %122, 0
  br i1 %.not49, label %._crit_edge46, label %.lr.ph45

.lr.ph45:                                         ; preds = %121
  %123 = getelementptr inbounds i8, ptr %0, i64 80
  br label %127

._crit_edge46:                                    ; preds = %131, %121
  %124 = getelementptr inbounds i8, ptr %0, i64 288
  %125 = load i32, ptr %124, align 8, !tbaa !49
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %124, align 8, !tbaa !49
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  ret void

127:                                              ; preds = %.lr.ph45, %131
  %indvars.iv61 = phi i64 [ 0, %.lr.ph45 ], [ %indvars.iv.next62, %131 ]
  %128 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %indvars.iv61) #6
  %129 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv61) #6
  %130 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %129, ptr noundef nonnull align 8 dereferenceable(28) %128)
          to label %131 unwind label %134

131:                                              ; preds = %127
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %132 = call noundef i64 @_ZNKSt6vectorI14RealChromosomeSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %133 = icmp ugt i64 %132, %indvars.iv.next62
  br i1 %133, label %127, label %._crit_edge46, !llvm.loop !50

134:                                              ; preds = %127
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit28

.loopexit28:                                      ; preds = %.loopexit.split-lp, %.loopexit28.loopexit.split-lp, %.loopexit28.loopexit, %134, %96
  %.pn = phi { ptr, i32 } [ %97, %96 ], [ %135, %134 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit29, %.loopexit28.loopexit ], [ %lpad.loopexit.split-lp30, %.loopexit28.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn
}

declare noundef float @_ZN4RALG11kthSmallestERSt6vectorIfSaIfEEiii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @_ZN8Mutation21setMutationPercentageEf(ptr noundef nonnull align 8 dereferenceable(16), float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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, !19, i64 112}
!6 = !{!"_ZTS6RealGA", !7, i64 8, !7, i64 32, !14, i64 56, !14, i64 80, !18, i64 104, !11, i64 224, !7, i64 232, !22, i64 256, !20, i64 260, !11, i64 264, !11, i64 272, !11, i64 280, !20, i64 288, !22, i64 292}
!7 = !{!"_ZTSSt6vectorIfSaIfEE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt6vectorI14RealChromosomeSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseI14RealChromosomeSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI14RealChromosomeSaIS0_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI14RealChromosomeSaIS0_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!"_ZTS13RealGAOptions", !19, i64 0, !19, i64 8, !7, i64 16, !7, i64 40, !20, i64 64, !21, i64 68, !22, i64 72, !23, i64 76, !24, i64 80, !20, i64 84, !22, i64 88, !25, i64 92, !20, i64 96, !26, i64 100, !22, i64 104, !22, i64 108, !22, i64 112, !22, i64 116}
!19 = !{!"long", !12, i64 0}
!20 = !{!"int", !12, i64 0}
!21 = !{!"_ZTS11VerboseType", !12, i64 0}
!22 = !{!"float", !12, i64 0}
!23 = !{!"bool", !12, i64 0}
!24 = !{!"_ZTS13SelectionType", !12, i64 0}
!25 = !{!"_ZTS13CrossoverType", !12, i64 0}
!26 = !{!"_ZTS12MutationType", !12, i64 0}
!27 = !{!6, !19, i64 104}
!28 = !{!6, !20, i64 260}
!29 = !{!6, !22, i64 256}
!30 = !{!22, !22, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!6, !11, i64 264}
!34 = !{!35, !35, i64 0}
!35 = !{!"vtable pointer", !13, i64 0}
!36 = !{!6, !11, i64 272}
!37 = !{!20, !20, i64 0}
!38 = !{!6, !26, i64 204}
!39 = !{!6, !11, i64 280}
!40 = !{!6, !22, i64 292}
!41 = !{!42, !22, i64 24}
!42 = !{!"_ZTS14RealChromosome", !7, i64 0, !22, i64 24}
!43 = !{!6, !23, i64 180}
!44 = !{i8 0, i8 2}
!45 = !{}
!46 = distinct !{!46, !32}
!47 = !{!6, !22, i64 220}
!48 = !{!6, !22, i64 216}
!49 = !{!6, !20, i64 288}
!50 = distinct !{!50, !32}


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