; LLVM IR from alenic/realGA :: src/realga_mt.ll (ZN18RealGenMultithread6evolveEv)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%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 }
%class.RealGenMultithread = type { %class.RealGA, i32, ptr }
%struct.thread_params = type { i32, i32, ptr }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@__func__._ZN18RealGenMultithread6evolveEv = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN18RealGenMultithread24evaluatePopulationThreadEPv(ptr noundef) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.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) #2 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 uwtable
define dso_local void @_ZN18RealGenMultithread6evolveEv(ptr noundef nonnull align 8 dereferenceable(312) %0) unnamed_addr #0 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 ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #10
  %20 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 5
  %21 = getelementptr inbounds %class.RealGAOptions, ptr %20, i32 0, i32 1
  %22 = load i64, ptr %21, align 8, !tbaa !9
  %23 = trunc i64 %22 to i32
  call void @_ZN14RealChromosomeC1Ei(ptr noundef nonnull align 8 dereferenceable(28) %3, i32 noundef %23)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #10
  store i32 0, ptr %6, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  store i32 0, ptr %7, align 4, !tbaa !28
  %24 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 3
  invoke void @_ZN6RealGA17fillFitnessValuesERSt6vectorI14RealChromosomeSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(296) %19, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %25 unwind label %74

25:                                               ; preds = %1
  %26 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 7
  %27 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 5
  %28 = getelementptr inbounds %class.RealGAOptions, ptr %27, i32 0, i32 0
  %29 = load i64, ptr %28, align 8, !tbaa !29
  %30 = sub i64 %29, 1
  %31 = trunc i64 %30 to i32
  %32 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 9
  %33 = load i32, ptr %32, align 4, !tbaa !30
  %34 = add nsw i32 %33, 1
  %35 = invoke noundef float @_ZN4RALG11kthSmallestERSt6vectorIfSaIfEEiii(ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef 0, i32 noundef %31, i32 noundef %34)
          to label %36 unwind label %74

36:                                               ; preds = %25
  %37 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 8
  store float %35, ptr %37, align 8, !tbaa !31
  br label %38

38:                                               ; preds = %124, %69, %36
  %39 = load i32, ptr %6, align 4, !tbaa !28
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 5
  %42 = getelementptr inbounds %class.RealGAOptions, ptr %41, i32 0, i32 0
  %43 = load i64, ptr %42, align 8, !tbaa !29
  %44 = icmp ult i64 %40, %43
  br i1 %44, label %45, label %127

45:                                               ; preds = %38
  %46 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 7
  %47 = load i32, ptr %6, align 4, !tbaa !28
  %48 = sext i32 %47 to i64
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48) #10
  %50 = load float, ptr %49, align 4, !tbaa !32
  %51 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 8
  %52 = load float, ptr %51, align 8, !tbaa !31
  %53 = fcmp olt float %50, %52
  br i1 %53, label %54, label %78

54:                                               ; preds = %45
  %55 = load i32, ptr %7, align 4, !tbaa !28
  %56 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 9
  %57 = load i32, ptr %56, align 4, !tbaa !30
  %58 = icmp sle i32 %55, %57
  br i1 %58, label %59, label %78

59:                                               ; preds = %54
  %60 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 3
  %61 = load i32, ptr %6, align 4, !tbaa !28
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %62) #10
  %64 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 4
  %65 = load i32, ptr %6, align 4, !tbaa !28
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %66) #10
  %68 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %67, ptr noundef nonnull align 8 dereferenceable(28) %63)
          to label %69 unwind label %74

69:                                               ; preds = %59
  %70 = load i32, ptr %6, align 4, !tbaa !28
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %6, align 4, !tbaa !28
  %72 = load i32, ptr %7, align 4, !tbaa !28
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %7, align 4, !tbaa !28
  br label %38, !llvm.loop !33

74:                                               ; preds = %118, %110, %104, %85, %78, %59, %25, %1
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %8, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %9, align 4
  br label %312

78:                                               ; preds = %54, %45
  %79 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 10
  %80 = load ptr, ptr %79, align 8, !tbaa !35
  %81 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 7
  %82 = load ptr, ptr %80, align 8, !tbaa !36
  %83 = getelementptr inbounds ptr, ptr %82, i64 2
  %84 = load ptr, ptr %83, align 8
  invoke void %84(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %85 unwind label %74

85:                                               ; preds = %78
  %86 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 11
  %87 = load ptr, ptr %86, align 8, !tbaa !38
  %88 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 3
  %89 = load i32, ptr %4, align 4, !tbaa !28
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %90) #10
  %92 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 3
  %93 = load i32, ptr %5, align 4, !tbaa !28
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %94) #10
  %96 = load ptr, ptr %87, align 8, !tbaa !36
  %97 = getelementptr inbounds ptr, ptr %96, i64 2
  %98 = load ptr, ptr %97, align 8
  invoke void %98(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull align 8 dereferenceable(28) %91, ptr noundef nonnull align 8 dereferenceable(28) %95, ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %99 unwind label %74

99:                                               ; preds = %85
  %100 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 5
  %101 = getelementptr inbounds %class.RealGAOptions, ptr %100, i32 0, i32 13
  %102 = load i32, ptr %101, align 4, !tbaa !39
  %103 = icmp eq i32 %102, 2
  br i1 %103, label %104, label %110

104:                                              ; preds = %99
  %105 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 12
  %106 = load ptr, ptr %105, align 8, !tbaa !40
  %107 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 14
  %108 = load float, ptr %107, align 4, !tbaa !41
  invoke void @_ZN8Mutation21setMutationPercentageEf(ptr noundef nonnull align 8 dereferenceable(16) %106, float noundef %108)
          to label %109 unwind label %74

109:                                              ; preds = %104
  br label %110

110:                                              ; preds = %109, %99
  %111 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 12
  %112 = load ptr, ptr %111, align 8, !tbaa !40
  %113 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 1
  %114 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 2
  %115 = load ptr, ptr %112, align 8, !tbaa !36
  %116 = getelementptr inbounds ptr, ptr %115, i64 2
  %117 = load ptr, ptr %116, align 8
  invoke void %117(ptr noundef nonnull align 8 dereferenceable(16) %112, ptr noundef nonnull align 8 dereferenceable(28) %3, ptr noundef nonnull align 8 dereferenceable(24) %113, ptr noundef nonnull align 8 dereferenceable(24) %114)
          to label %118 unwind label %74

118:                                              ; preds = %110
  %119 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 4
  %120 = load i32, ptr %6, align 4, !tbaa !28
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %121) #10
  %123 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %122, ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %124 unwind label %74

124:                                              ; preds = %118
  %125 = load i32, ptr %6, align 4, !tbaa !28
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %6, align 4, !tbaa !28
  br label %38, !llvm.loop !33

127:                                              ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  %128 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 5
  %129 = getelementptr inbounds %class.RealGAOptions, ptr %128, i32 0, i32 0
  %130 = load i64, ptr %129, align 8, !tbaa !29
  %131 = uitofp i64 %130 to float
  %132 = getelementptr inbounds %class.RealGenMultithread, ptr %19, i32 0, i32 1
  %133 = load i32, ptr %132, align 8, !tbaa !42
  %134 = uitofp i32 %133 to float
  %135 = fdiv float %131, %134
  %136 = invoke noundef float @_ZSt4ceilf(float noundef %135)
          to label %137 unwind label %150

137:                                              ; preds = %127
  %138 = fptosi float %136 to i32
  store i32 %138, ptr %10, align 4, !tbaa !28
  %139 = getelementptr inbounds %class.RealGenMultithread, ptr %19, i32 0, i32 1
  %140 = load i32, ptr %139, align 8, !tbaa !42
  %141 = zext i32 %140 to i64
  %142 = call ptr @llvm.stacksave.p0()
  store ptr %142, ptr %11, align 8
  %143 = alloca %struct.thread_params, i64 %141, align 16
  store i64 %141, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  store i32 0, ptr %13, align 4, !tbaa !28
  br label %144

144:                                              ; preds = %225, %137
  %145 = load i32, ptr %13, align 4, !tbaa !28
  %146 = getelementptr inbounds %class.RealGenMultithread, ptr %19, i32 0, i32 1
  %147 = load i32, ptr %146, align 8, !tbaa !42
  %148 = icmp ult i32 %145, %147
  br i1 %148, label %154, label %149

149:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  br label %229

150:                                              ; preds = %127
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %8, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %9, align 4
  br label %311

154:                                              ; preds = %144
  %155 = load i32, ptr %10, align 4, !tbaa !28
  %156 = load i32, ptr %13, align 4, !tbaa !28
  %157 = mul nsw i32 %155, %156
  %158 = load i32, ptr %13, align 4, !tbaa !28
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds %struct.thread_params, ptr %143, i64 %159
  %161 = getelementptr inbounds %struct.thread_params, ptr %160, i32 0, i32 0
  store i32 %157, ptr %161, align 16, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  %162 = load i32, ptr %13, align 4, !tbaa !28
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds %struct.thread_params, ptr %143, i64 %163
  %165 = getelementptr inbounds %struct.thread_params, ptr %164, i32 0, i32 0
  %166 = load i32, ptr %165, align 16, !tbaa !44
  %167 = load i32, ptr %10, align 4, !tbaa !28
  %168 = add nsw i32 %166, %167
  store i32 %168, ptr %14, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #10
  %169 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 5
  %170 = getelementptr inbounds %class.RealGAOptions, ptr %169, i32 0, i32 0
  %171 = load i64, ptr %170, align 8, !tbaa !29
  %172 = trunc i64 %171 to i32
  store i32 %172, ptr %15, align 4, !tbaa !28
  %173 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %174 unwind label %216

174:                                              ; preds = %154
  %175 = load i32, ptr %173, align 4, !tbaa !28
  %176 = load i32, ptr %13, align 4, !tbaa !28
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds %struct.thread_params, ptr %143, i64 %177
  %179 = getelementptr inbounds %struct.thread_params, ptr %178, i32 0, i32 1
  store i32 %175, ptr %179, align 4, !tbaa !46
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  %180 = load i32, ptr %13, align 4, !tbaa !28
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds %struct.thread_params, ptr %143, i64 %181
  %183 = getelementptr inbounds %struct.thread_params, ptr %182, i32 0, i32 2
  store ptr %19, ptr %183, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #10
  %184 = getelementptr inbounds %class.RealGenMultithread, ptr %19, i32 0, i32 2
  %185 = load ptr, ptr %184, align 8, !tbaa !48
  %186 = load i32, ptr %13, align 4, !tbaa !28
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds i64, ptr %185, i64 %187
  %189 = load i32, ptr %13, align 4, !tbaa !28
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds %struct.thread_params, ptr %143, i64 %190
  %192 = call i32 @pthread_create(ptr noundef %188, ptr noundef null, ptr noundef @_ZN18RealGenMultithread24evaluatePopulationThreadEPv, ptr noundef %191) #10
  store i32 %192, ptr %16, align 4, !tbaa !28
  %193 = load i32, ptr %16, align 4, !tbaa !28
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %195, label %224

195:                                              ; preds = %174
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
          to label %197 unwind label %220

197:                                              ; preds = %195
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %196, ptr noundef @__func__._ZN18RealGenMultithread6evolveEv)
          to label %199 unwind label %220

199:                                              ; preds = %197
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %198, ptr noundef @.str.1)
          to label %201 unwind label %220

201:                                              ; preds = %199
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef @.str.2)
          to label %203 unwind label %220

203:                                              ; preds = %201
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %202, ptr noundef @.str.3)
          to label %205 unwind label %220

205:                                              ; preds = %203
  %206 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %204, ptr noundef @.str.4)
          to label %207 unwind label %220

207:                                              ; preds = %205
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %206, ptr noundef @.str.5)
          to label %209 unwind label %220

209:                                              ; preds = %207
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef @.str.6)
          to label %211 unwind label %220

211:                                              ; preds = %209
  %212 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %210, i32 noundef 95)
          to label %213 unwind label %220

213:                                              ; preds = %211
  %214 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %212, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %215 unwind label %220

215:                                              ; preds = %213
  call void @exit(i32 noundef -1) #11
  unreachable

216:                                              ; preds = %154
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %8, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  br label %228

220:                                              ; preds = %213, %211, %209, %207, %205, %203, %201, %199, %197, %195
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %8, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  br label %228

224:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %13, align 4, !tbaa !28
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %13, align 4, !tbaa !28
  br label %144, !llvm.loop !49

228:                                              ; preds = %220, %216
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  br label %311

229:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #10
  store i32 0, ptr %17, align 4, !tbaa !28
  br label %230

230:                                              ; preds = %245, %229
  %231 = load i32, ptr %17, align 4, !tbaa !28
  %232 = getelementptr inbounds %class.RealGenMultithread, ptr %19, i32 0, i32 1
  %233 = load i32, ptr %232, align 8, !tbaa !42
  %234 = icmp ult i32 %231, %233
  br i1 %234, label %236, label %235

235:                                              ; preds = %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  br label %252

236:                                              ; preds = %230
  %237 = getelementptr inbounds %class.RealGenMultithread, ptr %19, i32 0, i32 2
  %238 = load ptr, ptr %237, align 8, !tbaa !48
  %239 = load i32, ptr %17, align 4, !tbaa !28
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds i64, ptr %238, i64 %240
  %242 = load i64, ptr %241, align 8, !tbaa !50
  %243 = invoke i32 @pthread_join(i64 noundef %242, ptr noundef null)
          to label %244 unwind label %248

244:                                              ; preds = %236
  br label %245

245:                                              ; preds = %244
  %246 = load i32, ptr %17, align 4, !tbaa !28
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %17, align 4, !tbaa !28
  br label %230, !llvm.loop !51

248:                                              ; preds = %236
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %8, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  br label %311

252:                                              ; preds = %235
  %253 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 5
  %254 = getelementptr inbounds %class.RealGAOptions, ptr %253, i32 0, i32 13
  %255 = load i32, ptr %254, align 4, !tbaa !39
  %256 = icmp eq i32 %255, 2
  br i1 %256, label %257, label %280

257:                                              ; preds = %252
  %258 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 14
  %259 = load float, ptr %258, align 4, !tbaa !41
  %260 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 5
  %261 = getelementptr inbounds %class.RealGAOptions, ptr %260, i32 0, i32 17
  %262 = load float, ptr %261, align 4, !tbaa !52
  %263 = fcmp ogt float %259, %262
  br i1 %263, label %264, label %274

264:                                              ; preds = %257
  %265 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 5
  %266 = getelementptr inbounds %class.RealGAOptions, ptr %265, i32 0, i32 16
  %267 = load float, ptr %266, align 8, !tbaa !53
  %268 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 13
  %269 = load i32, ptr %268, align 8, !tbaa !54
  %270 = sitofp i32 %269 to float
  %271 = fneg float %267
  %272 = call float @llvm.fmuladd.f32(float %271, float %270, float 1.000000e+00)
  %273 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 14
  store float %272, ptr %273, align 4, !tbaa !41
  br label %279

274:                                              ; preds = %257
  %275 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 5
  %276 = getelementptr inbounds %class.RealGAOptions, ptr %275, i32 0, i32 17
  %277 = load float, ptr %276, align 4, !tbaa !52
  %278 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 14
  store float %277, ptr %278, align 4, !tbaa !41
  br label %279

279:                                              ; preds = %274, %264
  br label %280

280:                                              ; preds = %279, %252
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  store i32 0, ptr %18, align 4, !tbaa !28
  br label %281

281:                                              ; preds = %299, %280
  %282 = load i32, ptr %18, align 4, !tbaa !28
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 3
  %285 = call noundef i64 @_ZNKSt6vectorI14RealChromosomeSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %284) #10
  %286 = icmp ult i64 %283, %285
  br i1 %286, label %288, label %287

287:                                              ; preds = %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  br label %306

288:                                              ; preds = %281
  %289 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 4
  %290 = load i32, ptr %18, align 4, !tbaa !28
  %291 = sext i32 %290 to i64
  %292 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %289, i64 noundef %291) #10
  %293 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 3
  %294 = load i32, ptr %18, align 4, !tbaa !28
  %295 = sext i32 %294 to i64
  %296 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %293, i64 noundef %295) #10
  %297 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %296, ptr noundef nonnull align 8 dereferenceable(28) %292)
          to label %298 unwind label %302

298:                                              ; preds = %288
  br label %299

299:                                              ; preds = %298
  %300 = load i32, ptr %18, align 4, !tbaa !28
  %301 = add nsw i32 %300, 1
  store i32 %301, ptr %18, align 4, !tbaa !28
  br label %281, !llvm.loop !55

302:                                              ; preds = %288
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %8, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  br label %311

306:                                              ; preds = %287
  %307 = getelementptr inbounds %class.RealGA, ptr %19, i32 0, i32 13
  %308 = load i32, ptr %307, align 8, !tbaa !54
  %309 = add nsw i32 %308, 1
  store i32 %309, ptr %307, align 8, !tbaa !54
  %310 = load ptr, ptr %11, align 8
  call void @llvm.stackrestore.p0(ptr %310)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #10
  call void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #10
  ret void

311:                                              ; preds = %302, %248, %228, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  br label %312

312:                                              ; preds = %311, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #10
  call void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #10
  br label %313

313:                                              ; preds = %312
  %314 = load ptr, ptr %8, align 8
  %315 = load i32, ptr %9, align 4
  %316 = insertvalue { ptr, i32 } poison, ptr %314, 0
  %317 = insertvalue { ptr, i32 } %316, i32 %315, 1
  resume { ptr, i32 } %317
}

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

declare void @_ZN6RealGA17fillFitnessValuesERSt6vectorI14RealChromosomeSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(296), ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4ceilf(float noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #7

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #7

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #8

declare i32 @pthread_join(i64 noundef, ptr noundef) #3

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

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

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 = { 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 = { "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 = { 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 #5 = { nocallback nofree nosync nounwind willreturn }
attributes #6 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { noreturn 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { noreturn 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, !21, i64 296}
!43 = !{!"_ZTS18RealGenMultithread", !10, i64 0, !21, i64 296, !6, i64 304}
!44 = !{!45, !21, i64 0}
!45 = !{!"_ZTS13thread_params", !21, i64 0, !21, i64 4, !6, i64 8}
!46 = !{!45, !21, i64 4}
!47 = !{!45, !6, i64 8}
!48 = !{!43, !6, i64 304}
!49 = distinct !{!49, !34}
!50 = !{!20, !20, i64 0}
!51 = distinct !{!51, !34}
!52 = !{!10, !23, i64 220}
!53 = !{!10, !23, i64 216}
!54 = !{!10, !21, i64 288}
!55 = distinct !{!55, !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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%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 }
%struct.thread_params = type { i32, i32, ptr }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@__func__._ZN18RealGenMultithread6evolveEv = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN18RealGenMultithread24evaluatePopulationThreadEPv(ptr noundef) #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

; 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 #2 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 uwtable
define dso_local void @_ZN18RealGenMultithread6evolveEv(ptr noundef nonnull align 8 dereferenceable(312) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.RealChromosome, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #10
  %7 = getelementptr inbounds i8, ptr %0, i64 104
  %8 = getelementptr inbounds i8, ptr %0, i64 112
  %9 = load i64, ptr %8, align 8, !tbaa !5
  %10 = trunc i64 %9 to i32
  call void @_ZN14RealChromosomeC1Ei(ptr noundef nonnull align 8 dereferenceable(28) %2, i32 noundef %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #10
  %11 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_ZN6RealGA17fillFitnessValuesERSt6vectorI14RealChromosomeSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %12 unwind label %.loopexit.split-lp

12:                                               ; preds = %1
  %13 = getelementptr inbounds i8, ptr %0, i64 232
  %14 = load i64, ptr %7, align 8, !tbaa !27
  %15 = trunc i64 %14 to i32
  %16 = add i32 %15, -1
  %17 = getelementptr inbounds i8, ptr %0, i64 260
  %18 = load i32, ptr %17, align 4, !tbaa !28
  %19 = add nsw i32 %18, 1
  %20 = invoke noundef float @_ZN4RALG11kthSmallestERSt6vectorIfSaIfEEiii(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0, i32 noundef %16, i32 noundef %19)
          to label %21 unwind label %.loopexit.split-lp

21:                                               ; preds = %12
  %22 = getelementptr inbounds i8, ptr %0, i64 256
  store float %20, ptr %22, align 8, !tbaa !29
  %23 = load i64, ptr %7, align 8, !tbaa !27
  %.not71 = icmp eq i64 %23, 0
  br i1 %.not71, label %.outer._crit_edge, label %.lr.ph.lr.ph

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

.lr.ph:                                           ; preds = %.lr.ph.lr.ph, %.outer
  %32 = phi i64 [ 0, %.lr.ph.lr.ph ], [ %48, %.outer ]
  %.032.ph59 = phi i32 [ 0, %.lr.ph.lr.ph ], [ %46, %.outer ]
  %.034.ph58 = phi i32 [ 0, %.lr.ph.lr.ph ], [ %47, %.outer ]
  %33 = sext i32 %.032.ph59 to i64
  br label %34

34:                                               ; preds = %.lr.ph, %81
  %indvars.iv = phi i64 [ %33, %.lr.ph ], [ %indvars.iv.next, %81 ]
  %35 = phi i64 [ %32, %.lr.ph ], [ %indvars.iv.next, %81 ]
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %35) #10
  %37 = load float, ptr %36, align 4, !tbaa !30
  %38 = load float, ptr %22, align 8, !tbaa !29
  %39 = fcmp uge float %37, %38
  %40 = load i32, ptr %17, align 4
  %.not43 = icmp sgt i32 %.034.ph58, %40
  %or.cond = select i1 %39, i1 true, i1 %.not43
  br i1 %or.cond, label %51, label %41

41:                                               ; preds = %34
  %42 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %35) #10
  %43 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %35) #10
  %44 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %43, ptr noundef nonnull align 8 dereferenceable(28) %42)
          to label %.outer unwind label %.loopexit.loopexit.split-lp

.outer:                                           ; preds = %41
  %45 = trunc nsw i64 %indvars.iv to i32
  %46 = add nsw i32 %45, 1
  %47 = add nuw nsw i32 %.034.ph58, 1
  %48 = sext i32 %46 to i64
  %49 = load i64, ptr %7, align 8, !tbaa !27
  %50 = icmp ugt i64 %49, %48
  br i1 %50, label %.lr.ph, label %.outer._crit_edge, !llvm.loop !31

.loopexit.loopexit:                               ; preds = %78, %73, %70, %56, %51
  %lpad.loopexit46 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

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

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

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

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

67:                                               ; preds = %56
  %68 = load i32, ptr %26, align 4, !tbaa !38
  %69 = icmp eq i32 %68, 2
  br i1 %69, label %70, label %73

70:                                               ; preds = %67
  %71 = load ptr, ptr %27, align 8, !tbaa !39
  %72 = load float, ptr %28, align 4, !tbaa !40
  invoke void @_ZN8Mutation21setMutationPercentageEf(ptr noundef nonnull align 8 dereferenceable(16) %71, float noundef %72)
          to label %73 unwind label %.loopexit.loopexit

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

78:                                               ; preds = %73
  %79 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %35) #10
  %80 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %79, ptr noundef nonnull align 8 dereferenceable(28) %2)
          to label %81 unwind label %.loopexit.loopexit

81:                                               ; preds = %78
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %82 = load i64, ptr %7, align 8, !tbaa !27
  %83 = icmp ugt i64 %82, %indvars.iv.next
  br i1 %83, label %34, label %.outer._crit_edge, !llvm.loop !31

.outer._crit_edge:                                ; preds = %.outer, %81, %21
  %.lcssa = phi i64 [ 0, %21 ], [ %82, %81 ], [ %49, %.outer ]
  %84 = uitofp i64 %.lcssa to float
  %85 = getelementptr inbounds i8, ptr %0, i64 296
  %86 = load i32, ptr %85, align 8, !tbaa !41
  %87 = uitofp i32 %86 to float
  %88 = fdiv float %84, %87
  %89 = call noundef float @_ZSt4ceilf(float noundef %88)
  %90 = load i32, ptr %85, align 8, !tbaa !41
  %91 = zext i32 %90 to i64
  %92 = call ptr @llvm.stacksave.p0()
  %93 = alloca %struct.thread_params, i64 %91, align 16
  %94 = load i32, ptr %85, align 8, !tbaa !41
  %.not72 = icmp eq i32 %94, 0
  br i1 %.not72, label %._crit_edge66, label %.lr.ph63

.lr.ph63:                                         ; preds = %.outer._crit_edge
  %95 = fptosi float %89 to i32
  %96 = getelementptr inbounds i8, ptr %0, i64 304
  %97 = zext i32 %95 to i64
  br label %104

98:                                               ; preds = %104
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %99 = load i32, ptr %85, align 8, !tbaa !41
  %100 = zext i32 %99 to i64
  %101 = icmp ult i64 %indvars.iv.next85, %100
  br i1 %101, label %104, label %.preheader, !llvm.loop !43

.preheader:                                       ; preds = %98
  %102 = icmp eq i32 %99, 0
  br i1 %102, label %._crit_edge66, label %.lr.ph65

.lr.ph65:                                         ; preds = %.preheader
  %103 = getelementptr inbounds i8, ptr %0, i64 304
  br label %145

104:                                              ; preds = %.lr.ph63, %98
  %indvars.iv84 = phi i64 [ 0, %.lr.ph63 ], [ %indvars.iv.next85, %98 ]
  %105 = mul i64 %indvars.iv84, %97
  %106 = getelementptr inbounds %struct.thread_params, ptr %93, i64 %indvars.iv84
  %107 = trunc i64 %105 to i32
  store i32 %107, ptr %106, align 16, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #10
  %108 = trunc i64 %105 to i32
  %109 = add i32 %108, %95
  store i32 %109, ptr %5, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #10
  %110 = load i64, ptr %7, align 8, !tbaa !27
  %111 = trunc i64 %110 to i32
  store i32 %111, ptr %6, align 4, !tbaa !37
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %113 = load i32, ptr %112, align 4, !tbaa !37
  %114 = getelementptr inbounds i8, ptr %106, i64 4
  store i32 %113, ptr %114, align 4, !tbaa !46
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  %115 = getelementptr inbounds i8, ptr %106, i64 8
  store ptr %0, ptr %115, align 8, !tbaa !47
  %116 = load ptr, ptr %96, align 8, !tbaa !48
  %117 = getelementptr inbounds i64, ptr %116, i64 %indvars.iv84
  %118 = call i32 @pthread_create(ptr noundef %117, ptr noundef null, ptr noundef nonnull @_ZN18RealGenMultithread24evaluatePopulationThreadEPv, ptr noundef nonnull %106) #10
  %.not = icmp eq i32 %118, 0
  br i1 %.not, label %98, label %119

119:                                              ; preds = %104
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
          to label %121 unwind label %140

121:                                              ; preds = %119
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef nonnull @__func__._ZN18RealGenMultithread6evolveEv)
          to label %123 unwind label %140

123:                                              ; preds = %121
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef nonnull @.str.1)
          to label %125 unwind label %140

125:                                              ; preds = %123
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef nonnull @.str.2)
          to label %127 unwind label %140

127:                                              ; preds = %125
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef nonnull @.str.3)
          to label %129 unwind label %140

129:                                              ; preds = %127
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef nonnull @.str.4)
          to label %131 unwind label %140

131:                                              ; preds = %129
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull @.str.5)
          to label %133 unwind label %140

133:                                              ; preds = %131
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef nonnull @.str.6)
          to label %135 unwind label %140

135:                                              ; preds = %133
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %134, i32 noundef 95)
          to label %137 unwind label %140

137:                                              ; preds = %135
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %139 unwind label %140

139:                                              ; preds = %137
  call void @exit(i32 noundef -1) #11
  unreachable

140:                                              ; preds = %137, %135, %133, %131, %129, %127, %125, %123, %121, %119
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

._crit_edge66:                                    ; preds = %150, %.outer._crit_edge, %.preheader
  %142 = getelementptr inbounds i8, ptr %0, i64 204
  %143 = load i32, ptr %142, align 4, !tbaa !38
  %144 = icmp eq i32 %143, 2
  br i1 %144, label %156, label %170

145:                                              ; preds = %.lr.ph65, %150
  %indvars.iv87 = phi i64 [ 0, %.lr.ph65 ], [ %indvars.iv.next88, %150 ]
  %146 = load ptr, ptr %103, align 8, !tbaa !48
  %147 = getelementptr inbounds i64, ptr %146, i64 %indvars.iv87
  %148 = load i64, ptr %147, align 8, !tbaa !49
  %149 = invoke i32 @pthread_join(i64 noundef %148, ptr noundef null)
          to label %150 unwind label %154

150:                                              ; preds = %145
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %151 = load i32, ptr %85, align 8, !tbaa !41
  %152 = zext i32 %151 to i64
  %153 = icmp ult i64 %indvars.iv.next88, %152
  br i1 %153, label %145, label %._crit_edge66, !llvm.loop !50

154:                                              ; preds = %145
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

156:                                              ; preds = %._crit_edge66
  %157 = getelementptr inbounds i8, ptr %0, i64 292
  %158 = load float, ptr %157, align 4, !tbaa !40
  %159 = getelementptr inbounds i8, ptr %0, i64 220
  %160 = load float, ptr %159, align 4, !tbaa !51
  %161 = fcmp ogt float %158, %160
  br i1 %161, label %162, label %.sink.split

162:                                              ; preds = %156
  %163 = getelementptr inbounds i8, ptr %0, i64 216
  %164 = load float, ptr %163, align 8, !tbaa !52
  %165 = getelementptr inbounds i8, ptr %0, i64 288
  %166 = load i32, ptr %165, align 8, !tbaa !53
  %167 = sitofp i32 %166 to float
  %168 = fneg float %164
  %169 = call float @llvm.fmuladd.f32(float %168, float %167, float 1.000000e+00)
  br label %.sink.split

.sink.split:                                      ; preds = %156, %162
  %.sink = phi float [ %169, %162 ], [ %160, %156 ]
  store float %.sink, ptr %157, align 4, !tbaa !40
  br label %170

170:                                              ; preds = %.sink.split, %._crit_edge66
  %171 = call noundef i64 @_ZNKSt6vectorI14RealChromosomeSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #10
  %.not74 = icmp eq i64 %171, 0
  br i1 %.not74, label %._crit_edge70, label %.lr.ph69

.lr.ph69:                                         ; preds = %170
  %172 = getelementptr inbounds i8, ptr %0, i64 80
  br label %176

._crit_edge70:                                    ; preds = %180, %170
  %173 = getelementptr inbounds i8, ptr %0, i64 288
  %174 = load i32, ptr %173, align 8, !tbaa !53
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %173, align 8, !tbaa !53
  call void @llvm.stackrestore.p0(ptr %92)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #10
  call void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %2) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #10
  ret void

176:                                              ; preds = %.lr.ph69, %180
  %indvars.iv90 = phi i64 [ 0, %.lr.ph69 ], [ %indvars.iv.next91, %180 ]
  %177 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %indvars.iv90) #10
  %178 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv90) #10
  %179 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %178, ptr noundef nonnull align 8 dereferenceable(28) %177)
          to label %180 unwind label %183

180:                                              ; preds = %176
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %181 = call noundef i64 @_ZNKSt6vectorI14RealChromosomeSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #10
  %182 = icmp ugt i64 %181, %indvars.iv.next91
  br i1 %182, label %176, label %._crit_edge70, !llvm.loop !54

183:                                              ; preds = %176
  %184 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.split-lp, %.loopexit.loopexit.split-lp, %.loopexit.loopexit, %140, %154, %183
  %.pn44 = phi { ptr, i32 } [ %141, %140 ], [ %155, %154 ], [ %184, %183 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit46, %.loopexit.loopexit ], [ %lpad.loopexit.split-lp47, %.loopexit.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #10
  call void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %2) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #10
  resume { ptr, i32 } %.pn44
}

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

declare void @_ZN6RealGA17fillFitnessValuesERSt6vectorI14RealChromosomeSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(296), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

; 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 #2 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 #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4ceilf(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #7

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #7

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #8

declare i32 @pthread_join(i64 noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

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

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 = { 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 = { "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 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #6 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { noreturn 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 #9 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { noreturn 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, !20, i64 296}
!42 = !{!"_ZTS18RealGenMultithread", !6, i64 0, !20, i64 296, !11, i64 304}
!43 = distinct !{!43, !32}
!44 = !{!45, !20, i64 0}
!45 = !{!"_ZTS13thread_params", !20, i64 0, !20, i64 4, !11, i64 8}
!46 = !{!45, !20, i64 4}
!47 = !{!45, !11, i64 8}
!48 = !{!42, !11, i64 304}
!49 = !{!19, !19, i64 0}
!50 = distinct !{!50, !32}
!51 = !{!6, !22, i64 220}
!52 = !{!6, !22, i64 216}
!53 = !{!6, !20, i64 288}
!54 = distinct !{!54, !32}


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