; LLVM IR from Razakhel/RaZ :: src/RaZ/Application.ll (ZN3Raz11Application7runOnceEv)

; 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::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::chrono::duration.4" = type { float }
%"class.Raz::Application" = type <{ %"class.std::vector", %"class.Raz::Bitset", %"struct.Raz::FrameTimeInfo", %"class.std::chrono::time_point", float, i8, [3 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::unique_ptr<Raz::World>, std::allocator<std::unique_ptr<Raz::World>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<Raz::World>, std::allocator<std::unique_ptr<Raz::World>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<Raz::World>, std::allocator<std::unique_ptr<Raz::World>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<Raz::World>, std::allocator<std::unique_ptr<Raz::World>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Raz::Bitset" = type { %"class.std::vector.0" }
%"class.std::vector.0" = 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 }>
%"struct.Raz::FrameTimeInfo" = type { float, float, i32, float }

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3Raz11Application7runOnceEv(ptr noundef nonnull align 8 dereferenceable(93) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::chrono::time_point", align 8
  %4 = alloca %"class.std::chrono::duration.4", align 4
  %5 = alloca %"class.std::chrono::duration", align 8
  %6 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %8 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #6
  %9 = getelementptr inbounds %"class.std::chrono::time_point", ptr %3, i32 0, i32 0
  %10 = getelementptr inbounds %"class.std::chrono::duration", ptr %9, i32 0, i32 0
  store i64 %8, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %11 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 3
  %12 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %13 = getelementptr inbounds %"class.std::chrono::duration", ptr %5, i32 0, i32 0
  store i64 %12, ptr %13, align 8
  call void @_ZNSt6chrono8durationIfSt5ratioILl1ELl1EEEC2IlS1_ILl1ELl1000000000EEvEERKNS0_IT_T0_EE(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %14 = call noundef float @_ZNKSt6chrono8durationIfSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  %15 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 2
  %16 = getelementptr inbounds %"struct.Raz::FrameTimeInfo", ptr %15, i32 0, i32 0
  store float %14, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %17 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 2
  %18 = getelementptr inbounds %"struct.Raz::FrameTimeInfo", ptr %17, i32 0, i32 0
  %19 = load float, ptr %18, align 8, !tbaa !9
  %20 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 2
  %21 = getelementptr inbounds %"struct.Raz::FrameTimeInfo", ptr %20, i32 0, i32 1
  %22 = load float, ptr %21, align 4, !tbaa !29
  %23 = fadd float %22, %19
  store float %23, ptr %21, align 4, !tbaa !29
  %24 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %3, i64 8, i1 false), !tbaa.struct !30
  %25 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 2
  %26 = getelementptr inbounds %"struct.Raz::FrameTimeInfo", ptr %25, i32 0, i32 2
  store i32 0, ptr %26, align 8, !tbaa !32
  %27 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 2
  %28 = getelementptr inbounds %"struct.Raz::FrameTimeInfo", ptr %27, i32 0, i32 0
  %29 = load float, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 4
  %31 = load float, ptr %30, align 8, !tbaa !33
  %32 = fadd float %31, %29
  store float %32, ptr %30, align 8, !tbaa !33
  br label %33

33:                                               ; preds = %40, %1
  %34 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 4
  %35 = load float, ptr %34, align 8, !tbaa !33
  %36 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 2
  %37 = getelementptr inbounds %"struct.Raz::FrameTimeInfo", ptr %36, i32 0, i32 3
  %38 = load float, ptr %37, align 4, !tbaa !34
  %39 = fcmp oge float %35, %38
  br i1 %39, label %40, label %51

40:                                               ; preds = %33
  %41 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 2
  %42 = getelementptr inbounds %"struct.Raz::FrameTimeInfo", ptr %41, i32 0, i32 2
  %43 = load i32, ptr %42, align 8, !tbaa !32
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %42, align 8, !tbaa !32
  %45 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 2
  %46 = getelementptr inbounds %"struct.Raz::FrameTimeInfo", ptr %45, i32 0, i32 3
  %47 = load float, ptr %46, align 4, !tbaa !34
  %48 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 4
  %49 = load float, ptr %48, align 8, !tbaa !33
  %50 = fsub float %49, %47
  store float %50, ptr %48, align 8, !tbaa !33
  br label %33, !llvm.loop !35

51:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 0, ptr %6, align 8, !tbaa !31
  br label %52

52:                                               ; preds = %74, %51
  %53 = load i64, ptr %6, align 8, !tbaa !31
  %54 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 0
  %55 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrIN3Raz5WorldESt14default_deleteIS2_EESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #6
  %56 = icmp ult i64 %53, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %77

58:                                               ; preds = %52
  %59 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 1
  %60 = load i64, ptr %6, align 8, !tbaa !31
  %61 = call noundef zeroext i1 @_ZNK3Raz6BitsetixEm(ptr noundef nonnull align 8 dereferenceable(40) %59, i64 noundef %60) #6
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  br label %74

63:                                               ; preds = %58
  %64 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 0
  %65 = load i64, ptr %6, align 8, !tbaa !31
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN3Raz5WorldESt14default_deleteIS2_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %65) #6
  %67 = call noundef ptr @_ZNKSt10unique_ptrIN3Raz5WorldESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %66) #6
  %68 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 2
  %69 = call noundef zeroext i1 @_ZN3Raz5World6updateERKNS_13FrameTimeInfoE(ptr noundef nonnull align 8 dereferenceable(104) %67, ptr noundef nonnull align 4 dereferenceable(16) %68)
  br i1 %69, label %73, label %70

70:                                               ; preds = %63
  %71 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 1
  %72 = load i64, ptr %6, align 8, !tbaa !31
  call void @_ZN3Raz6Bitset6setBitEmb(ptr noundef nonnull align 8 dereferenceable(40) %71, i64 noundef %72, i1 noundef zeroext false)
  br label %73

73:                                               ; preds = %70, %63
  br label %74

74:                                               ; preds = %73, %62
  %75 = load i64, ptr %6, align 8, !tbaa !31
  %76 = add i64 %75, 1
  store i64 %76, ptr %6, align 8, !tbaa !31
  br label %52, !llvm.loop !37

77:                                               ; preds = %57
  %78 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 5
  %79 = load i8, ptr %78, align 4, !tbaa !38, !range !39, !noundef !40
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %85

81:                                               ; preds = %77
  %82 = getelementptr inbounds %"class.Raz::Application", ptr %7, i32 0, i32 1
  %83 = call noundef zeroext i1 @_ZNK3Raz6Bitset7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(40) %82) #6
  %84 = xor i1 %83, true
  br label %85

85:                                               ; preds = %81, %77
  %86 = phi i1 [ false, %77 ], [ %84, %81 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret i1 %86
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNKSt6chrono8durationIfSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 4 dereferenceable(4)) #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: 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) #4

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

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

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

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

declare noundef zeroext i1 @_ZN3Raz5World6updateERKNS_13FrameTimeInfoE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 4 dereferenceable(16)) #5

declare void @_ZN3Raz6Bitset6setBitEmb(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i1 noundef zeroext) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3Raz6Bitset7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

attributes #0 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "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, !24, i64 64}
!10 = !{!"_ZTSN3Raz11ApplicationE", !11, i64 0, !15, i64 24, !23, i64 64, !25, i64 80, !24, i64 88, !28, i64 92}
!11 = !{!"_ZTSSt6vectorISt10unique_ptrIN3Raz5WorldESt14default_deleteIS2_EESaIS5_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN3Raz5WorldESt14default_deleteIS2_EESaIS5_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3Raz5WorldESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3Raz5WorldESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_ZTSN3Raz6BitsetE", !16, i64 0}
!16 = !{!"_ZTSSt6vectorIbSaIbEE", !17, i64 0}
!17 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !18, i64 0}
!18 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !20, i64 0, !20, i64 16, !6, i64 32}
!20 = !{!"_ZTSSt13_Bit_iterator", !21, i64 0}
!21 = !{!"_ZTSSt18_Bit_iterator_base", !6, i64 0, !22, i64 8}
!22 = !{!"int", !7, i64 0}
!23 = !{!"_ZTSN3Raz13FrameTimeInfoE", !24, i64 0, !24, i64 4, !22, i64 8, !24, i64 12}
!24 = !{!"float", !7, i64 0}
!25 = !{!"_ZTSNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEE", !26, i64 0}
!26 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !27, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!10, !24, i64 68}
!30 = !{i64 0, i64 8, !31}
!31 = !{!27, !27, i64 0}
!32 = !{!10, !22, i64 72}
!33 = !{!10, !24, i64 88}
!34 = !{!10, !24, i64 76}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}
!38 = !{!10, !28, i64 92}
!39 = !{i8 0, i8 2}
!40 = !{}


; 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::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::chrono::duration.4" = type { float }

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3Raz11Application7runOnceEv(ptr noundef nonnull align 8 dereferenceable(93) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"class.std::chrono::time_point", align 8
  %3 = alloca %"class.std::chrono::duration.4", align 4
  %4 = alloca %"class.std::chrono::duration", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %5 = tail call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #5
  store i64 %5, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %6 = getelementptr inbounds i8, ptr %0, i64 80
  %7 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
  store i64 %7, ptr %4, align 8
  call void @_ZNSt6chrono8durationIfSt5ratioILl1ELl1EEEC2IlS1_ILl1ELl1000000000EEvEERKNS0_IT_T0_EE(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %8 = call noundef float @_ZNKSt6chrono8durationIfSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  %9 = getelementptr inbounds i8, ptr %0, i64 64
  store float %8, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 68
  %11 = load float, ptr %10, align 4, !tbaa !28
  %12 = fadd float %8, %11
  store float %12, ptr %10, align 4, !tbaa !28
  %13 = load i64, ptr %2, align 8, !tbaa !29
  store i64 %13, ptr %6, align 8, !tbaa !29
  %14 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 0, ptr %14, align 8, !tbaa !30
  %15 = getelementptr inbounds i8, ptr %0, i64 88
  %16 = load float, ptr %15, align 8, !tbaa !31
  %17 = fadd float %8, %16
  %18 = getelementptr inbounds i8, ptr %0, i64 76
  %19 = load float, ptr %18, align 4, !tbaa !32
  %20 = fcmp ult float %17, %19
  br i1 %20, label %.preheader, label %.lr.ph

..preheader_crit_edge:                            ; preds = %.lr.ph
  store i32 %24, ptr %14, align 8, !tbaa !30
  br label %.preheader

.preheader:                                       ; preds = %..preheader_crit_edge, %1
  %storemerge.lcssa = phi float [ %25, %..preheader_crit_edge ], [ %17, %1 ]
  store float %storemerge.lcssa, ptr %15, align 8, !tbaa !31
  %21 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrIN3Raz5WorldESt14default_deleteIS2_EESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %.not = icmp eq i64 %21, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph7

.lr.ph7:                                          ; preds = %.preheader
  %22 = getelementptr inbounds i8, ptr %0, i64 24
  br label %30

.lr.ph:                                           ; preds = %1, %.lr.ph
  %storemerge5 = phi float [ %25, %.lr.ph ], [ %17, %1 ]
  %23 = phi i32 [ %24, %.lr.ph ], [ 0, %1 ]
  %24 = add nuw nsw i32 %23, 1
  %25 = fsub float %storemerge5, %19
  %26 = fcmp ult float %25, %19
  br i1 %26, label %..preheader_crit_edge, label %.lr.ph, !llvm.loop !33

._crit_edge:                                      ; preds = %37, %.preheader
  %27 = getelementptr inbounds i8, ptr %0, i64 92
  %28 = load i8, ptr %27, align 4, !tbaa !35, !range !36, !noundef !37
  %29 = trunc nuw i8 %28 to i1
  br i1 %29, label %41, label %45

30:                                               ; preds = %.lr.ph7, %37
  %.06 = phi i64 [ 0, %.lr.ph7 ], [ %38, %37 ]
  %31 = call noundef zeroext i1 @_ZNK3Raz6BitsetixEm(ptr noundef nonnull align 8 dereferenceable(40) %22, i64 noundef %.06) #5
  br i1 %31, label %32, label %37

32:                                               ; preds = %30
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN3Raz5WorldESt14default_deleteIS2_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.06) #5
  %34 = call noundef ptr @_ZNKSt10unique_ptrIN3Raz5WorldESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #5
  %35 = call noundef zeroext i1 @_ZN3Raz5World6updateERKNS_13FrameTimeInfoE(ptr noundef nonnull align 8 dereferenceable(104) %34, ptr noundef nonnull align 4 dereferenceable(16) %9)
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  call void @_ZN3Raz6Bitset6setBitEmb(ptr noundef nonnull align 8 dereferenceable(40) %22, i64 noundef %.06, i1 noundef zeroext false)
  br label %37

37:                                               ; preds = %32, %36, %30
  %38 = add nuw i64 %.06, 1
  %39 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrIN3Raz5WorldESt14default_deleteIS2_EESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %40 = icmp ult i64 %38, %39
  br i1 %40, label %30, label %._crit_edge, !llvm.loop !38

41:                                               ; preds = %._crit_edge
  %42 = getelementptr inbounds i8, ptr %0, i64 24
  %43 = call noundef zeroext i1 @_ZNK3Raz6Bitset7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(40) %42) #5
  %44 = xor i1 %43, true
  br label %45

45:                                               ; preds = %41, %._crit_edge
  %46 = phi i1 [ false, %._crit_edge ], [ %44, %41 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  ret i1 %46
}

; 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 uwtable
declare dso_local i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNKSt6chrono8durationIfSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 4 dereferenceable(4)) 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt10unique_ptrIN3Raz5WorldESt14default_deleteIS2_EESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

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

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

declare noundef zeroext i1 @_ZN3Raz5World6updateERKNS_13FrameTimeInfoE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

declare void @_ZN3Raz6Bitset6setBitEmb(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3Raz6Bitset7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

attributes #0 = { 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 #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 = { "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 = { 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, !23, i64 64}
!6 = !{!"_ZTSN3Raz11ApplicationE", !7, i64 0, !14, i64 24, !22, i64 64, !24, i64 80, !23, i64 88, !27, i64 92}
!7 = !{!"_ZTSSt6vectorISt10unique_ptrIN3Raz5WorldESt14default_deleteIS2_EESaIS5_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN3Raz5WorldESt14default_deleteIS2_EESaIS5_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3Raz5WorldESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3Raz5WorldESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN3Raz6BitsetE", !15, i64 0}
!15 = !{!"_ZTSSt6vectorIbSaIbEE", !16, i64 0}
!16 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !17, i64 0}
!17 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !19, i64 0, !19, i64 16, !11, i64 32}
!19 = !{!"_ZTSSt13_Bit_iterator", !20, i64 0}
!20 = !{!"_ZTSSt18_Bit_iterator_base", !11, i64 0, !21, i64 8}
!21 = !{!"int", !12, i64 0}
!22 = !{!"_ZTSN3Raz13FrameTimeInfoE", !23, i64 0, !23, i64 4, !21, i64 8, !23, i64 12}
!23 = !{!"float", !12, i64 0}
!24 = !{!"_ZTSNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEE", !25, i64 0}
!25 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !26, i64 0}
!26 = !{!"long", !12, i64 0}
!27 = !{!"bool", !12, i64 0}
!28 = !{!6, !23, i64 68}
!29 = !{!26, !26, i64 0}
!30 = !{!6, !21, i64 72}
!31 = !{!6, !23, i64 88}
!32 = !{!6, !23, i64 76}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!6, !27, i64 92}
!36 = !{i8 0, i8 2}
!37 = !{}
!38 = distinct !{!38, !34}


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