; LLVM IR from aws/s2n-tls :: crypto (s2n_dhe)

; 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.s2n_debug_info = type { ptr, ptr }
%struct.s2n_result = type { i32 }
%struct.s2n_dh_params = type { ptr }

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.4 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [87 x i8], align 1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #1

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strrchr(ptr noundef, i32 noundef) #2

declare i32 @s2n_calculate_stacktrace() #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @s2n_result_is_ok(i32) #4

declare i32 @s2n_blob_validate(ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #5

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_dh_p_g_Ys_to_dh_params(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.s2n_result, align 4
  %11 = alloca %struct.s2n_result, align 4
  %12 = alloca %struct.s2n_result, align 4
  %13 = alloca %struct.s2n_result, align 4
  %14 = alloca %struct.s2n_result, align 4
  %15 = alloca %struct.s2n_result, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %4
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %50, label %19

19:                                               ; preds = %16
  br label %20

20:                                               ; preds = %19
  br label %21

21:                                               ; preds = %20
  %22 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %23 = getelementptr inbounds %struct.s2n_debug_info, ptr %22, i32 0, i32 0
  store ptr @.str.4, ptr %23, align 8, !tbaa !9
  %24 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %25 = getelementptr inbounds %struct.s2n_debug_info, ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds i8, ptr %26, i64 21
  %28 = call ptr @strrchr(ptr noundef %27, i32 noundef 47) #6
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %37

30:                                               ; preds = %21
  %31 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %32 = getelementptr inbounds %struct.s2n_debug_info, ptr %31, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %33, i64 21
  %35 = call ptr @strrchr(ptr noundef %34, i32 noundef 47) #6
  %36 = getelementptr inbounds i8, ptr %35, i64 1
  br label %42

37:                                               ; preds = %21
  %38 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %39 = getelementptr inbounds %struct.s2n_debug_info, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %40, i64 21
  br label %42

42:                                               ; preds = %37, %30
  %43 = phi ptr [ %36, %30 ], [ %41, %37 ]
  %44 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %45 = getelementptr inbounds %struct.s2n_debug_info, ptr %44, i32 0, i32 1
  store ptr %43, ptr %45, align 8, !tbaa !11
  %46 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %46, align 4, !tbaa !12
  %47 = call i32 @s2n_calculate_stacktrace()
  br label %48

48:                                               ; preds = %42
  store i32 -1, ptr %5, align 4
  br label %182

49:                                               ; No predecessors!
  br label %50

50:                                               ; preds = %49, %16
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = call i32 @s2n_blob_validate(ptr noundef %53)
  %55 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  store i32 %54, ptr %55, align 4
  %56 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  %57 = load i32, ptr %56, align 4
  %58 = call zeroext i1 @s2n_result_is_ok(i32 %57)
  %59 = xor i1 %58, true
  %60 = xor i1 %59, true
  %61 = zext i1 %60 to i32
  %62 = sext i32 %61 to i64
  %63 = call i64 @llvm.expect.i64(i64 %62, i64 1)
  %64 = icmp ne i64 %63, 0
  br i1 %64, label %65, label %67

65:                                               ; preds = %52
  %66 = getelementptr inbounds %struct.s2n_result, ptr %10, i32 0, i32 0
  store i32 0, ptr %66, align 4, !tbaa !14
  br label %69

67:                                               ; preds = %52
  %68 = getelementptr inbounds %struct.s2n_result, ptr %10, i32 0, i32 0
  store i32 -1, ptr %68, align 4, !tbaa !14
  br label %69

69:                                               ; preds = %67, %65
  %70 = getelementptr inbounds %struct.s2n_result, ptr %10, i32 0, i32 0
  %71 = load i32, ptr %70, align 4
  %72 = call zeroext i1 @s2n_result_is_ok(i32 %71)
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  store i32 -1, ptr %5, align 4
  br label %182

74:                                               ; preds = %69
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = call i32 @s2n_blob_validate(ptr noundef %77)
  %79 = getelementptr inbounds %struct.s2n_result, ptr %13, i32 0, i32 0
  store i32 %78, ptr %79, align 4
  %80 = getelementptr inbounds %struct.s2n_result, ptr %13, i32 0, i32 0
  %81 = load i32, ptr %80, align 4
  %82 = call zeroext i1 @s2n_result_is_ok(i32 %81)
  %83 = xor i1 %82, true
  %84 = xor i1 %83, true
  %85 = zext i1 %84 to i32
  %86 = sext i32 %85 to i64
  %87 = call i64 @llvm.expect.i64(i64 %86, i64 1)
  %88 = icmp ne i64 %87, 0
  br i1 %88, label %89, label %91

89:                                               ; preds = %76
  %90 = getelementptr inbounds %struct.s2n_result, ptr %12, i32 0, i32 0
  store i32 0, ptr %90, align 4, !tbaa !14
  br label %93

91:                                               ; preds = %76
  %92 = getelementptr inbounds %struct.s2n_result, ptr %12, i32 0, i32 0
  store i32 -1, ptr %92, align 4, !tbaa !14
  br label %93

93:                                               ; preds = %91, %89
  %94 = getelementptr inbounds %struct.s2n_result, ptr %12, i32 0, i32 0
  %95 = load i32, ptr %94, align 4
  %96 = call zeroext i1 @s2n_result_is_ok(i32 %95)
  br i1 %96, label %98, label %97

97:                                               ; preds = %93
  store i32 -1, ptr %5, align 4
  br label %182

98:                                               ; preds = %93
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = call i32 @s2n_blob_validate(ptr noundef %101)
  %103 = getelementptr inbounds %struct.s2n_result, ptr %15, i32 0, i32 0
  store i32 %102, ptr %103, align 4
  %104 = getelementptr inbounds %struct.s2n_result, ptr %15, i32 0, i32 0
  %105 = load i32, ptr %104, align 4
  %106 = call zeroext i1 @s2n_result_is_ok(i32 %105)
  %107 = xor i1 %106, true
  %108 = xor i1 %107, true
  %109 = zext i1 %108 to i32
  %110 = sext i32 %109 to i64
  %111 = call i64 @llvm.expect.i64(i64 %110, i64 1)
  %112 = icmp ne i64 %111, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %100
  %114 = getelementptr inbounds %struct.s2n_result, ptr %14, i32 0, i32 0
  store i32 0, ptr %114, align 4, !tbaa !14
  br label %117

115:                                              ; preds = %100
  %116 = getelementptr inbounds %struct.s2n_result, ptr %14, i32 0, i32 0
  store i32 -1, ptr %116, align 4, !tbaa !14
  br label %117

117:                                              ; preds = %115, %113
  %118 = getelementptr inbounds %struct.s2n_result, ptr %14, i32 0, i32 0
  %119 = load i32, ptr %118, align 4
  %120 = call zeroext i1 @s2n_result_is_ok(i32 %119)
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  store i32 -1, ptr %5, align 4
  br label %182

122:                                              ; preds = %117
  br label %123

123:                                              ; preds = %122
  %124 = call ptr @DH_new()
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.s2n_dh_params, ptr %125, i32 0, i32 0
  store ptr %124, ptr %126, align 8, !tbaa !16
  br label %127

127:                                              ; preds = %123
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.s2n_dh_params, ptr %128, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !16
  %131 = icmp ne ptr %130, null
  br i1 %131, label %163, label %132

132:                                              ; preds = %127
  br label %133

133:                                              ; preds = %132
  br label %134

134:                                              ; preds = %133
  %135 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %136 = getelementptr inbounds %struct.s2n_debug_info, ptr %135, i32 0, i32 0
  store ptr @.str.5, ptr %136, align 8, !tbaa !9
  %137 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %138 = getelementptr inbounds %struct.s2n_debug_info, ptr %137, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8, !tbaa !9
  %140 = getelementptr inbounds i8, ptr %139, i64 21
  %141 = call ptr @strrchr(ptr noundef %140, i32 noundef 47) #6
  %142 = icmp ne ptr %141, null
  br i1 %142, label %143, label %150

143:                                              ; preds = %134
  %144 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %145 = getelementptr inbounds %struct.s2n_debug_info, ptr %144, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !9
  %147 = getelementptr inbounds i8, ptr %146, i64 21
  %148 = call ptr @strrchr(ptr noundef %147, i32 noundef 47) #6
  %149 = getelementptr inbounds i8, ptr %148, i64 1
  br label %155

150:                                              ; preds = %134
  %151 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %152 = getelementptr inbounds %struct.s2n_debug_info, ptr %151, i32 0, i32 0
  %153 = load ptr, ptr %152, align 8, !tbaa !9
  %154 = getelementptr inbounds i8, ptr %153, i64 21
  br label %155

155:                                              ; preds = %150, %143
  %156 = phi ptr [ %149, %143 ], [ %154, %150 ]
  %157 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %158 = getelementptr inbounds %struct.s2n_debug_info, ptr %157, i32 0, i32 1
  store ptr %156, ptr %158, align 8, !tbaa !11
  %159 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762058, ptr %159, align 4, !tbaa !12
  %160 = call i32 @s2n_calculate_stacktrace()
  br label %161

161:                                              ; preds = %155
  store i32 -1, ptr %5, align 4
  br label %182

162:                                              ; No predecessors!
  br label %163

163:                                              ; preds = %162, %127
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = call i32 @s2n_set_p_g_Ys_dh_params(ptr noundef %166, ptr noundef %167, ptr noundef %168, ptr noundef %169)
  %171 = icmp sgt i32 %170, -1
  br i1 %171, label %173, label %172

172:                                              ; preds = %165
  store i32 -1, ptr %5, align 4
  br label %182

173:                                              ; preds = %165
  br label %174

174:                                              ; preds = %173
  br label %175

175:                                              ; preds = %174
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = call i32 @s2n_check_all_dh_params(ptr noundef %176)
  %178 = icmp sgt i32 %177, -1
  br i1 %178, label %180, label %179

179:                                              ; preds = %175
  store i32 -1, ptr %5, align 4
  br label %182

180:                                              ; preds = %175
  br label %181

181:                                              ; preds = %180
  store i32 0, ptr %5, align 4
  br label %182

182:                                              ; preds = %181, %179, %172, %161, %121, %97, %73, %48
  %183 = load i32, ptr %5, align 4
  ret i32 %183
}

declare ptr @DH_new() #3

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

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 speculatable willreturn memory(none) }
attributes #2 = { 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 #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 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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #6 = { 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, !6, i64 0}
!10 = !{!"s2n_debug_info", !6, i64 0, !6, i64 8}
!11 = !{!10, !6, i64 8}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"", !13, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"s2n_dh_params", !6, 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"

%struct.s2n_debug_info = type { ptr, ptr }

@_s2n_debug_info = external thread_local local_unnamed_addr global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [87 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strrchr(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @s2n_result_is_ok(i32) local_unnamed_addr #4

declare i32 @s2n_blob_validate(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_dh_p_g_Ys_to_dh_params(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %5, label %13

5:                                                ; preds = %4
  %6 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.4, ptr %6, align 8, !tbaa !5
  %7 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.4, i64 21), i32 noundef 47) #5
  %.not19 = icmp eq ptr %7, null
  %8 = getelementptr inbounds i8, ptr %7, i64 1
  %9 = select i1 %.not19, ptr getelementptr inbounds (i8, ptr @.str.4, i64 21), ptr %8
  %10 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %9, ptr %10, align 8, !tbaa !10
  %11 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %11, align 4, !tbaa !11
  %12 = tail call i32 @s2n_calculate_stacktrace() #6
  br label %40

13:                                               ; preds = %4
  %14 = tail call i32 @s2n_blob_validate(ptr noundef %1) #6
  %15 = tail call zeroext i1 @s2n_result_is_ok(i32 %14)
  %not. = xor i1 %15, true
  %. = sext i1 %not. to i32
  %16 = tail call zeroext i1 @s2n_result_is_ok(i32 %.)
  br i1 %16, label %17, label %40

17:                                               ; preds = %13
  %18 = tail call i32 @s2n_blob_validate(ptr noundef %2) #6
  %19 = tail call zeroext i1 @s2n_result_is_ok(i32 %18)
  %not.25 = xor i1 %19, true
  %.22 = sext i1 %not.25 to i32
  %20 = tail call zeroext i1 @s2n_result_is_ok(i32 %.22)
  br i1 %20, label %21, label %40

21:                                               ; preds = %17
  %22 = tail call i32 @s2n_blob_validate(ptr noundef %3) #6
  %23 = tail call zeroext i1 @s2n_result_is_ok(i32 %22)
  %not.26 = xor i1 %23, true
  %.23 = sext i1 %not.26 to i32
  %24 = tail call zeroext i1 @s2n_result_is_ok(i32 %.23)
  br i1 %24, label %25, label %40

25:                                               ; preds = %21
  %26 = tail call ptr @DH_new() #6
  store ptr %26, ptr %0, align 8, !tbaa !13
  %.not20 = icmp eq ptr %26, null
  br i1 %.not20, label %27, label %35

27:                                               ; preds = %25
  %28 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.5, ptr %28, align 8, !tbaa !5
  %29 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.5, i64 21), i32 noundef 47) #5
  %.not21 = icmp eq ptr %29, null
  %30 = getelementptr inbounds i8, ptr %29, i64 1
  %31 = select i1 %.not21, ptr getelementptr inbounds (i8, ptr @.str.5, i64 21), ptr %30
  %32 = getelementptr inbounds i8, ptr %28, i64 8
  store ptr %31, ptr %32, align 8, !tbaa !10
  %33 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 469762058, ptr %33, align 4, !tbaa !11
  %34 = tail call i32 @s2n_calculate_stacktrace() #6
  br label %40

35:                                               ; preds = %25
  %36 = tail call i32 @s2n_set_p_g_Ys_dh_params(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef %3)
  %37 = icmp sgt i32 %36, -1
  br i1 %37, label %38, label %40

38:                                               ; preds = %35
  %39 = tail call i32 @s2n_check_all_dh_params(ptr noundef nonnull %0)
  %.lobit = ashr i32 %39, 31
  br label %40

40:                                               ; preds = %38, %35, %21, %17, %13, %27, %5
  %.0 = phi i32 [ -1, %27 ], [ -1, %5 ], [ -1, %13 ], [ -1, %17 ], [ -1, %21 ], [ -1, %35 ], [ %.lobit, %38 ]
  ret i32 %.0
}

declare ptr @DH_new() local_unnamed_addr #3

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

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 speculatable willreturn memory(none) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: 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 #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 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 willreturn memory(read) }
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, !7, i64 0}
!6 = !{!"s2n_debug_info", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"s2n_dh_params", !7, i64 0}


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