; LLVM IR from specinfo-ua/UAPKI :: library/uapkic/src (dstu7564)

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

%struct.Dstu7564Ctx_st = type { [256 x i8], i64, [2 x i64], [128 x i8], i64, i64, i64, i64, i64, ptr }
%struct.ByteArray_st = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [18 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

declare void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @dstu7564_update(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %11

11:                                               ; preds = %2
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %16, label %14

14:                                               ; preds = %11
  store i32 2, ptr %5, align 4, !tbaa !9
  %15 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 665, i32 noundef %15, ptr noundef null)
  br label %156

16:                                               ; preds = %11
  br label %17

17:                                               ; preds = %16
  br label %18

18:                                               ; preds = %17
  br label %19

19:                                               ; preds = %18
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %24, label %22

22:                                               ; preds = %19
  store i32 2, ptr %5, align 4, !tbaa !9
  %23 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 666, i32 noundef %23, ptr noundef null)
  br label %156

24:                                               ; preds = %19
  br label %25

25:                                               ; preds = %24
  br label %26

26:                                               ; preds = %25
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %27, i32 0, i32 7
  %29 = load i64, ptr %28, align 8, !tbaa !13
  %30 = icmp eq i64 %29, 0
  br i1 %30, label %31, label %36

31:                                               ; preds = %26
  br label %32

32:                                               ; preds = %31
  store i32 4, ptr %5, align 4, !tbaa !9
  %33 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 669, i32 noundef %33, ptr noundef null)
  br label %156

34:                                               ; No predecessors!
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35, %26
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ByteArray_st, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !15
  store ptr %39, ptr %6, align 8, !tbaa !5
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ByteArray_st, ptr %40, i32 0, i32 1
  %42 = load i64, ptr %41, align 8, !tbaa !17
  store i64 %42, ptr %8, align 8, !tbaa !11
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %43, i32 0, i32 4
  %45 = load i64, ptr %44, align 8, !tbaa !18
  store i64 %45, ptr %9, align 8, !tbaa !11
  %46 = load i64, ptr %8, align 8, !tbaa !11
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %47, i32 0, i32 2
  %49 = getelementptr inbounds [2 x i64], ptr %48, i64 0, i64 0
  %50 = load i64, ptr %49, align 8, !tbaa !11
  %51 = add i64 %50, %46
  store i64 %51, ptr %49, align 8, !tbaa !11
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %52, i32 0, i32 2
  %54 = getelementptr inbounds [2 x i64], ptr %53, i64 0, i64 0
  %55 = load i64, ptr %54, align 8, !tbaa !11
  %56 = load i64, ptr %8, align 8, !tbaa !11
  %57 = icmp ult i64 %55, %56
  br i1 %57, label %58, label %64

58:                                               ; preds = %36
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %59, i32 0, i32 2
  %61 = getelementptr inbounds [2 x i64], ptr %60, i64 0, i64 1
  %62 = load i64, ptr %61, align 8, !tbaa !11
  %63 = add i64 %62, 1
  store i64 %63, ptr %61, align 8, !tbaa !11
  br label %64

64:                                               ; preds = %58, %36
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %65, i32 0, i32 1
  %67 = load i64, ptr %66, align 8, !tbaa !19
  %68 = load i64, ptr %8, align 8, !tbaa !11
  %69 = add i64 %67, %68
  %70 = load i64, ptr %9, align 8, !tbaa !11
  %71 = icmp ult i64 %69, %70
  br i1 %71, label %72, label %86

72:                                               ; preds = %64
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %73, i32 0, i32 0
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %75, i32 0, i32 1
  %77 = load i64, ptr %76, align 8, !tbaa !19
  %78 = getelementptr inbounds [256 x i8], ptr %74, i64 0, i64 %77
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = load i64, ptr %8, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %78, ptr align 1 %79, i64 %80, i1 false)
  %81 = load i64, ptr %8, align 8, !tbaa !11
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %82, i32 0, i32 1
  %84 = load i64, ptr %83, align 8, !tbaa !19
  %85 = add i64 %84, %81
  store i64 %85, ptr %83, align 8, !tbaa !19
  br label %156

86:                                               ; preds = %64
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %89, i32 0, i32 1
  %91 = load i64, ptr %90, align 8, !tbaa !19
  %92 = getelementptr inbounds [256 x i8], ptr %88, i64 0, i64 %91
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = load i64, ptr %9, align 8, !tbaa !11
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %95, i32 0, i32 1
  %97 = load i64, ptr %96, align 8, !tbaa !19
  %98 = sub i64 %94, %97
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %92, ptr align 1 %93, i64 %98, i1 false)
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %100, i32 0, i32 0
  %102 = getelementptr inbounds [256 x i8], ptr %101, i64 0, i64 0
  call void @digest(ptr noundef %99, ptr noundef %102)
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds [256 x i8], ptr %104, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %105, i8 0, i64 64, i1 false)
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = load i64, ptr %9, align 8, !tbaa !11
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %108, i32 0, i32 1
  %110 = load i64, ptr %109, align 8, !tbaa !19
  %111 = sub i64 %107, %110
  %112 = getelementptr inbounds i8, ptr %106, i64 %111
  store ptr %112, ptr %7, align 8, !tbaa !5
  %113 = load i64, ptr %9, align 8, !tbaa !11
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %114, i32 0, i32 1
  %116 = load i64, ptr %115, align 8, !tbaa !19
  %117 = sub i64 %113, %116
  %118 = load i64, ptr %8, align 8, !tbaa !11
  %119 = sub i64 %118, %117
  store i64 %119, ptr %8, align 8, !tbaa !11
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %120

120:                                              ; preds = %131, %86
  %121 = load i64, ptr %10, align 8, !tbaa !11
  %122 = load i64, ptr %9, align 8, !tbaa !11
  %123 = add i64 %121, %122
  %124 = load i64, ptr %8, align 8, !tbaa !11
  %125 = icmp ule i64 %123, %124
  br i1 %125, label %126, label %135

126:                                              ; preds = %120
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = load i64, ptr %10, align 8, !tbaa !11
  %130 = getelementptr inbounds i8, ptr %128, i64 %129
  call void @digest(ptr noundef %127, ptr noundef %130)
  br label %131

131:                                              ; preds = %126
  %132 = load i64, ptr %9, align 8, !tbaa !11
  %133 = load i64, ptr %10, align 8, !tbaa !11
  %134 = add i64 %133, %132
  store i64 %134, ptr %10, align 8, !tbaa !11
  br label %120, !llvm.loop !20

135:                                              ; preds = %120
  %136 = load i64, ptr %8, align 8, !tbaa !11
  %137 = load i64, ptr %10, align 8, !tbaa !11
  %138 = sub i64 %136, %137
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %139, i32 0, i32 1
  store i64 %138, ptr %140, align 8, !tbaa !19
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %141, i32 0, i32 1
  %143 = load i64, ptr %142, align 8, !tbaa !19
  %144 = icmp ne i64 %143, 0
  br i1 %144, label %145, label %155

145:                                              ; preds = %135
  %146 = load ptr, ptr %3, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %146, i32 0, i32 0
  %148 = getelementptr inbounds [256 x i8], ptr %147, i64 0, i64 0
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = load i64, ptr %10, align 8, !tbaa !11
  %151 = getelementptr inbounds i8, ptr %149, i64 %150
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.Dstu7564Ctx_st, ptr %152, i32 0, i32 1
  %154 = load i64, ptr %153, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %148, ptr align 1 %151, i64 %154, i1 false)
  br label %155

155:                                              ; preds = %145, %135
  br label %156

156:                                              ; preds = %155, %72, %32, %22, %14
  %157 = load i32, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret i32 %157
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @digest(ptr noundef, ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { inlinehint 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 432}
!14 = !{!"Dstu7564Ctx_st", !7, i64 0, !12, i64 256, !7, i64 264, !7, i64 280, !12, i64 408, !12, i64 416, !12, i64 424, !12, i64 432, !12, i64 440, !6, i64 448}
!15 = !{!16, !6, i64 0}
!16 = !{!"ByteArray_st", !6, i64 0, !12, i64 8}
!17 = !{!16, !12, i64 8}
!18 = !{!14, !12, i64 408}
!19 = !{!14, !12, i64 256}
!20 = distinct !{!20, !21}
!21 = !{!"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"

@.str = external hidden unnamed_addr constant [18 x i8], align 1

declare void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 5) i32 @dstu7564_update(ptr noundef %0, ptr noundef readonly %1) local_unnamed_addr #3 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %4

3:                                                ; preds = %2
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 665, i32 noundef 2, ptr noundef null) #5
  br label %46

4:                                                ; preds = %2
  %.not60 = icmp eq ptr %1, null
  br i1 %.not60, label %5, label %6

5:                                                ; preds = %4
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 666, i32 noundef 2, ptr noundef null) #5
  br label %46

6:                                                ; preds = %4
  %7 = getelementptr inbounds i8, ptr %0, i64 432
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %9 = icmp eq i64 %8, 0
  br i1 %9, label %10, label %11

10:                                               ; preds = %6
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 669, i32 noundef 4, ptr noundef null) #5
  br label %46

11:                                               ; preds = %6
  %12 = load ptr, ptr %1, align 8, !tbaa !11
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = load i64, ptr %13, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %0, i64 408
  %16 = load i64, ptr %15, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %0, i64 264
  %18 = load i64, ptr %17, align 8, !tbaa !15
  %19 = add i64 %18, %14
  store i64 %19, ptr %17, align 8, !tbaa !15
  %20 = icmp ult i64 %19, %14
  br i1 %20, label %21, label %25

21:                                               ; preds = %11
  %22 = getelementptr inbounds i8, ptr %0, i64 272
  %23 = load i64, ptr %22, align 8, !tbaa !15
  %24 = add i64 %23, 1
  store i64 %24, ptr %22, align 8, !tbaa !15
  br label %25

25:                                               ; preds = %21, %11
  %26 = getelementptr inbounds i8, ptr %0, i64 256
  %27 = load i64, ptr %26, align 8, !tbaa !16
  %28 = add i64 %27, %14
  %29 = icmp ult i64 %28, %16
  %30 = getelementptr inbounds [256 x i8], ptr %0, i64 0, i64 %27
  br i1 %29, label %31, label %34

31:                                               ; preds = %25
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %30, ptr align 1 %12, i64 %14, i1 false)
  %32 = load i64, ptr %26, align 8, !tbaa !16
  %33 = add i64 %32, %14
  store i64 %33, ptr %26, align 8, !tbaa !16
  br label %46

34:                                               ; preds = %25
  %35 = sub i64 %16, %27
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %30, ptr align 1 %12, i64 %35, i1 false)
  tail call void @digest(ptr noundef nonnull %0, ptr noundef nonnull %0)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %0, i8 0, i64 64, i1 false)
  %36 = load i64, ptr %26, align 8, !tbaa !16
  %37 = sub i64 %16, %36
  %38 = getelementptr inbounds i8, ptr %12, i64 %37
  %39 = sub i64 %14, %37
  %.not6163 = icmp ugt i64 %16, %39
  br i1 %.not6163, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %34, %.lr.ph
  %40 = phi i64 [ %42, %.lr.ph ], [ %16, %34 ]
  %.064 = phi i64 [ %40, %.lr.ph ], [ 0, %34 ]
  %41 = getelementptr inbounds i8, ptr %38, i64 %.064
  tail call void @digest(ptr noundef nonnull %0, ptr noundef %41)
  %42 = add i64 %40, %16
  %.not61 = icmp ugt i64 %42, %39
  br i1 %.not61, label %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph, %34
  %.0.lcssa = phi i64 [ 0, %34 ], [ %40, %.lr.ph ]
  %43 = sub i64 %39, %.0.lcssa
  store i64 %43, ptr %26, align 8, !tbaa !16
  %.not62 = icmp eq i64 %39, %.0.lcssa
  br i1 %.not62, label %46, label %44

44:                                               ; preds = %._crit_edge
  %45 = getelementptr inbounds i8, ptr %38, i64 %.0.lcssa
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %0, ptr align 1 %45, i64 %43, i1 false)
  br label %46

46:                                               ; preds = %._crit_edge, %44, %31, %10, %5, %3
  %.053 = phi i32 [ 4, %10 ], [ 0, %31 ], [ 0, %44 ], [ 0, %._crit_edge ], [ 2, %5 ], [ 2, %3 ]
  ret i32 %.053
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @digest(ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #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 nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 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 #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, !9, i64 432}
!6 = !{!"Dstu7564Ctx_st", !7, i64 0, !9, i64 256, !7, i64 264, !7, i64 280, !9, i64 408, !9, i64 416, !9, i64 424, !9, i64 432, !9, i64 440, !10, i64 448}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"long", !7, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"ByteArray_st", !10, i64 0, !9, i64 8}
!13 = !{!12, !9, i64 8}
!14 = !{!6, !9, i64 408}
!15 = !{!9, !9, i64 0}
!16 = !{!6, !9, i64 256}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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