; LLVM IR from openanolis/openssl :: demos/cipher (aesccm)

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

@libctx = external dso_local global ptr, align 8
@propq = external dso_local global ptr, align 8
@stdout = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@ccm_key = external hidden constant [24 x i8], align 16
@ccm_nonce = external hidden constant [7 x i8], align 1
@ccm_adata = external hidden constant [32 x i8], align 16
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@stderr = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@ccm_ct = external hidden constant [24 x i8], align 16
@ccm_tag = external hidden constant [16 x i8], align 16
@.str.8 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [44 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

declare ptr @EVP_CIPHER_CTX_new() #2

declare ptr @EVP_CIPHER_fetch(ptr noundef, ptr noundef, ptr noundef) #2

declare void @OSSL_PARAM_construct_size_t(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8, ptr noundef, ptr noundef) #2

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

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

declare void @OSSL_PARAM_construct_octet_string(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8, ptr noundef, ptr noundef, i64 noundef) #2

declare void @ERR_print_errors_fp(ptr noundef) #2

declare void @EVP_CIPHER_free(ptr noundef) #2

declare void @EVP_CIPHER_CTX_free(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @aes_ccm_decrypt() #4 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [1024 x i8], align 16
  %7 = alloca i64, align 8
  %8 = alloca [3 x %struct.ossl_param_st], align 16
  %9 = alloca %struct.ossl_param_st, align 8
  %10 = alloca %struct.ossl_param_st, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  store ptr null, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 7, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 120, ptr %8) #5
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 120, i1 false)
  %11 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %12 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %13 = load ptr, ptr @stdout, align 8, !tbaa !9
  %14 = call i32 @BIO_dump_fp(ptr noundef %13, ptr noundef @ccm_ct, i32 noundef 24)
  %15 = call ptr @EVP_CIPHER_CTX_new()
  store ptr %15, ptr %2, align 8, !tbaa !9
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %0
  br label %63

18:                                               ; preds = %0
  %19 = load ptr, ptr @libctx, align 8, !tbaa !9
  %20 = load ptr, ptr @propq, align 8, !tbaa !9
  %21 = call ptr @EVP_CIPHER_fetch(ptr noundef %19, ptr noundef @.str.2, ptr noundef %20)
  store ptr %21, ptr %3, align 8, !tbaa !9
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %18
  br label %63

24:                                               ; preds = %18
  %25 = getelementptr inbounds [3 x %struct.ossl_param_st], ptr %8, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #5
  call void @OSSL_PARAM_construct_size_t(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8 %9, ptr noundef @.str.3, ptr noundef %7)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 8 %9, i64 40, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #5
  %26 = getelementptr inbounds [3 x %struct.ossl_param_st], ptr %8, i64 0, i64 1
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #5
  call void @OSSL_PARAM_construct_octet_string(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8 %10, ptr noundef @.str.4, ptr noundef @ccm_tag, i64 noundef 16)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %10, i64 40, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #5
  %27 = load ptr, ptr %2, align 8, !tbaa !9
  %28 = load ptr, ptr %3, align 8, !tbaa !9
  %29 = getelementptr inbounds [3 x %struct.ossl_param_st], ptr %8, i64 0, i64 0
  %30 = call i32 @EVP_DecryptInit_ex2(ptr noundef %27, ptr noundef %28, ptr noundef null, ptr noundef null, ptr noundef %29)
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %33, label %32

32:                                               ; preds = %24
  br label %63

33:                                               ; preds = %24
  %34 = load ptr, ptr %2, align 8, !tbaa !9
  %35 = call i32 @EVP_DecryptInit_ex(ptr noundef %34, ptr noundef null, ptr noundef null, ptr noundef @ccm_key, ptr noundef @ccm_nonce)
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  br label %63

38:                                               ; preds = %33
  %39 = load ptr, ptr %2, align 8, !tbaa !9
  %40 = call i32 @EVP_DecryptUpdate(ptr noundef %39, ptr noundef null, ptr noundef %4, ptr noundef null, i32 noundef 24)
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  br label %63

43:                                               ; preds = %38
  %44 = load ptr, ptr %2, align 8, !tbaa !9
  %45 = call i32 @EVP_DecryptUpdate(ptr noundef %44, ptr noundef null, ptr noundef %4, ptr noundef @ccm_adata, i32 noundef 32)
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  br label %63

48:                                               ; preds = %43
  %49 = load ptr, ptr %2, align 8, !tbaa !9
  %50 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
  %51 = call i32 @EVP_DecryptUpdate(ptr noundef %49, ptr noundef %50, ptr noundef %4, ptr noundef @ccm_ct, i32 noundef 24)
  store i32 %51, ptr %5, align 4, !tbaa !5
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %54, label %60

54:                                               ; preds = %48
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %56 = load ptr, ptr @stdout, align 8, !tbaa !9
  %57 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = call i32 @BIO_dump_fp(ptr noundef %56, ptr noundef %57, i32 noundef %58)
  br label %62

60:                                               ; preds = %48
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %63

62:                                               ; preds = %54
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %62, %60, %47, %42, %37, %32, %23, %17
  %64 = load i32, ptr %1, align 4, !tbaa !5
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %68, label %66

66:                                               ; preds = %63
  %67 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @ERR_print_errors_fp(ptr noundef %67)
  br label %68

68:                                               ; preds = %66, %63
  %69 = load ptr, ptr %3, align 8, !tbaa !9
  call void @EVP_CIPHER_free(ptr noundef %69)
  %70 = load ptr, ptr %2, align 8, !tbaa !9
  call void @EVP_CIPHER_CTX_free(ptr noundef %70)
  %71 = load i32, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 120, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret i32 %71
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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: readwrite) }
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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{i64 0, i64 8, !9, i64 8, i64 4, !5, i64 16, i64 8, !9, i64 24, i64 8, !11, i64 32, i64 8, !11}


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

@libctx = external dso_local local_unnamed_addr global ptr, align 8
@propq = external dso_local local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@ccm_key = external hidden constant [24 x i8], align 16
@ccm_nonce = external hidden constant [7 x i8], align 1
@ccm_adata = external hidden constant [32 x i8], align 16
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@ccm_ct = external hidden constant [24 x i8], align 16
@ccm_tag = external hidden constant [16 x i8], align 16
@.str.8 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [44 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

declare ptr @EVP_CIPHER_CTX_new() local_unnamed_addr #3

declare ptr @EVP_CIPHER_fetch(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @OSSL_PARAM_construct_size_t(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

declare void @OSSL_PARAM_construct_octet_string(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare void @ERR_print_errors_fp(ptr noundef) local_unnamed_addr #3

declare void @EVP_CIPHER_free(ptr noundef) local_unnamed_addr #3

declare void @EVP_CIPHER_CTX_free(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @aes_ccm_decrypt() local_unnamed_addr #5 {
  %1 = alloca i32, align 4
  %2 = alloca [1024 x i8], align 16
  %3 = alloca i64, align 8
  %4 = alloca [3 x %struct.ossl_param_st], align 16
  %5 = alloca %struct.ossl_param_st, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store i64 7, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %4) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(120) %4, i8 0, i64 120, i1 false)
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %8 = load ptr, ptr @stdout, align 8, !tbaa !9
  %9 = tail call i32 @BIO_dump_fp(ptr noundef %8, ptr noundef nonnull @ccm_ct, i32 noundef 24) #6
  %10 = tail call ptr @EVP_CIPHER_CTX_new() #6
  %11 = icmp eq ptr %10, null
  br i1 %11, label %36, label %12

12:                                               ; preds = %0
  %13 = load ptr, ptr @libctx, align 8, !tbaa !9
  %14 = load ptr, ptr @propq, align 8, !tbaa !9
  %15 = tail call ptr @EVP_CIPHER_fetch(ptr noundef %13, ptr noundef nonnull @.str.2, ptr noundef %14) #6
  %16 = icmp eq ptr %15, null
  br i1 %16, label %36, label %17

17:                                               ; preds = %12
  call void @OSSL_PARAM_construct_size_t(ptr dead_on_unwind nonnull writable sret(%struct.ossl_param_st) align 8 %4, ptr noundef nonnull @.str.3, ptr noundef nonnull %3) #6
  %18 = getelementptr inbounds i8, ptr %4, i64 40
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @OSSL_PARAM_construct_octet_string(ptr dead_on_unwind nonnull writable sret(%struct.ossl_param_st) align 8 %5, ptr noundef nonnull @.str.4, ptr noundef nonnull @ccm_tag, i64 noundef 16) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull align 8 dereferenceable(40) %5, i64 40, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  %19 = call i32 @EVP_DecryptInit_ex2(ptr noundef nonnull %10, ptr noundef nonnull %15, ptr noundef null, ptr noundef null, ptr noundef nonnull %4) #6
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %36, label %20

20:                                               ; preds = %17
  %21 = call i32 @EVP_DecryptInit_ex(ptr noundef nonnull %10, ptr noundef null, ptr noundef null, ptr noundef nonnull @ccm_key, ptr noundef nonnull @ccm_nonce) #6
  %.not13 = icmp eq i32 %21, 0
  br i1 %.not13, label %36, label %22

22:                                               ; preds = %20
  %23 = call i32 @EVP_DecryptUpdate(ptr noundef nonnull %10, ptr noundef null, ptr noundef nonnull %1, ptr noundef null, i32 noundef 24) #6
  %.not14 = icmp eq i32 %23, 0
  br i1 %.not14, label %36, label %24

24:                                               ; preds = %22
  %25 = call i32 @EVP_DecryptUpdate(ptr noundef nonnull %10, ptr noundef null, ptr noundef nonnull %1, ptr noundef nonnull @ccm_adata, i32 noundef 32) #6
  %.not15 = icmp eq i32 %25, 0
  br i1 %.not15, label %36, label %26

26:                                               ; preds = %24
  %27 = call i32 @EVP_DecryptUpdate(ptr noundef nonnull %10, ptr noundef nonnull %2, ptr noundef nonnull %1, ptr noundef nonnull @ccm_ct, i32 noundef 24) #6
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %31, label %29

29:                                               ; preds = %26
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br label %36

31:                                               ; preds = %26
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %33 = load ptr, ptr @stdout, align 8, !tbaa !9
  %34 = load i32, ptr %1, align 4, !tbaa !12
  %35 = call i32 @BIO_dump_fp(ptr noundef %33, ptr noundef nonnull %2, i32 noundef %34) #6
  br label %38

36:                                               ; preds = %0, %12, %29, %24, %22, %20, %17
  %.010.ph = phi ptr [ %15, %17 ], [ %15, %20 ], [ %15, %22 ], [ %15, %24 ], [ %15, %29 ], [ null, %12 ], [ null, %0 ]
  %37 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @ERR_print_errors_fp(ptr noundef %37) #6
  br label %38

38:                                               ; preds = %31, %36
  %.022 = phi i32 [ 0, %36 ], [ 1, %31 ]
  %.01020 = phi ptr [ %.010.ph, %36 ], [ %15, %31 ]
  call void @EVP_CIPHER_free(ptr noundef %.01020) #6
  call void @EVP_CIPHER_CTX_free(ptr noundef %10) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 %.022
}

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i64 0, i64 8, !9, i64 8, i64 4, !12, i64 16, i64 8, !9, i64 24, i64 8, !5, i64 32, i64 8, !5}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass