; LLVM IR from tleonhardt/practical_cryptography_engineering :: mbedtls (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
  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
  call void @mbedtls_mpi_init(ptr noundef %10)
  call void @mbedtls_mpi_init(ptr noundef %11)
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = icmp eq ptr %12, %13
  br i1 %14, label %15, label %24

15:                                               ; preds = %3
  br label %16

16:                                               ; preds = %15
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = call i32 @mbedtls_mpi_copy(ptr noundef %10, ptr noundef %17)
  store i32 %18, ptr %7, align 4, !tbaa !9
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %16
  br label %136

21:                                               ; preds = %16
  br label %22

22:                                               ; preds = %21
  br label %23

23:                                               ; preds = %22
  store ptr %10, ptr %5, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %23, %3
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = icmp eq ptr %25, %26
  br i1 %27, label %28, label %37

28:                                               ; preds = %24
  br label %29

29:                                               ; preds = %28
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = call i32 @mbedtls_mpi_copy(ptr noundef %11, ptr noundef %30)
  store i32 %31, ptr %7, align 4, !tbaa !9
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %29
  br label %136

34:                                               ; preds = %29
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35
  store ptr %11, ptr %6, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %36, %24
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.mbedtls_mpi, ptr %38, i32 0, i32 1
  %40 = load i64, ptr %39, align 8, !tbaa !11
  store i64 %40, ptr %8, align 8, !tbaa !14
  br label %41

41:                                               ; preds = %55, %37
  %42 = load i64, ptr %8, align 8, !tbaa !14
  %43 = icmp ugt i64 %42, 0
  br i1 %43, label %44, label %58

44:                                               ; preds = %41
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.mbedtls_mpi, ptr %45, i32 0, i32 2
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = load i64, ptr %8, align 8, !tbaa !14
  %49 = sub i64 %48, 1
  %50 = getelementptr inbounds i64, ptr %47, i64 %49
  %51 = load i64, ptr %50, align 8, !tbaa !14
  %52 = icmp ne i64 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %44
  br label %58

54:                                               ; preds = %44
  br label %55

55:                                               ; preds = %54
  %56 = load i64, ptr %8, align 8, !tbaa !14
  %57 = add i64 %56, -1
  store i64 %57, ptr %8, align 8, !tbaa !14
  br label %41, !llvm.loop !16

58:                                               ; preds = %53, %41
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.mbedtls_mpi, ptr %59, i32 0, i32 1
  %61 = load i64, ptr %60, align 8, !tbaa !11
  store i64 %61, ptr %9, align 8, !tbaa !14
  br label %62

62:                                               ; preds = %76, %58
  %63 = load i64, ptr %9, align 8, !tbaa !14
  %64 = icmp ugt i64 %63, 0
  br i1 %64, label %65, label %79

65:                                               ; preds = %62
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.mbedtls_mpi, ptr %66, i32 0, i32 2
  %68 = load ptr, ptr %67, align 8, !tbaa !15
  %69 = load i64, ptr %9, align 8, !tbaa !14
  %70 = sub i64 %69, 1
  %71 = getelementptr inbounds i64, ptr %68, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !14
  %73 = icmp ne i64 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %65
  br label %79

75:                                               ; preds = %65
  br label %76

76:                                               ; preds = %75
  %77 = load i64, ptr %9, align 8, !tbaa !14
  %78 = add i64 %77, -1
  store i64 %78, ptr %9, align 8, !tbaa !14
  br label %62, !llvm.loop !18

79:                                               ; preds = %74, %62
  br label %80

80:                                               ; preds = %79
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = load i64, ptr %8, align 8, !tbaa !14
  %83 = load i64, ptr %9, align 8, !tbaa !14
  %84 = add i64 %82, %83
  %85 = call i32 @mbedtls_mpi_grow(ptr noundef %81, i64 noundef %84)
  store i32 %85, ptr %7, align 4, !tbaa !9
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %80
  br label %136

88:                                               ; preds = %80
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  br label %91

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

95:                                               ; preds = %91
  br label %136

96:                                               ; preds = %91
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97
  %99 = load i64, ptr %8, align 8, !tbaa !14
  %100 = add i64 %99, 1
  store i64 %100, ptr %8, align 8, !tbaa !14
  br label %101

101:                                              ; preds = %123, %98
  %102 = load i64, ptr %9, align 8, !tbaa !14
  %103 = icmp ugt i64 %102, 0
  br i1 %103, label %104, label %126

104:                                              ; preds = %101
  %105 = load i64, ptr %8, align 8, !tbaa !14
  %106 = sub i64 %105, 1
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.mbedtls_mpi, ptr %107, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !15
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.mbedtls_mpi, ptr %110, i32 0, i32 2
  %112 = load ptr, ptr %111, align 8, !tbaa !15
  %113 = load i64, ptr %9, align 8, !tbaa !14
  %114 = getelementptr inbounds i64, ptr %112, i64 %113
  %115 = getelementptr inbounds i64, ptr %114, i64 -1
  %116 = load ptr, ptr %6, 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 = sub i64 %119, 1
  %121 = getelementptr inbounds i64, ptr %118, i64 %120
  %122 = load i64, ptr %121, align 8, !tbaa !14
  call void @mpi_mul_hlp(i64 noundef %106, ptr noundef %109, ptr noundef %115, i64 noundef %122)
  br label %123

123:                                              ; preds = %104
  %124 = load i64, ptr %9, align 8, !tbaa !14
  %125 = add i64 %124, -1
  store i64 %125, ptr %9, align 8, !tbaa !14
  br label %101, !llvm.loop !19

126:                                              ; preds = %101
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.mbedtls_mpi, ptr %127, i32 0, i32 0
  %129 = load i32, ptr %128, align 8, !tbaa !20
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.mbedtls_mpi, ptr %130, i32 0, i32 0
  %132 = load i32, ptr %131, align 8, !tbaa !20
  %133 = mul nsw i32 %129, %132
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.mbedtls_mpi, ptr %134, i32 0, i32 0
  store i32 %133, ptr %135, align 8, !tbaa !20
  br label %136

136:                                              ; preds = %126, %95, %87, %33, %20
  call void @mbedtls_mpi_free(ptr noundef %11)
  call void @mbedtls_mpi_free(ptr noundef %10)
  %137 = 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 %137
}

; 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 = !{!"", !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
  %.034.sroa.phi53.sroa.gep = getelementptr inbounds i8, ptr %2, i64 8
  %.034.sroa.phi53.sroa.gep73 = getelementptr inbounds i8, ptr %5, i64 8
  %.034.sroa.phi53.sroa.gep75 = getelementptr inbounds i8, ptr %2, i64 16
  %.034.sroa.phi53.sroa.gep76 = getelementptr inbounds i8, ptr %5, i64 16
  %.035.sroa.phi43.sroa.gep = getelementptr inbounds i8, ptr %1, i64 8
  %.035.sroa.phi43.sroa.gep79 = getelementptr inbounds i8, ptr %1, i64 16
  br i1 %6, label %7, label %9

7:                                                ; preds = %3
  %.035.sroa.phi43.sroa.gep80 = getelementptr inbounds i8, ptr %4, i64 16
  %.035.sroa.phi43.sroa.gep77 = 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
  %.035.sroa.phi43.sroa.phi = phi ptr [ %.035.sroa.phi43.sroa.gep, %3 ], [ %.035.sroa.phi43.sroa.gep77, %7 ]
  %.035.sroa.phi43.sroa.phi78 = phi ptr [ %.035.sroa.phi43.sroa.gep79, %3 ], [ %.035.sroa.phi43.sroa.gep80, %7 ]
  %.035.sroa.phi43 = 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)
  %.not65 = icmp eq i32 %12, 0
  br i1 %.not65, label %13, label %44

13:                                               ; preds = %11, %9
  %.034.sroa.phi53.sroa.phi = phi ptr [ %.034.sroa.phi53.sroa.gep, %9 ], [ %.034.sroa.phi53.sroa.gep73, %11 ]
  %.034.sroa.phi53.sroa.phi74 = phi ptr [ %.034.sroa.phi53.sroa.gep75, %9 ], [ %.034.sroa.phi53.sroa.gep76, %11 ]
  %.034.sroa.phi53 = phi ptr [ %2, %9 ], [ %5, %11 ]
  %14 = load i64, ptr %.035.sroa.phi43.sroa.phi, align 8, !tbaa !5
  %.not6681 = icmp eq i64 %14, 0
  br i1 %.not6681, label %._crit_edge, label %.lr.ph

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

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

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

._crit_edge:                                      ; preds = %18, %16, %13
  %.032.lcssa = phi i64 [ 0, %13 ], [ %.03282, %16 ], [ 0, %18 ]
  %20 = load i64, ptr %.034.sroa.phi53.sroa.phi, align 8, !tbaa !5
  %.not6885 = icmp eq i64 %20, 0
  br i1 %.not6885, label %._crit_edge89, label %.lr.ph88

.lr.ph88:                                         ; preds = %._crit_edge
  %21 = load ptr, ptr %.034.sroa.phi53.sroa.phi74, align 8, !tbaa !12
  %invariant.gep93 = getelementptr i8, ptr %21, i64 -8
  br label %22

22:                                               ; preds = %.lr.ph88, %24
  %.086 = phi i64 [ %20, %.lr.ph88 ], [ %25, %24 ]
  %gep94 = getelementptr i64, ptr %invariant.gep93, i64 %.086
  %23 = load i64, ptr %gep94, align 8, !tbaa !13
  %.not69 = icmp eq i64 %23, 0
  br i1 %.not69, label %24, label %._crit_edge89

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

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

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

.preheader:                                       ; preds = %28
  %.not7295 = icmp eq i64 %.0.lcssa, 0
  br i1 %.not7295, label %._crit_edge98, label %.lr.ph97

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

31:                                               ; preds = %.lr.ph97, %31
  %.196 = phi i64 [ %.0.lcssa, %.lr.ph97 ], [ %40, %31 ]
  %32 = load ptr, ptr %.035.sroa.phi43.sroa.phi78, align 8, !tbaa !12
  %33 = load ptr, ptr %30, align 8, !tbaa !12
  %34 = getelementptr inbounds i64, ptr %33, i64 %.196
  %35 = getelementptr inbounds i8, ptr %34, i64 -8
  %36 = load ptr, ptr %.034.sroa.phi53.sroa.phi74, align 8, !tbaa !12
  %37 = getelementptr i64, ptr %36, i64 %.196
  %38 = getelementptr i8, ptr %37, i64 -8
  %39 = load i64, ptr %38, align 8, !tbaa !13
  call void @mpi_mul_hlp(i64 noundef %.032.lcssa, ptr noundef %32, ptr noundef nonnull %35, i64 noundef %39)
  %40 = add i64 %.196, -1
  %.not72 = icmp eq i64 %40, 0
  br i1 %.not72, label %._crit_edge98, label %31, !llvm.loop !17

._crit_edge98:                                    ; preds = %31, %.preheader
  %41 = load i32, ptr %.035.sroa.phi43, align 8, !tbaa !18
  %42 = load i32, ptr %.034.sroa.phi53, 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_edge89, %11, %7, %._crit_edge98
  %.033 = phi i32 [ %8, %7 ], [ %12, %11 ], [ %27, %._crit_edge89 ], [ %29, %28 ], [ 0, %._crit_edge98 ]
  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 %.033
}

; 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 = !{!"", !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