; LLVM IR from thekyria/elabtsaot2 :: powersystem/pwsmodel/pwsmodel.ll (ZNK9elabtsaot8PwsModel16getElement_mdlIdEij)

; 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.elabtsaot::PwsModel" = type { ptr, ptr, %"class.boost::ptr_vector", %"class.boost::ptr_vector", %"class.boost::ptr_vector", %"class.boost::ptr_vector" }
%"class.boost::ptr_vector" = type { %"class.boost::ptr_sequence_adapter" }
%"class.boost::ptr_sequence_adapter" = type { %"class.boost::ptr_container_detail::reversible_ptr_container" }
%"class.boost::ptr_container_detail::reversible_ptr_container" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl" }
%"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl" = type { %"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.elabtsaot::PwsModelElement" = type { ptr, i32, i32 }

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK9elabtsaot8PwsModel16getElement_mdlIdEij(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef %1, i32 noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %9 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 -1, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %10 = load i32, ptr %5, align 4, !tbaa !9
  switch i32 %10, label %99 [
    i32 0, label %11
    i32 1, label %33
    i32 2, label %55
    i32 3, label %77
  ]

11:                                               ; preds = %3
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %12

12:                                               ; preds = %29, %11
  %13 = load i64, ptr %8, align 8, !tbaa !11
  %14 = getelementptr inbounds %"class.elabtsaot::PwsModel", ptr %9, i32 0, i32 2
  %15 = call noundef i64 @_ZNK5boost20ptr_container_detail24reversible_ptr_containerINS0_15sequence_configIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS6_EEEENS_20heap_clone_allocatorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %16 = icmp ne i64 %13, %15
  br i1 %16, label %17, label %32

17:                                               ; preds = %12
  %18 = getelementptr inbounds %"class.elabtsaot::PwsModel", ptr %9, i32 0, i32 2
  %19 = load i64, ptr %8, align 8, !tbaa !11
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost20ptr_sequence_adapterIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS4_EENS_20heap_clone_allocatorEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %19)
  %21 = getelementptr inbounds %"class.elabtsaot::PwsModelElement", ptr %20, i32 0, i32 2
  %22 = load i32, ptr %21, align 4, !tbaa !13
  %23 = load i32, ptr %6, align 4, !tbaa !9
  %24 = icmp eq i32 %22, %23
  br i1 %24, label %25, label %28

25:                                               ; preds = %17
  %26 = load i64, ptr %8, align 8, !tbaa !11
  %27 = trunc i64 %26 to i32
  store i32 %27, ptr %7, align 4, !tbaa !9
  br label %32

28:                                               ; preds = %17
  br label %29

29:                                               ; preds = %28
  %30 = load i64, ptr %8, align 8, !tbaa !11
  %31 = add i64 %30, 1
  store i64 %31, ptr %8, align 8, !tbaa !11
  br label %12, !llvm.loop !15

32:                                               ; preds = %25, %12
  br label %100

33:                                               ; preds = %3
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %34

34:                                               ; preds = %51, %33
  %35 = load i64, ptr %8, align 8, !tbaa !11
  %36 = getelementptr inbounds %"class.elabtsaot::PwsModel", ptr %9, i32 0, i32 3
  %37 = call noundef i64 @_ZNK5boost20ptr_container_detail24reversible_ptr_containerINS0_15sequence_configIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS6_EEEENS_20heap_clone_allocatorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %38 = icmp ne i64 %35, %37
  br i1 %38, label %39, label %54

39:                                               ; preds = %34
  %40 = getelementptr inbounds %"class.elabtsaot::PwsModel", ptr %9, i32 0, i32 3
  %41 = load i64, ptr %8, align 8, !tbaa !11
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost20ptr_sequence_adapterIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS4_EENS_20heap_clone_allocatorEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %41)
  %43 = getelementptr inbounds %"class.elabtsaot::PwsModelElement", ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 4, !tbaa !13
  %45 = load i32, ptr %6, align 4, !tbaa !9
  %46 = icmp eq i32 %44, %45
  br i1 %46, label %47, label %50

47:                                               ; preds = %39
  %48 = load i64, ptr %8, align 8, !tbaa !11
  %49 = trunc i64 %48 to i32
  store i32 %49, ptr %7, align 4, !tbaa !9
  br label %54

50:                                               ; preds = %39
  br label %51

51:                                               ; preds = %50
  %52 = load i64, ptr %8, align 8, !tbaa !11
  %53 = add i64 %52, 1
  store i64 %53, ptr %8, align 8, !tbaa !11
  br label %34, !llvm.loop !17

54:                                               ; preds = %47, %34
  br label %100

55:                                               ; preds = %3
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %56

56:                                               ; preds = %73, %55
  %57 = load i64, ptr %8, align 8, !tbaa !11
  %58 = getelementptr inbounds %"class.elabtsaot::PwsModel", ptr %9, i32 0, i32 4
  %59 = call noundef i64 @_ZNK5boost20ptr_container_detail24reversible_ptr_containerINS0_15sequence_configIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS6_EEEENS_20heap_clone_allocatorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58)
  %60 = icmp ne i64 %57, %59
  br i1 %60, label %61, label %76

61:                                               ; preds = %56
  %62 = getelementptr inbounds %"class.elabtsaot::PwsModel", ptr %9, i32 0, i32 4
  %63 = load i64, ptr %8, align 8, !tbaa !11
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost20ptr_sequence_adapterIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS4_EENS_20heap_clone_allocatorEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %63)
  %65 = getelementptr inbounds %"class.elabtsaot::PwsModelElement", ptr %64, i32 0, i32 2
  %66 = load i32, ptr %65, align 4, !tbaa !13
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = icmp eq i32 %66, %67
  br i1 %68, label %69, label %72

69:                                               ; preds = %61
  %70 = load i64, ptr %8, align 8, !tbaa !11
  %71 = trunc i64 %70 to i32
  store i32 %71, ptr %7, align 4, !tbaa !9
  br label %76

72:                                               ; preds = %61
  br label %73

73:                                               ; preds = %72
  %74 = load i64, ptr %8, align 8, !tbaa !11
  %75 = add i64 %74, 1
  store i64 %75, ptr %8, align 8, !tbaa !11
  br label %56, !llvm.loop !18

76:                                               ; preds = %69, %56
  br label %100

77:                                               ; preds = %3
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %78

78:                                               ; preds = %95, %77
  %79 = load i64, ptr %8, align 8, !tbaa !11
  %80 = getelementptr inbounds %"class.elabtsaot::PwsModel", ptr %9, i32 0, i32 5
  %81 = call noundef i64 @_ZNK5boost20ptr_container_detail24reversible_ptr_containerINS0_15sequence_configIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS6_EEEENS_20heap_clone_allocatorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %80)
  %82 = icmp ne i64 %79, %81
  br i1 %82, label %83, label %98

83:                                               ; preds = %78
  %84 = getelementptr inbounds %"class.elabtsaot::PwsModel", ptr %9, i32 0, i32 5
  %85 = load i64, ptr %8, align 8, !tbaa !11
  %86 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost20ptr_sequence_adapterIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS4_EENS_20heap_clone_allocatorEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %85)
  %87 = getelementptr inbounds %"class.elabtsaot::PwsModelElement", ptr %86, i32 0, i32 2
  %88 = load i32, ptr %87, align 4, !tbaa !13
  %89 = load i32, ptr %6, align 4, !tbaa !9
  %90 = icmp eq i32 %88, %89
  br i1 %90, label %91, label %94

91:                                               ; preds = %83
  %92 = load i64, ptr %8, align 8, !tbaa !11
  %93 = trunc i64 %92 to i32
  store i32 %93, ptr %7, align 4, !tbaa !9
  br label %98

94:                                               ; preds = %83
  br label %95

95:                                               ; preds = %94
  %96 = load i64, ptr %8, align 8, !tbaa !11
  %97 = add i64 %96, 1
  store i64 %97, ptr %8, align 8, !tbaa !11
  br label %78, !llvm.loop !19

98:                                               ; preds = %91, %78
  br label %100

99:                                               ; preds = %3
  store i32 -1, ptr %7, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %99, %98, %76, %54, %32
  %101 = load i32, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret i32 %101
}

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

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

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

attributes #0 = { nocallback nofree nosync 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 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 #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 12}
!14 = !{!"_ZTSN9elabtsaot15PwsModelElementE", !10, i64 8, !10, i64 12}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


; 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"

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK9elabtsaot8PwsModel16getElement_mdlIdEij(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 align 2 {
  switch i32 %1, label %.loopexit [
    i32 0, label %.preheader
    i32 1, label %.preheader26
    i32 2, label %.preheader28
    i32 3, label %.preheader30
  ]

.preheader30:                                     ; preds = %3
  %4 = getelementptr inbounds i8, ptr %0, i64 88
  %5 = tail call noundef i64 @_ZNK5boost20ptr_container_detail24reversible_ptr_containerINS0_15sequence_configIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS6_EEEENS_20heap_clone_allocatorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %.not36 = icmp eq i64 %5, 0
  br i1 %.not36, label %.loopexit, label %.lr.ph

.preheader28:                                     ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  %7 = tail call noundef i64 @_ZNK5boost20ptr_container_detail24reversible_ptr_containerINS0_15sequence_configIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS6_EEEENS_20heap_clone_allocatorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %.not2338 = icmp eq i64 %7, 0
  br i1 %.not2338, label %.loopexit, label %.lr.ph40

.preheader26:                                     ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = tail call noundef i64 @_ZNK5boost20ptr_container_detail24reversible_ptr_containerINS0_15sequence_configIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS6_EEEENS_20heap_clone_allocatorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %.not2441 = icmp eq i64 %9, 0
  br i1 %.not2441, label %.loopexit, label %.lr.ph43

.preheader:                                       ; preds = %3
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = tail call noundef i64 @_ZNK5boost20ptr_container_detail24reversible_ptr_containerINS0_15sequence_configIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS6_EEEENS_20heap_clone_allocatorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %.not2544 = icmp eq i64 %11, 0
  br i1 %.not2544, label %.loopexit, label %.lr.ph46

.lr.ph46:                                         ; preds = %.preheader, %18
  %.045 = phi i64 [ %19, %18 ], [ 0, %.preheader ]
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost20ptr_sequence_adapterIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS4_EENS_20heap_clone_allocatorEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.045)
  %13 = getelementptr inbounds i8, ptr %12, i64 12
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = icmp eq i32 %14, %2
  br i1 %15, label %16, label %18

16:                                               ; preds = %.lr.ph46
  %17 = trunc i64 %.045 to i32
  br label %.loopexit

18:                                               ; preds = %.lr.ph46
  %19 = add i64 %.045, 1
  %20 = tail call noundef i64 @_ZNK5boost20ptr_container_detail24reversible_ptr_containerINS0_15sequence_configIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS6_EEEENS_20heap_clone_allocatorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %.not25 = icmp eq i64 %19, %20
  br i1 %.not25, label %.loopexit, label %.lr.ph46, !llvm.loop !10

.lr.ph43:                                         ; preds = %.preheader26, %27
  %.142 = phi i64 [ %28, %27 ], [ 0, %.preheader26 ]
  %21 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost20ptr_sequence_adapterIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS4_EENS_20heap_clone_allocatorEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %.142)
  %22 = getelementptr inbounds i8, ptr %21, i64 12
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = icmp eq i32 %23, %2
  br i1 %24, label %25, label %27

25:                                               ; preds = %.lr.ph43
  %26 = trunc i64 %.142 to i32
  br label %.loopexit

27:                                               ; preds = %.lr.ph43
  %28 = add i64 %.142, 1
  %29 = tail call noundef i64 @_ZNK5boost20ptr_container_detail24reversible_ptr_containerINS0_15sequence_configIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS6_EEEENS_20heap_clone_allocatorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %.not24 = icmp eq i64 %28, %29
  br i1 %.not24, label %.loopexit, label %.lr.ph43, !llvm.loop !12

.lr.ph40:                                         ; preds = %.preheader28, %36
  %.239 = phi i64 [ %37, %36 ], [ 0, %.preheader28 ]
  %30 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost20ptr_sequence_adapterIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS4_EENS_20heap_clone_allocatorEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.239)
  %31 = getelementptr inbounds i8, ptr %30, i64 12
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = icmp eq i32 %32, %2
  br i1 %33, label %34, label %36

34:                                               ; preds = %.lr.ph40
  %35 = trunc i64 %.239 to i32
  br label %.loopexit

36:                                               ; preds = %.lr.ph40
  %37 = add i64 %.239, 1
  %38 = tail call noundef i64 @_ZNK5boost20ptr_container_detail24reversible_ptr_containerINS0_15sequence_configIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS6_EEEENS_20heap_clone_allocatorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %.not23 = icmp eq i64 %37, %38
  br i1 %.not23, label %.loopexit, label %.lr.ph40, !llvm.loop !13

.lr.ph:                                           ; preds = %.preheader30, %45
  %.337 = phi i64 [ %46, %45 ], [ 0, %.preheader30 ]
  %39 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost20ptr_sequence_adapterIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS4_EENS_20heap_clone_allocatorEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.337)
  %40 = getelementptr inbounds i8, ptr %39, i64 12
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = icmp eq i32 %41, %2
  br i1 %42, label %43, label %45

43:                                               ; preds = %.lr.ph
  %44 = trunc i64 %.337 to i32
  br label %.loopexit

45:                                               ; preds = %.lr.ph
  %46 = add i64 %.337, 1
  %47 = tail call noundef i64 @_ZNK5boost20ptr_container_detail24reversible_ptr_containerINS0_15sequence_configIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS6_EEEENS_20heap_clone_allocatorEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %.not = icmp eq i64 %46, %47
  br i1 %.not, label %.loopexit, label %.lr.ph, !llvm.loop !14

.loopexit:                                        ; preds = %45, %36, %27, %18, %.preheader30, %.preheader28, %.preheader26, %.preheader, %3, %43, %34, %25, %16
  %.022 = phi i32 [ %44, %43 ], [ %35, %34 ], [ %26, %25 ], [ %17, %16 ], [ -1, %3 ], [ -1, %.preheader ], [ -1, %.preheader26 ], [ -1, %.preheader28 ], [ -1, %.preheader30 ], [ -1, %18 ], [ -1, %27 ], [ -1, %36 ], [ -1, %45 ]
  ret i32 %.022
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost20ptr_sequence_adapterIN9elabtsaot15PwsModelElementESt6vectorIPvSaIS4_EENS_20heap_clone_allocatorEE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 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 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" }

!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, !7, i64 12}
!6 = !{!"_ZTSN9elabtsaot15PwsModelElementE", !7, i64 8, !7, i64 12}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}


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