; LLVM IR from specinfo-ua/UAPKI :: library/uapkif/src/asn1 (BMPString)

; 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.asn_dec_rval_s = type { i32, i64 }
%struct.OCTET_STRING = type { ptr, i32, %struct.asn_struct_ctx_s }
%struct.asn_struct_ctx_s = type { i16, i16, i32, ptr, i64 }

; Function Attrs: nounwind uwtable
define dso_local { i32, i64 } @BMPString_decode_xer(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5) #0 {
  %7 = alloca %struct.asn_dec_rval_s, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca %struct.asn_dec_rval_s, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store i64 %5, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  %28 = load i64, ptr %13, align 8, !tbaa !9
  %29 = call { i32, i64 } @OCTET_STRING_decode_xer_utf8(ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, i64 noundef %28)
  %30 = getelementptr inbounds { i32, i64 }, ptr %14, i32 0, i32 0
  %31 = extractvalue { i32, i64 } %29, 0
  store i32 %31, ptr %30, align 8
  %32 = getelementptr inbounds { i32, i64 }, ptr %14, i32 0, i32 1
  %33 = extractvalue { i32, i64 } %29, 1
  store i64 %33, ptr %32, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  %34 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 0
  %35 = load i32, ptr %34, align 8, !tbaa !14
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %136

37:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  store ptr %39, ptr %17, align 8, !tbaa !5
  %40 = load ptr, ptr %17, align 8, !tbaa !5
  %41 = call i64 @UTF8String_to_wcs(ptr noundef %40, ptr noundef null, i64 noundef 0)
  store i64 %41, ptr %16, align 8, !tbaa !9
  %42 = load i64, ptr %16, align 8, !tbaa !9
  %43 = add i64 %42, 1
  %44 = mul i64 4, %43
  %45 = call noalias ptr @malloc(i64 noundef %44) #8
  store ptr %45, ptr %15, align 8, !tbaa !5
  %46 = load ptr, ptr %15, align 8, !tbaa !5
  %47 = icmp eq ptr %46, null
  br i1 %47, label %55, label %48

48:                                               ; preds = %37
  %49 = load ptr, ptr %17, align 8, !tbaa !5
  %50 = load ptr, ptr %15, align 8, !tbaa !5
  %51 = load i64, ptr %16, align 8, !tbaa !9
  %52 = call i64 @UTF8String_to_wcs(ptr noundef %49, ptr noundef %50, i64 noundef %51)
  %53 = load i64, ptr %16, align 8, !tbaa !9
  %54 = icmp ne i64 %52, %53
  br i1 %54, label %55, label %58

55:                                               ; preds = %48, %37
  %56 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 0
  store i32 2, ptr %56, align 8, !tbaa !14
  %57 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 1
  store i64 0, ptr %57, align 8, !tbaa !16
  store i32 1, ptr %18, align 4
  br label %133

58:                                               ; preds = %48
  %59 = load ptr, ptr %15, align 8, !tbaa !5
  %60 = load i64, ptr %16, align 8, !tbaa !9
  %61 = getelementptr inbounds i32, ptr %59, i64 %60
  store i32 0, ptr %61, align 4, !tbaa !12
  br label %62

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %63 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %63, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %64 = load ptr, ptr %15, align 8, !tbaa !5
  %65 = load i64, ptr %16, align 8, !tbaa !9
  %66 = getelementptr inbounds i32, ptr %64, i64 %65
  store ptr %66, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %67, ptr %21, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %94, %62
  %69 = load ptr, ptr %19, align 8, !tbaa !5
  %70 = load ptr, ptr %20, align 8, !tbaa !5
  %71 = icmp ult ptr %69, %70
  br i1 %71, label %72, label %99

72:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %73 = load ptr, ptr %19, align 8, !tbaa !5
  %74 = load i32, ptr %73, align 4, !tbaa !12
  store i32 %74, ptr %22, align 4, !tbaa !12
  %75 = load i32, ptr %22, align 4, !tbaa !12
  %76 = icmp ugt i32 %75, 65535
  br i1 %76, label %77, label %81

77:                                               ; preds = %72
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  call void @free(ptr noundef %78) #7
  store ptr null, ptr %15, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 0
  store i32 2, ptr %79, align 8, !tbaa !14
  %80 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 1
  store i64 0, ptr %80, align 8, !tbaa !16
  store i32 1, ptr %18, align 4
  br label %91

81:                                               ; preds = %72
  %82 = load i32, ptr %22, align 4, !tbaa !12
  %83 = lshr i32 %82, 8
  %84 = trunc i32 %83 to i8
  %85 = load ptr, ptr %21, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %85, i64 0
  store i8 %84, ptr %86, align 1, !tbaa !17
  %87 = load i32, ptr %22, align 4, !tbaa !12
  %88 = trunc i32 %87 to i8
  %89 = load ptr, ptr %21, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 1
  store i8 %88, ptr %90, align 1, !tbaa !17
  store i32 0, ptr %18, align 4
  br label %91

91:                                               ; preds = %81, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  %92 = load i32, ptr %18, align 4
  switch i32 %92, label %117 [
    i32 0, label %93
  ]

93:                                               ; preds = %91
  br label %94

94:                                               ; preds = %93
  %95 = load ptr, ptr %19, align 8, !tbaa !5
  %96 = getelementptr inbounds i32, ptr %95, i32 1
  store ptr %96, ptr %19, align 8, !tbaa !5
  %97 = load ptr, ptr %21, align 8, !tbaa !5
  %98 = getelementptr inbounds i16, ptr %97, i32 1
  store ptr %98, ptr %21, align 8, !tbaa !5
  br label %68, !llvm.loop !18

99:                                               ; preds = %68
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = load i64, ptr %16, align 8, !tbaa !9
  %102 = add i64 %101, 1
  %103 = mul i64 2, %102
  %104 = call ptr @realloc(ptr noundef %100, i64 noundef %103) #9
  store ptr %104, ptr %21, align 8, !tbaa !5
  %105 = load ptr, ptr %21, align 8, !tbaa !5
  %106 = icmp ne ptr %105, null
  br i1 %106, label %111, label %107

107:                                              ; preds = %99
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  call void @free(ptr noundef %108) #7
  store ptr null, ptr %15, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 0
  store i32 2, ptr %109, align 8, !tbaa !14
  %110 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 1
  store i64 0, ptr %110, align 8, !tbaa !16
  store i32 1, ptr %18, align 4
  br label %117

111:                                              ; preds = %99
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  %113 = load i64, ptr %16, align 8, !tbaa !9
  %114 = getelementptr inbounds i16, ptr %112, i64 %113
  store i16 0, ptr %114, align 2, !tbaa !20
  %115 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %115, ptr %15, align 8, !tbaa !5
  br label %116

116:                                              ; preds = %111
  store i32 0, ptr %18, align 4
  br label %117

117:                                              ; preds = %116, %107, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %118 = load i32, ptr %18, align 4
  switch i32 %118, label %133 [
    i32 0, label %119
  ]

119:                                              ; preds = %117
  %120 = load ptr, ptr %17, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.OCTET_STRING, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !22
  call void @free(ptr noundef %122) #7
  %123 = load ptr, ptr %17, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.OCTET_STRING, ptr %123, i32 0, i32 0
  store ptr null, ptr %124, align 8, !tbaa !22
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = load ptr, ptr %17, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.OCTET_STRING, ptr %126, i32 0, i32 0
  store ptr %125, ptr %127, align 8, !tbaa !22
  %128 = load i64, ptr %16, align 8, !tbaa !9
  %129 = mul i64 2, %128
  %130 = trunc i64 %129 to i32
  %131 = load ptr, ptr %17, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.OCTET_STRING, ptr %131, i32 0, i32 1
  store i32 %130, ptr %132, align 8, !tbaa !25
  store i32 0, ptr %18, align 4
  br label %133

133:                                              ; preds = %119, %117, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %134 = load i32, ptr %18, align 4
  switch i32 %134, label %139 [
    i32 0, label %135
    i32 1, label %137
  ]

135:                                              ; preds = %133
  br label %136

136:                                              ; preds = %135, %6
  br label %137

137:                                              ; preds = %136, %133
  %138 = load { i32, i64 }, ptr %7, align 8
  ret { i32, i64 } %138

139:                                              ; preds = %133
  unreachable
}

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

declare { i32, i64 } @OCTET_STRING_decode_xer_utf8(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

declare i64 @UTF8String_to_wcs(ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #6

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind allocsize(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 #5 = { 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 #6 = { nounwind allocsize(1) "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 = { nounwind allocsize(0) }
attributes #9 = { nounwind allocsize(1) }

!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 = !{i64 0, i64 4, !12, i64 8, i64 8, !9}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"asn_dec_rval_s", !13, i64 0, !10, i64 8}
!16 = !{!15, !10, i64 8}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !21, i64 0}
!21 = !{!"short", !7, i64 0}
!22 = !{!23, !6, i64 0}
!23 = !{!"OCTET_STRING", !6, i64 0, !13, i64 8, !24, i64 16}
!24 = !{!"asn_struct_ctx_s", !21, i64 0, !21, i64 2, !13, i64 4, !6, i64 8, !10, i64 16}
!25 = !{!23, !13, 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"

; Function Attrs: nounwind uwtable
define dso_local { i32, i64 } @BMPString_decode_xer(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5) local_unnamed_addr #0 {
  %7 = tail call { i32, i64 } @OCTET_STRING_decode_xer_utf8(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5) #5
  %8 = extractvalue { i32, i64 } %7, 0
  %9 = extractvalue { i32, i64 } %7, 1
  %10 = icmp eq i32 %8, 0
  br i1 %10, label %11, label %.thread66

11:                                               ; preds = %6
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = tail call i64 @UTF8String_to_wcs(ptr noundef %12, ptr noundef null, i64 noundef 0) #5
  %14 = add i64 %13, 1
  %15 = shl i64 %14, 2
  %16 = tail call noalias ptr @malloc(i64 noundef %15) #6
  %17 = icmp eq ptr %16, null
  br i1 %17, label %.thread66, label %18

18:                                               ; preds = %11
  %19 = tail call i64 @UTF8String_to_wcs(ptr noundef %12, ptr noundef nonnull %16, i64 noundef %13) #5
  %.not = icmp eq i64 %19, %13
  br i1 %.not, label %20, label %.thread66

20:                                               ; preds = %18
  %21 = getelementptr inbounds i32, ptr %16, i64 %13
  store i32 0, ptr %21, align 4, !tbaa !9
  %22 = icmp sgt i64 %13, 0
  br i1 %22, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %20, %26
  %.072 = phi ptr [ %32, %26 ], [ %16, %20 ]
  %.04971 = phi ptr [ %31, %26 ], [ %16, %20 ]
  %23 = load i32, ptr %.04971, align 4, !tbaa !9
  %24 = icmp ult i32 %23, 65536
  br i1 %24, label %26, label %25

25:                                               ; preds = %.lr.ph
  tail call void @free(ptr noundef %16) #5
  br label %.thread66

26:                                               ; preds = %.lr.ph
  %27 = lshr i32 %23, 8
  %28 = trunc nuw i32 %27 to i8
  store i8 %28, ptr %.072, align 1, !tbaa !11
  %29 = trunc i32 %23 to i8
  %30 = getelementptr inbounds i8, ptr %.072, i64 1
  store i8 %29, ptr %30, align 1, !tbaa !11
  %31 = getelementptr inbounds i8, ptr %.04971, i64 4
  %32 = getelementptr inbounds i8, ptr %.072, i64 2
  %33 = icmp ult ptr %31, %21
  br i1 %33, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %26, %20
  %34 = shl i64 %14, 1
  %35 = tail call ptr @realloc(ptr noundef nonnull %16, i64 noundef %34) #7
  %.not59 = icmp eq ptr %35, null
  br i1 %.not59, label %36, label %37

36:                                               ; preds = %._crit_edge
  tail call void @free(ptr noundef %16) #5
  br label %.thread66

37:                                               ; preds = %._crit_edge
  %38 = getelementptr inbounds i16, ptr %35, i64 %13
  store i16 0, ptr %38, align 2, !tbaa !14
  %39 = load ptr, ptr %12, align 8, !tbaa !16
  tail call void @free(ptr noundef %39) #5
  store ptr %35, ptr %12, align 8, !tbaa !16
  %.tr = trunc i64 %13 to i32
  %40 = shl i32 %.tr, 1
  %41 = getelementptr inbounds i8, ptr %12, i64 8
  store i32 %40, ptr %41, align 8, !tbaa !20
  br label %.thread66

.thread66:                                        ; preds = %36, %25, %37, %18, %11, %6
  %.sroa.047.4 = phi i32 [ %8, %6 ], [ 0, %37 ], [ 2, %18 ], [ 2, %11 ], [ 2, %25 ], [ 2, %36 ]
  %.sroa.7.4 = phi i64 [ %9, %6 ], [ %9, %37 ], [ 0, %18 ], [ 0, %11 ], [ 0, %25 ], [ 0, %36 ]
  %.fca.0.insert = insertvalue { i32, i64 } poison, i32 %.sroa.047.4, 0
  %.fca.1.insert = insertvalue { i32, i64 } %.fca.0.insert, i64 %.sroa.7.4, 1
  ret { i32, i64 } %.fca.1.insert
}

declare { i32, i64 } @OCTET_STRING_decode_xer_utf8(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare i64 @UTF8String_to_wcs(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { nounwind allocsize(1) }

!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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"OCTET_STRING", !6, i64 0, !10, i64 8, !18, i64 16}
!18 = !{!"asn_struct_ctx_s", !15, i64 0, !15, i64 2, !10, i64 4, !6, i64 8, !19, i64 16}
!19 = !{!"long", !7, i64 0}
!20 = !{!17, !10, i64 8}


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