; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/util/tests (test_median_computer)

; 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.medianComputer = type <{ %"class.std::vector", %"class.std::vector.0", i32, float, 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.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@__const.main.vs = external hidden unnamed_addr constant [4 x float], align 16
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8expectedff(float noundef, float noundef) #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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %class.medianComputer, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %class.medianComputer, align 8
  %6 = alloca [4 x float], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %class.medianComputer, align 8
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr %2) #7
  call void @_ZN14medianComputerC1Ev(ptr noundef nonnull align 8 dereferenceable(60) %2)
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %2, float noundef 1.000000e+00)
          to label %12 unwind label %34

12:                                               ; preds = %0
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %2, float noundef 2.000000e+00)
          to label %13 unwind label %34

13:                                               ; preds = %12
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %2, float noundef 3.000000e+00)
          to label %14 unwind label %34

14:                                               ; preds = %13
  %15 = invoke noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60) %2)
          to label %16 unwind label %34

16:                                               ; preds = %14
  invoke void @_Z8expectedff(float noundef %15, float noundef 2.000000e+00)
          to label %17 unwind label %34

17:                                               ; preds = %16
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %2, float noundef 4.000000e+00)
          to label %18 unwind label %34

18:                                               ; preds = %17
  %19 = invoke noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60) %2)
          to label %20 unwind label %34

20:                                               ; preds = %18
  invoke void @_Z8expectedff(float noundef %19, float noundef 2.500000e+00)
          to label %21 unwind label %34

21:                                               ; preds = %20
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %2, float noundef 5.000000e+00)
          to label %22 unwind label %34

22:                                               ; preds = %21
  %23 = invoke noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60) %2)
          to label %24 unwind label %34

24:                                               ; preds = %22
  invoke void @_Z8expectedff(float noundef %23, float noundef 3.000000e+00)
          to label %25 unwind label %34

25:                                               ; preds = %24
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %2, float noundef 6.000000e+00)
          to label %26 unwind label %34

26:                                               ; preds = %25
  %27 = invoke noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60) %2)
          to label %28 unwind label %34

28:                                               ; preds = %26
  invoke void @_Z8expectedff(float noundef %27, float noundef 3.500000e+00)
          to label %29 unwind label %34

29:                                               ; preds = %28
  call void @_ZN14medianComputerD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %2) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #7
  call void @_ZN14medianComputerC1Ev(ptr noundef nonnull align 8 dereferenceable(60) %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.vs, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %57, %29
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = icmp slt i32 %31, 4
  br i1 %32, label %38, label %33

33:                                               ; preds = %30
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %60

34:                                               ; preds = %28, %26, %25, %24, %22, %21, %20, %18, %17, %16, %14, %13, %12, %0
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %3, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %4, align 4
  call void @_ZN14medianComputerD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %2) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #7
  br label %96

38:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %49, %38
  %40 = load i32, ptr %9, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 100
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %56

43:                                               ; preds = %39
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 %45
  %47 = load float, ptr %46, align 4, !tbaa !9
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %5, float noundef %47)
          to label %48 unwind label %52

48:                                               ; preds = %43
  br label %49

49:                                               ; preds = %48
  %50 = load i32, ptr %9, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %9, align 4, !tbaa !5
  br label %39, !llvm.loop !11

52:                                               ; preds = %43
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %3, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %76

56:                                               ; preds = %42
  br label %57

57:                                               ; preds = %56
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %7, align 4, !tbaa !5
  br label %30, !llvm.loop !13

60:                                               ; preds = %33
  %61 = invoke noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60) %5)
          to label %62 unwind label %72

62:                                               ; preds = %60
  invoke void @_Z8expectedff(float noundef %61, float noundef 1.900000e+01)
          to label %63 unwind label %72

63:                                               ; preds = %62
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %5, float noundef 1.300000e+01)
          to label %64 unwind label %72

64:                                               ; preds = %63
  %65 = invoke noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60) %5)
          to label %66 unwind label %72

66:                                               ; preds = %64
  invoke void @_Z8expectedff(float noundef %65, float noundef 1.300000e+01)
          to label %67 unwind label %72

67:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #7
  call void @_ZN14medianComputerD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %5) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #7
  call void @_ZN14medianComputerC1Ev(ptr noundef nonnull align 8 dereferenceable(60) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %79, %67
  %69 = load i32, ptr %11, align 4, !tbaa !5
  %70 = icmp slt i32 %69, 300
  br i1 %70, label %77, label %71

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

72:                                               ; preds = %66, %64, %63, %62, %60
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %3, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %4, align 4
  br label %76

76:                                               ; preds = %72, %52
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #7
  call void @_ZN14medianComputerD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %5) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #7
  br label %96

77:                                               ; preds = %68
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %10, float noundef 1.000000e+01)
          to label %78 unwind label %82

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %11, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %11, align 4, !tbaa !5
  br label %68, !llvm.loop !14

82:                                               ; preds = %77
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %3, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %95

86:                                               ; preds = %71
  %87 = invoke noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60) %10)
          to label %88 unwind label %91

88:                                               ; preds = %86
  invoke void @_Z8expectedff(float noundef %87, float noundef 1.000000e+01)
          to label %89 unwind label %91

89:                                               ; preds = %88
  call void @_ZN14medianComputerD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %10) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #7
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  ret i32 0

91:                                               ; preds = %88, %86
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %3, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %4, align 4
  br label %95

95:                                               ; preds = %91, %82
  call void @_ZN14medianComputerD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %10) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #7
  br label %96

96:                                               ; preds = %95, %76, %34
  %97 = load ptr, ptr %3, align 8
  %98 = load i32, ptr %4, align 4
  %99 = insertvalue { ptr, i32 } poison, ptr %97, 0
  %100 = insertvalue { ptr, i32 } %99, i32 %98, 1
  resume { ptr, i32 } %100
}

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

declare void @_ZN14medianComputerC1Ev(ptr noundef nonnull align 8 dereferenceable(60)) unnamed_addr #4

declare void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60), float noundef) #4

declare i32 @__gxx_personality_v0(...)

declare noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60)) #4

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

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

; 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) #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 = { 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 = { mustprogress norecurse 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


; 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.medianComputer = type <{ %"class.std::vector", %"class.std::vector.0", i32, float, 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.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@__const.main.vs = external hidden unnamed_addr constant [4 x float], align 16
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8expectedff(float noundef, float noundef) local_unnamed_addr #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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %class.medianComputer, align 8
  %2 = alloca %class.medianComputer, align 8
  %3 = alloca %class.medianComputer, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #6
  call void @_ZN14medianComputerC1Ev(ptr noundef nonnull align 8 dereferenceable(60) %1)
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %1, float noundef 1.000000e+00)
          to label %4 unwind label %22

4:                                                ; preds = %0
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %1, float noundef 2.000000e+00)
          to label %5 unwind label %22

5:                                                ; preds = %4
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %1, float noundef 3.000000e+00)
          to label %6 unwind label %22

6:                                                ; preds = %5
  %7 = invoke noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60) %1)
          to label %8 unwind label %22

8:                                                ; preds = %6
  invoke void @_Z8expectedff(float noundef %7, float noundef 2.000000e+00)
          to label %9 unwind label %22

9:                                                ; preds = %8
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %1, float noundef 4.000000e+00)
          to label %10 unwind label %22

10:                                               ; preds = %9
  %11 = invoke noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60) %1)
          to label %12 unwind label %22

12:                                               ; preds = %10
  invoke void @_Z8expectedff(float noundef %11, float noundef 2.500000e+00)
          to label %13 unwind label %22

13:                                               ; preds = %12
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %1, float noundef 5.000000e+00)
          to label %14 unwind label %22

14:                                               ; preds = %13
  %15 = invoke noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60) %1)
          to label %16 unwind label %22

16:                                               ; preds = %14
  invoke void @_Z8expectedff(float noundef %15, float noundef 3.000000e+00)
          to label %17 unwind label %22

17:                                               ; preds = %16
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %1, float noundef 6.000000e+00)
          to label %18 unwind label %22

18:                                               ; preds = %17
  %19 = invoke noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60) %1)
          to label %20 unwind label %22

20:                                               ; preds = %18
  invoke void @_Z8expectedff(float noundef %19, float noundef 3.500000e+00)
          to label %.preheader unwind label %22

.preheader:                                       ; preds = %20
  call void @_ZN14medianComputerD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %1) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #6
  call void @_ZN14medianComputerC1Ev(ptr noundef nonnull align 8 dereferenceable(60) %2)
  %21 = load float, ptr @__const.main.vs, align 16, !tbaa !5
  br label %38

22:                                               ; preds = %20, %18, %17, %16, %14, %13, %12, %10, %9, %8, %6, %5, %4, %0
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14medianComputerD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %1) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #6
  br label %62

.preheader.1:                                     ; preds = %39
  %24 = load float, ptr getelementptr inbounds (i8, ptr @__const.main.vs, i64 4), align 4, !tbaa !5
  br label %25

25:                                               ; preds = %26, %.preheader.1
  %.0818.1 = phi i32 [ 0, %.preheader.1 ], [ %27, %26 ]
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %2, float noundef %24)
          to label %26 unwind label %.loopexit.split-lp.loopexit

26:                                               ; preds = %25
  %27 = add nuw nsw i32 %.0818.1, 1
  %exitcond.1.not = icmp eq i32 %27, 100
  br i1 %exitcond.1.not, label %.preheader.2, label %25, !llvm.loop !9

.preheader.2:                                     ; preds = %26
  %28 = load float, ptr getelementptr inbounds (i8, ptr @__const.main.vs, i64 8), align 8, !tbaa !5
  br label %29

29:                                               ; preds = %30, %.preheader.2
  %.0818.2 = phi i32 [ 0, %.preheader.2 ], [ %31, %30 ]
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %2, float noundef %28)
          to label %30 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

30:                                               ; preds = %29
  %31 = add nuw nsw i32 %.0818.2, 1
  %exitcond.2.not = icmp eq i32 %31, 100
  br i1 %exitcond.2.not, label %.preheader.3, label %29, !llvm.loop !9

.preheader.3:                                     ; preds = %30
  %32 = load float, ptr getelementptr inbounds (i8, ptr @__const.main.vs, i64 12), align 4, !tbaa !5
  br label %33

33:                                               ; preds = %34, %.preheader.3
  %.0818.3 = phi i32 [ 0, %.preheader.3 ], [ %35, %34 ]
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %2, float noundef %32)
          to label %34 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

34:                                               ; preds = %33
  %35 = add nuw nsw i32 %.0818.3, 1
  %exitcond.3.not = icmp eq i32 %35, 100
  br i1 %exitcond.3.not, label %36, label %33, !llvm.loop !9

36:                                               ; preds = %34
  %37 = invoke noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60) %2)
          to label %41 unwind label %49

38:                                               ; preds = %.preheader, %39
  %.0818 = phi i32 [ 0, %.preheader ], [ %40, %39 ]
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %2, float noundef %21)
          to label %39 unwind label %.loopexit

39:                                               ; preds = %38
  %40 = add nuw nsw i32 %.0818, 1
  %exitcond.not = icmp eq i32 %40, 100
  br i1 %exitcond.not, label %.preheader.1, label %38, !llvm.loop !9

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

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

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

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

41:                                               ; preds = %36
  invoke void @_Z8expectedff(float noundef %37, float noundef 1.900000e+01)
          to label %42 unwind label %49

42:                                               ; preds = %41
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %2, float noundef 1.300000e+01)
          to label %43 unwind label %49

43:                                               ; preds = %42
  %44 = invoke noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60) %2)
          to label %45 unwind label %49

45:                                               ; preds = %43
  invoke void @_Z8expectedff(float noundef %44, float noundef 1.300000e+01)
          to label %46 unwind label %49

46:                                               ; preds = %45
  call void @_ZN14medianComputerD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %2) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #6
  call void @_ZN14medianComputerC1Ev(ptr noundef nonnull align 8 dereferenceable(60) %3)
  br label %51

47:                                               ; preds = %52
  %48 = invoke noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60) %3)
          to label %56 unwind label %59

49:                                               ; preds = %45, %43, %42, %41, %36
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %49
  %.pn15 = phi { ptr, i32 } [ %50, %49 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit23, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit26, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN14medianComputerD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %2) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  br label %62

51:                                               ; preds = %46, %52
  %.020 = phi i32 [ 0, %46 ], [ %53, %52 ]
  invoke void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60) %3, float noundef 1.000000e+01)
          to label %52 unwind label %54

52:                                               ; preds = %51
  %53 = add nuw nsw i32 %.020, 1
  %exitcond28.not = icmp eq i32 %53, 300
  br i1 %exitcond28.not, label %47, label %51, !llvm.loop !11

54:                                               ; preds = %51
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %61

56:                                               ; preds = %47
  invoke void @_Z8expectedff(float noundef %48, float noundef 1.000000e+01)
          to label %57 unwind label %59

57:                                               ; preds = %56
  call void @_ZN14medianComputerD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %3) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  %58 = 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.4)
  ret i32 0

59:                                               ; preds = %56, %47
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %61

61:                                               ; preds = %59, %54
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %60, %59 ]
  call void @_ZN14medianComputerD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %3) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  br label %62

62:                                               ; preds = %61, %.loopexit.split-lp, %22
  %.pn15.pn = phi { ptr, i32 } [ %.pn15, %.loopexit.split-lp ], [ %.pn, %61 ], [ %23, %22 ]
  resume { ptr, i32 } %.pn15.pn
}

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

declare void @_ZN14medianComputerC1Ev(ptr noundef nonnull align 8 dereferenceable(60)) unnamed_addr #4

declare void @_ZN14medianComputer3addEf(ptr noundef nonnull align 8 dereferenceable(60), float noundef) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

declare noundef float @_ZN14medianComputer9getMedianEv(ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #4

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

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

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


; Effective O3 passes: GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass