; LLVM IR from facebook/redex :: libredex/IRInstruction.ll (ZN13IRInstruction8set_srcsERKNS_9reg_rangeE)

; 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.IRInstruction = type { i16, i16, i32, %union.anon.0, %union.anon.1 }
%union.anon.0 = type { i64 }
%union.anon.1 = type { ptr, [8 x i8] }

@.str.8 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [51 x i8], align 1
@__PRETTY_FUNCTION__._ZN13IRInstruction8set_srcsERKNS_9reg_rangeE = external hidden unnamed_addr constant [58 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNSt14numeric_limitsItE3maxEv() #1 align 2

; Function Attrs: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN13IRInstruction8set_srcsERKNS_9reg_rangeE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #6 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i16, align 2
  %6 = alloca i16, align 2
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %10 = getelementptr inbounds %class.IRInstruction, ptr %7, i32 0, i32 1
  %11 = load i16, ptr %10, align 2, !tbaa !9
  %12 = zext i16 %11 to i64
  %13 = icmp ne i64 %9, %12
  br i1 %13, label %14, label %48

14:                                               ; preds = %2
  %15 = getelementptr inbounds %class.IRInstruction, ptr %7, i32 0, i32 1
  %16 = load i16, ptr %15, align 2, !tbaa !9
  %17 = zext i16 %16 to i32
  %18 = icmp sgt i32 %17, 4
  br i1 %18, label %19, label %25

19:                                               ; preds = %14
  %20 = getelementptr inbounds %class.IRInstruction, ptr %7, i32 0, i32 4
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %22 = icmp eq ptr %21, null
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  call void @_ZdaPv(ptr noundef %21) #7
  br label %24

24:                                               ; preds = %23, %19
  br label %25

25:                                               ; preds = %24, %14
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
  %28 = icmp ugt i64 %27, 4
  br i1 %28, label %29, label %47

29:                                               ; preds = %25
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %30)
  %32 = call noundef zeroext i16 @_ZNSt14numeric_limitsItE3maxEv() #8
  %33 = zext i16 %32 to i64
  %34 = icmp ult i64 %31, %33
  br i1 %34, label %35, label %36

35:                                               ; preds = %29
  br label %38

36:                                               ; preds = %29
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.14, ptr noundef @.str.8, i32 noundef 135, ptr noundef @__PRETTY_FUNCTION__._ZN13IRInstruction8set_srcsERKNS_9reg_rangeE, i32 noundef 2, ptr noundef @.str.9) #9
  unreachable

37:                                               ; No predecessors!
  br label %38

38:                                               ; preds = %37, %35
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %39)
  %41 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %40, i64 4)
  %42 = extractvalue { i64, i1 } %41, 1
  %43 = extractvalue { i64, i1 } %41, 0
  %44 = select i1 %42, i64 -1, i64 %43
  %45 = call noalias noundef nonnull ptr @_Znam(i64 noundef %44) #10
  %46 = getelementptr inbounds %class.IRInstruction, ptr %7, i32 0, i32 4
  store ptr %45, ptr %46, align 8, !tbaa !14
  br label %47

47:                                               ; preds = %38, %25
  br label %48

48:                                               ; preds = %47, %2
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %49)
  %51 = icmp ule i64 %50, 4
  br i1 %51, label %52, label %74

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 2, ptr %5) #8
  store i16 0, ptr %5, align 2, !tbaa !15
  br label %53

53:                                               ; preds = %70, %52
  %54 = load i16, ptr %5, align 2, !tbaa !15
  %55 = zext i16 %54 to i64
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %56)
  %58 = icmp ult i64 %55, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 2, ptr %5) #8
  br label %73

60:                                               ; preds = %53
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load i16, ptr %5, align 2, !tbaa !15
  %63 = zext i16 %62 to i64
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEEixEl(ptr noundef nonnull align 8 dereferenceable(16) %61, i64 noundef %63)
  %65 = load i32, ptr %64, align 4, !tbaa !16
  %66 = getelementptr inbounds %class.IRInstruction, ptr %7, i32 0, i32 4
  %67 = load i16, ptr %5, align 2, !tbaa !15
  %68 = zext i16 %67 to i64
  %69 = getelementptr inbounds [4 x i32], ptr %66, i64 0, i64 %68
  store i32 %65, ptr %69, align 4, !tbaa !14
  br label %70

70:                                               ; preds = %60
  %71 = load i16, ptr %5, align 2, !tbaa !15
  %72 = add i16 %71, 1
  store i16 %72, ptr %5, align 2, !tbaa !15
  br label %53, !llvm.loop !17

73:                                               ; preds = %59
  br label %97

74:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 2, ptr %6) #8
  store i16 0, ptr %6, align 2, !tbaa !15
  br label %75

75:                                               ; preds = %93, %74
  %76 = load i16, ptr %6, align 2, !tbaa !15
  %77 = zext i16 %76 to i64
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %78)
  %80 = icmp ult i64 %77, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 2, ptr %6) #8
  br label %96

82:                                               ; preds = %75
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = load i16, ptr %6, align 2, !tbaa !15
  %85 = zext i16 %84 to i64
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEEixEl(ptr noundef nonnull align 8 dereferenceable(16) %83, i64 noundef %85)
  %87 = load i32, ptr %86, align 4, !tbaa !16
  %88 = getelementptr inbounds %class.IRInstruction, ptr %7, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !14
  %90 = load i16, ptr %6, align 2, !tbaa !15
  %91 = zext i16 %90 to i64
  %92 = getelementptr inbounds i32, ptr %89, i64 %91
  store i32 %87, ptr %92, align 4, !tbaa !16
  br label %93

93:                                               ; preds = %82
  %94 = load i16, ptr %6, align 2, !tbaa !15
  %95 = add i16 %94, 1
  store i16 %95, ptr %6, align 2, !tbaa !15
  br label %75, !llvm.loop !19

96:                                               ; preds = %81
  br label %97

97:                                               ; preds = %96, %73
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %98)
  %100 = trunc i64 %99 to i16
  %101 = getelementptr inbounds %class.IRInstruction, ptr %7, i32 0, i32 1
  store i16 %100, ptr %101, align 2, !tbaa !9
  ret ptr %7
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #2 = { noreturn "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 speculatable willreturn memory(none) }
attributes #4 = { nobuiltin allocsize(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 = { nobuiltin 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 #6 = { 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 #7 = { builtin nounwind }
attributes #8 = { nounwind }
attributes #9 = { noreturn }
attributes #10 = { builtin allocsize(0) }

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

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


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

@.str.8 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [51 x i8], align 1
@__PRETTY_FUNCTION__._ZN13IRInstruction8set_srcsERKNS_9reg_rangeE = external hidden unnamed_addr constant [58 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNSt14numeric_limitsItE3maxEv() local_unnamed_addr #0 align 2

; Function Attrs: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_ZN13IRInstruction8set_srcsERKNS_9reg_rangeE(ptr noundef nonnull returned align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) local_unnamed_addr #4 align 2 {
  %3 = tail call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %4 = getelementptr inbounds i8, ptr %0, i64 2
  %5 = load i16, ptr %4, align 2, !tbaa !5
  %6 = zext i16 %5 to i64
  %.not = icmp eq i64 %3, %6
  br i1 %.not, label %30, label %7

7:                                                ; preds = %2
  %8 = icmp ugt i16 %5, 4
  br i1 %8, label %9, label %14

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load ptr, ptr %10, align 8, !tbaa !12
  %12 = icmp eq ptr %11, null
  br i1 %12, label %14, label %13

13:                                               ; preds = %9
  tail call void @_ZdaPv(ptr noundef nonnull %11) #5
  br label %14

14:                                               ; preds = %9, %13, %7
  %15 = tail call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %16 = icmp ugt i64 %15, 4
  br i1 %16, label %17, label %30

17:                                               ; preds = %14
  %18 = tail call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %19 = tail call noundef zeroext i16 @_ZNSt14numeric_limitsItE3maxEv() #6
  %20 = zext i16 %19 to i64
  %21 = icmp ult i64 %18, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %17
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.8, i32 noundef 135, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13IRInstruction8set_srcsERKNS_9reg_rangeE, i32 noundef 2, ptr noundef nonnull @.str.9) #7
  unreachable

23:                                               ; preds = %17
  %24 = tail call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %25 = icmp ugt i64 %24, 4611686018427387903
  %26 = shl nuw i64 %24, 2
  %27 = select i1 %25, i64 -1, i64 %26
  %28 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %27) #8
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %28, ptr %29, align 8, !tbaa !12
  br label %30

30:                                               ; preds = %14, %23, %2
  %31 = tail call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %32 = icmp ult i64 %31, 5
  %33 = tail call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %.not28 = icmp eq i64 %33, 0
  br i1 %32, label %.preheader, label %.preheader22

.preheader22:                                     ; preds = %30
  br i1 %.not28, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader22
  %34 = getelementptr inbounds i8, ptr %0, i64 16
  br label %45

.preheader:                                       ; preds = %30
  br i1 %.not28, label %.loopexit, label %.lr.ph26

.lr.ph26:                                         ; preds = %.preheader
  %35 = getelementptr inbounds i8, ptr %0, i64 16
  br label %36

36:                                               ; preds = %.lr.ph26, %36
  %37 = phi i64 [ 0, %.lr.ph26 ], [ %42, %36 ]
  %.01825 = phi i16 [ 0, %.lr.ph26 ], [ %41, %36 ]
  %38 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEEixEl(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %37)
  %39 = load i32, ptr %38, align 4, !tbaa !13
  %40 = getelementptr inbounds [4 x i32], ptr %35, i64 0, i64 %37
  store i32 %39, ptr %40, align 4, !tbaa !12
  %41 = add i16 %.01825, 1
  %42 = zext i16 %41 to i64
  %43 = tail call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %44 = icmp ugt i64 %43, %42
  br i1 %44, label %36, label %.loopexit, !llvm.loop !14

45:                                               ; preds = %.lr.ph, %45
  %46 = phi i64 [ 0, %.lr.ph ], [ %52, %45 ]
  %.024 = phi i16 [ 0, %.lr.ph ], [ %51, %45 ]
  %47 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEEixEl(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %46)
  %48 = load i32, ptr %47, align 4, !tbaa !13
  %49 = load ptr, ptr %34, align 8, !tbaa !12
  %50 = getelementptr inbounds i32, ptr %49, i64 %46
  store i32 %48, ptr %50, align 4, !tbaa !13
  %51 = add i16 %.024, 1
  %52 = zext i16 %51 to i64
  %53 = tail call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %54 = icmp ugt i64 %53, %52
  br i1 %54, label %45, label %.loopexit, !llvm.loop !16

.loopexit:                                        ; preds = %45, %36, %.preheader22, %.preheader
  %55 = tail call noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %56 = trunc i64 %55 to i16
  store i16 %56, ptr %4, align 2, !tbaa !5
  ret ptr %0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost21iterator_range_detail19iterator_range_baseIPKjNS_9iterators27random_access_traversal_tagEEixEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { noreturn "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 = { nobuiltin allocsize(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 = { nobuiltin 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 #4 = { 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 = { builtin nounwind }
attributes #6 = { nounwind }
attributes #7 = { noreturn }
attributes #8 = { builtin allocsize(0) }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass