; LLVM IR from intel/cryptography-primitives :: examples/aes (aes-128-gcm-decryption)

; 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 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@_ZL6key128 = external hidden global [16 x i8], align 16
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZL2iv = external hidden constant [12 x i8], align 1
@_ZL3aad = external hidden constant [20 x i8], align 16
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZL10cipherText = external hidden global [60 x i8], align 16
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@_ZL3tag = external hidden constant [16 x i8], align 16
@.str.6 = external hidden unnamed_addr constant [50 x i8], align 1
@_ZL9plainText = external hidden global [60 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [60 x i8], align 16
  %4 = alloca [16 x i8], align 16
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 60, ptr %3) #8
  call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 60, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #8
  call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  store ptr null, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %0
  %9 = call i32 @ippsAES_GCMGetSize(ptr noundef %2)
  store i32 %9, ptr %6, align 4, !tbaa !5
  %10 = load i32, ptr %6, align 4, !tbaa !5
  %11 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef @.str, i32 noundef 0, i32 noundef %10)
  %12 = icmp ne i32 %11, 0
  br i1 %12, label %15, label %13

13:                                               ; preds = %8
  %14 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %14, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %92

15:                                               ; preds = %8
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = call noalias noundef nonnull ptr @_Znam(i64 noundef %17) #9
  store ptr %18, ptr %5, align 8, !tbaa !9
  %19 = load ptr, ptr %5, align 8, !tbaa !9
  %20 = icmp eq ptr null, %19
  br i1 %20, label %21, label %24

21:                                               ; preds = %15
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %22)
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %92

24:                                               ; preds = %15
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = call i32 @ippsAES_GCMInit(ptr noundef @_ZL6key128, i32 noundef 16, ptr noundef %25, i32 noundef %26)
  store i32 %27, ptr %6, align 4, !tbaa !5
  %28 = load i32, ptr %6, align 4, !tbaa !5
  %29 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef @.str.2, i32 noundef 0, i32 noundef %28)
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %32, label %31

31:                                               ; preds = %24
  br label %69

32:                                               ; preds = %24
  %33 = load ptr, ptr %5, align 8, !tbaa !9
  %34 = call i32 @ippsAES_GCMStart(ptr noundef @_ZL2iv, i32 noundef 12, ptr noundef @_ZL3aad, i32 noundef 20, ptr noundef %33)
  store i32 %34, ptr %6, align 4, !tbaa !5
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef @.str.3, i32 noundef 0, i32 noundef %35)
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %39, label %38

38:                                               ; preds = %32
  br label %69

39:                                               ; preds = %32
  %40 = getelementptr inbounds [60 x i8], ptr %3, i64 0, i64 0
  %41 = load ptr, ptr %5, align 8, !tbaa !9
  %42 = call i32 @ippsAES_GCMDecrypt(ptr noundef @_ZL10cipherText, ptr noundef %40, i32 noundef 60, ptr noundef %41)
  store i32 %42, ptr %6, align 4, !tbaa !5
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef @.str.4, i32 noundef 0, i32 noundef %43)
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %47, label %46

46:                                               ; preds = %39
  br label %69

47:                                               ; preds = %39
  %48 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 0
  %49 = load ptr, ptr %5, align 8, !tbaa !9
  %50 = call i32 @ippsAES_GCMGetTag(ptr noundef %48, i32 noundef 16, ptr noundef %49)
  store i32 %50, ptr %6, align 4, !tbaa !5
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef @.str.5, i32 noundef 0, i32 noundef %51)
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %55, label %54

54:                                               ; preds = %47
  br label %69

55:                                               ; preds = %47
  %56 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 0
  %57 = call i32 @memcmp(ptr noundef %56, ptr noundef @_ZL3tag, i64 noundef 16) #10
  %58 = icmp ne i32 0, %57
  br i1 %58, label %59, label %61

59:                                               ; preds = %55
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %69

61:                                               ; preds = %55
  %62 = getelementptr inbounds [60 x i8], ptr %3, i64 0, i64 0
  %63 = call i32 @memcmp(ptr noundef %62, ptr noundef @_ZL9plainText, i64 noundef 60) #10
  %64 = icmp ne i32 0, %63
  br i1 %64, label %65, label %67

65:                                               ; preds = %61
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %69

67:                                               ; preds = %61
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68, %65, %59, %54, %46, %38, %31
  %70 = load ptr, ptr %5, align 8, !tbaa !9
  %71 = call i32 @ippsAES_GCMReset(ptr noundef %70)
  %72 = load ptr, ptr %5, align 8, !tbaa !9
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %79

74:                                               ; preds = %69
  %75 = load ptr, ptr %5, align 8, !tbaa !9
  %76 = icmp eq ptr %75, null
  br i1 %76, label %78, label %77

77:                                               ; preds = %74
  call void @_ZdaPv(ptr noundef %75) #11
  br label %78

78:                                               ; preds = %77, %74
  br label %79

79:                                               ; preds = %78, %69
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef @.str.4)
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef @.str.11)
  %83 = load i32, ptr %6, align 4, !tbaa !5
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %87, label %85

85:                                               ; preds = %79
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  br label %89

87:                                               ; preds = %79
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  br label %89

89:                                               ; preds = %87, %85
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %91 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %91, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %92

92:                                               ; preds = %89, %21, %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 60, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %93 = load i32, ptr %1, align 4
  ret i32 %93
}

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

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

declare i32 @ippsAES_GCMGetSize(ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z11checkStatusPKcii(ptr noundef, i32 noundef, i32 noundef) #4

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

declare i32 @printf(ptr noundef, ...) #3

declare i32 @ippsAES_GCMInit(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3

declare i32 @ippsAES_GCMStart(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare i32 @ippsAES_GCMDecrypt(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare i32 @ippsAES_GCMGetTag(ptr noundef, i32 noundef, ptr noundef) #3

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

declare i32 @ippsAES_GCMReset(ptr noundef) #3

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

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

attributes #0 = { mustprogress norecurse 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 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 = { 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 #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 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}


; 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 [19 x i8], align 1
@_ZL6key128 = external hidden global [16 x i8], align 16
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZL2iv = external hidden constant [12 x i8], align 1
@_ZL3aad = external hidden constant [20 x i8], align 16
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZL10cipherText = external hidden global [60 x i8], align 16
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@_ZL3tag = external hidden constant [16 x i8], align 16
@.str.6 = external hidden unnamed_addr constant [50 x i8], align 1
@_ZL9plainText = external hidden global [60 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca [60 x i8], align 16
  %3 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %2) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(60) %2, i8 0, i64 60, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, i8 0, i64 16, i1 false)
  %4 = call i32 @ippsAES_GCMGetSize(ptr noundef nonnull %1)
  %5 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef nonnull @.str, i32 noundef 0, i32 noundef %4)
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %31, label %6

6:                                                ; preds = %0
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = call noalias noundef nonnull ptr @_Znam(i64 noundef %8) #10
  %10 = call i32 @ippsAES_GCMInit(ptr noundef nonnull @_ZL6key128, i32 noundef 16, ptr noundef nonnull %9, i32 noundef %7)
  %11 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef nonnull @.str.2, i32 noundef 0, i32 noundef %10)
  %.not17 = icmp eq i32 %11, 0
  br i1 %.not17, label %24, label %12

12:                                               ; preds = %6
  %13 = call i32 @ippsAES_GCMStart(ptr noundef nonnull @_ZL2iv, i32 noundef 12, ptr noundef nonnull @_ZL3aad, i32 noundef 20, ptr noundef nonnull %9)
  %14 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef nonnull @.str.3, i32 noundef 0, i32 noundef %13)
  %.not18 = icmp eq i32 %14, 0
  br i1 %.not18, label %24, label %15

15:                                               ; preds = %12
  %16 = call i32 @ippsAES_GCMDecrypt(ptr noundef nonnull @_ZL10cipherText, ptr noundef nonnull %2, i32 noundef 60, ptr noundef nonnull %9)
  %17 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef nonnull @.str.4, i32 noundef 0, i32 noundef %16)
  %.not19 = icmp eq i32 %17, 0
  br i1 %.not19, label %24, label %18

18:                                               ; preds = %15
  %19 = call i32 @ippsAES_GCMGetTag(ptr noundef nonnull %3, i32 noundef 16, ptr noundef nonnull %9)
  %20 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef nonnull @.str.5, i32 noundef 0, i32 noundef %19)
  %.not20 = icmp eq i32 %20, 0
  br i1 %.not20, label %24, label %21

21:                                               ; preds = %18
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %3, ptr noundef nonnull dereferenceable(16) @_ZL3tag, i64 16)
  %.not21 = icmp eq i32 %bcmp, 0
  br i1 %.not21, label %22, label %.sink.split

22:                                               ; preds = %21
  %bcmp24 = call i32 @bcmp(ptr noundef nonnull dereferenceable(60) %2, ptr noundef nonnull dereferenceable(60) @_ZL9plainText, i64 60)
  %.not22 = icmp eq i32 %bcmp24, 0
  br i1 %.not22, label %24, label %.sink.split

.sink.split:                                      ; preds = %22, %21
  %.str.7.sink = phi ptr [ @.str.6, %21 ], [ @.str.7, %22 ]
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink)
  br label %24

24:                                               ; preds = %.sink.split, %22, %18, %15, %12, %6
  %.0 = phi i32 [ %19, %22 ], [ %19, %18 ], [ %16, %15 ], [ %13, %12 ], [ %10, %6 ], [ %19, %.sink.split ]
  %25 = call i32 @ippsAES_GCMReset(ptr noundef nonnull %9)
  call void @_ZdaPv(ptr noundef nonnull %9) #11
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull @.str.4)
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef nonnull @.str.11)
  %.not23 = icmp eq i32 %.0, 0
  %.str.12..str.13 = select i1 %.not23, ptr @.str.12, ptr @.str.13
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.12..str.13)
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  br label %31

31:                                               ; preds = %0, %24
  %.016 = phi i32 [ %.0, %24 ], [ %4, %0 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  ret i32 %.016
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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

declare i32 @ippsAES_GCMGetSize(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z11checkStatusPKcii(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

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

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

declare i32 @ippsAES_GCMInit(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @ippsAES_GCMStart(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @ippsAES_GCMDecrypt(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @ippsAES_GCMGetTag(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @ippsAES_GCMReset(ptr noundef) local_unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr 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

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

attributes #0 = { mustprogress norecurse 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 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 = { 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 #6 = { 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 #7 = { 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 #8 = { nofree nounwind willreturn memory(argmem: read) }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass