; LLVM IR from tleonhardt/practical_cryptography_engineering :: mbedtls (x509_crt)

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

@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @mbedtls_x509_crt_parse_der(ptr noundef, 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
define dso_local i32 @mbedtls_x509_crt_parse(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.mbedtls_pem_context, align 8
  %15 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 1, ptr %11, align 4, !tbaa !11
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %21, label %18

18:                                               ; preds = %3
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %22

21:                                               ; preds = %18, %3
  store i32 -10240, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %129

22:                                               ; preds = %18
  %23 = load i64, ptr %7, align 8, !tbaa !9
  %24 = icmp ne i64 %23, 0
  br i1 %24, label %25, label %38

25:                                               ; preds = %22
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = load i64, ptr %7, align 8, !tbaa !9
  %28 = sub i64 %27, 1
  %29 = getelementptr inbounds i8, ptr %26, i64 %28
  %30 = load i8, ptr %29, align 1, !tbaa !13
  %31 = zext i8 %30 to i32
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %38

33:                                               ; preds = %25
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call ptr @strstr(ptr noundef %34, ptr noundef @.str) #5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %33
  store i32 2, ptr %11, align 4, !tbaa !11
  br label %38

38:                                               ; preds = %37, %33, %25, %22
  %39 = load i32, ptr %11, align 4, !tbaa !11
  %40 = icmp eq i32 %39, 1
  br i1 %40, label %41, label %46

41:                                               ; preds = %38
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = load i64, ptr %7, align 8, !tbaa !9
  %45 = call i32 @mbedtls_x509_crt_parse_der(ptr noundef %42, ptr noundef %43, i64 noundef %44)
  store i32 %45, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %129

46:                                               ; preds = %38
  %47 = load i32, ptr %11, align 4, !tbaa !11
  %48 = icmp eq i32 %47, 2
  br i1 %48, label %49, label %118

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #4
  br label %50

50:                                               ; preds = %113, %111, %49
  %51 = load i64, ptr %7, align 8, !tbaa !9
  %52 = icmp ugt i64 %51, 1
  br i1 %52, label %53, label %114

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @mbedtls_pem_init(ptr noundef %14)
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = call i32 @mbedtls_pem_read_buffer(ptr noundef %14, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %54, ptr noundef null, i64 noundef 0, ptr noundef %15)
  store i32 %55, ptr %13, align 4, !tbaa !11
  %56 = load i32, ptr %13, align 4, !tbaa !11
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %65

58:                                               ; preds = %53
  %59 = load i64, ptr %15, align 8, !tbaa !9
  %60 = load i64, ptr %7, align 8, !tbaa !9
  %61 = sub i64 %60, %59
  store i64 %61, ptr %7, align 8, !tbaa !9
  %62 = load i64, ptr %15, align 8, !tbaa !9
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 %62
  store ptr %64, ptr %6, align 8, !tbaa !5
  br label %88

65:                                               ; preds = %53
  %66 = load i32, ptr %13, align 4, !tbaa !11
  %67 = icmp eq i32 %66, -5248
  br i1 %67, label %68, label %70

68:                                               ; preds = %65
  %69 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %69, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %111

70:                                               ; preds = %65
  %71 = load i32, ptr %13, align 4, !tbaa !11
  %72 = icmp ne i32 %71, -4224
  br i1 %72, label %73, label %87

73:                                               ; preds = %70
  call void @mbedtls_pem_free(ptr noundef %14)
  %74 = load i64, ptr %15, align 8, !tbaa !9
  %75 = load i64, ptr %7, align 8, !tbaa !9
  %76 = sub i64 %75, %74
  store i64 %76, ptr %7, align 8, !tbaa !9
  %77 = load i64, ptr %15, align 8, !tbaa !9
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i64 %77
  store ptr %79, ptr %6, align 8, !tbaa !5
  %80 = load i32, ptr %9, align 4, !tbaa !11
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %82, label %84

82:                                               ; preds = %73
  %83 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %83, ptr %9, align 4, !tbaa !11
  br label %84

84:                                               ; preds = %82, %73
  %85 = load i32, ptr %10, align 4, !tbaa !11
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %10, align 4, !tbaa !11
  store i32 2, ptr %12, align 4
  br label %111, !llvm.loop !14

87:                                               ; preds = %70
  store i32 3, ptr %12, align 4
  br label %111

88:                                               ; preds = %58
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.mbedtls_pem_context, ptr %14, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !16
  %92 = getelementptr inbounds %struct.mbedtls_pem_context, ptr %14, i32 0, i32 1
  %93 = load i64, ptr %92, align 8, !tbaa !18
  %94 = call i32 @mbedtls_x509_crt_parse_der(ptr noundef %89, ptr noundef %91, i64 noundef %93)
  store i32 %94, ptr %13, align 4, !tbaa !11
  call void @mbedtls_pem_free(ptr noundef %14)
  %95 = load i32, ptr %13, align 4, !tbaa !11
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %110

97:                                               ; preds = %88
  %98 = load i32, ptr %13, align 4, !tbaa !11
  %99 = icmp eq i32 %98, -10368
  br i1 %99, label %100, label %102

100:                                              ; preds = %97
  %101 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %101, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %111

102:                                              ; preds = %97
  %103 = load i32, ptr %9, align 4, !tbaa !11
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %102
  %106 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %106, ptr %9, align 4, !tbaa !11
  br label %107

107:                                              ; preds = %105, %102
  %108 = load i32, ptr %10, align 4, !tbaa !11
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %10, align 4, !tbaa !11
  store i32 2, ptr %12, align 4
  br label %111, !llvm.loop !14

110:                                              ; preds = %88
  store i32 1, ptr %8, align 4, !tbaa !11
  store i32 0, ptr %12, align 4
  br label %111

111:                                              ; preds = %110, %107, %100, %87, %84, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  %112 = load i32, ptr %12, align 4
  switch i32 %112, label %115 [
    i32 0, label %113
    i32 2, label %50
    i32 3, label %114
  ]

113:                                              ; preds = %111
  br label %50, !llvm.loop !14

114:                                              ; preds = %111, %50
  store i32 0, ptr %12, align 4
  br label %115

115:                                              ; preds = %114, %111
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  %116 = load i32, ptr %12, align 4
  switch i32 %116, label %129 [
    i32 0, label %117
  ]

117:                                              ; preds = %115
  br label %118

118:                                              ; preds = %117, %46
  %119 = load i32, ptr %8, align 4, !tbaa !11
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %123

121:                                              ; preds = %118
  %122 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %122, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %129

123:                                              ; preds = %118
  %124 = load i32, ptr %9, align 4, !tbaa !11
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %128

126:                                              ; preds = %123
  %127 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %127, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %129

128:                                              ; preds = %123
  store i32 -10112, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %129

129:                                              ; preds = %128, %126, %121, %115, %41, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %130 = load i32, ptr %4, align 4
  ret i32 %130
}

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

declare void @mbedtls_pem_init(ptr noundef) #3

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

declare void @mbedtls_pem_free(ptr 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 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"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, !6, i64 0}
!17 = !{!"", !6, i64 0, !10, i64 8, !6, i64 16}
!18 = !{!17, !10, i64 8}


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

@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @mbedtls_x509_crt_parse_der(ptr noundef, 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
define dso_local i32 @mbedtls_x509_crt_parse(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.mbedtls_pem_context, align 8
  %5 = alloca i64, align 8
  %6 = icmp eq ptr %0, null
  %7 = icmp eq ptr %1, null
  %or.cond = or i1 %6, %7
  br i1 %or.cond, label %39, label %8

8:                                                ; preds = %3
  %.not = icmp eq i64 %2, 0
  br i1 %.not, label %.critedge, label %9

9:                                                ; preds = %8
  %10 = getelementptr i8, ptr %1, i64 %2
  %11 = getelementptr i8, ptr %10, i64 -1
  %12 = load i8, ptr %11, align 1, !tbaa !5
  %13 = icmp eq i8 %12, 0
  br i1 %13, label %14, label %.critedge

14:                                               ; preds = %9
  %15 = tail call ptr @strstr(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) @.str) #4
  %.not65 = icmp eq ptr %15, null
  br i1 %.not65, label %.critedge, label %17

.critedge:                                        ; preds = %9, %8, %14
  %16 = tail call i32 @mbedtls_x509_crt_parse_der(ptr noundef nonnull %0, ptr noundef nonnull %1, i64 noundef %2)
  br label %39

17:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  %.not119 = icmp eq i64 %2, 1
  br i1 %.not119, label %.thread, label %.lr.ph

.thread:                                          ; preds = %17
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  br label %38

.lr.ph:                                           ; preds = %17
  %18 = getelementptr inbounds i8, ptr %4, i64 8
  br label %19

19:                                               ; preds = %.lr.ph, %33
  %.039116 = phi i32 [ 0, %.lr.ph ], [ %.140, %33 ]
  %.041115 = phi i32 [ 0, %.lr.ph ], [ %.344, %33 ]
  %.046114 = phi i32 [ 0, %.lr.ph ], [ %.147, %33 ]
  %.051113 = phi i64 [ %2, %.lr.ph ], [ %.152, %33 ]
  %.053112 = phi ptr [ %1, %.lr.ph ], [ %.154, %33 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @mbedtls_pem_init(ptr noundef nonnull %4) #5
  %20 = call i32 @mbedtls_pem_read_buffer(ptr noundef nonnull %4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %.053112, ptr noundef null, i64 noundef 0, ptr noundef nonnull %5) #5
  switch i32 %20, label %26 [
    i32 0, label %21
    i32 -5248, label %36
    i32 -4224, label %35
  ]

21:                                               ; preds = %19
  %22 = load i64, ptr %5, align 8, !tbaa !8
  %23 = load ptr, ptr %4, align 8, !tbaa !10
  %24 = load i64, ptr %18, align 8, !tbaa !13
  %25 = call i32 @mbedtls_x509_crt_parse_der(ptr noundef %0, ptr noundef %23, i64 noundef %24)
  call void @mbedtls_pem_free(ptr noundef nonnull %4) #5
  switch i32 %25, label %30 [
    i32 0, label %33
    i32 -10368, label %36
  ]

26:                                               ; preds = %19
  call void @mbedtls_pem_free(ptr noundef nonnull %4) #5
  %27 = load i64, ptr %5, align 8, !tbaa !8
  %28 = icmp eq i32 %.041115, 0
  %spec.select70 = select i1 %28, i32 %20, i32 %.041115
  %29 = add nsw i32 %.039116, 1
  br label %33, !llvm.loop !14

30:                                               ; preds = %21
  %31 = icmp eq i32 %.041115, 0
  %spec.select71 = select i1 %31, i32 %25, i32 %.041115
  %32 = add nsw i32 %.039116, 1
  br label %33, !llvm.loop !14

33:                                               ; preds = %21, %30, %26
  %.pn = phi i64 [ %22, %30 ], [ %27, %26 ], [ %22, %21 ]
  %.147 = phi i32 [ %.046114, %30 ], [ %.046114, %26 ], [ 1, %21 ]
  %.344 = phi i32 [ %spec.select71, %30 ], [ %spec.select70, %26 ], [ %.041115, %21 ]
  %.140 = phi i32 [ %32, %30 ], [ %29, %26 ], [ %.039116, %21 ]
  %.152 = sub i64 %.051113, %.pn
  %.154 = getelementptr inbounds i8, ptr %.053112, i64 %.pn
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %34 = icmp ugt i64 %.152, 1
  br i1 %34, label %19, label %.loopexit

35:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %.loopexit

36:                                               ; preds = %19, %21
  %.156.ph = phi i32 [ %25, %21 ], [ %20, %19 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  br label %39

.loopexit:                                        ; preds = %33, %35
  %.046111 = phi i32 [ %.046114, %35 ], [ %.147, %33 ]
  %.041108 = phi i32 [ %.041115, %35 ], [ %.344, %33 ]
  %.039105 = phi i32 [ %.039116, %35 ], [ %.140, %33 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  %.not68 = icmp eq i32 %.046111, 0
  br i1 %.not68, label %37, label %39

37:                                               ; preds = %.loopexit
  %.041108.fr = freeze i32 %.041108
  %.not69 = icmp eq i32 %.041108.fr, 0
  br i1 %.not69, label %38, label %39

38:                                               ; preds = %.thread, %37
  br label %39

39:                                               ; preds = %38, %37, %36, %.loopexit, %3, %.critedge
  %.459 = phi i32 [ %16, %.critedge ], [ %.156.ph, %36 ], [ -10240, %3 ], [ %.039105, %.loopexit ], [ -10112, %38 ], [ %.041108.fr, %37 ]
  ret i32 %.459
}

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

declare void @mbedtls_pem_init(ptr noundef) local_unnamed_addr #3

declare i32 @mbedtls_pem_read_buffer(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare void @mbedtls_pem_free(ptr noundef) local_unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind willreturn memory(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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long", !6, i64 0}
!10 = !{!11, !12, i64 0}
!11 = !{!"", !12, i64 0, !9, i64 8, !12, i64 16}
!12 = !{!"any pointer", !6, i64 0}
!13 = !{!11, !9, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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