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

; 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.mbedtls_hmac_drbg_context = type { %struct.mbedtls_md_context_t, [64 x i8], i32, i64, i32, i32, ptr, ptr }
%struct.mbedtls_md_context_t = type { ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@test_offset = external hidden global i64, align 8
@entropy_pr = external hidden constant [56 x i8], align 16
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@result_pr = external hidden constant [80 x i8], align 16
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@entropy_nopr = external hidden constant [40 x i8], align 16
@result_nopr = external hidden constant [80 x i8], align 16
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @mbedtls_hmac_drbg_init(ptr 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
declare dso_local i32 @mbedtls_hmac_drbg_reseed(ptr noundef, ptr noundef, i64 noundef) #0

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @mbedtls_hmac_drbg_free(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_hmac_drbg_self_test(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %struct.mbedtls_hmac_drbg_context, align 8
  %5 = alloca [80 x i8], align 16
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %8 = call ptr @mbedtls_md_info_from_type(i32 noundef 4)
  store ptr %8, ptr %6, align 8, !tbaa !9
  call void @mbedtls_hmac_drbg_init(ptr noundef %4)
  %9 = load i32, ptr %3, align 4, !tbaa !5
  %10 = icmp ne i32 %9, 0
  br i1 %10, label %11, label %13

11:                                               ; preds = %1
  %12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %13

13:                                               ; preds = %11, %1
  store i64 0, ptr @test_offset, align 8, !tbaa !11
  %14 = load ptr, ptr %6, align 8, !tbaa !9
  %15 = call i32 @mbedtls_hmac_drbg_seed(ptr noundef %4, ptr noundef %14, ptr noundef @hmac_drbg_self_test_entropy, ptr noundef @entropy_pr, ptr noundef null, i64 noundef 0)
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %17, label %23

17:                                               ; preds = %13
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %22

20:                                               ; preds = %17
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %22

22:                                               ; preds = %20, %17
  store i32 1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %123

23:                                               ; preds = %13
  call void @mbedtls_hmac_drbg_set_prediction_resistance(ptr noundef %4, i32 noundef 1)
  %24 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
  %25 = call i32 @mbedtls_hmac_drbg_random(ptr noundef %4, ptr noundef %24, i64 noundef 80)
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %33

27:                                               ; preds = %23
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %32

30:                                               ; preds = %27
  %31 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %32

32:                                               ; preds = %30, %27
  store i32 1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %123

33:                                               ; preds = %23
  %34 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
  %35 = call i32 @mbedtls_hmac_drbg_random(ptr noundef %4, ptr noundef %34, i64 noundef 80)
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %43

37:                                               ; preds = %33
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %42

40:                                               ; preds = %37
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %42

42:                                               ; preds = %40, %37
  store i32 1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %123

43:                                               ; preds = %33
  %44 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
  %45 = call i32 @memcmp(ptr noundef %44, ptr noundef @result_pr, i64 noundef 80) #5
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %53

47:                                               ; preds = %43
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %52

50:                                               ; preds = %47
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %52

52:                                               ; preds = %50, %47
  store i32 1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %123

53:                                               ; preds = %43
  call void @mbedtls_hmac_drbg_free(ptr noundef %4)
  call void @mbedtls_hmac_drbg_free(ptr noundef %4)
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %58

56:                                               ; preds = %53
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %58

58:                                               ; preds = %56, %53
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %63

61:                                               ; preds = %58
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %63

63:                                               ; preds = %61, %58
  call void @mbedtls_hmac_drbg_init(ptr noundef %4)
  store i64 0, ptr @test_offset, align 8, !tbaa !11
  %64 = load ptr, ptr %6, align 8, !tbaa !9
  %65 = call i32 @mbedtls_hmac_drbg_seed(ptr noundef %4, ptr noundef %64, ptr noundef @hmac_drbg_self_test_entropy, ptr noundef @entropy_nopr, ptr noundef null, i64 noundef 0)
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %73

67:                                               ; preds = %63
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %67
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %72

72:                                               ; preds = %70, %67
  store i32 1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %123

73:                                               ; preds = %63
  %74 = call i32 @mbedtls_hmac_drbg_reseed(ptr noundef %4, ptr noundef null, i64 noundef 0)
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %82

76:                                               ; preds = %73
  %77 = load i32, ptr %3, align 4, !tbaa !5
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %81

79:                                               ; preds = %76
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %81

81:                                               ; preds = %79, %76
  store i32 1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %123

82:                                               ; preds = %73
  %83 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
  %84 = call i32 @mbedtls_hmac_drbg_random(ptr noundef %4, ptr noundef %83, i64 noundef 80)
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %92

86:                                               ; preds = %82
  %87 = load i32, ptr %3, align 4, !tbaa !5
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %91

89:                                               ; preds = %86
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %91

91:                                               ; preds = %89, %86
  store i32 1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %123

92:                                               ; preds = %82
  %93 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
  %94 = call i32 @mbedtls_hmac_drbg_random(ptr noundef %4, ptr noundef %93, i64 noundef 80)
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %102

96:                                               ; preds = %92
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %101

99:                                               ; preds = %96
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %101

101:                                              ; preds = %99, %96
  store i32 1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %123

102:                                              ; preds = %92
  %103 = getelementptr inbounds [80 x i8], ptr %5, i64 0, i64 0
  %104 = call i32 @memcmp(ptr noundef %103, ptr noundef @result_nopr, i64 noundef 80) #5
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %112

106:                                              ; preds = %102
  %107 = load i32, ptr %3, align 4, !tbaa !5
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %111

109:                                              ; preds = %106
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %111

111:                                              ; preds = %109, %106
  store i32 1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %123

112:                                              ; preds = %102
  call void @mbedtls_hmac_drbg_free(ptr noundef %4)
  call void @mbedtls_hmac_drbg_free(ptr noundef %4)
  %113 = load i32, ptr %3, align 4, !tbaa !5
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %117

115:                                              ; preds = %112
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %117

117:                                              ; preds = %115, %112
  %118 = load i32, ptr %3, align 4, !tbaa !5
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %122

120:                                              ; preds = %117
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %122

122:                                              ; preds = %120, %117
  store i32 0, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %123

123:                                              ; preds = %122, %111, %101, %91, %81, %72, %52, %42, %32, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr %4) #4
  %124 = load i32, ptr %2, align 4
  ret i32 %124
}

declare ptr @mbedtls_md_info_from_type(i32 noundef) #2

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 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 = { "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 = { 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 #4 = { nounwind }
attributes #5 = { 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 = !{!"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}


; 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.mbedtls_hmac_drbg_context = type { %struct.mbedtls_md_context_t, [64 x i8], i32, i64, i32, i32, ptr, ptr }
%struct.mbedtls_md_context_t = type { ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@test_offset = external hidden local_unnamed_addr global i64, align 8
@entropy_pr = external hidden constant [56 x i8], align 16
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@result_pr = external hidden constant [80 x i8], align 16
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@entropy_nopr = external hidden constant [40 x i8], align 16
@result_nopr = external hidden constant [80 x i8], align 16
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @mbedtls_hmac_drbg_init(ptr 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
declare dso_local i32 @mbedtls_hmac_drbg_reseed(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @mbedtls_hmac_drbg_self_test(i32 noundef %0) local_unnamed_addr #0 {
  %2 = alloca %struct.mbedtls_hmac_drbg_context, align 8
  %3 = alloca [80 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #5
  %4 = tail call ptr @mbedtls_md_info_from_type(i32 noundef 4) #5
  call void @mbedtls_hmac_drbg_init(ptr noundef nonnull %2)
  %.not = icmp eq i32 %0, 0
  br i1 %.not, label %5, label %.thread

5:                                                ; preds = %1
  store i64 0, ptr @test_offset, align 8, !tbaa !5
  %6 = call i32 @mbedtls_hmac_drbg_seed(ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull @hmac_drbg_self_test_entropy, ptr noundef nonnull @entropy_pr, ptr noundef null, i64 noundef 0)
  %.not16 = icmp eq i32 %6, 0
  br i1 %.not16, label %9, label %.critedge27

.thread:                                          ; preds = %1
  %7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  store i64 0, ptr @test_offset, align 8, !tbaa !5
  %8 = call i32 @mbedtls_hmac_drbg_seed(ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull @hmac_drbg_self_test_entropy, ptr noundef nonnull @entropy_pr, ptr noundef null, i64 noundef 0)
  %.not1628 = icmp eq i32 %8, 0
  br i1 %.not1628, label %9, label %.critedge27.sink.split

9:                                                ; preds = %.thread, %5
  call void @mbedtls_hmac_drbg_set_prediction_resistance(ptr noundef nonnull %2, i32 noundef 1)
  %10 = call i32 @mbedtls_hmac_drbg_random(ptr noundef nonnull %2, ptr noundef nonnull %3, i64 noundef 80)
  %.not17 = icmp eq i32 %10, 0
  br i1 %.not17, label %12, label %11

11:                                               ; preds = %9
  br i1 %.not, label %.critedge27, label %.critedge27.sink.split

12:                                               ; preds = %9
  %13 = call i32 @mbedtls_hmac_drbg_random(ptr noundef nonnull %2, ptr noundef nonnull %3, i64 noundef 80)
  %.not18 = icmp eq i32 %13, 0
  br i1 %.not18, label %15, label %14

14:                                               ; preds = %12
  br i1 %.not, label %.critedge27, label %.critedge27.sink.split

15:                                               ; preds = %12
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(80) %3, ptr noundef nonnull dereferenceable(80) @result_pr, i64 80)
  %.not19 = icmp eq i32 %bcmp, 0
  br i1 %.not19, label %17, label %16

16:                                               ; preds = %15
  br i1 %.not, label %.critedge27, label %.critedge27.sink.split

17:                                               ; preds = %15
  call void @mbedtls_hmac_drbg_free(ptr noundef nonnull %2)
  call void @mbedtls_hmac_drbg_free(ptr noundef nonnull %2)
  br i1 %.not, label %.critedge, label %18

18:                                               ; preds = %17
  %19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %.critedge

.critedge:                                        ; preds = %17, %18
  call void @mbedtls_hmac_drbg_init(ptr noundef nonnull %2)
  store i64 0, ptr @test_offset, align 8, !tbaa !5
  %21 = call i32 @mbedtls_hmac_drbg_seed(ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull @hmac_drbg_self_test_entropy, ptr noundef nonnull @entropy_nopr, ptr noundef null, i64 noundef 0)
  %.not20 = icmp eq i32 %21, 0
  br i1 %.not20, label %23, label %22

22:                                               ; preds = %.critedge
  br i1 %.not, label %.critedge27, label %.critedge27.sink.split

23:                                               ; preds = %.critedge
  %24 = call i32 @mbedtls_hmac_drbg_reseed(ptr noundef nonnull %2, ptr noundef null, i64 noundef 0)
  %.not21 = icmp eq i32 %24, 0
  br i1 %.not21, label %26, label %25

25:                                               ; preds = %23
  br i1 %.not, label %.critedge27, label %.critedge27.sink.split

26:                                               ; preds = %23
  %27 = call i32 @mbedtls_hmac_drbg_random(ptr noundef nonnull %2, ptr noundef nonnull %3, i64 noundef 80)
  %.not22 = icmp eq i32 %27, 0
  br i1 %.not22, label %29, label %28

28:                                               ; preds = %26
  br i1 %.not, label %.critedge27, label %.critedge27.sink.split

29:                                               ; preds = %26
  %30 = call i32 @mbedtls_hmac_drbg_random(ptr noundef nonnull %2, ptr noundef nonnull %3, i64 noundef 80)
  %.not23 = icmp eq i32 %30, 0
  br i1 %.not23, label %32, label %31

31:                                               ; preds = %29
  br i1 %.not, label %.critedge27, label %.critedge27.sink.split

32:                                               ; preds = %29
  %bcmp24 = call i32 @bcmp(ptr noundef nonnull dereferenceable(80) %3, ptr noundef nonnull dereferenceable(80) @result_nopr, i64 80)
  %.not25 = icmp eq i32 %bcmp24, 0
  br i1 %.not25, label %34, label %33

33:                                               ; preds = %32
  br i1 %.not, label %.critedge27, label %.critedge27.sink.split

34:                                               ; preds = %32
  call void @mbedtls_hmac_drbg_free(ptr noundef nonnull %2)
  call void @mbedtls_hmac_drbg_free(ptr noundef nonnull %2)
  br i1 %.not, label %.critedge27, label %35

35:                                               ; preds = %34
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %.critedge27.sink.split

.critedge27.sink.split:                           ; preds = %33, %31, %28, %25, %22, %16, %14, %11, %.thread, %35
  %.str.6.sink = phi ptr [ @.str.6, %35 ], [ @.str.3, %.thread ], [ @.str.3, %11 ], [ @.str.3, %14 ], [ @.str.3, %16 ], [ @.str.3, %22 ], [ @.str.3, %25 ], [ @.str.3, %28 ], [ @.str.3, %31 ], [ @.str.3, %33 ]
  %.0.ph = phi i32 [ 0, %35 ], [ 1, %.thread ], [ 1, %11 ], [ 1, %14 ], [ 1, %16 ], [ 1, %22 ], [ 1, %25 ], [ 1, %28 ], [ 1, %31 ], [ 1, %33 ]
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink)
  br label %.critedge27

.critedge27:                                      ; preds = %.critedge27.sink.split, %5, %34, %33, %31, %28, %25, %22, %16, %14, %11
  %.0 = phi i32 [ 1, %11 ], [ 1, %14 ], [ 1, %16 ], [ 1, %22 ], [ 1, %25 ], [ 1, %28 ], [ 1, %31 ], [ 1, %33 ], [ 0, %34 ], [ 1, %5 ], [ %.0.ph, %.critedge27.sink.split ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %2) #5
  ret i32 %.0
}

declare ptr @mbedtls_md_info_from_type(i32 noundef) local_unnamed_addr #2

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

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

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

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 = { "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 = { 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 #4 = { nofree nounwind willreturn memory(argmem: read) }
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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


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