; LLVM IR from intel/intel-ipsec-mb :: test/kat-app (clear_mem_test)

; 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.test_suite_context = type { i32, i32, ptr }

@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@quiet_mode = external global i32, align 4
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @clear_mem_test(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.test_suite_context, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca [16 x i8], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #7
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 7890, ptr %8, align 4, !tbaa !9
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %15 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %15, i8 -1, i64 16, i1 false)
  %16 = load i32, ptr %8, align 4, !tbaa !9
  call void @srand(i32 noundef %16) #7
  call void @test_suite_start(ptr noundef %3, ptr noundef @.str.1)
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %95, %1
  %18 = load i32, ptr %4, align 4, !tbaa !9
  %19 = icmp slt i32 %18, 100
  br i1 %19, label %20, label %98

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %21 = call i32 @rand() #7
  %22 = srem i32 %21, 1024
  %23 = sext i32 %22 to i64
  %24 = add i64 %23, 32
  %25 = add i64 %24, 1
  %26 = trunc i64 %25 to i32
  store i32 %26, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = sub i64 %28, 32
  %30 = trunc i64 %29 to i32
  store i32 %30, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = call noalias ptr @malloc(i64 noundef %32) #8
  store ptr %33, ptr %6, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %38

36:                                               ; preds = %20
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @test_suite_update(ptr noundef %3, i32 noundef 0, i32 noundef 1)
  store i32 2, ptr %12, align 4
  br label %92

38:                                               ; preds = %20
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %39, i8 -1, i64 %41, i1 false)
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  store ptr %43, ptr %11, align 8, !tbaa !5
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %44, i8 102, i64 %46, i1 false)
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  call void @imb_clear_mem(ptr noundef %47, i64 noundef %49)
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = call i32 @validate_bytes_zero(ptr noundef %50, i32 noundef %51)
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %58

54:                                               ; preds = %38
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = load i32, ptr %10, align 4, !tbaa !9
  call void @print_bytes(ptr noundef %56, i32 noundef %57)
  call void @test_suite_update(ptr noundef %3, i32 noundef 0, i32 noundef 1)
  br label %59

58:                                               ; preds = %38
  call void @test_suite_update(ptr noundef %3, i32 noundef 1, i32 noundef 0)
  br label %59

59:                                               ; preds = %58, %54
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %62 = call i32 @memcmp(ptr noundef %60, ptr noundef %61, i64 noundef 16) #9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %67

64:                                               ; preds = %59
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %66 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  call void @print_bytes(ptr noundef %66, i32 noundef 16)
  call void @test_suite_update(ptr noundef %3, i32 noundef 0, i32 noundef 1)
  br label %68

67:                                               ; preds = %59
  call void @test_suite_update(ptr noundef %3, i32 noundef 1, i32 noundef 0)
  br label %68

68:                                               ; preds = %67, %64
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %71 = load i32, ptr %10, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds i8, ptr %70, i64 %72
  %74 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %75 = call i32 @memcmp(ptr noundef %73, ptr noundef %74, i64 noundef 16) #9
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %84

77:                                               ; preds = %68
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %79, i64 16
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i8, ptr %80, i64 %82
  call void @print_bytes(ptr noundef %83, i32 noundef 16)
  call void @test_suite_update(ptr noundef %3, i32 noundef 0, i32 noundef 1)
  br label %85

84:                                               ; preds = %68
  call void @test_suite_update(ptr noundef %3, i32 noundef 1, i32 noundef 0)
  br label %85

85:                                               ; preds = %84, %77
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %86) #7
  %87 = load i32, ptr @quiet_mode, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %91, label %89

89:                                               ; preds = %85
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %91

91:                                               ; preds = %89, %85
  store i32 0, ptr %12, align 4
  br label %92

92:                                               ; preds = %91, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  %93 = load i32, ptr %12, align 4
  switch i32 %93, label %106 [
    i32 0, label %94
    i32 2, label %98
  ]

94:                                               ; preds = %92
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %4, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %4, align 4, !tbaa !9
  br label %17, !llvm.loop !11

98:                                               ; preds = %92, %17
  %99 = load i32, ptr @quiet_mode, align 4, !tbaa !9
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %103, label %101

101:                                              ; preds = %98
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %103

103:                                              ; preds = %101, %98
  %104 = call i32 @test_suite_end(ptr noundef %3)
  store i32 %104, ptr %5, align 4, !tbaa !9
  %105 = load i32, ptr %5, align 4, !tbaa !9
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #7
  ret i32 %105

106:                                              ; preds = %92
  unreachable
}

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

declare i32 @printf(ptr noundef, ...) #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
declare void @srand(i32 noundef) #4

declare void @test_suite_start(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @rand() #4

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

declare void @test_suite_update(ptr noundef, i32 noundef, i32 noundef) #2

declare void @imb_clear_mem(ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @validate_bytes_zero(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @print_bytes(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #6

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

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

declare i32 @test_suite_end(ptr noundef) #2

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 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 #6 = { nounwind willreturn memory(read) "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 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { nounwind willreturn memory(read) }

!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 = distinct !{!11, !12}
!12 = !{!"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"

%struct.test_suite_context = type { i32, i32, ptr }

@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@quiet_mode = external local_unnamed_addr global i32, align 4
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @clear_mem_test(ptr nocapture noundef readnone %0) local_unnamed_addr #0 {
  %2 = alloca %struct.test_suite_context, align 8
  %3 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, i8 -1, i64 16, i1 false)
  tail call void @srand(i32 noundef 7890) #9
  call void @test_suite_start(ptr noundef nonnull %2, ptr noundef nonnull @.str.1) #9
  br label %5

5:                                                ; preds = %1, %34
  %.02534 = phi i32 [ 0, %1 ], [ %35, %34 ]
  %6 = call i32 @rand() #9
  %7 = srem i32 %6, 1024
  %narrow = add nsw i32 %7, 33
  %8 = zext i32 %narrow to i64
  %9 = add nsw i32 %7, 1
  %10 = call noalias ptr @malloc(i64 noundef %8) #10
  %11 = icmp eq ptr %10, null
  br i1 %11, label %32, label %12

12:                                               ; preds = %5
  call void @llvm.memset.p0.i64(ptr nonnull align 1 %10, i8 -1, i64 %8, i1 false)
  %13 = getelementptr inbounds i8, ptr %10, i64 16
  %14 = sext i32 %9 to i64
  call void @llvm.memset.p0.i64(ptr nonnull align 1 %13, i8 102, i64 %14, i1 false)
  call void @imb_clear_mem(ptr noundef nonnull %13, i64 noundef %14) #9
  %15 = call i32 @validate_bytes_zero(ptr noundef nonnull %13, i32 noundef %9)
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %18, label %16

16:                                               ; preds = %12
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  call void @print_bytes(ptr noundef nonnull %13, i32 noundef %9)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #9
  br label %19

18:                                               ; preds = %12
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #9
  br label %19

19:                                               ; preds = %18, %16
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %10, ptr noundef nonnull dereferenceable(16) %3, i64 16)
  %.not27 = icmp eq i32 %bcmp, 0
  br i1 %.not27, label %22, label %20

20:                                               ; preds = %19
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  call void @print_bytes(ptr noundef nonnull %3, i32 noundef 16)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #9
  br label %23

22:                                               ; preds = %19
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #9
  br label %23

23:                                               ; preds = %22, %20
  %24 = getelementptr inbounds i8, ptr %13, i64 %14
  %bcmp28 = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %24, ptr noundef nonnull dereferenceable(16) %3, i64 16)
  %.not29 = icmp eq i32 %bcmp28, 0
  br i1 %.not29, label %27, label %25

25:                                               ; preds = %23
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  call void @print_bytes(ptr noundef nonnull %24, i32 noundef 16)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #9
  br label %28

27:                                               ; preds = %23
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #9
  br label %28

28:                                               ; preds = %27, %25
  call void @free(ptr noundef nonnull %10) #9
  %29 = load i32, ptr @quiet_mode, align 4, !tbaa !5
  %.not30 = icmp eq i32 %29, 0
  br i1 %.not30, label %30, label %34

30:                                               ; preds = %28
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %34

32:                                               ; preds = %5
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #9
  br label %.loopexit

34:                                               ; preds = %30, %28
  %35 = add nuw nsw i32 %.02534, 1
  %exitcond.not = icmp eq i32 %35, 100
  br i1 %exitcond.not, label %.loopexit, label %5, !llvm.loop !9

.loopexit:                                        ; preds = %34, %32
  %36 = load i32, ptr @quiet_mode, align 4, !tbaa !5
  %.not31 = icmp eq i32 %36, 0
  br i1 %.not31, label %37, label %39

37:                                               ; preds = %.loopexit
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %39

39:                                               ; preds = %37, %.loopexit
  %40 = call i32 @test_suite_end(ptr noundef nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #9
  ret i32 %40
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #4

declare void @test_suite_start(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #6

declare void @test_suite_update(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @imb_clear_mem(ptr noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare hidden i32 @validate_bytes_zero(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @print_bytes(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #7

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

declare i32 @test_suite_end(ptr noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #8

attributes #0 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 = { "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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #8 = { nofree nounwind willreturn memory(argmem: read) }
attributes #9 = { nounwind }
attributes #10 = { nounwind 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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