; LLVM IR from ARMmbed/mbed-crypto :: programs/pkey (rsa_decrypt)

; 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_rsa_context = type { i32, i64, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, i32, i32 }
%struct.mbedtls_mpi = type { i32, i64, ptr }
%struct.mbedtls_entropy_context = type { i32, %struct.mbedtls_sha512_context, i32, [20 x %struct.mbedtls_entropy_source_state] }
%struct.mbedtls_sha512_context = type { [2 x i64], [8 x i64], [128 x i8], i32 }
%struct.mbedtls_entropy_source_state = type { ptr, ptr, i64, i64, i32 }
%struct.mbedtls_ctr_drbg_context = type { [16 x i8], i32, i32, i64, i32, %struct.mbedtls_aes_context, ptr, ptr }
%struct.mbedtls_aes_context = type { i32, ptr, [68 x i32] }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [44 x i8], align 1
@stdout = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca %struct.mbedtls_rsa_context, align 8
  %12 = alloca %struct.mbedtls_mpi, align 8
  %13 = alloca %struct.mbedtls_mpi, align 8
  %14 = alloca %struct.mbedtls_mpi, align 8
  %15 = alloca %struct.mbedtls_mpi, align 8
  %16 = alloca %struct.mbedtls_mpi, align 8
  %17 = alloca %struct.mbedtls_mpi, align 8
  %18 = alloca %struct.mbedtls_mpi, align 8
  %19 = alloca %struct.mbedtls_mpi, align 8
  %20 = alloca %struct.mbedtls_entropy_context, align 8
  %21 = alloca %struct.mbedtls_ctr_drbg_context, align 8
  %22 = alloca [1024 x i8], align 16
  %23 = alloca [512 x i8], align 16
  %24 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 336, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 1032, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 344, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 512, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  store ptr @.str, ptr %24, align 8, !tbaa !9
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds [1024 x i8], ptr %22, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %26, i8 0, i64 1024, i1 false)
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = icmp ne i32 %27, 1
  br i1 %28, label %29, label %32

29:                                               ; preds = %2
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %31 = load i32, ptr %8, align 4, !tbaa !5
  call void @exit(i32 noundef %31) #7
  unreachable

32:                                               ; preds = %2
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %34 = load ptr, ptr @stdout, align 8, !tbaa !9
  %35 = call i32 @fflush(ptr noundef %34)
  call void @mbedtls_rsa_init(ptr noundef %11, i32 noundef 0, i32 noundef 0)
  call void @mbedtls_ctr_drbg_init(ptr noundef %21)
  call void @mbedtls_entropy_init(ptr noundef %20)
  call void @mbedtls_mpi_init(ptr noundef %12)
  call void @mbedtls_mpi_init(ptr noundef %13)
  call void @mbedtls_mpi_init(ptr noundef %14)
  call void @mbedtls_mpi_init(ptr noundef %15)
  call void @mbedtls_mpi_init(ptr noundef %16)
  call void @mbedtls_mpi_init(ptr noundef %17)
  call void @mbedtls_mpi_init(ptr noundef %18)
  call void @mbedtls_mpi_init(ptr noundef %19)
  %36 = load ptr, ptr %24, align 8, !tbaa !9
  %37 = load ptr, ptr %24, align 8, !tbaa !9
  %38 = call i64 @strlen(ptr noundef %37) #8
  %39 = call i32 @mbedtls_ctr_drbg_seed(ptr noundef %21, ptr noundef @mbedtls_entropy_func, ptr noundef %20, ptr noundef %36, i64 noundef %38)
  store i32 %39, ptr %7, align 4, !tbaa !5
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %45

42:                                               ; preds = %32
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %43)
  br label %150

45:                                               ; preds = %32
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %47 = load ptr, ptr @stdout, align 8, !tbaa !9
  %48 = call i32 @fflush(ptr noundef %47)
  %49 = call noalias ptr @fopen(ptr noundef @.str.5, ptr noundef @.str.6)
  store ptr %49, ptr %6, align 8, !tbaa !9
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %53

51:                                               ; preds = %45
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %150

53:                                               ; preds = %45
  %54 = load ptr, ptr %6, align 8, !tbaa !9
  %55 = call i32 @mbedtls_mpi_read_file(ptr noundef %12, i32 noundef 16, ptr noundef %54)
  store i32 %55, ptr %7, align 4, !tbaa !5
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %85, label %57

57:                                               ; preds = %53
  %58 = load ptr, ptr %6, align 8, !tbaa !9
  %59 = call i32 @mbedtls_mpi_read_file(ptr noundef %16, i32 noundef 16, ptr noundef %58)
  store i32 %59, ptr %7, align 4, !tbaa !5
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %85, label %61

61:                                               ; preds = %57
  %62 = load ptr, ptr %6, align 8, !tbaa !9
  %63 = call i32 @mbedtls_mpi_read_file(ptr noundef %15, i32 noundef 16, ptr noundef %62)
  store i32 %63, ptr %7, align 4, !tbaa !5
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %85, label %65

65:                                               ; preds = %61
  %66 = load ptr, ptr %6, align 8, !tbaa !9
  %67 = call i32 @mbedtls_mpi_read_file(ptr noundef %13, i32 noundef 16, ptr noundef %66)
  store i32 %67, ptr %7, align 4, !tbaa !5
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %85, label %69

69:                                               ; preds = %65
  %70 = load ptr, ptr %6, align 8, !tbaa !9
  %71 = call i32 @mbedtls_mpi_read_file(ptr noundef %14, i32 noundef 16, ptr noundef %70)
  store i32 %71, ptr %7, align 4, !tbaa !5
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %85, label %73

73:                                               ; preds = %69
  %74 = load ptr, ptr %6, align 8, !tbaa !9
  %75 = call i32 @mbedtls_mpi_read_file(ptr noundef %17, i32 noundef 16, ptr noundef %74)
  store i32 %75, ptr %7, align 4, !tbaa !5
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %85, label %77

77:                                               ; preds = %73
  %78 = load ptr, ptr %6, align 8, !tbaa !9
  %79 = call i32 @mbedtls_mpi_read_file(ptr noundef %18, i32 noundef 16, ptr noundef %78)
  store i32 %79, ptr %7, align 4, !tbaa !5
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %85, label %81

81:                                               ; preds = %77
  %82 = load ptr, ptr %6, align 8, !tbaa !9
  %83 = call i32 @mbedtls_mpi_read_file(ptr noundef %19, i32 noundef 16, ptr noundef %82)
  store i32 %83, ptr %7, align 4, !tbaa !5
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %90

85:                                               ; preds = %81, %77, %73, %69, %65, %61, %57, %53
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %86)
  %88 = load ptr, ptr %6, align 8, !tbaa !9
  %89 = call i32 @fclose(ptr noundef %88)
  br label %150

90:                                               ; preds = %81
  %91 = load ptr, ptr %6, align 8, !tbaa !9
  %92 = call i32 @fclose(ptr noundef %91)
  %93 = call i32 @mbedtls_rsa_import(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16)
  store i32 %93, ptr %7, align 4, !tbaa !5
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %98

95:                                               ; preds = %90
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %96)
  br label %150

98:                                               ; preds = %90
  %99 = call i32 @mbedtls_rsa_complete(ptr noundef %11)
  store i32 %99, ptr %7, align 4, !tbaa !5
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %104

101:                                              ; preds = %98
  %102 = load i32, ptr %7, align 4, !tbaa !5
  %103 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %102)
  br label %150

104:                                              ; preds = %98
  %105 = call noalias ptr @fopen(ptr noundef @.str.11, ptr noundef @.str.6)
  store ptr %105, ptr %6, align 8, !tbaa !9
  %106 = icmp eq ptr %105, null
  br i1 %106, label %107, label %109

107:                                              ; preds = %104
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef @.str.11)
  br label %150

109:                                              ; preds = %104
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %110

110:                                              ; preds = %119, %109
  %111 = load ptr, ptr %6, align 8, !tbaa !9
  %112 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %111, ptr noundef @.str.13, ptr noundef %9)
  %113 = icmp sgt i32 %112, 0
  br i1 %113, label %114, label %117

114:                                              ; preds = %110
  %115 = load i64, ptr %10, align 8, !tbaa !11
  %116 = icmp ult i64 %115, 512
  br label %117

117:                                              ; preds = %114, %110
  %118 = phi i1 [ false, %110 ], [ %116, %114 ]
  br i1 %118, label %119, label %125

119:                                              ; preds = %117
  %120 = load i32, ptr %9, align 4, !tbaa !5
  %121 = trunc i32 %120 to i8
  %122 = load i64, ptr %10, align 8, !tbaa !11
  %123 = add i64 %122, 1
  store i64 %123, ptr %10, align 8, !tbaa !11
  %124 = getelementptr inbounds [512 x i8], ptr %23, i64 0, i64 %122
  store i8 %121, ptr %124, align 1, !tbaa !13
  br label %110, !llvm.loop !14

125:                                              ; preds = %117
  %126 = load ptr, ptr %6, align 8, !tbaa !9
  %127 = call i32 @fclose(ptr noundef %126)
  %128 = load i64, ptr %10, align 8, !tbaa !11
  %129 = getelementptr inbounds %struct.mbedtls_rsa_context, ptr %11, i32 0, i32 1
  %130 = load i64, ptr %129, align 8, !tbaa !16
  %131 = icmp ne i64 %128, %130
  br i1 %131, label %132, label %134

132:                                              ; preds = %125
  %133 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %150

134:                                              ; preds = %125
  %135 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %136 = load ptr, ptr @stdout, align 8, !tbaa !9
  %137 = call i32 @fflush(ptr noundef %136)
  %138 = getelementptr inbounds [512 x i8], ptr %23, i64 0, i64 0
  %139 = getelementptr inbounds [1024 x i8], ptr %22, i64 0, i64 0
  %140 = call i32 @mbedtls_rsa_pkcs1_decrypt(ptr noundef %11, ptr noundef @mbedtls_ctr_drbg_random, ptr noundef %21, i32 noundef 1, ptr noundef %10, ptr noundef %138, ptr noundef %139, i64 noundef 1024)
  store i32 %140, ptr %7, align 4, !tbaa !5
  %141 = load i32, ptr %7, align 4, !tbaa !5
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %146

143:                                              ; preds = %134
  %144 = load i32, ptr %7, align 4, !tbaa !5
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %144)
  br label %150

146:                                              ; preds = %134
  %147 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  %148 = getelementptr inbounds [1024 x i8], ptr %22, i64 0, i64 0
  %149 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %148)
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %146, %143, %132, %107, %101, %95, %85, %51, %42
  call void @mbedtls_ctr_drbg_free(ptr noundef %21)
  call void @mbedtls_entropy_free(ptr noundef %20)
  call void @mbedtls_rsa_free(ptr noundef %11)
  call void @mbedtls_mpi_free(ptr noundef %12)
  call void @mbedtls_mpi_free(ptr noundef %13)
  call void @mbedtls_mpi_free(ptr noundef %14)
  call void @mbedtls_mpi_free(ptr noundef %15)
  call void @mbedtls_mpi_free(ptr noundef %16)
  call void @mbedtls_mpi_free(ptr noundef %17)
  call void @mbedtls_mpi_free(ptr noundef %18)
  call void @mbedtls_mpi_free(ptr noundef %19)
  %151 = load i32, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 344, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 1032, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 336, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  ret i32 %151
}

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

declare i32 @fflush(ptr noundef) #3

declare void @mbedtls_rsa_init(ptr noundef, i32 noundef, i32 noundef) #3

declare void @mbedtls_ctr_drbg_init(ptr noundef) #3

declare void @mbedtls_entropy_init(ptr noundef) #3

declare void @mbedtls_mpi_init(ptr noundef) #3

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

declare i32 @mbedtls_mpi_read_file(ptr noundef, i32 noundef, ptr noundef) #3

declare i32 @fclose(ptr noundef) #3

declare i32 @mbedtls_rsa_import(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare i32 @mbedtls_rsa_complete(ptr noundef) #3

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) #3

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

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

declare void @mbedtls_ctr_drbg_free(ptr noundef) #3

declare void @mbedtls_entropy_free(ptr noundef) #3

declare void @mbedtls_rsa_free(ptr noundef) #3

declare void @mbedtls_mpi_free(ptr noundef) #3

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

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { noreturn 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 = { 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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { 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}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !12, i64 8}
!17 = !{!"mbedtls_rsa_context", !6, i64 0, !12, i64 8, !18, i64 16, !18, i64 40, !18, i64 64, !18, i64 88, !18, i64 112, !18, i64 136, !18, i64 160, !18, i64 184, !18, i64 208, !18, i64 232, !18, i64 256, !18, i64 280, !18, i64 304, !6, i64 328, !6, i64 332}
!18 = !{!"mbedtls_mpi", !6, i64 0, !12, i64 8, !10, i64 16}


; 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_rsa_context = type { i32, i64, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, i32, i32 }
%struct.mbedtls_mpi = type { i32, i64, ptr }
%struct.mbedtls_entropy_context = type { i32, %struct.mbedtls_sha512_context, i32, [20 x %struct.mbedtls_entropy_source_state] }
%struct.mbedtls_sha512_context = type { [2 x i64], [8 x i64], [128 x i8], i32 }
%struct.mbedtls_entropy_source_state = type { ptr, ptr, i64, i64, i32 }
%struct.mbedtls_ctr_drbg_context = type { [16 x i8], i32, i32, i64, i32, %struct.mbedtls_aes_context, ptr, ptr }
%struct.mbedtls_aes_context = type { i32, ptr, [68 x i32] }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [44 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca %struct.mbedtls_rsa_context, align 8
  %6 = alloca %struct.mbedtls_mpi, align 8
  %7 = alloca %struct.mbedtls_mpi, align 8
  %8 = alloca %struct.mbedtls_mpi, align 8
  %9 = alloca %struct.mbedtls_mpi, align 8
  %10 = alloca %struct.mbedtls_mpi, align 8
  %11 = alloca %struct.mbedtls_mpi, align 8
  %12 = alloca %struct.mbedtls_mpi, align 8
  %13 = alloca %struct.mbedtls_mpi, align 8
  %14 = alloca %struct.mbedtls_entropy_context, align 8
  %15 = alloca %struct.mbedtls_ctr_drbg_context, align 8
  %16 = alloca [1024 x i8], align 16
  %17 = alloca [512 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 336, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 1032, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 344, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %17) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %16, i8 0, i64 1024, i1 false)
  %.not = icmp eq i32 %0, 1
  br i1 %.not, label %20, label %18

18:                                               ; preds = %2
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  tail call void @exit(i32 noundef 1) #8
  unreachable

20:                                               ; preds = %2
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %22 = load ptr, ptr @stdout, align 8, !tbaa !5
  %23 = tail call i32 @fflush(ptr noundef %22)
  call void @mbedtls_rsa_init(ptr noundef nonnull %5, i32 noundef 0, i32 noundef 0) #7
  call void @mbedtls_ctr_drbg_init(ptr noundef nonnull %15) #7
  call void @mbedtls_entropy_init(ptr noundef nonnull %14) #7
  call void @mbedtls_mpi_init(ptr noundef nonnull %6) #7
  call void @mbedtls_mpi_init(ptr noundef nonnull %7) #7
  call void @mbedtls_mpi_init(ptr noundef nonnull %8) #7
  call void @mbedtls_mpi_init(ptr noundef nonnull %9) #7
  call void @mbedtls_mpi_init(ptr noundef nonnull %10) #7
  call void @mbedtls_mpi_init(ptr noundef nonnull %11) #7
  call void @mbedtls_mpi_init(ptr noundef nonnull %12) #7
  call void @mbedtls_mpi_init(ptr noundef nonnull %13) #7
  %24 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str) #9
  %25 = call i32 @mbedtls_ctr_drbg_seed(ptr noundef nonnull %15, ptr noundef nonnull @mbedtls_entropy_func, ptr noundef nonnull %14, ptr noundef nonnull @.str, i64 noundef %24) #7
  %.not40 = icmp eq i32 %25, 0
  br i1 %.not40, label %28, label %26

26:                                               ; preds = %20
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %25)
  br label %97

28:                                               ; preds = %20
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %30 = load ptr, ptr @stdout, align 8, !tbaa !5
  %31 = call i32 @fflush(ptr noundef %30)
  %32 = call noalias ptr @fopen(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6)
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %36

34:                                               ; preds = %28
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %97

36:                                               ; preds = %28
  %37 = call i32 @mbedtls_mpi_read_file(ptr noundef nonnull %6, i32 noundef 16, ptr noundef nonnull %32) #7
  %.not41 = icmp eq i32 %37, 0
  br i1 %.not41, label %38, label %52

38:                                               ; preds = %36
  %39 = call i32 @mbedtls_mpi_read_file(ptr noundef nonnull %10, i32 noundef 16, ptr noundef nonnull %32) #7
  %.not42 = icmp eq i32 %39, 0
  br i1 %.not42, label %40, label %52

40:                                               ; preds = %38
  %41 = call i32 @mbedtls_mpi_read_file(ptr noundef nonnull %9, i32 noundef 16, ptr noundef nonnull %32) #7
  %.not43 = icmp eq i32 %41, 0
  br i1 %.not43, label %42, label %52

42:                                               ; preds = %40
  %43 = call i32 @mbedtls_mpi_read_file(ptr noundef nonnull %7, i32 noundef 16, ptr noundef nonnull %32) #7
  %.not44 = icmp eq i32 %43, 0
  br i1 %.not44, label %44, label %52

44:                                               ; preds = %42
  %45 = call i32 @mbedtls_mpi_read_file(ptr noundef nonnull %8, i32 noundef 16, ptr noundef nonnull %32) #7
  %.not45 = icmp eq i32 %45, 0
  br i1 %.not45, label %46, label %52

46:                                               ; preds = %44
  %47 = call i32 @mbedtls_mpi_read_file(ptr noundef nonnull %11, i32 noundef 16, ptr noundef nonnull %32) #7
  %.not46 = icmp eq i32 %47, 0
  br i1 %.not46, label %48, label %52

48:                                               ; preds = %46
  %49 = call i32 @mbedtls_mpi_read_file(ptr noundef nonnull %12, i32 noundef 16, ptr noundef nonnull %32) #7
  %.not47 = icmp eq i32 %49, 0
  br i1 %.not47, label %50, label %52

50:                                               ; preds = %48
  %51 = call i32 @mbedtls_mpi_read_file(ptr noundef nonnull %13, i32 noundef 16, ptr noundef nonnull %32) #7
  %.not48 = icmp eq i32 %51, 0
  br i1 %.not48, label %55, label %52

52:                                               ; preds = %50, %48, %46, %44, %42, %40, %38, %36
  %.024 = phi i32 [ %37, %36 ], [ %39, %38 ], [ %41, %40 ], [ %43, %42 ], [ %45, %44 ], [ %47, %46 ], [ %49, %48 ], [ %51, %50 ]
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %.024)
  %54 = call i32 @fclose(ptr noundef nonnull %32)
  br label %97

55:                                               ; preds = %50
  %56 = call i32 @fclose(ptr noundef nonnull %32)
  %57 = call i32 @mbedtls_rsa_import(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10) #7
  %.not49 = icmp eq i32 %57, 0
  br i1 %.not49, label %60, label %58

58:                                               ; preds = %55
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %57)
  br label %97

60:                                               ; preds = %55
  %61 = call i32 @mbedtls_rsa_complete(ptr noundef nonnull %5) #7
  %.not50 = icmp eq i32 %61, 0
  br i1 %.not50, label %64, label %62

62:                                               ; preds = %60
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %61)
  br label %97

64:                                               ; preds = %60
  %65 = call noalias ptr @fopen(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.6)
  %66 = icmp eq ptr %65, null
  br i1 %66, label %67, label %69

67:                                               ; preds = %64
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, ptr noundef nonnull @.str.11)
  br label %97

69:                                               ; preds = %64
  store i64 0, ptr %4, align 8, !tbaa !9
  %70 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %65, ptr noundef nonnull @.str.13, ptr noundef nonnull %3) #7
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %69, %.lr.ph
  %72 = phi i64 [ %75, %.lr.ph ], [ 0, %69 ]
  %73 = load i32, ptr %3, align 4, !tbaa !11
  %74 = trunc i32 %73 to i8
  %75 = add nuw nsw i64 %72, 1
  store i64 %75, ptr %4, align 8, !tbaa !9
  %76 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 %72
  store i8 %74, ptr %76, align 1, !tbaa !13
  %77 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %65, ptr noundef nonnull @.str.13, ptr noundef nonnull %3) #7
  %78 = icmp sgt i32 %77, 0
  %79 = icmp ult i64 %72, 511
  %80 = and i1 %78, %79
  br i1 %80, label %.lr.ph, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph, %69
  %81 = phi i64 [ 0, %69 ], [ %75, %.lr.ph ]
  %82 = call i32 @fclose(ptr noundef nonnull %65)
  %83 = getelementptr inbounds i8, ptr %5, i64 8
  %84 = load i64, ptr %83, align 8, !tbaa !16
  %.not51 = icmp eq i64 %81, %84
  br i1 %.not51, label %87, label %85

85:                                               ; preds = %._crit_edge
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  br label %97

87:                                               ; preds = %._crit_edge
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %89 = load ptr, ptr @stdout, align 8, !tbaa !5
  %90 = call i32 @fflush(ptr noundef %89)
  %91 = call i32 @mbedtls_rsa_pkcs1_decrypt(ptr noundef nonnull %5, ptr noundef nonnull @mbedtls_ctr_drbg_random, ptr noundef nonnull %15, i32 noundef 1, ptr noundef nonnull %4, ptr noundef nonnull %17, ptr noundef nonnull %16, i64 noundef 1024) #7
  %.not52 = icmp eq i32 %91, 0
  br i1 %.not52, label %94, label %92

92:                                               ; preds = %87
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %91)
  br label %97

94:                                               ; preds = %87
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, ptr noundef nonnull %16)
  br label %97

97:                                               ; preds = %94, %92, %85, %67, %62, %58, %52, %34, %26
  %.0 = phi i32 [ 1, %26 ], [ 1, %34 ], [ 1, %52 ], [ 1, %58 ], [ 1, %62 ], [ 1, %67 ], [ 1, %85 ], [ 1, %92 ], [ 0, %94 ]
  call void @mbedtls_ctr_drbg_free(ptr noundef nonnull %15) #7
  call void @mbedtls_entropy_free(ptr noundef nonnull %14) #7
  call void @mbedtls_rsa_free(ptr noundef nonnull %5) #7
  call void @mbedtls_mpi_free(ptr noundef nonnull %6) #7
  call void @mbedtls_mpi_free(ptr noundef nonnull %7) #7
  call void @mbedtls_mpi_free(ptr noundef nonnull %8) #7
  call void @mbedtls_mpi_free(ptr noundef nonnull %9) #7
  call void @mbedtls_mpi_free(ptr noundef nonnull %10) #7
  call void @mbedtls_mpi_free(ptr noundef nonnull %11) #7
  call void @mbedtls_mpi_free(ptr noundef nonnull %12) #7
  call void @mbedtls_mpi_free(ptr noundef nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 344, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 1032, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 336, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  ret i32 %.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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #3

declare void @mbedtls_rsa_init(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @mbedtls_ctr_drbg_init(ptr noundef) local_unnamed_addr #5

declare void @mbedtls_entropy_init(ptr noundef) local_unnamed_addr #5

declare void @mbedtls_mpi_init(ptr noundef) local_unnamed_addr #5

declare i32 @mbedtls_ctr_drbg_seed(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #5

declare i32 @mbedtls_entropy_func(ptr noundef, ptr noundef, i64 noundef) #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

declare i32 @mbedtls_mpi_read_file(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

declare i32 @mbedtls_rsa_import(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

declare i32 @mbedtls_rsa_complete(ptr noundef) local_unnamed_addr #5

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) local_unnamed_addr #5

declare i32 @mbedtls_rsa_pkcs1_decrypt(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #5

declare i32 @mbedtls_ctr_drbg_random(ptr noundef, ptr noundef, i64 noundef) #5

declare void @mbedtls_ctr_drbg_free(ptr noundef) local_unnamed_addr #5

declare void @mbedtls_entropy_free(ptr noundef) local_unnamed_addr #5

declare void @mbedtls_rsa_free(ptr noundef) local_unnamed_addr #5

declare void @mbedtls_mpi_free(ptr noundef) local_unnamed_addr #5

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

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 nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { noreturn 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 = { "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 = { 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 8}
!17 = !{!"mbedtls_rsa_context", !12, i64 0, !10, i64 8, !18, i64 16, !18, i64 40, !18, i64 64, !18, i64 88, !18, i64 112, !18, i64 136, !18, i64 160, !18, i64 184, !18, i64 208, !18, i64 232, !18, i64 256, !18, i64 280, !18, i64 304, !12, i64 328, !12, i64 332}
!18 = !{!"mbedtls_mpi", !12, i64 0, !10, i64 8, !6, i64 16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass