; LLVM IR from TrainingByPackt/CPP-Data-Structures-and-Algorithm-Design-Principles :: Lesson4/Activity08/vaccine.ll (Z17needs_vaccination7StudentRSt6vectorIS_SaIS_EE)

; 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.Student = type <{ %"struct.std::pair", i8, [3 x i8] }>
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z17needs_vaccination7StudentRSt6vectorIS_SaIS_EE(i64 %0, i8 %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #0 {
  %4 = alloca i1, align 1
  %5 = alloca %class.Student, align 4
  %6 = alloca { i64, i8 }, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca double, align 8
  %14 = alloca %class.Student, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca i32, align 4
  %17 = getelementptr inbounds { i64, i8 }, ptr %6, i32 0, i32 0
  store i64 %0, ptr %17, align 4
  %18 = getelementptr inbounds { i64, i8 }, ptr %6, i32 0, i32 1
  store i8 %1, ptr %18, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %6, i64 12, i1 false)
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = call ptr @_ZNSt6vectorI7StudentSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  %21 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %20, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = call ptr @_ZNSt6vectorI7StudentSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  %24 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %23, ptr %24, align 8
  br label %25

25:                                               ; preds = %71, %3
  br label %26

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %8, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %9, i64 8, i1 false), !tbaa.struct !9
  %27 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8
  %29 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8
  %31 = call noundef i64 @_ZSt8distanceIN9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS2_SaIS2_EEEEENSt15iterator_traitsIT_E15difference_typeES9_S9_(ptr %28, ptr %30)
  store i64 %31, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %32 = load i64, ptr %10, align 8, !tbaa !10
  %33 = sdiv i64 %32, 2
  %34 = call noundef double @_ZSt5floorIlEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %33)
  store double %34, ptr %13, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %35 = load double, ptr %13, align 8, !tbaa !12
  %36 = fptosi double %35 to i64
  %37 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS1_SaIS1_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef %36) #6
  %38 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %37, ptr %38, align 8
  %39 = call noundef nonnull align 4 dereferenceable(9) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %39, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  %40 = call noundef zeroext i1 @_ZNK7StudenteqERKS_(ptr noundef nonnull align 4 dereferenceable(9) %14, ptr noundef nonnull align 4 dereferenceable(9) %5)
  br i1 %40, label %41, label %46

41:                                               ; preds = %26
  %42 = call noundef zeroext i1 @_ZN7Student13is_vaccinatedEv(ptr noundef nonnull align 4 dereferenceable(9) %14)
  %43 = zext i1 %42 to i32
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %41
  store i1 true, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %69

46:                                               ; preds = %41, %26
  %47 = call noundef zeroext i1 @_ZNK7StudenteqERKS_(ptr noundef nonnull align 4 dereferenceable(9) %14, ptr noundef nonnull align 4 dereferenceable(9) %5)
  br i1 %47, label %48, label %53

48:                                               ; preds = %46
  %49 = call noundef zeroext i1 @_ZN7Student13is_vaccinatedEv(ptr noundef nonnull align 4 dereferenceable(9) %14)
  %50 = zext i1 %49 to i32
  %51 = icmp eq i32 %50, 1
  br i1 %51, label %52, label %53

52:                                               ; preds = %48
  store i1 false, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %69

53:                                               ; preds = %48, %46
  %54 = call noundef zeroext i1 @_ZNK7StudentgtERKS_(ptr noundef nonnull align 4 dereferenceable(9) %14, ptr noundef nonnull align 4 dereferenceable(9) %5)
  br i1 %54, label %55, label %58

55:                                               ; preds = %53
  %56 = load double, ptr %13, align 8, !tbaa !12
  %57 = fneg double %56
  call void @_ZSt7advanceIN9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS2_SaIS2_EEEEdEvRT_T0_(ptr noundef nonnull align 8 dereferenceable(8) %9, double noundef %57)
  br label %58

58:                                               ; preds = %55, %53
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  %61 = call noundef zeroext i1 @_ZNK7StudentltERKS_(ptr noundef nonnull align 4 dereferenceable(9) %14, ptr noundef nonnull align 4 dereferenceable(9) %5)
  br i1 %61, label %62, label %64

62:                                               ; preds = %60
  %63 = load double, ptr %13, align 8, !tbaa !12
  call void @_ZSt7advanceIN9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS2_SaIS2_EEEEdEvRT_T0_(ptr noundef nonnull align 8 dereferenceable(8) %8, double noundef %63)
  br label %64

64:                                               ; preds = %62, %60
  %65 = load i64, ptr %10, align 8, !tbaa !10
  %66 = icmp eq i64 %65, 1
  br i1 %66, label %67, label %68

67:                                               ; preds = %64
  store i1 true, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %69

68:                                               ; preds = %64
  store i32 0, ptr %16, align 4
  br label %69

69:                                               ; preds = %68, %67, %52, %45
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %70 = load i32, ptr %16, align 4
  switch i32 %70, label %72 [
    i32 0, label %71
  ]

71:                                               ; preds = %69
  br label %25, !llvm.loop !14

72:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %73 = load i1, ptr %4, align 1
  ret i1 %73
}

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

; 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 ptr @_ZNSt6vectorI7StudentSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIN9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS2_SaIS2_EEEEENSt15iterator_traitsIT_E15difference_typeES9_S9_(ptr, ptr) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt5floorIlEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(9) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #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: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7StudenteqERKS_(ptr noundef nonnull align 4 dereferenceable(9), ptr noundef nonnull align 4 dereferenceable(9)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7Student13is_vaccinatedEv(ptr noundef nonnull align 4 dereferenceable(9)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7StudentgtERKS_(ptr noundef nonnull align 4 dereferenceable(9), ptr noundef nonnull align 4 dereferenceable(9)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7advanceIN9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS2_SaIS2_EEEEdEvRT_T0_(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7StudentltERKS_(ptr noundef nonnull align 4 dereferenceable(9), ptr noundef nonnull align 4 dereferenceable(9)) #3 align 2

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


; 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.Student = type <{ %"struct.std::pair", i8, [3 x i8] }>
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z17needs_vaccination7StudentRSt6vectorIS_SaIS_EE(i64 %0, i8 %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #0 {
  %4 = alloca %class.Student, align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %class.Student, align 4
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store i64 %0, ptr %4, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  store i8 %1, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %9 = tail call ptr @_ZNSt6vectorI7StudentSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  store ptr %9, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %10 = tail call ptr @_ZNSt6vectorI7StudentSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  store ptr %10, ptr %6, align 8
  br label %11

11:                                               ; preds = %32, %3
  %.sroa.03.0.copyload = load ptr, ptr %5, align 8, !tbaa !5
  %.sroa.0.0.copyload = load ptr, ptr %6, align 8, !tbaa !5
  %12 = call noundef i64 @_ZSt8distanceIN9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS2_SaIS2_EEEEENSt15iterator_traitsIT_E15difference_typeES9_S9_(ptr %.sroa.03.0.copyload, ptr %.sroa.0.0.copyload)
  %13 = sdiv i64 %12, 2
  %14 = call noundef double @_ZSt5floorIlEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %13)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %15 = fptosi double %14 to i64
  %16 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS1_SaIS1_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %15) #6
  store ptr %16, ptr %8, align 8
  %17 = call noundef nonnull align 4 dereferenceable(9) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %17, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %18 = call noundef zeroext i1 @_ZNK7StudenteqERKS_(ptr noundef nonnull align 4 dereferenceable(9) %7, ptr noundef nonnull align 4 dereferenceable(9) %4)
  br i1 %18, label %19, label %21

19:                                               ; preds = %11
  %20 = call noundef zeroext i1 @_ZN7Student13is_vaccinatedEv(ptr noundef nonnull align 4 dereferenceable(9) %7)
  br i1 %20, label %21, label %.thread

21:                                               ; preds = %19, %11
  %22 = call noundef zeroext i1 @_ZNK7StudenteqERKS_(ptr noundef nonnull align 4 dereferenceable(9) %7, ptr noundef nonnull align 4 dereferenceable(9) %4)
  br i1 %22, label %23, label %25

23:                                               ; preds = %21
  %24 = call noundef zeroext i1 @_ZN7Student13is_vaccinatedEv(ptr noundef nonnull align 4 dereferenceable(9) %7)
  br i1 %24, label %.thread, label %25

25:                                               ; preds = %23, %21
  %26 = call noundef zeroext i1 @_ZNK7StudentgtERKS_(ptr noundef nonnull align 4 dereferenceable(9) %7, ptr noundef nonnull align 4 dereferenceable(9) %4)
  br i1 %26, label %27, label %29

27:                                               ; preds = %25
  %28 = fneg double %14
  call void @_ZSt7advanceIN9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS2_SaIS2_EEEEdEvRT_T0_(ptr noundef nonnull align 8 dereferenceable(8) %6, double noundef %28)
  br label %29

29:                                               ; preds = %27, %25
  %30 = call noundef zeroext i1 @_ZNK7StudentltERKS_(ptr noundef nonnull align 4 dereferenceable(9) %7, ptr noundef nonnull align 4 dereferenceable(9) %4)
  br i1 %30, label %31, label %32

31:                                               ; preds = %29
  call void @_ZSt7advanceIN9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS2_SaIS2_EEEEdEvRT_T0_(ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef %14)
  br label %32

.thread:                                          ; preds = %19, %23
  %.1.ph = phi i1 [ false, %23 ], [ true, %19 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #6
  br label %.loopexit

32:                                               ; preds = %29, %31
  %33 = icmp eq i64 %12, 1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #6
  br i1 %33, label %.loopexit, label %11, !llvm.loop !9

.loopexit:                                        ; preds = %32, %.thread
  %.113 = phi i1 [ %.1.ph, %.thread ], [ true, %32 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  ret i1 %.113
}

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

; 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 ptr @_ZNSt6vectorI7StudentSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIN9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS2_SaIS2_EEEEENSt15iterator_traitsIT_E15difference_typeES9_S9_(ptr, ptr) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt5floorIlEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(9) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) 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: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7StudenteqERKS_(ptr noundef nonnull align 4 dereferenceable(9), ptr noundef nonnull align 4 dereferenceable(9)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7Student13is_vaccinatedEv(ptr noundef nonnull align 4 dereferenceable(9)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7StudentgtERKS_(ptr noundef nonnull align 4 dereferenceable(9), ptr noundef nonnull align 4 dereferenceable(9)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7advanceIN9__gnu_cxx17__normal_iteratorIP7StudentSt6vectorIS2_SaIS2_EEEEdEvRT_T0_(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7StudentltERKS_(ptr noundef nonnull align 4 dereferenceable(9), ptr noundef nonnull align 4 dereferenceable(9)) local_unnamed_addr #3 align 2

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass