; LLVM IR from hoodoer/ENNEoS :: enneosEncoder/main.ll (Z30singleShellcodeFitnessFunctionR13BrainTestData)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<ShellcodePieceData, std::allocator<ShellcodePieceData>>::_Vector_impl" }
%"struct.std::_Vector_base<ShellcodePieceData, std::allocator<ShellcodePieceData>>::_Vector_impl" = type { %"struct.std::_Vector_base<ShellcodePieceData, std::allocator<ShellcodePieceData>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ShellcodePieceData, std::allocator<ShellcodePieceData>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%struct.BrainTestData = type { %"class.std::vector.28", %"class.std::vector.32", %"class.std::vector.37" }
%"class.std::vector.28" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.37" = type { %"struct.std::_Vector_base.38" }
%"struct.std::_Vector_base.38" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.ShellcodePieceData = type { i32, %"class.std::vector.8", %"class.std::vector.13", %class.CGenome }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.CGenome = type <{ i32, [4 x i8], %"class.std::vector.18", %"class.std::vector.23", ptr, i32, [4 x i8], double, double, double, i32, i32, i32, [4 x i8] }>
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<SNeuronGene, std::allocator<SNeuronGene>>::_Vector_impl" }
%"struct.std::_Vector_base<SNeuronGene, std::allocator<SNeuronGene>>::_Vector_impl" = type { %"struct.std::_Vector_base<SNeuronGene, std::allocator<SNeuronGene>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SNeuronGene, std::allocator<SNeuronGene>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<SLinkGene, std::allocator<SLinkGene>>::_Vector_impl" }
%"struct.std::_Vector_base<SLinkGene, std::allocator<SLinkGene>>::_Vector_impl" = type { %"struct.std::_Vector_base<SLinkGene, std::allocator<SLinkGene>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SLinkGene, std::allocator<SLinkGene>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@__EncodedBinaryData = external dso_local global [447 x i8], align 16
@chunkCounter = external dso_local global i32, align 4
@numOutputs = external dso_local global i32, align 4
@shellcodePieces = external dso_local global %"class.std::vector.3", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@lowestDiff = external dso_local global double, align 8
@lowestCharDiff = external dso_local global i32, align 4
@_ZZ30singleShellcodeFitnessFunctionR13BrainTestDataE11bonusAmount = external hidden global i32, align 4
@.str.8 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [60 x i8], align 1

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

; 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) #1

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 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)) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z30singleShellcodeFitnessFunctionR13BrainTestData(ptr noundef nonnull align 8 dereferenceable(88) %0) #3 {
  %2 = alloca double, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::_Bit_reference", align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::_Bit_reference", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #7
  store i8 1, ptr %4, align 1, !tbaa !9
  %21 = load i8, ptr %4, align 1, !tbaa !9, !range !11, !noundef !12
  %22 = trunc i8 %21 to i1
  br i1 %22, label %23, label %168

23:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store double 0.000000e+00, ptr %5, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store double 0.000000e+00, ptr %8, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !15
  br label %24

24:                                               ; preds = %152, %23
  %25 = load i32, ptr %10, align 4, !tbaa !15
  %26 = zext i32 %25 to i64
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.BrainTestData, ptr %27, i32 0, i32 0
  %29 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %28) #7
  %30 = icmp ult i64 %26, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %24
  store i32 2, ptr %11, align 4
  br label %155

32:                                               ; preds = %24
  store double 0.000000e+00, ptr %6, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !15
  br label %33

33:                                               ; preds = %95, %32
  %34 = load i32, ptr %12, align 4, !tbaa !15
  %35 = load i32, ptr @numOutputs, align 4, !tbaa !15
  %36 = icmp ult i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %98

38:                                               ; preds = %33
  %39 = load i32, ptr @chunkCounter, align 4, !tbaa !15
  %40 = zext i32 %39 to i64
  %41 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNSt6vectorI18ShellcodePieceDataSaIS0_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) @shellcodePieces, i64 noundef %40)
  %42 = getelementptr inbounds %struct.ShellcodePieceData, ptr %41, i32 0, i32 1
  %43 = load i32, ptr %12, align 4, !tbaa !15
  %44 = zext i32 %43 to i64
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %44)
  %46 = load double, ptr %45, align 8, !tbaa !13
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.BrainTestData, ptr %47, i32 0, i32 2
  %49 = load i32, ptr %10, align 4, !tbaa !15
  %50 = zext i32 %49 to i64
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %50)
  %52 = load i32, ptr %12, align 4, !tbaa !15
  %53 = zext i32 %52 to i64
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %53)
  %55 = load double, ptr %54, align 8, !tbaa !13
  %56 = fsub double %46, %55
  %57 = call double @llvm.fabs.f64(double %56)
  store double %57, ptr %7, align 8, !tbaa !13
  %58 = load double, ptr %7, align 8, !tbaa !13
  %59 = load double, ptr %6, align 8, !tbaa !13
  %60 = fadd double %59, %58
  store double %60, ptr %6, align 8, !tbaa !13
  %61 = load double, ptr %7, align 8, !tbaa !13
  %62 = fcmp olt double %61, 3.000000e-03
  br i1 %62, label %63, label %68

63:                                               ; preds = %38
  %64 = load i32, ptr @_ZZ30singleShellcodeFitnessFunctionR13BrainTestDataE11bonusAmount, align 4, !tbaa !15
  %65 = sitofp i32 %64 to double
  %66 = load double, ptr %8, align 8, !tbaa !13
  %67 = fadd double %66, %65
  store double %67, ptr %8, align 8, !tbaa !13
  br label %68

68:                                               ; preds = %63, %38
  %69 = load i32, ptr @chunkCounter, align 4, !tbaa !15
  %70 = zext i32 %69 to i64
  %71 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNSt6vectorI18ShellcodePieceDataSaIS0_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) @shellcodePieces, i64 noundef %70)
  %72 = getelementptr inbounds %struct.ShellcodePieceData, ptr %71, i32 0, i32 2
  %73 = load i32, ptr %12, align 4, !tbaa !15
  %74 = zext i32 %73 to i64
  %75 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %74)
  %76 = load i8, ptr %75, align 1, !tbaa !17
  %77 = zext i8 %76 to i32
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.BrainTestData, ptr %78, i32 0, i32 1
  %80 = load i32, ptr %10, align 4, !tbaa !15
  %81 = zext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81)
  %83 = load i32, ptr %12, align 4, !tbaa !15
  %84 = zext i32 %83 to i64
  %85 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %84)
  %86 = load i8, ptr %85, align 1, !tbaa !17
  %87 = zext i8 %86 to i32
  %88 = sub nsw i32 %77, %87
  %89 = call i32 @llvm.abs.i32(i32 %88, i1 true)
  %90 = sitofp i32 %89 to double
  %91 = load i32, ptr %9, align 4, !tbaa !15
  %92 = sitofp i32 %91 to double
  %93 = fadd double %92, %90
  %94 = fptosi double %93 to i32
  store i32 %94, ptr %9, align 4, !tbaa !15
  br label %95

95:                                               ; preds = %68
  %96 = load i32, ptr %12, align 4, !tbaa !15
  %97 = add i32 %96, 1
  store i32 %97, ptr %12, align 4, !tbaa !15
  br label %33, !llvm.loop !18

98:                                               ; preds = %37
  %99 = load i32, ptr %9, align 4, !tbaa !15
  %100 = load i32, ptr @lowestCharDiff, align 4, !tbaa !15
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %102, label %108

102:                                              ; preds = %98
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
  %104 = load i32, ptr %9, align 4, !tbaa !15
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %103, i32 noundef %104)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %107 = load i32, ptr %9, align 4, !tbaa !15
  store i32 %107, ptr @lowestCharDiff, align 4, !tbaa !15
  br label %108

108:                                              ; preds = %102, %98
  %109 = load double, ptr %6, align 8, !tbaa !13
  %110 = load i32, ptr @numOutputs, align 4, !tbaa !15
  %111 = uitofp i32 %110 to double
  %112 = fdiv double %109, %111
  store double %112, ptr %6, align 8, !tbaa !13
  %113 = load double, ptr %6, align 8, !tbaa !13
  %114 = load double, ptr @lowestDiff, align 8, !tbaa !13
  %115 = fcmp olt double %113, %114
  br i1 %115, label %116, label %122

116:                                              ; preds = %108
  %117 = load double, ptr %6, align 8, !tbaa !13
  store double %117, ptr @lowestDiff, align 8, !tbaa !13
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
  %119 = load double, ptr @lowestDiff, align 8, !tbaa !13
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %118, double noundef %119)
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %122

122:                                              ; preds = %116, %108
  %123 = load i32, ptr %9, align 4, !tbaa !15
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %125, label %128

125:                                              ; preds = %122
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store double -1.000000e+00, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %155

128:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.BrainTestData, ptr %129, i32 0, i32 0
  %131 = load i32, ptr %10, align 4, !tbaa !15
  %132 = zext i32 %131 to i64
  %133 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEE2atEm(ptr noundef nonnull align 8 dereferenceable(40) %130, i64 noundef %132)
  %134 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %135 = extractvalue { ptr, i64 } %133, 0
  store ptr %135, ptr %134, align 8
  %136 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %137 = extractvalue { ptr, i64 } %133, 1
  store i64 %137, ptr %136, align 8
  %138 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br i1 %138, label %139, label %145

139:                                              ; preds = %128
  %140 = load double, ptr %6, align 8, !tbaa !13
  %141 = fsub double %140, 2.000000e+00
  %142 = call double @llvm.fabs.f64(double %141)
  %143 = load double, ptr %5, align 8, !tbaa !13
  %144 = fadd double %143, %142
  store double %144, ptr %5, align 8, !tbaa !13
  br label %151

145:                                              ; preds = %128
  %146 = load double, ptr %6, align 8, !tbaa !13
  %147 = fcmp oge double %146, 8.000000e+01
  br i1 %147, label %148, label %149

148:                                              ; preds = %145
  br label %150

149:                                              ; preds = %145
  br label %150

150:                                              ; preds = %149, %148
  br label %151

151:                                              ; preds = %150, %139
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %10, align 4, !tbaa !15
  %154 = add i32 %153, 1
  store i32 %154, ptr %10, align 4, !tbaa !15
  br label %24, !llvm.loop !20

155:                                              ; preds = %125, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  %156 = load i32, ptr %11, align 4
  switch i32 %156, label %167 [
    i32 2, label %157
  ]

157:                                              ; preds = %155
  %158 = load double, ptr %8, align 8, !tbaa !13
  %159 = load double, ptr %5, align 8, !tbaa !13
  %160 = fadd double %159, %158
  store double %160, ptr %5, align 8, !tbaa !13
  %161 = load double, ptr %5, align 8, !tbaa !13
  %162 = fadd double %161, 2.000000e+00
  store double %162, ptr %5, align 8, !tbaa !13
  %163 = load double, ptr %5, align 8, !tbaa !13
  %164 = load double, ptr %5, align 8, !tbaa !13
  %165 = fmul double %163, %164
  store double %165, ptr %5, align 8, !tbaa !13
  %166 = load double, ptr %5, align 8, !tbaa !13
  store double %166, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %167

167:                                              ; preds = %157, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %276

168:                                              ; preds = %1
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.BrainTestData, ptr %169, i32 0, i32 0
  %171 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %170) #7
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.BrainTestData, ptr %172, i32 0, i32 1
  %174 = call noundef i64 @_ZNKSt6vectorIS_IhSaIhEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %173) #7
  %175 = icmp ne i64 %171, %174
  br i1 %175, label %176, label %179

176:                                              ; preds = %168
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %177, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @exit(i32 noundef 1) #8
  unreachable

179:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store double 0.000000e+00, ptr %14, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store double 0.000000e+00, ptr %17, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !15
  br label %180

180:                                              ; preds = %263, %179
  %181 = load i32, ptr %18, align 4, !tbaa !15
  %182 = zext i32 %181 to i64
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.BrainTestData, ptr %183, i32 0, i32 0
  %185 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %184) #7
  %186 = icmp ult i64 %182, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %180
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %266

188:                                              ; preds = %180
  store double 0.000000e+00, ptr %15, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !15
  br label %189

189:                                              ; preds = %222, %188
  %190 = load i32, ptr %19, align 4, !tbaa !15
  %191 = load i32, ptr @numOutputs, align 4, !tbaa !15
  %192 = icmp ult i32 %190, %191
  br i1 %192, label %194, label %193

193:                                              ; preds = %189
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %225

194:                                              ; preds = %189
  %195 = load i32, ptr %19, align 4, !tbaa !15
  %196 = zext i32 %195 to i64
  %197 = getelementptr inbounds [447 x i8], ptr @__EncodedBinaryData, i64 0, i64 %196
  %198 = load i8, ptr %197, align 1, !tbaa !17
  %199 = zext i8 %198 to i32
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.BrainTestData, ptr %200, i32 0, i32 1
  %202 = load i32, ptr %18, align 4, !tbaa !15
  %203 = zext i32 %202 to i64
  %204 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %201, i64 noundef %203)
  %205 = load i32, ptr %19, align 4, !tbaa !15
  %206 = zext i32 %205 to i64
  %207 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %204, i64 noundef %206)
  %208 = load i8, ptr %207, align 1, !tbaa !17
  %209 = zext i8 %208 to i32
  %210 = sub nsw i32 %199, %209
  %211 = call i32 @llvm.abs.i32(i32 %210, i1 true)
  %212 = sitofp i32 %211 to double
  store double %212, ptr %16, align 8, !tbaa !13
  %213 = load double, ptr %16, align 8, !tbaa !13
  %214 = load double, ptr %15, align 8, !tbaa !13
  %215 = fadd double %214, %213
  store double %215, ptr %15, align 8, !tbaa !13
  %216 = load double, ptr %16, align 8, !tbaa !13
  %217 = fcmp oeq double %216, 0.000000e+00
  br i1 %217, label %218, label %221

218:                                              ; preds = %194
  %219 = load double, ptr %17, align 8, !tbaa !13
  %220 = fadd double %219, 1.000000e+03
  store double %220, ptr %17, align 8, !tbaa !13
  br label %221

221:                                              ; preds = %218, %194
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %19, align 4, !tbaa !15
  %224 = add i32 %223, 1
  store i32 %224, ptr %19, align 4, !tbaa !15
  br label %189, !llvm.loop !21

225:                                              ; preds = %193
  %226 = load double, ptr %15, align 8, !tbaa !13
  %227 = load i32, ptr @numOutputs, align 4, !tbaa !15
  %228 = uitofp i32 %227 to double
  %229 = fdiv double %226, %228
  store double %229, ptr %15, align 8, !tbaa !13
  %230 = load double, ptr %15, align 8, !tbaa !13
  %231 = load double, ptr @lowestDiff, align 8, !tbaa !13
  %232 = fcmp olt double %230, %231
  br i1 %232, label %233, label %239

233:                                              ; preds = %225
  %234 = load double, ptr %15, align 8, !tbaa !13
  store double %234, ptr @lowestDiff, align 8, !tbaa !13
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
  %236 = load double, ptr @lowestDiff, align 8, !tbaa !13
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %235, double noundef %236)
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %237, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %239

239:                                              ; preds = %233, %225
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  %240 = load ptr, ptr %3, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.BrainTestData, ptr %240, i32 0, i32 0
  %242 = load i32, ptr %18, align 4, !tbaa !15
  %243 = zext i32 %242 to i64
  %244 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEE2atEm(ptr noundef nonnull align 8 dereferenceable(40) %241, i64 noundef %243)
  %245 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %246 = extractvalue { ptr, i64 } %244, 0
  store ptr %246, ptr %245, align 8
  %247 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %248 = extractvalue { ptr, i64 } %244, 1
  store i64 %248, ptr %247, align 8
  %249 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  br i1 %249, label %250, label %256

250:                                              ; preds = %239
  %251 = load double, ptr %15, align 8, !tbaa !13
  %252 = fsub double %251, 2.550000e+02
  %253 = call double @llvm.fabs.f64(double %252)
  %254 = load double, ptr %14, align 8, !tbaa !13
  %255 = fadd double %254, %253
  store double %255, ptr %14, align 8, !tbaa !13
  br label %262

256:                                              ; preds = %239
  %257 = load double, ptr %15, align 8, !tbaa !13
  %258 = fcmp oge double %257, 8.000000e+01
  br i1 %258, label %259, label %260

259:                                              ; preds = %256
  br label %261

260:                                              ; preds = %256
  br label %261

261:                                              ; preds = %260, %259
  br label %262

262:                                              ; preds = %261, %250
  br label %263

263:                                              ; preds = %262
  %264 = load i32, ptr %18, align 4, !tbaa !15
  %265 = add i32 %264, 1
  store i32 %265, ptr %18, align 4, !tbaa !15
  br label %180, !llvm.loop !22

266:                                              ; preds = %187
  %267 = load double, ptr %17, align 8, !tbaa !13
  %268 = load double, ptr %14, align 8, !tbaa !13
  %269 = fadd double %268, %267
  store double %269, ptr %14, align 8, !tbaa !13
  %270 = load double, ptr %14, align 8, !tbaa !13
  %271 = fadd double %270, 2.000000e+00
  store double %271, ptr %14, align 8, !tbaa !13
  %272 = load double, ptr %14, align 8, !tbaa !13
  %273 = load double, ptr %14, align 8, !tbaa !13
  %274 = fmul double %272, %273
  store double %274, ptr %14, align 8, !tbaa !13
  %275 = load double, ptr %14, align 8, !tbaa !13
  store double %275, ptr %2, align 8
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %276

276:                                              ; preds = %266, %167
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #7
  %277 = load double, ptr %2, align 8
  ret double %277
}

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #5

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEE2atEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<ShellcodePieceData, std::allocator<ShellcodePieceData>>::_Vector_impl" }
%"struct.std::_Vector_base<ShellcodePieceData, std::allocator<ShellcodePieceData>>::_Vector_impl" = type { %"struct.std::_Vector_base<ShellcodePieceData, std::allocator<ShellcodePieceData>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ShellcodePieceData, std::allocator<ShellcodePieceData>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@chunkCounter = external dso_local local_unnamed_addr global i32, align 4
@numOutputs = external dso_local local_unnamed_addr global i32, align 4
@shellcodePieces = external dso_local global %"class.std::vector.3", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@lowestDiff = external dso_local local_unnamed_addr global double, align 8
@lowestCharDiff = external dso_local local_unnamed_addr global i32, align 4
@_ZZ30singleShellcodeFitnessFunctionR13BrainTestDataE11bonusAmount = external hidden local_unnamed_addr global i32, align 4
@.str.8 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1

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

; 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 #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z30singleShellcodeFitnessFunctionR13BrainTestData(ptr noundef nonnull align 8 dereferenceable(88) %0) local_unnamed_addr #3 {
  %2 = alloca %"struct.std::_Bit_reference", align 8
  %3 = tail call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %0) #6
  %.not100.not = icmp eq i64 %3, 0
  br i1 %.not100.not, label %.loopexit.thread, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 64
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = getelementptr inbounds i8, ptr %2, i64 8
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %62
  %7 = phi i64 [ 0, %.preheader.lr.ph ], [ %71, %62 ]
  %.075104 = phi i32 [ 0, %.preheader.lr.ph ], [ %70, %62 ]
  %.076103 = phi i32 [ 0, %.preheader.lr.ph ], [ %.177.lcssa, %62 ]
  %.078102 = phi double [ 0.000000e+00, %.preheader.lr.ph ], [ %.179.lcssa, %62 ]
  %.081101 = phi double [ 0.000000e+00, %.preheader.lr.ph ], [ %.182, %62 ]
  %8 = load i32, ptr @numOutputs, align 4, !tbaa !5
  %.not109 = icmp eq i32 %8, 0
  br i1 %.not109, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %9 = phi i32 [ 0, %.preheader ], [ %42, %.lr.ph ]
  %.083.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %23, %.lr.ph ]
  %.179.lcssa = phi double [ %.078102, %.preheader ], [ %.280, %.lr.ph ]
  %.177.lcssa = phi i32 [ %.076103, %.preheader ], [ %41, %.lr.ph ]
  %10 = load i32, ptr @lowestCharDiff, align 4, !tbaa !5
  %11 = icmp slt i32 %.177.lcssa, %10
  br i1 %11, label %45, label %49

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader ]
  %.17796 = phi i32 [ %41, %.lr.ph ], [ %.076103, %.preheader ]
  %.17995 = phi double [ %.280, %.lr.ph ], [ %.078102, %.preheader ]
  %.08394 = phi double [ %23, %.lr.ph ], [ 0.000000e+00, %.preheader ]
  %12 = load i32, ptr @chunkCounter, align 4, !tbaa !5
  %13 = zext i32 %12 to i64
  %14 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNSt6vectorI18ShellcodePieceDataSaIS0_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) @shellcodePieces, i64 noundef %13)
  %15 = getelementptr inbounds i8, ptr %14, i64 8
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %indvars.iv)
  %17 = load double, ptr %16, align 8, !tbaa !9
  %18 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %7)
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv)
  %20 = load double, ptr %19, align 8, !tbaa !9
  %21 = fsub double %17, %20
  %22 = call double @llvm.fabs.f64(double %21)
  %23 = fadd double %.08394, %22
  %24 = fcmp olt double %22, 3.000000e-03
  %25 = load i32, ptr @_ZZ30singleShellcodeFitnessFunctionR13BrainTestDataE11bonusAmount, align 4
  %26 = sitofp i32 %25 to double
  %27 = fadd double %.17995, %26
  %.280 = select i1 %24, double %27, double %.17995
  %28 = load i32, ptr @chunkCounter, align 4, !tbaa !5
  %29 = zext i32 %28 to i64
  %30 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNSt6vectorI18ShellcodePieceDataSaIS0_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) @shellcodePieces, i64 noundef %29)
  %31 = getelementptr inbounds i8, ptr %30, i64 32
  %32 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %indvars.iv)
  %33 = load i8, ptr %32, align 1, !tbaa !11
  %34 = zext i8 %33 to i32
  %35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %7)
  %36 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %indvars.iv)
  %37 = load i8, ptr %36, align 1, !tbaa !11
  %38 = zext i8 %37 to i32
  %39 = sub nsw i32 %34, %38
  %40 = call i32 @llvm.abs.i32(i32 %39, i1 true)
  %41 = add i32 %.17796, %40
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %42 = load i32, ptr @numOutputs, align 4, !tbaa !5
  %43 = zext i32 %42 to i64
  %44 = icmp ult i64 %indvars.iv.next, %43
  br i1 %44, label %.lr.ph, label %._crit_edge, !llvm.loop !12

45:                                               ; preds = %._crit_edge
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %46, i32 noundef %.177.lcssa)
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 %.177.lcssa, ptr @lowestCharDiff, align 4, !tbaa !5
  %.pre = load i32, ptr @numOutputs, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %45, %._crit_edge
  %50 = phi i32 [ %.pre, %45 ], [ %9, %._crit_edge ]
  %51 = uitofp i32 %50 to double
  %52 = fdiv double %.083.lcssa, %51
  %53 = load double, ptr @lowestDiff, align 8, !tbaa !9
  %54 = fcmp olt double %52, %53
  br i1 %54, label %55, label %60

55:                                               ; preds = %49
  store double %52, ptr @lowestDiff, align 8, !tbaa !9
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.9)
  %57 = load double, ptr @lowestDiff, align 8, !tbaa !9
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %56, double noundef %57)
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %60

60:                                               ; preds = %55, %49
  %61 = icmp eq i32 %.177.lcssa, 0
  br i1 %61, label %77, label %62

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  %63 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEE2atEm(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %7)
  %64 = extractvalue { ptr, i64 } %63, 0
  store ptr %64, ptr %2, align 8
  %65 = extractvalue { ptr, i64 } %63, 1
  store i64 %65, ptr %6, align 8
  %66 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  %67 = fadd double %52, -2.000000e+00
  %68 = call double @llvm.fabs.f64(double %67)
  %69 = fadd double %.081101, %68
  %.182 = select i1 %66, double %69, double %.081101
  %70 = add i32 %.075104, 1
  %71 = zext i32 %70 to i64
  %72 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %0) #6
  %.not = icmp ugt i64 %72, %71
  br i1 %.not, label %.preheader, label %.loopexit.thread.loopexit, !llvm.loop !14

.loopexit.thread.loopexit:                        ; preds = %62
  %73 = fadd double %.182, %.179.lcssa
  %74 = fadd double %73, 2.000000e+00
  br label %.loopexit.thread

.loopexit.thread:                                 ; preds = %.loopexit.thread.loopexit, %1
  %75 = phi double [ 2.000000e+00, %1 ], [ %74, %.loopexit.thread.loopexit ]
  %76 = fmul double %75, %75
  br label %80

77:                                               ; preds = %60
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.10)
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %80

80:                                               ; preds = %.loopexit.thread, %77
  %81 = phi double [ -1.000000e+00, %77 ], [ %76, %.loopexit.thread ]
  ret double %81
}

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #5

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEE2atEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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