; LLVM IR from gost-engine/engine :: gostsum (hash_stream)

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

@.str.12 = external hidden unnamed_addr constant [5 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: nounwind uwtable
define dso_local i32 @hash_stream(ptr noundef %0, i32 noundef %1, ptr noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca [262144 x i8], align 16
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 262144, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = call i32 @start_hash(ptr noundef %12)
  br label %14

14:                                               ; preds = %19, %3
  %15 = load i32, ptr %6, align 4, !tbaa !9
  %16 = getelementptr inbounds [262144 x i8], ptr %8, i64 0, i64 0
  %17 = call i64 @read(i32 noundef %15, ptr noundef %16, i64 noundef 262144)
  store i64 %17, ptr %9, align 8, !tbaa !11
  %18 = icmp sgt i64 %17, 0
  br i1 %18, label %19, label %24

19:                                               ; preds = %14
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds [262144 x i8], ptr %8, i64 0, i64 0
  %22 = load i64, ptr %9, align 8, !tbaa !11
  %23 = call i32 @hash_block(ptr noundef %20, ptr noundef %21, i64 noundef %22)
  br label %14, !llvm.loop !13

24:                                               ; preds = %14
  %25 = load i64, ptr %9, align 8, !tbaa !11
  %26 = icmp slt i64 %25, 0
  br i1 %26, label %27, label %28

27:                                               ; preds = %24
  store i32 0, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %52

28:                                               ; preds = %24
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds [262144 x i8], ptr %8, i64 0, i64 0
  %31 = call i32 @finish_hash(ptr noundef %29, ptr noundef %30)
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %48, %28
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = icmp slt i32 %33, 32
  br i1 %34, label %35, label %51

35:                                               ; preds = %32
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = mul nsw i32 2, %37
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds i8, ptr %36, i64 %39
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = sub nsw i32 31, %41
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [262144 x i8], ptr %8, i64 0, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !15
  %46 = zext i8 %45 to i32
  %47 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %40, ptr noundef @.str.12, i32 noundef %46) #4
  br label %48

48:                                               ; preds = %35
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %10, align 4, !tbaa !9
  br label %32, !llvm.loop !16

51:                                               ; preds = %32
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %52

52:                                               ; preds = %51, %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 262144, ptr %8) #4
  %53 = load i32, ptr %4, align 4
  ret i32 %53
}

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

declare i32 @start_hash(ptr noundef) #2

declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #2

declare i32 @hash_block(ptr noundef, ptr noundef, i64 noundef) #2

declare i32 @finish_hash(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "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 "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 = { 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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !14}


; 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.12 = external hidden unnamed_addr constant [5 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @hash_stream(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #1 {
  %4 = alloca [262144 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 262144, ptr nonnull %4) #5
  %5 = tail call i32 @start_hash(ptr noundef %0) #5
  %6 = call i64 @read(i32 noundef %1, ptr noundef nonnull %4, i64 noundef 262144) #5
  %7 = icmp sgt i64 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3, %.lr.ph
  %8 = phi i64 [ %10, %.lr.ph ], [ %6, %3 ]
  %9 = call i32 @hash_block(ptr noundef %0, ptr noundef nonnull %4, i64 noundef %8) #5
  %10 = call i64 @read(i32 noundef %1, ptr noundef nonnull %4, i64 noundef 262144) #5
  %11 = icmp sgt i64 %10, 0
  br i1 %11, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph, %3
  %.lcssa = phi i64 [ %6, %3 ], [ %10, %.lr.ph ]
  %12 = icmp slt i64 %.lcssa, 0
  br i1 %12, label %.loopexit, label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %._crit_edge
  %13 = call i32 @finish_hash(ptr noundef %0, ptr noundef nonnull %4) #5
  %14 = getelementptr inbounds i8, ptr %4, i64 31
  %15 = load i8, ptr %14, align 1, !tbaa !7
  %16 = zext i8 %15 to i32
  %17 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %16) #5
  %18 = getelementptr inbounds i8, ptr %2, i64 2
  %19 = getelementptr inbounds i8, ptr %4, i64 30
  %20 = load i8, ptr %19, align 2, !tbaa !7
  %21 = zext i8 %20 to i32
  %22 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %21) #5
  %23 = getelementptr inbounds i8, ptr %2, i64 4
  %24 = getelementptr inbounds i8, ptr %4, i64 29
  %25 = load i8, ptr %24, align 1, !tbaa !7
  %26 = zext i8 %25 to i32
  %27 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %23, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %26) #5
  %28 = getelementptr inbounds i8, ptr %2, i64 6
  %29 = getelementptr inbounds i8, ptr %4, i64 28
  %30 = load i8, ptr %29, align 4, !tbaa !7
  %31 = zext i8 %30 to i32
  %32 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %28, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %31) #5
  %33 = getelementptr inbounds i8, ptr %2, i64 8
  %34 = getelementptr inbounds i8, ptr %4, i64 27
  %35 = load i8, ptr %34, align 1, !tbaa !7
  %36 = zext i8 %35 to i32
  %37 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %33, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %36) #5
  %38 = getelementptr inbounds i8, ptr %2, i64 10
  %39 = getelementptr inbounds i8, ptr %4, i64 26
  %40 = load i8, ptr %39, align 2, !tbaa !7
  %41 = zext i8 %40 to i32
  %42 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %38, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %41) #5
  %43 = getelementptr inbounds i8, ptr %2, i64 12
  %44 = getelementptr inbounds i8, ptr %4, i64 25
  %45 = load i8, ptr %44, align 1, !tbaa !7
  %46 = zext i8 %45 to i32
  %47 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %43, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %46) #5
  %48 = getelementptr inbounds i8, ptr %2, i64 14
  %49 = getelementptr inbounds i8, ptr %4, i64 24
  %50 = load i8, ptr %49, align 8, !tbaa !7
  %51 = zext i8 %50 to i32
  %52 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %48, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %51) #5
  %53 = getelementptr inbounds i8, ptr %2, i64 16
  %54 = getelementptr inbounds i8, ptr %4, i64 23
  %55 = load i8, ptr %54, align 1, !tbaa !7
  %56 = zext i8 %55 to i32
  %57 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %53, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %56) #5
  %58 = getelementptr inbounds i8, ptr %2, i64 18
  %59 = getelementptr inbounds i8, ptr %4, i64 22
  %60 = load i8, ptr %59, align 2, !tbaa !7
  %61 = zext i8 %60 to i32
  %62 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %58, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %61) #5
  %63 = getelementptr inbounds i8, ptr %2, i64 20
  %64 = getelementptr inbounds i8, ptr %4, i64 21
  %65 = load i8, ptr %64, align 1, !tbaa !7
  %66 = zext i8 %65 to i32
  %67 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %63, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %66) #5
  %68 = getelementptr inbounds i8, ptr %2, i64 22
  %69 = getelementptr inbounds i8, ptr %4, i64 20
  %70 = load i8, ptr %69, align 4, !tbaa !7
  %71 = zext i8 %70 to i32
  %72 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %68, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %71) #5
  %73 = getelementptr inbounds i8, ptr %2, i64 24
  %74 = getelementptr inbounds i8, ptr %4, i64 19
  %75 = load i8, ptr %74, align 1, !tbaa !7
  %76 = zext i8 %75 to i32
  %77 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %73, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %76) #5
  %78 = getelementptr inbounds i8, ptr %2, i64 26
  %79 = getelementptr inbounds i8, ptr %4, i64 18
  %80 = load i8, ptr %79, align 2, !tbaa !7
  %81 = zext i8 %80 to i32
  %82 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %78, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %81) #5
  %83 = getelementptr inbounds i8, ptr %2, i64 28
  %84 = getelementptr inbounds i8, ptr %4, i64 17
  %85 = load i8, ptr %84, align 1, !tbaa !7
  %86 = zext i8 %85 to i32
  %87 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %83, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %86) #5
  %88 = getelementptr inbounds i8, ptr %2, i64 30
  %89 = getelementptr inbounds i8, ptr %4, i64 16
  %90 = load i8, ptr %89, align 16, !tbaa !7
  %91 = zext i8 %90 to i32
  %92 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %88, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %91) #5
  %93 = getelementptr inbounds i8, ptr %2, i64 32
  %94 = getelementptr inbounds i8, ptr %4, i64 15
  %95 = load i8, ptr %94, align 1, !tbaa !7
  %96 = zext i8 %95 to i32
  %97 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %93, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %96) #5
  %98 = getelementptr inbounds i8, ptr %2, i64 34
  %99 = getelementptr inbounds i8, ptr %4, i64 14
  %100 = load i8, ptr %99, align 2, !tbaa !7
  %101 = zext i8 %100 to i32
  %102 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %98, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %101) #5
  %103 = getelementptr inbounds i8, ptr %2, i64 36
  %104 = getelementptr inbounds i8, ptr %4, i64 13
  %105 = load i8, ptr %104, align 1, !tbaa !7
  %106 = zext i8 %105 to i32
  %107 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %103, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %106) #5
  %108 = getelementptr inbounds i8, ptr %2, i64 38
  %109 = getelementptr inbounds i8, ptr %4, i64 12
  %110 = load i8, ptr %109, align 4, !tbaa !7
  %111 = zext i8 %110 to i32
  %112 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %108, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %111) #5
  %113 = getelementptr inbounds i8, ptr %2, i64 40
  %114 = getelementptr inbounds i8, ptr %4, i64 11
  %115 = load i8, ptr %114, align 1, !tbaa !7
  %116 = zext i8 %115 to i32
  %117 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %113, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %116) #5
  %118 = getelementptr inbounds i8, ptr %2, i64 42
  %119 = getelementptr inbounds i8, ptr %4, i64 10
  %120 = load i8, ptr %119, align 2, !tbaa !7
  %121 = zext i8 %120 to i32
  %122 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %118, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %121) #5
  %123 = getelementptr inbounds i8, ptr %2, i64 44
  %124 = getelementptr inbounds i8, ptr %4, i64 9
  %125 = load i8, ptr %124, align 1, !tbaa !7
  %126 = zext i8 %125 to i32
  %127 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %123, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %126) #5
  %128 = getelementptr inbounds i8, ptr %2, i64 46
  %129 = getelementptr inbounds i8, ptr %4, i64 8
  %130 = load i8, ptr %129, align 8, !tbaa !7
  %131 = zext i8 %130 to i32
  %132 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %128, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %131) #5
  %133 = getelementptr inbounds i8, ptr %2, i64 48
  %134 = getelementptr inbounds i8, ptr %4, i64 7
  %135 = load i8, ptr %134, align 1, !tbaa !7
  %136 = zext i8 %135 to i32
  %137 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %133, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %136) #5
  %138 = getelementptr inbounds i8, ptr %2, i64 50
  %139 = getelementptr inbounds i8, ptr %4, i64 6
  %140 = load i8, ptr %139, align 2, !tbaa !7
  %141 = zext i8 %140 to i32
  %142 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %138, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %141) #5
  %143 = getelementptr inbounds i8, ptr %2, i64 52
  %144 = getelementptr inbounds i8, ptr %4, i64 5
  %145 = load i8, ptr %144, align 1, !tbaa !7
  %146 = zext i8 %145 to i32
  %147 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %143, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %146) #5
  %148 = getelementptr inbounds i8, ptr %2, i64 54
  %149 = getelementptr inbounds i8, ptr %4, i64 4
  %150 = load i8, ptr %149, align 4, !tbaa !7
  %151 = zext i8 %150 to i32
  %152 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %148, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %151) #5
  %153 = getelementptr inbounds i8, ptr %2, i64 56
  %154 = getelementptr inbounds i8, ptr %4, i64 3
  %155 = load i8, ptr %154, align 1, !tbaa !7
  %156 = zext i8 %155 to i32
  %157 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %153, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %156) #5
  %158 = getelementptr inbounds i8, ptr %2, i64 58
  %159 = getelementptr inbounds i8, ptr %4, i64 2
  %160 = load i8, ptr %159, align 2, !tbaa !7
  %161 = zext i8 %160 to i32
  %162 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %158, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %161) #5
  %163 = getelementptr inbounds i8, ptr %2, i64 60
  %164 = getelementptr inbounds i8, ptr %4, i64 1
  %165 = load i8, ptr %164, align 1, !tbaa !7
  %166 = zext i8 %165 to i32
  %167 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %163, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %166) #5
  %168 = getelementptr inbounds i8, ptr %2, i64 62
  %169 = load i8, ptr %4, align 16, !tbaa !7
  %170 = zext i8 %169 to i32
  %171 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %168, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %170) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %._crit_edge
  %.011 = phi i32 [ 0, %._crit_edge ], [ 1, %.loopexit.loopexit ]
  call void @llvm.lifetime.end.p0(i64 262144, ptr nonnull %4) #5
  ret i32 %.011
}

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

declare i32 @start_hash(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree
declare noundef i64 @read(i32 noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #3

declare i32 @hash_block(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @finish_hash(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "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 = { nofree "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 = { nofree 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 #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}


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