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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_mpi_mul_mpi(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %struct.mbedtls_mpi, align 8
  %11 = alloca %struct.mbedtls_mpi, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  store i32 -110, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #2
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #2
  br label %12

12:                                               ; preds = %3
  br label %13

13:                                               ; preds = %12
  br label %14

14:                                               ; preds = %13
  br label %15

15:                                               ; preds = %14
  br label %16

16:                                               ; preds = %15
  br label %17

17:                                               ; preds = %16
  br label %18

18:                                               ; preds = %17
  br label %19

19:                                               ; preds = %18
  br label %20

20:                                               ; preds = %19
  call void @mbedtls_mpi_init(ptr noundef %10)
  call void @mbedtls_mpi_init(ptr noundef %11)
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = icmp eq ptr %21, %22
  br i1 %23, label %24, label %33

24:                                               ; preds = %20
  br label %25

25:                                               ; preds = %24
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call i32 @mbedtls_mpi_copy(ptr noundef %10, ptr noundef %26)
  store i32 %27, ptr %7, align 4, !tbaa !9
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  br label %142

30:                                               ; preds = %25
  br label %31

31:                                               ; preds = %30
  br label %32

32:                                               ; preds = %31
  store ptr %10, ptr %5, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %32, %20
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = icmp eq ptr %34, %35
  br i1 %36, label %37, label %46

37:                                               ; preds = %33
  br label %38

38:                                               ; preds = %37
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = call i32 @mbedtls_mpi_copy(ptr noundef %11, ptr noundef %39)
  store i32 %40, ptr %7, align 4, !tbaa !9
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %38
  br label %142

43:                                               ; preds = %38
  br label %44

44:                                               ; preds = %43
  br label %45

45:                                               ; preds = %44
  store ptr %11, ptr %6, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %45, %33
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.mbedtls_mpi, ptr %47, i32 0, i32 1
  %49 = load i64, ptr %48, align 8, !tbaa !11
  store i64 %49, ptr %8, align 8, !tbaa !14
  br label %50

50:                                               ; preds = %64, %46
  %51 = load i64, ptr %8, align 8, !tbaa !14
  %52 = icmp ugt i64 %51, 0
  br i1 %52, label %53, label %67

53:                                               ; preds = %50
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.mbedtls_mpi, ptr %54, i32 0, i32 2
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = load i64, ptr %8, align 8, !tbaa !14
  %58 = sub i64 %57, 1
  %59 = getelementptr inbounds i64, ptr %56, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !14
  %61 = icmp ne i64 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %53
  br label %67

63:                                               ; preds = %53
  br label %64

64:                                               ; preds = %63
  %65 = load i64, ptr %8, align 8, !tbaa !14
  %66 = add i64 %65, -1
  store i64 %66, ptr %8, align 8, !tbaa !14
  br label %50, !llvm.loop !16

67:                                               ; preds = %62, %50
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.mbedtls_mpi, ptr %68, i32 0, i32 1
  %70 = load i64, ptr %69, align 8, !tbaa !11
  store i64 %70, ptr %9, align 8, !tbaa !14
  br label %71

71:                                               ; preds = %85, %67
  %72 = load i64, ptr %9, align 8, !tbaa !14
  %73 = icmp ugt i64 %72, 0
  br i1 %73, label %74, label %88

74:                                               ; preds = %71
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.mbedtls_mpi, ptr %75, i32 0, i32 2
  %77 = load ptr, ptr %76, align 8, !tbaa !15
  %78 = load i64, ptr %9, align 8, !tbaa !14
  %79 = sub i64 %78, 1
  %80 = getelementptr inbounds i64, ptr %77, i64 %79
  %81 = load i64, ptr %80, align 8, !tbaa !14
  %82 = icmp ne i64 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %74
  br label %88

84:                                               ; preds = %74
  br label %85

85:                                               ; preds = %84
  %86 = load i64, ptr %9, align 8, !tbaa !14
  %87 = add i64 %86, -1
  store i64 %87, ptr %9, align 8, !tbaa !14
  br label %71, !llvm.loop !18

88:                                               ; preds = %83, %71
  br label %89

89:                                               ; preds = %88
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = load i64, ptr %8, align 8, !tbaa !14
  %92 = load i64, ptr %9, align 8, !tbaa !14
  %93 = add i64 %91, %92
  %94 = call i32 @mbedtls_mpi_grow(ptr noundef %90, i64 noundef %93)
  store i32 %94, ptr %7, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %89
  br label %142

97:                                               ; preds = %89
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = call i32 @mbedtls_mpi_lset(ptr noundef %101, i64 noundef 0)
  store i32 %102, ptr %7, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %105

104:                                              ; preds = %100
  br label %142

105:                                              ; preds = %100
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %129, %107
  %109 = load i64, ptr %9, align 8, !tbaa !14
  %110 = icmp ugt i64 %109, 0
  br i1 %110, label %111, label %132

111:                                              ; preds = %108
  %112 = load i64, ptr %8, align 8, !tbaa !14
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.mbedtls_mpi, ptr %113, i32 0, i32 2
  %115 = load ptr, ptr %114, align 8, !tbaa !15
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.mbedtls_mpi, ptr %116, i32 0, i32 2
  %118 = load ptr, ptr %117, align 8, !tbaa !15
  %119 = load i64, ptr %9, align 8, !tbaa !14
  %120 = getelementptr inbounds i64, ptr %118, i64 %119
  %121 = getelementptr inbounds i64, ptr %120, i64 -1
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.mbedtls_mpi, ptr %122, i32 0, i32 2
  %124 = load ptr, ptr %123, align 8, !tbaa !15
  %125 = load i64, ptr %9, align 8, !tbaa !14
  %126 = sub i64 %125, 1
  %127 = getelementptr inbounds i64, ptr %124, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !14
  call void @mpi_mul_hlp(i64 noundef %112, ptr noundef %115, ptr noundef %121, i64 noundef %128)
  br label %129

129:                                              ; preds = %111
  %130 = load i64, ptr %9, align 8, !tbaa !14
  %131 = add i64 %130, -1
  store i64 %131, ptr %9, align 8, !tbaa !14
  br label %108, !llvm.loop !19

132:                                              ; preds = %108
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.mbedtls_mpi, ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 8, !tbaa !20
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.mbedtls_mpi, ptr %136, i32 0, i32 0
  %138 = load i32, ptr %137, align 8, !tbaa !20
  %139 = mul nsw i32 %135, %138
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.mbedtls_mpi, ptr %140, i32 0, i32 0
  store i32 %139, ptr %141, align 8, !tbaa !20
  br label %142

142:                                              ; preds = %132, %104, %96, %42, %29
  call void @mbedtls_mpi_free(ptr noundef %11)
  call void @mbedtls_mpi_free(ptr noundef %10)
  %143 = load i32, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  ret i32 %143
}

; Function Attrs: nounwind uwtable
declare hidden void @mpi_mul_hlp(i64 noundef, ptr noundef, ptr noundef, i64 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 willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"mbedtls_mpi", !10, i64 0, !13, i64 8, !6, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !6, i64 16}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = !{!12, !10, 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_mpi = type { i32, i64, ptr }

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_mpi_mul_mpi(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.mbedtls_mpi, align 8
  %5 = alloca %struct.mbedtls_mpi, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #2
  call void @mbedtls_mpi_init(ptr noundef nonnull %4)
  call void @mbedtls_mpi_init(ptr noundef nonnull %5)
  %6 = icmp eq ptr %0, %1
  %.033.sroa.phi52.sroa.gep = getelementptr inbounds i8, ptr %2, i64 8
  %.033.sroa.phi52.sroa.gep71 = getelementptr inbounds i8, ptr %5, i64 8
  %.033.sroa.phi52.sroa.gep73 = getelementptr inbounds i8, ptr %2, i64 16
  %.033.sroa.phi52.sroa.gep74 = getelementptr inbounds i8, ptr %5, i64 16
  %.034.sroa.phi42.sroa.gep = getelementptr inbounds i8, ptr %1, i64 8
  %.034.sroa.phi42.sroa.gep77 = getelementptr inbounds i8, ptr %1, i64 16
  br i1 %6, label %7, label %9

7:                                                ; preds = %3
  %.034.sroa.phi42.sroa.gep78 = getelementptr inbounds i8, ptr %4, i64 16
  %.034.sroa.phi42.sroa.gep75 = getelementptr inbounds i8, ptr %4, i64 8
  %8 = call i32 @mbedtls_mpi_copy(ptr noundef nonnull %4, ptr noundef %1)
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %9, label %44

9:                                                ; preds = %7, %3
  %.034.sroa.phi42.sroa.phi = phi ptr [ %.034.sroa.phi42.sroa.gep, %3 ], [ %.034.sroa.phi42.sroa.gep75, %7 ]
  %.034.sroa.phi42.sroa.phi76 = phi ptr [ %.034.sroa.phi42.sroa.gep77, %3 ], [ %.034.sroa.phi42.sroa.gep78, %7 ]
  %.034.sroa.phi42 = phi ptr [ %1, %3 ], [ %4, %7 ]
  %10 = icmp eq ptr %0, %2
  br i1 %10, label %11, label %13

11:                                               ; preds = %9
  %12 = call i32 @mbedtls_mpi_copy(ptr noundef nonnull %5, ptr noundef %2)
  %.not63 = icmp eq i32 %12, 0
  br i1 %.not63, label %13, label %44

13:                                               ; preds = %11, %9
  %.033.sroa.phi52.sroa.phi = phi ptr [ %.033.sroa.phi52.sroa.gep, %9 ], [ %.033.sroa.phi52.sroa.gep71, %11 ]
  %.033.sroa.phi52.sroa.phi72 = phi ptr [ %.033.sroa.phi52.sroa.gep73, %9 ], [ %.033.sroa.phi52.sroa.gep74, %11 ]
  %.033.sroa.phi52 = phi ptr [ %2, %9 ], [ %5, %11 ]
  %14 = load i64, ptr %.034.sroa.phi42.sroa.phi, align 8, !tbaa !5
  %.not6479 = icmp eq i64 %14, 0
  br i1 %.not6479, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %13
  %15 = load ptr, ptr %.034.sroa.phi42.sroa.phi76, align 8, !tbaa !12
  %invariant.gep = getelementptr i8, ptr %15, i64 -8
  br label %16

16:                                               ; preds = %.lr.ph, %18
  %.03180 = phi i64 [ %14, %.lr.ph ], [ %19, %18 ]
  %gep = getelementptr i64, ptr %invariant.gep, i64 %.03180
  %17 = load i64, ptr %gep, align 8, !tbaa !13
  %.not65 = icmp eq i64 %17, 0
  br i1 %.not65, label %18, label %._crit_edge

18:                                               ; preds = %16
  %19 = add i64 %.03180, -1
  %.not64 = icmp eq i64 %19, 0
  br i1 %.not64, label %._crit_edge, label %16, !llvm.loop !14

._crit_edge:                                      ; preds = %18, %16, %13
  %.031.lcssa = phi i64 [ 0, %13 ], [ %.03180, %16 ], [ 0, %18 ]
  %20 = load i64, ptr %.033.sroa.phi52.sroa.phi, align 8, !tbaa !5
  %.not6683 = icmp eq i64 %20, 0
  br i1 %.not6683, label %._crit_edge87, label %.lr.ph86

.lr.ph86:                                         ; preds = %._crit_edge
  %21 = load ptr, ptr %.033.sroa.phi52.sroa.phi72, align 8, !tbaa !12
  %invariant.gep91 = getelementptr i8, ptr %21, i64 -8
  br label %22

22:                                               ; preds = %.lr.ph86, %24
  %.084 = phi i64 [ %20, %.lr.ph86 ], [ %25, %24 ]
  %gep92 = getelementptr i64, ptr %invariant.gep91, i64 %.084
  %23 = load i64, ptr %gep92, align 8, !tbaa !13
  %.not67 = icmp eq i64 %23, 0
  br i1 %.not67, label %24, label %._crit_edge87

24:                                               ; preds = %22
  %25 = add i64 %.084, -1
  %.not66 = icmp eq i64 %25, 0
  br i1 %.not66, label %._crit_edge87, label %22, !llvm.loop !16

._crit_edge87:                                    ; preds = %22, %24, %._crit_edge
  %.0.lcssa = phi i64 [ 0, %._crit_edge ], [ 0, %24 ], [ %.084, %22 ]
  %26 = add i64 %.0.lcssa, %.031.lcssa
  %27 = call i32 @mbedtls_mpi_grow(ptr noundef %0, i64 noundef %26)
  %.not68 = icmp eq i32 %27, 0
  br i1 %.not68, label %28, label %44

28:                                               ; preds = %._crit_edge87
  %29 = call i32 @mbedtls_mpi_lset(ptr noundef %0, i64 noundef 0)
  %.not69 = icmp eq i32 %29, 0
  br i1 %.not69, label %.preheader, label %44

.preheader:                                       ; preds = %28
  %.not7093 = icmp eq i64 %.0.lcssa, 0
  br i1 %.not7093, label %._crit_edge96, label %.lr.ph95

.lr.ph95:                                         ; preds = %.preheader
  %30 = getelementptr inbounds i8, ptr %0, i64 16
  br label %31

31:                                               ; preds = %.lr.ph95, %31
  %.194 = phi i64 [ %.0.lcssa, %.lr.ph95 ], [ %40, %31 ]
  %32 = load ptr, ptr %.034.sroa.phi42.sroa.phi76, align 8, !tbaa !12
  %33 = load ptr, ptr %30, align 8, !tbaa !12
  %34 = getelementptr inbounds i64, ptr %33, i64 %.194
  %35 = getelementptr inbounds i8, ptr %34, i64 -8
  %36 = load ptr, ptr %.033.sroa.phi52.sroa.phi72, align 8, !tbaa !12
  %37 = getelementptr i64, ptr %36, i64 %.194
  %38 = getelementptr i8, ptr %37, i64 -8
  %39 = load i64, ptr %38, align 8, !tbaa !13
  call void @mpi_mul_hlp(i64 noundef %.031.lcssa, ptr noundef %32, ptr noundef nonnull %35, i64 noundef %39)
  %40 = add i64 %.194, -1
  %.not70 = icmp eq i64 %40, 0
  br i1 %.not70, label %._crit_edge96, label %31, !llvm.loop !17

._crit_edge96:                                    ; preds = %31, %.preheader
  %41 = load i32, ptr %.034.sroa.phi42, align 8, !tbaa !18
  %42 = load i32, ptr %.033.sroa.phi52, align 8, !tbaa !18
  %43 = mul nsw i32 %42, %41
  store i32 %43, ptr %0, align 8, !tbaa !18
  br label %44

44:                                               ; preds = %28, %._crit_edge87, %11, %7, %._crit_edge96
  %.032 = phi i32 [ %8, %7 ], [ %12, %11 ], [ %27, %._crit_edge87 ], [ %29, %28 ], [ 0, %._crit_edge96 ]
  call void @mbedtls_mpi_free(ptr noundef nonnull %5)
  call void @mbedtls_mpi_free(ptr noundef nonnull %4)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #2
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #2
  ret i32 %.032
}

; Function Attrs: nounwind uwtable
declare hidden void @mpi_mul_hlp(i64 noundef, ptr noundef, ptr noundef, i64 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 willreturn memory(argmem: readwrite) }
attributes #2 = { 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, !10, i64 8}
!6 = !{!"mbedtls_mpi", !7, i64 0, !10, i64 8, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !11, i64 16}
!13 = !{!10, !10, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = !{!6, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass