; LLVM IR from winwinashwin/GA-aided-NMPC-tuning :: src/genetic_algorithm (fitness)

; 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_istream" = type { ptr, i64, %"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::array" = type { [5 x double] }
%"struct.model::Performance" = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.ga::fitness::ObjFunction" = type { %"struct.std::array", %"struct.std::array", i8, i8, double }

@_ZSt3cin = external global %"class.std::basic_istream", align 8

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ga7fitness11ObjFunction11_getMetricsEN5model11PerformanceE(ptr dead_on_unwind noalias writable sret(%"struct.std::array") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5model11PerformanceC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5model11PerformanceD2Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2ga7fitness11ObjFunction19_interactiveDctImplERKN5model11PerformanceE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(144) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.std::array", align 8
  %6 = alloca %"struct.model::Performance", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::array", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  %14 = getelementptr inbounds %"class.ga::fitness::ObjFunction", ptr %13, i32 0, i32 3
  %15 = load i8, ptr %14, align 1, !tbaa !9, !range !14, !noundef !15
  %16 = trunc i8 %15 to i1
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  br label %86

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #6
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN5model11PerformanceC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(144) %6, ptr noundef nonnull align 8 dereferenceable(144) %19)
  invoke void @_ZN2ga7fitness11ObjFunction11_getMetricsEN5model11PerformanceE(ptr dead_on_unwind writable sret(%"struct.std::array") align 8 %5, ptr noundef nonnull align 8 dereferenceable(96) %13, ptr noundef %6)
          to label %20 unwind label %26

20:                                               ; preds = %18
  call void @_ZN5model11PerformanceD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %6) #6
  %21 = getelementptr inbounds %"class.ga::fitness::ObjFunction", ptr %13, i32 0, i32 2
  %22 = load i8, ptr %21, align 8, !tbaa !16, !range !14, !noundef !15
  %23 = trunc i8 %22 to i1
  br i1 %23, label %30, label %24

24:                                               ; preds = %20
  %25 = getelementptr inbounds %"class.ga::fitness::ObjFunction", ptr %13, i32 0, i32 2
  store i8 1, ptr %25, align 8, !tbaa !16
  br label %84

26:                                               ; preds = %18
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %7, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %8, align 4
  call void @_ZN5model11PerformanceD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #6
  br label %87

30:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !17
  br label %31

31:                                               ; preds = %48, %30
  %32 = load i64, ptr %12, align 8, !tbaa !17
  %33 = icmp ult i64 %32, 5
  br i1 %33, label %35, label %34

34:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %51

35:                                               ; preds = %31
  %36 = load i64, ptr %12, align 8, !tbaa !17
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %36) #6
  %38 = load double, ptr %37, align 8, !tbaa !19
  %39 = getelementptr inbounds %"class.ga::fitness::ObjFunction", ptr %13, i32 0, i32 1
  %40 = load i64, ptr %12, align 8, !tbaa !17
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %39, i64 noundef %40) #6
  %42 = load double, ptr %41, align 8, !tbaa !19
  %43 = fdiv double %38, %42
  %44 = fsub double 1.000000e+00, %43
  %45 = fmul double 1.000000e+02, %44
  %46 = load i64, ptr %12, align 8, !tbaa !17
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %46) #6
  store double %45, ptr %47, align 8, !tbaa !19
  br label %48

48:                                               ; preds = %35
  %49 = load i64, ptr %12, align 8, !tbaa !17
  %50 = add i64 %49, 1
  store i64 %50, ptr %12, align 8, !tbaa !17
  br label %31, !llvm.loop !20

51:                                               ; preds = %34
  br label %52

52:                                               ; preds = %62, %51
  br label %53

53:                                               ; preds = %52
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERm(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %55 = load i64, ptr %10, align 8, !tbaa !17
  %56 = icmp ult i64 %55, 0
  br i1 %56, label %57, label %61

57:                                               ; preds = %53
  %58 = load i64, ptr %10, align 8, !tbaa !17
  %59 = icmp ugt i64 %58, 5
  br i1 %59, label %60, label %61

60:                                               ; preds = %57
  br label %62

61:                                               ; preds = %57, %53
  br label %63

62:                                               ; preds = %60
  br label %52, !llvm.loop !22

63:                                               ; preds = %61
  %64 = load i64, ptr %10, align 8, !tbaa !17
  %65 = icmp eq i64 %64, 0
  br i1 %65, label %66, label %68

66:                                               ; preds = %63
  %67 = getelementptr inbounds %"class.ga::fitness::ObjFunction", ptr %13, i32 0, i32 3
  store i8 1, ptr %67, align 1, !tbaa !9
  br label %69

68:                                               ; preds = %63
  br label %69

69:                                               ; preds = %68, %66
  br label %70

70:                                               ; preds = %74, %69
  %71 = load i64, ptr %10, align 8, !tbaa !17
  %72 = add i64 %71, -1
  store i64 %72, ptr %10, align 8, !tbaa !17
  %73 = icmp ne i64 %71, 0
  br i1 %73, label %74, label %83

74:                                               ; preds = %70
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERm(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %76 = getelementptr inbounds %"class.ga::fitness::ObjFunction", ptr %13, i32 0, i32 4
  %77 = load double, ptr %76, align 8, !tbaa !23
  %78 = getelementptr inbounds %"class.ga::fitness::ObjFunction", ptr %13, i32 0, i32 0
  %79 = load i64, ptr %11, align 8, !tbaa !17
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %78, i64 noundef %79) #6
  %81 = load double, ptr %80, align 8, !tbaa !19
  %82 = fadd double %81, %77
  store double %82, ptr %80, align 8, !tbaa !19
  br label %70, !llvm.loop !24

83:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #6
  br label %84

84:                                               ; preds = %83, %24
  %85 = getelementptr inbounds %"class.ga::fitness::ObjFunction", ptr %13, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %85, ptr align 8 %5, i64 40, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #6
  br label %86

86:                                               ; preds = %84, %17
  ret void

87:                                               ; preds = %26
  %88 = load ptr, ptr %7, align 8
  %89 = load i32, ptr %8, align 4
  %90 = insertvalue { ptr, i32 } poison, ptr %88, 0
  %91 = insertvalue { ptr, i32 } %90, i32 %89, 1
  resume { ptr, i32 } %91
}

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERm(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 81}
!10 = !{!"_ZTSN2ga7fitness11ObjFunctionE", !11, i64 0, !11, i64 40, !12, i64 80, !12, i64 81, !13, i64 88}
!11 = !{!"_ZTSSt5arrayIdLm5EE", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!10, !12, i64 80}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!13, !13, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!10, !13, i64 88}
!24 = distinct !{!24, !21}
!25 = !{i64 0, i64 40, !26}
!26 = !{!7, !7, i64 0}


; 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_istream" = type { ptr, i64, %"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::array" = type { [5 x double] }
%"struct.model::Performance" = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ga7fitness11ObjFunction11_getMetricsEN5model11PerformanceE(ptr dead_on_unwind noalias writable sret(%"struct.std::array") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5model11PerformanceC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5model11PerformanceD2Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2ga7fitness11ObjFunction19_interactiveDctImplERKN5model11PerformanceE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(144) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.std::array", align 8
  %4 = alloca %"struct.model::Performance", align 8
  %5 = alloca %"struct.std::array", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 81
  %9 = load i8, ptr %8, align 1, !tbaa !5, !range !12, !noundef !13
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %77, label %11

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #6
  call void @_ZN5model11PerformanceC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(144) %4, ptr noundef nonnull align 8 dereferenceable(144) %1)
  invoke void @_ZN2ga7fitness11ObjFunction11_getMetricsEN5model11PerformanceE(ptr dead_on_unwind nonnull writable sret(%"struct.std::array") align 8 %3, ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull %4)
          to label %12 unwind label %17

12:                                               ; preds = %11
  call void @_ZN5model11PerformanceD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %4) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 80
  %14 = load i8, ptr %13, align 8, !tbaa !14, !range !12, !noundef !13
  %15 = trunc nuw i8 %14 to i1
  br i1 %15, label %19, label %16

16:                                               ; preds = %12
  store i8 1, ptr %13, align 8, !tbaa !14
  br label %75

17:                                               ; preds = %11
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5model11PerformanceD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %4) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #6
  resume { ptr, i32 } %18

19:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 0) #6
  %22 = load double, ptr %21, align 8, !tbaa !15
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %20, i64 noundef 0) #6
  %24 = load double, ptr %23, align 8, !tbaa !15
  %25 = fdiv double %22, %24
  %26 = fsub double 1.000000e+00, %25
  %27 = fmul double %26, 1.000000e+02
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef 0) #6
  store double %27, ptr %28, align 8, !tbaa !15
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 1) #6
  %30 = load double, ptr %29, align 8, !tbaa !15
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %20, i64 noundef 1) #6
  %32 = load double, ptr %31, align 8, !tbaa !15
  %33 = fdiv double %30, %32
  %34 = fsub double 1.000000e+00, %33
  %35 = fmul double %34, 1.000000e+02
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef 1) #6
  store double %35, ptr %36, align 8, !tbaa !15
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 2) #6
  %38 = load double, ptr %37, align 8, !tbaa !15
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %20, i64 noundef 2) #6
  %40 = load double, ptr %39, align 8, !tbaa !15
  %41 = fdiv double %38, %40
  %42 = fsub double 1.000000e+00, %41
  %43 = fmul double %42, 1.000000e+02
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef 2) #6
  store double %43, ptr %44, align 8, !tbaa !15
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 3) #6
  %46 = load double, ptr %45, align 8, !tbaa !15
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %20, i64 noundef 3) #6
  %48 = load double, ptr %47, align 8, !tbaa !15
  %49 = fdiv double %46, %48
  %50 = fsub double 1.000000e+00, %49
  %51 = fmul double %50, 1.000000e+02
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef 3) #6
  store double %51, ptr %52, align 8, !tbaa !15
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 4) #6
  %54 = load double, ptr %53, align 8, !tbaa !15
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %20, i64 noundef 4) #6
  %56 = load double, ptr %55, align 8, !tbaa !15
  %57 = fdiv double %54, %56
  %58 = fsub double 1.000000e+00, %57
  %59 = fmul double %58, 1.000000e+02
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef 4) #6
  store double %59, ptr %60, align 8, !tbaa !15
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERm(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %62 = load i64, ptr %6, align 8
  %63 = icmp eq i64 %62, 0
  br i1 %63, label %.thread, label %.lr.ph

.thread:                                          ; preds = %19
  store i8 1, ptr %8, align 1, !tbaa !5
  br label %._crit_edge

.lr.ph:                                           ; preds = %19
  %64 = add i64 %62, -1
  store i64 %64, ptr %6, align 8, !tbaa !16
  %65 = getelementptr inbounds i8, ptr %0, i64 88
  br label %66

66:                                               ; preds = %.lr.ph, %66
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERm(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %68 = load double, ptr %65, align 8, !tbaa !18
  %69 = load i64, ptr %7, align 8, !tbaa !16
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm5EEixEm(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %69) #6
  %71 = load double, ptr %70, align 8, !tbaa !15
  %72 = fadd double %68, %71
  store double %72, ptr %70, align 8, !tbaa !15
  %73 = load i64, ptr %6, align 8, !tbaa !16
  %74 = add i64 %73, -1
  store i64 %74, ptr %6, align 8, !tbaa !16
  %.not = icmp eq i64 %73, 0
  br i1 %.not, label %._crit_edge, label %66, !llvm.loop !19

._crit_edge:                                      ; preds = %66, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  br label %75

75:                                               ; preds = %._crit_edge, %16
  %76 = getelementptr inbounds i8, ptr %0, i64 40
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %76, ptr noundef nonnull align 8 dereferenceable(40) %3, i64 40, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #6
  br label %77

77:                                               ; preds = %2, %75
  ret void
}

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

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


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