; LLVM IR from imkcat/CatCrypto :: Sources/ModuleMaps/Argon2 (argon2)

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

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

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

34:                                               ; preds = %13
  store i32 -5, ptr %14, align 4
  store i32 1, ptr %31, align 4
  br label %129

35:                                               ; preds = %13
  %36 = load i64, ptr %21, align 8, !tbaa !11
  %37 = icmp ugt i64 %36, 4294967295
  br i1 %37, label %38, label %39

38:                                               ; preds = %35
  store i32 -7, ptr %14, align 4
  store i32 1, ptr %31, align 4
  br label %129

39:                                               ; preds = %35
  %40 = load i64, ptr %23, align 8, !tbaa !11
  %41 = icmp ugt i64 %40, 4294967295
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  store i32 -3, ptr %14, align 4
  store i32 1, ptr %31, align 4
  br label %129

43:                                               ; preds = %39
  %44 = load i64, ptr %23, align 8, !tbaa !11
  %45 = icmp ult i64 %44, 4
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  store i32 -2, ptr %14, align 4
  store i32 1, ptr %31, align 4
  br label %129

47:                                               ; preds = %43
  %48 = load i64, ptr %23, align 8, !tbaa !11
  %49 = call noalias ptr @malloc(i64 noundef %48) #7
  store ptr %49, ptr %30, align 8, !tbaa !9
  %50 = load ptr, ptr %30, align 8, !tbaa !9
  %51 = icmp ne ptr %50, null
  br i1 %51, label %53, label %52

52:                                               ; preds = %47
  store i32 -22, ptr %14, align 4
  store i32 1, ptr %31, align 4
  br label %129

53:                                               ; preds = %47
  %54 = load ptr, ptr %30, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 0
  store ptr %54, ptr %55, align 8, !tbaa !13
  %56 = load i64, ptr %23, align 8, !tbaa !11
  %57 = trunc i64 %56 to i32
  %58 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 1
  store i32 %57, ptr %58, align 8, !tbaa !15
  %59 = load ptr, ptr %18, align 8, !tbaa !9
  %60 = ptrtoint ptr %59 to i64
  %61 = inttoptr i64 %60 to ptr
  %62 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 2
  store ptr %61, ptr %62, align 8, !tbaa !16
  %63 = load i64, ptr %19, align 8, !tbaa !11
  %64 = trunc i64 %63 to i32
  %65 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 3
  store i32 %64, ptr %65, align 8, !tbaa !17
  %66 = load ptr, ptr %20, align 8, !tbaa !9
  %67 = ptrtoint ptr %66 to i64
  %68 = inttoptr i64 %67 to ptr
  %69 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 4
  store ptr %68, ptr %69, align 8, !tbaa !18
  %70 = load i64, ptr %21, align 8, !tbaa !11
  %71 = trunc i64 %70 to i32
  %72 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 5
  store i32 %71, ptr %72, align 8, !tbaa !19
  %73 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 6
  store ptr null, ptr %73, align 8, !tbaa !20
  %74 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 7
  store i32 0, ptr %74, align 8, !tbaa !21
  %75 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 8
  store ptr null, ptr %75, align 8, !tbaa !22
  %76 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 9
  store i32 0, ptr %76, align 8, !tbaa !23
  %77 = load i32, ptr %15, align 4, !tbaa !5
  %78 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 10
  store i32 %77, ptr %78, align 4, !tbaa !24
  %79 = load i32, ptr %16, align 4, !tbaa !5
  %80 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 11
  store i32 %79, ptr %80, align 8, !tbaa !25
  %81 = load i32, ptr %17, align 4, !tbaa !5
  %82 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 12
  store i32 %81, ptr %82, align 4, !tbaa !26
  %83 = load i32, ptr %17, align 4, !tbaa !5
  %84 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 13
  store i32 %83, ptr %84, align 8, !tbaa !27
  %85 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 15
  store ptr null, ptr %85, align 8, !tbaa !28
  %86 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 16
  store ptr null, ptr %86, align 8, !tbaa !29
  %87 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 17
  store i32 0, ptr %87, align 8, !tbaa !30
  %88 = load i32, ptr %27, align 4, !tbaa !5
  %89 = getelementptr inbounds %struct.Argon2_Context, ptr %28, i32 0, i32 14
  store i32 %88, ptr %89, align 4, !tbaa !31
  %90 = load i32, ptr %26, align 4, !tbaa !5
  %91 = call i32 @argon2_ctx(ptr noundef %28, i32 noundef %90)
  store i32 %91, ptr %29, align 4, !tbaa !5
  %92 = load i32, ptr %29, align 4, !tbaa !5
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %99

94:                                               ; preds = %53
  %95 = load ptr, ptr %30, align 8, !tbaa !9
  %96 = load i64, ptr %23, align 8, !tbaa !11
  call void @clear_internal_memory(ptr noundef %95, i64 noundef %96)
  %97 = load ptr, ptr %30, align 8, !tbaa !9
  call void @free(ptr noundef %97) #6
  %98 = load i32, ptr %29, align 4, !tbaa !5
  store i32 %98, ptr %14, align 4
  store i32 1, ptr %31, align 4
  br label %129

99:                                               ; preds = %53
  %100 = load ptr, ptr %22, align 8, !tbaa !9
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %106

102:                                              ; preds = %99
  %103 = load ptr, ptr %22, align 8, !tbaa !9
  %104 = load ptr, ptr %30, align 8, !tbaa !9
  %105 = load i64, ptr %23, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %103, ptr align 1 %104, i64 %105, i1 false)
  br label %106

106:                                              ; preds = %102, %99
  %107 = load ptr, ptr %24, align 8, !tbaa !9
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %125

109:                                              ; preds = %106
  %110 = load i64, ptr %25, align 8, !tbaa !11
  %111 = icmp ne i64 %110, 0
  br i1 %111, label %112, label %125

112:                                              ; preds = %109
  %113 = load ptr, ptr %24, align 8, !tbaa !9
  %114 = load i64, ptr %25, align 8, !tbaa !11
  %115 = load i32, ptr %26, align 4, !tbaa !5
  %116 = call i32 @encode_string(ptr noundef %113, i64 noundef %114, ptr noundef %28, i32 noundef %115)
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %124

118:                                              ; preds = %112
  %119 = load ptr, ptr %30, align 8, !tbaa !9
  %120 = load i64, ptr %23, align 8, !tbaa !11
  call void @clear_internal_memory(ptr noundef %119, i64 noundef %120)
  %121 = load ptr, ptr %24, align 8, !tbaa !9
  %122 = load i64, ptr %25, align 8, !tbaa !11
  call void @clear_internal_memory(ptr noundef %121, i64 noundef %122)
  %123 = load ptr, ptr %30, align 8, !tbaa !9
  call void @free(ptr noundef %123) #6
  store i32 -31, ptr %14, align 4
  store i32 1, ptr %31, align 4
  br label %129

124:                                              ; preds = %112
  br label %125

125:                                              ; preds = %124, %109, %106
  %126 = load ptr, ptr %30, align 8, !tbaa !9
  %127 = load i64, ptr %23, align 8, !tbaa !11
  call void @clear_internal_memory(ptr noundef %126, i64 noundef %127)
  %128 = load ptr, ptr %30, align 8, !tbaa !9
  call void @free(ptr noundef %128) #6
  store i32 0, ptr %14, align 4
  store i32 1, ptr %31, align 4
  br label %129

129:                                              ; preds = %125, %118, %94, %52, %46, %42, %38, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %28) #6
  %130 = load i32, ptr %14, align 4
  ret i32 %130
}

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

declare void @clear_internal_memory(ptr noundef, i64 noundef) #3

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

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

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

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 = { 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 #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 "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"Argon2_Context", !10, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !6, i64 92, !10, i64 96, !10, i64 104, !6, i64 112}
!15 = !{!14, !6, i64 8}
!16 = !{!14, !10, i64 16}
!17 = !{!14, !6, i64 24}
!18 = !{!14, !10, i64 32}
!19 = !{!14, !6, i64 40}
!20 = !{!14, !10, i64 48}
!21 = !{!14, !6, i64 56}
!22 = !{!14, !10, i64 64}
!23 = !{!14, !6, i64 72}
!24 = !{!14, !6, i64 76}
!25 = !{!14, !6, i64 80}
!26 = !{!14, !6, i64 84}
!27 = !{!14, !6, i64 88}
!28 = !{!14, !10, i64 96}
!29 = !{!14, !10, i64 104}
!30 = !{!14, !6, i64 112}
!31 = !{!14, !6, i64 92}


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

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

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @argon2_hash(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, ptr noundef writeonly %7, i64 noundef %8, ptr noundef %9, i64 noundef %10, i32 noundef %11, i32 noundef %12) local_unnamed_addr #0 {
  %14 = alloca %struct.Argon2_Context, align 8
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %14) #7
  %15 = icmp ugt i64 %4, 4294967295
  br i1 %15, label %54, label %16

16:                                               ; preds = %13
  %17 = icmp ugt i64 %6, 4294967295
  br i1 %17, label %54, label %18

18:                                               ; preds = %16
  %19 = icmp ugt i64 %8, 4294967295
  br i1 %19, label %54, label %20

20:                                               ; preds = %18
  %21 = icmp ult i64 %8, 4
  br i1 %21, label %54, label %22

22:                                               ; preds = %20
  %23 = tail call noalias ptr @malloc(i64 noundef %8) #8
  %.not = icmp eq ptr %23, null
  br i1 %.not, label %54, label %24

24:                                               ; preds = %22
  store ptr %23, ptr %14, align 8, !tbaa !5
  %25 = trunc nuw i64 %8 to i32
  %26 = getelementptr inbounds i8, ptr %14, i64 8
  store i32 %25, ptr %26, align 8, !tbaa !11
  %27 = getelementptr inbounds i8, ptr %14, i64 16
  store ptr %3, ptr %27, align 8, !tbaa !12
  %28 = trunc nuw i64 %4 to i32
  %29 = getelementptr inbounds i8, ptr %14, i64 24
  store i32 %28, ptr %29, align 8, !tbaa !13
  %30 = getelementptr inbounds i8, ptr %14, i64 32
  store ptr %5, ptr %30, align 8, !tbaa !14
  %31 = trunc nuw i64 %6 to i32
  %32 = getelementptr inbounds i8, ptr %14, i64 40
  store i32 %31, ptr %32, align 8, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %14, i64 48
  store ptr null, ptr %33, align 8, !tbaa !16
  %34 = getelementptr inbounds i8, ptr %14, i64 56
  store i32 0, ptr %34, align 8, !tbaa !17
  %35 = getelementptr inbounds i8, ptr %14, i64 64
  store ptr null, ptr %35, align 8, !tbaa !18
  %36 = getelementptr inbounds i8, ptr %14, i64 72
  store i32 0, ptr %36, align 8, !tbaa !19
  %37 = getelementptr inbounds i8, ptr %14, i64 76
  store i32 %0, ptr %37, align 4, !tbaa !20
  %38 = getelementptr inbounds i8, ptr %14, i64 80
  store i32 %1, ptr %38, align 8, !tbaa !21
  %39 = getelementptr inbounds i8, ptr %14, i64 84
  store i32 %2, ptr %39, align 4, !tbaa !22
  %40 = getelementptr inbounds i8, ptr %14, i64 88
  store i32 %2, ptr %40, align 8, !tbaa !23
  %41 = getelementptr inbounds i8, ptr %14, i64 96
  %42 = getelementptr inbounds i8, ptr %14, i64 92
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %41, i8 0, i64 20, i1 false)
  store i32 %12, ptr %42, align 4, !tbaa !24
  %43 = call i32 @argon2_ctx(ptr noundef nonnull %14, i32 noundef %11)
  %.not49 = icmp eq i32 %43, 0
  br i1 %.not49, label %45, label %44

44:                                               ; preds = %24
  call void @clear_internal_memory(ptr noundef nonnull %23, i64 noundef %8) #7
  br label %.sink.split

45:                                               ; preds = %24
  %.not50 = icmp eq ptr %7, null
  br i1 %.not50, label %47, label %46

46:                                               ; preds = %45
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %7, ptr nonnull align 1 %23, i64 %8, i1 false)
  br label %47

47:                                               ; preds = %46, %45
  %48 = icmp ne ptr %9, null
  %49 = icmp ne i64 %10, 0
  %or.cond = and i1 %48, %49
  br i1 %or.cond, label %50, label %53

50:                                               ; preds = %47
  %51 = call i32 @encode_string(ptr noundef nonnull %9, i64 noundef %10, ptr noundef nonnull %14, i32 noundef %11) #7
  %.not51 = icmp eq i32 %51, 0
  br i1 %.not51, label %53, label %52

52:                                               ; preds = %50
  call void @clear_internal_memory(ptr noundef nonnull %23, i64 noundef %8) #7
  call void @clear_internal_memory(ptr noundef nonnull %9, i64 noundef %10) #7
  br label %.sink.split

53:                                               ; preds = %50, %47
  call void @clear_internal_memory(ptr noundef nonnull %23, i64 noundef %8) #7
  br label %.sink.split

.sink.split:                                      ; preds = %44, %52, %53
  %.0.ph = phi i32 [ 0, %53 ], [ -31, %52 ], [ %43, %44 ]
  call void @free(ptr noundef nonnull %23) #7
  br label %54

54:                                               ; preds = %.sink.split, %22, %20, %18, %16, %13
  %.0 = phi i32 [ -5, %13 ], [ -7, %16 ], [ -3, %18 ], [ -2, %20 ], [ -22, %22 ], [ %.0.ph, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %14) #7
  ret i32 %.0
}

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

declare void @clear_internal_memory(ptr noundef, i64 noundef) local_unnamed_addr #3

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

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

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

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

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 = { 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 #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 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { 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, !7, i64 0}
!6 = !{!"Argon2_Context", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !10, i64 56, !7, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !7, i64 96, !7, i64 104, !10, i64 112}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !10, i64 24}
!14 = !{!6, !7, i64 32}
!15 = !{!6, !10, i64 40}
!16 = !{!6, !7, i64 48}
!17 = !{!6, !10, i64 56}
!18 = !{!6, !7, i64 64}
!19 = !{!6, !10, i64 72}
!20 = !{!6, !10, i64 76}
!21 = !{!6, !10, i64 80}
!22 = !{!6, !10, i64 84}
!23 = !{!6, !10, i64 88}
!24 = !{!6, !10, i64 92}


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