; LLVM IR from ARMmbed/mbed-crypto :: library (psa_crypto)

; 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.aead_operation_t = type { ptr, ptr, %union.anon.3, i32, i8, i8 }
%union.anon.3 = type { %struct.mbedtls_gcm_context }
%struct.mbedtls_gcm_context = type { %struct.mbedtls_cipher_context_t, [16 x i64], [16 x i64], i64, i64, [16 x i8], [16 x i8], [16 x i8], i32 }
%struct.mbedtls_cipher_context_t = type { ptr, i32, i32, ptr, ptr, [16 x i8], i64, [16 x i8], i64, ptr, ptr }

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mbedtls_to_psa_error(i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @psa_aead_setup(ptr noundef, i16 noundef zeroext, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @psa_aead_abort_internal(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @psa_aead_decrypt(i16 noundef zeroext %0, i32 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, ptr noundef %10) #2 {
  %12 = alloca i32, align 4
  %13 = alloca i16, align 2
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca %struct.aead_operation_t, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  store i16 %0, ptr %13, align 2, !tbaa !5
  store i32 %1, ptr %14, align 4, !tbaa !9
  store ptr %2, ptr %15, align 8, !tbaa !11
  store i64 %3, ptr %16, align 8, !tbaa !13
  store ptr %4, ptr %17, align 8, !tbaa !11
  store i64 %5, ptr %18, align 8, !tbaa !13
  store ptr %6, ptr %19, align 8, !tbaa !11
  store i64 %7, ptr %20, align 8, !tbaa !13
  store ptr %8, ptr %21, align 8, !tbaa !11
  store i64 %9, ptr %22, align 8, !tbaa !13
  store ptr %10, ptr %23, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 448, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  store ptr null, ptr %26, align 8, !tbaa !11
  %28 = load ptr, ptr %23, align 8, !tbaa !11
  store i64 0, ptr %28, align 8, !tbaa !13
  %29 = load i16, ptr %13, align 2, !tbaa !5
  %30 = load i32, ptr %14, align 4, !tbaa !9
  %31 = call i32 @psa_aead_setup(ptr noundef %25, i16 noundef zeroext %29, i32 noundef 512, i32 noundef %30)
  store i32 %31, ptr %24, align 4, !tbaa !9
  %32 = load i32, ptr %24, align 4, !tbaa !9
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %36

34:                                               ; preds = %11
  %35 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %35, ptr %12, align 4
  store i32 1, ptr %27, align 4
  br label %146

36:                                               ; preds = %11
  %37 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 5
  %38 = load i8, ptr %37, align 1, !tbaa !15
  %39 = zext i8 %38 to i64
  %40 = load ptr, ptr %19, align 8, !tbaa !11
  %41 = load i64, ptr %20, align 8, !tbaa !13
  %42 = load i64, ptr %22, align 8, !tbaa !13
  %43 = call i32 @psa_aead_unpadded_locate_tag(i64 noundef %39, ptr noundef %40, i64 noundef %41, i64 noundef %42, ptr noundef %26)
  store i32 %43, ptr %24, align 4, !tbaa !9
  %44 = load i32, ptr %24, align 4, !tbaa !9
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %36
  br label %134

47:                                               ; preds = %36
  %48 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 3
  %49 = load i32, ptr %48, align 8, !tbaa !17
  %50 = icmp eq i32 %49, 104861698
  br i1 %50, label %51, label %70

51:                                               ; preds = %47
  %52 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 2
  %53 = load i64, ptr %20, align 8, !tbaa !13
  %54 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 5
  %55 = load i8, ptr %54, align 1, !tbaa !15
  %56 = zext i8 %55 to i64
  %57 = sub i64 %53, %56
  %58 = load ptr, ptr %15, align 8, !tbaa !11
  %59 = load i64, ptr %16, align 8, !tbaa !13
  %60 = load ptr, ptr %17, align 8, !tbaa !11
  %61 = load i64, ptr %18, align 8, !tbaa !13
  %62 = load ptr, ptr %26, align 8, !tbaa !11
  %63 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 5
  %64 = load i8, ptr %63, align 1, !tbaa !15
  %65 = zext i8 %64 to i64
  %66 = load ptr, ptr %19, align 8, !tbaa !11
  %67 = load ptr, ptr %21, align 8, !tbaa !11
  %68 = call i32 @mbedtls_gcm_auth_decrypt(ptr noundef %52, i64 noundef %57, ptr noundef %58, i64 noundef %59, ptr noundef %60, i64 noundef %61, ptr noundef %62, i64 noundef %65, ptr noundef %66, ptr noundef %67)
  %69 = call i32 @mbedtls_to_psa_error(i32 noundef %68)
  store i32 %69, ptr %24, align 4, !tbaa !9
  br label %124

70:                                               ; preds = %47
  %71 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 3
  %72 = load i32, ptr %71, align 8, !tbaa !17
  %73 = icmp eq i32 %72, 104861697
  br i1 %73, label %74, label %93

74:                                               ; preds = %70
  %75 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 2
  %76 = load i64, ptr %20, align 8, !tbaa !13
  %77 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 5
  %78 = load i8, ptr %77, align 1, !tbaa !15
  %79 = zext i8 %78 to i64
  %80 = sub i64 %76, %79
  %81 = load ptr, ptr %15, align 8, !tbaa !11
  %82 = load i64, ptr %16, align 8, !tbaa !13
  %83 = load ptr, ptr %17, align 8, !tbaa !11
  %84 = load i64, ptr %18, align 8, !tbaa !13
  %85 = load ptr, ptr %19, align 8, !tbaa !11
  %86 = load ptr, ptr %21, align 8, !tbaa !11
  %87 = load ptr, ptr %26, align 8, !tbaa !11
  %88 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 5
  %89 = load i8, ptr %88, align 1, !tbaa !15
  %90 = zext i8 %89 to i64
  %91 = call i32 @mbedtls_ccm_auth_decrypt(ptr noundef %75, i64 noundef %80, ptr noundef %81, i64 noundef %82, ptr noundef %83, i64 noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef %87, i64 noundef %90)
  %92 = call i32 @mbedtls_to_psa_error(i32 noundef %91)
  store i32 %92, ptr %24, align 4, !tbaa !9
  br label %123

93:                                               ; preds = %70
  %94 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 3
  %95 = load i32, ptr %94, align 8, !tbaa !17
  %96 = icmp eq i32 %95, 100667397
  br i1 %96, label %97, label %121

97:                                               ; preds = %93
  %98 = load i64, ptr %16, align 8, !tbaa !13
  %99 = icmp ne i64 %98, 12
  br i1 %99, label %105, label %100

100:                                              ; preds = %97
  %101 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 5
  %102 = load i8, ptr %101, align 1, !tbaa !15
  %103 = zext i8 %102 to i32
  %104 = icmp ne i32 %103, 16
  br i1 %104, label %105, label %106

105:                                              ; preds = %100, %97
  store i32 -134, ptr %24, align 4, !tbaa !9
  br label %134

106:                                              ; preds = %100
  %107 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 2
  %108 = load i64, ptr %20, align 8, !tbaa !13
  %109 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 5
  %110 = load i8, ptr %109, align 1, !tbaa !15
  %111 = zext i8 %110 to i64
  %112 = sub i64 %108, %111
  %113 = load ptr, ptr %15, align 8, !tbaa !11
  %114 = load ptr, ptr %17, align 8, !tbaa !11
  %115 = load i64, ptr %18, align 8, !tbaa !13
  %116 = load ptr, ptr %26, align 8, !tbaa !11
  %117 = load ptr, ptr %19, align 8, !tbaa !11
  %118 = load ptr, ptr %21, align 8, !tbaa !11
  %119 = call i32 @mbedtls_chachapoly_auth_decrypt(ptr noundef %107, i64 noundef %112, ptr noundef %113, ptr noundef %114, i64 noundef %115, ptr noundef %116, ptr noundef %117, ptr noundef %118)
  %120 = call i32 @mbedtls_to_psa_error(i32 noundef %119)
  store i32 %120, ptr %24, align 4, !tbaa !9
  br label %122

121:                                              ; preds = %93
  store i32 -134, ptr %12, align 4
  store i32 1, ptr %27, align 4
  br label %146

122:                                              ; preds = %106
  br label %123

123:                                              ; preds = %122, %74
  br label %124

124:                                              ; preds = %123, %51
  %125 = load i32, ptr %24, align 4, !tbaa !9
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %133

127:                                              ; preds = %124
  %128 = load i64, ptr %22, align 8, !tbaa !13
  %129 = icmp ne i64 %128, 0
  br i1 %129, label %130, label %133

130:                                              ; preds = %127
  %131 = load ptr, ptr %21, align 8, !tbaa !11
  %132 = load i64, ptr %22, align 8, !tbaa !13
  call void @llvm.memset.p0.i64(ptr align 1 %131, i8 0, i64 %132, i1 false)
  br label %133

133:                                              ; preds = %130, %127, %124
  br label %134

134:                                              ; preds = %133, %105, %46
  call void @psa_aead_abort_internal(ptr noundef %25)
  %135 = load i32, ptr %24, align 4, !tbaa !9
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %137, label %144

137:                                              ; preds = %134
  %138 = load i64, ptr %20, align 8, !tbaa !13
  %139 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 5
  %140 = load i8, ptr %139, align 1, !tbaa !15
  %141 = zext i8 %140 to i64
  %142 = sub i64 %138, %141
  %143 = load ptr, ptr %23, align 8, !tbaa !11
  store i64 %142, ptr %143, align 8, !tbaa !13
  br label %144

144:                                              ; preds = %137, %134
  %145 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %145, ptr %12, align 4
  store i32 1, ptr %27, align 4
  br label %146

146:                                              ; preds = %144, %121, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 448, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  %147 = load i32, ptr %12, align 4
  ret i32 %147
}

; Function Attrs: nounwind uwtable
declare hidden i32 @psa_aead_unpadded_locate_tag(i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare i32 @mbedtls_gcm_auth_decrypt(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

declare i32 @mbedtls_ccm_auth_decrypt(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) #3

declare i32 @mbedtls_chachapoly_auth_decrypt(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #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 = { 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 = !{!"short", !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 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !7, i64 445}
!16 = !{!"", !12, i64 0, !12, i64 8, !7, i64 16, !10, i64 440, !7, i64 444, !7, i64 445}
!17 = !{!16, !10, i64 440}


; 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.aead_operation_t = type { ptr, ptr, %union.anon.3, i32, i8, i8 }
%union.anon.3 = type { %struct.mbedtls_gcm_context }
%struct.mbedtls_gcm_context = type { %struct.mbedtls_cipher_context_t, [16 x i64], [16 x i64], i64, i64, [16 x i8], [16 x i8], [16 x i8], i32 }
%struct.mbedtls_cipher_context_t = type { ptr, i32, i32, ptr, ptr, [16 x i8], i64, [16 x i8], i64, ptr, ptr }

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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: nounwind uwtable
declare hidden i32 @mbedtls_to_psa_error(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @psa_aead_setup(ptr noundef, i16 noundef zeroext, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @psa_aead_abort_internal(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @psa_aead_decrypt(i16 noundef zeroext %0, i32 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, ptr nocapture noundef writeonly %10) local_unnamed_addr #2 {
  %12 = alloca %struct.aead_operation_t, align 8
  %13 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 448, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  store ptr null, ptr %13, align 8, !tbaa !5
  store i64 0, ptr %10, align 8, !tbaa !9
  %14 = call i32 @psa_aead_setup(ptr noundef nonnull %12, i16 noundef zeroext %0, i32 noundef 512, i32 noundef %1)
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %15, label %57

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %12, i64 445
  %17 = load i8, ptr %16, align 1, !tbaa !11
  %18 = zext i8 %17 to i64
  %19 = call i32 @psa_aead_unpadded_locate_tag(i64 noundef %18, ptr noundef %6, i64 noundef %7, i64 noundef %9, ptr noundef nonnull %13)
  %.not48 = icmp eq i32 %19, 0
  br i1 %.not48, label %20, label %.thread

20:                                               ; preds = %15
  %21 = getelementptr inbounds i8, ptr %12, i64 440
  %22 = load i32, ptr %21, align 8, !tbaa !14
  switch i32 %22, label %57 [
    i32 104861698, label %23
    i32 104861697, label %30
    i32 100667397, label %37
  ]

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %12, i64 16
  %25 = load i8, ptr %16, align 1, !tbaa !11
  %26 = zext i8 %25 to i64
  %27 = sub i64 %7, %26
  %28 = load ptr, ptr %13, align 8, !tbaa !5
  %29 = call i32 @mbedtls_gcm_auth_decrypt(ptr noundef nonnull %24, i64 noundef %27, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %28, i64 noundef %26, ptr noundef %6, ptr noundef %8) #4
  br label %46

30:                                               ; preds = %20
  %31 = getelementptr inbounds i8, ptr %12, i64 16
  %32 = load i8, ptr %16, align 1, !tbaa !11
  %33 = zext i8 %32 to i64
  %34 = sub i64 %7, %33
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = call i32 @mbedtls_ccm_auth_decrypt(ptr noundef nonnull %31, i64 noundef %34, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %8, ptr noundef %35, i64 noundef %33) #4
  br label %46

37:                                               ; preds = %20
  %38 = icmp ne i64 %3, 12
  %39 = load i8, ptr %16, align 1
  %40 = icmp ne i8 %39, 16
  %or.cond = select i1 %38, i1 true, i1 %40
  br i1 %or.cond, label %.thread, label %41

41:                                               ; preds = %37
  %42 = getelementptr inbounds i8, ptr %12, i64 16
  %43 = add i64 %7, -16
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = call i32 @mbedtls_chachapoly_auth_decrypt(ptr noundef nonnull %42, i64 noundef %43, ptr noundef %2, ptr noundef %4, i64 noundef %5, ptr noundef %44, ptr noundef %6, ptr noundef %8) #4
  br label %46

46:                                               ; preds = %30, %41, %23
  %.sink = phi i32 [ %36, %30 ], [ %45, %41 ], [ %29, %23 ]
  %47 = call i32 @mbedtls_to_psa_error(i32 noundef %.sink)
  %48 = icmp ne i32 %47, 0
  %49 = icmp ne i64 %9, 0
  %or.cond5 = and i1 %49, %48
  br i1 %or.cond5, label %50, label %51

50:                                               ; preds = %46
  call void @llvm.memset.p0.i64(ptr align 1 %8, i8 0, i64 %9, i1 false)
  br label %.thread

.thread:                                          ; preds = %15, %50, %37
  %.1.ph = phi i32 [ -134, %37 ], [ %47, %50 ], [ %19, %15 ]
  call void @psa_aead_abort_internal(ptr noundef nonnull %12)
  br label %57

51:                                               ; preds = %46
  call void @psa_aead_abort_internal(ptr noundef nonnull %12)
  %52 = icmp eq i32 %47, 0
  br i1 %52, label %53, label %57

53:                                               ; preds = %51
  %54 = load i8, ptr %16, align 1, !tbaa !11
  %55 = zext i8 %54 to i64
  %56 = sub i64 %7, %55
  store i64 %56, ptr %10, align 8, !tbaa !9
  br label %57

57:                                               ; preds = %.thread, %51, %53, %20, %11
  %.043 = phi i32 [ %14, %11 ], [ -134, %20 ], [ 0, %53 ], [ %47, %51 ], [ %.1.ph, %.thread ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 448, ptr nonnull %12) #4
  ret i32 %.043
}

; Function Attrs: nounwind uwtable
declare hidden i32 @psa_aead_unpadded_locate_tag(i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @mbedtls_gcm_auth_decrypt(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @mbedtls_ccm_auth_decrypt(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare i32 @mbedtls_chachapoly_auth_decrypt(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr 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 = { 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 #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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !7, i64 445}
!12 = !{!"", !6, i64 0, !6, i64 8, !7, i64 16, !13, i64 440, !7, i64 444, !7, i64 445}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 440}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass