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

; 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"

@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

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

declare void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @asn_oid_to_text(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca [12 x i64], align 16
  %7 = alloca ptr, 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
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 96, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %14 = getelementptr inbounds [12 x i64], ptr %6, i64 0, i64 0
  store ptr %14, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 8, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 12, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %2
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %20, label %18

18:                                               ; preds = %15
  store i32 2, ptr %5, align 4, !tbaa !9
  %19 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 385, i32 noundef %19, ptr noundef null)
  br label %135

20:                                               ; preds = %15
  br label %21

21:                                               ; preds = %20
  br label %22

22:                                               ; preds = %21
  br label %23

23:                                               ; preds = %22
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %28, label %26

26:                                               ; preds = %23
  store i32 2, ptr %5, align 4, !tbaa !9
  %27 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 386, i32 noundef %27, ptr noundef null)
  br label %135

28:                                               ; preds = %23
  br label %29

29:                                               ; preds = %28
  br label %30

30:                                               ; preds = %29
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr null, ptr %31, align 8, !tbaa !5
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = call i32 @OBJECT_IDENTIFIER_get_arcs(ptr noundef %32, ptr noundef %33, i32 noundef %34, i32 noundef %35)
  store i32 %36, ptr %10, align 4, !tbaa !9
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = icmp ugt i32 %37, %38
  br i1 %39, label %40, label %60

40:                                               ; preds = %30
  %41 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %41, ptr %9, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %40
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = mul i64 %44, %46
  %48 = call noalias ptr @malloc(i64 noundef %47) #7
  store ptr %48, ptr %7, align 8, !tbaa !5
  %49 = icmp eq ptr null, %48
  br i1 %49, label %50, label %52

50:                                               ; preds = %42
  store i32 1, ptr %5, align 4, !tbaa !9
  %51 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 394, i32 noundef %51, ptr noundef null)
  br label %135

52:                                               ; preds = %42
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = call i32 @OBJECT_IDENTIFIER_get_arcs(ptr noundef %55, ptr noundef %56, i32 noundef %57, i32 noundef %58)
  store i32 %59, ptr %10, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %54, %30
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = mul i64 %63, 11
  %65 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %64) #8
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %65, ptr %66, align 8, !tbaa !5
  %67 = icmp eq ptr null, %65
  br i1 %67, label %68, label %70

68:                                               ; preds = %61
  store i32 1, ptr %5, align 4, !tbaa !9
  %69 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 399, i32 noundef %69, ptr noundef null)
  br label %135

70:                                               ; preds = %61
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = icmp ugt i32 %73, 0
  br i1 %74, label %75, label %134

75:                                               ; preds = %72
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %107, %75
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = sub i32 %78, 1
  %80 = icmp ult i32 %77, %79
  br i1 %80, label %81, label %110

81:                                               ; preds = %76
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i8, ptr %83, i64 %85
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds i64, ptr %87, i64 %89
  %91 = load i64, ptr %90, align 8, !tbaa !11
  %92 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %86, i64 noundef 12, ptr noundef @.str.1, i64 noundef %91) #6
  store i32 %92, ptr %12, align 4, !tbaa !9
  %93 = load i32, ptr %12, align 4, !tbaa !9
  %94 = icmp slt i32 %93, 0
  br i1 %94, label %98, label %95

95:                                               ; preds = %81
  %96 = load i32, ptr %12, align 4, !tbaa !9
  %97 = icmp sge i32 %96, 12
  br i1 %97, label %98, label %103

98:                                               ; preds = %95, %81
  br label %99

99:                                               ; preds = %98
  store i32 26, ptr %5, align 4, !tbaa !9
  %100 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 406, i32 noundef %100, ptr noundef null)
  br label %135

101:                                              ; No predecessors!
  br label %102

102:                                              ; preds = %101
  br label %103

103:                                              ; preds = %102, %95
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = load i32, ptr %13, align 4, !tbaa !9
  %106 = add nsw i32 %105, %104
  store i32 %106, ptr %13, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %103
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = add i32 %108, 1
  store i32 %109, ptr %11, align 4, !tbaa !9
  br label %76, !llvm.loop !13

110:                                              ; preds = %76
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = load i32, ptr %13, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i8, ptr %112, i64 %114
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = load i32, ptr %10, align 4, !tbaa !9
  %118 = sub i32 %117, 1
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds i64, ptr %116, i64 %119
  %121 = load i64, ptr %120, align 8, !tbaa !11
  %122 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %115, i64 noundef 11, ptr noundef @.str.2, i64 noundef %121) #6
  store i32 %122, ptr %12, align 4, !tbaa !9
  %123 = load i32, ptr %12, align 4, !tbaa !9
  %124 = icmp slt i32 %123, 0
  br i1 %124, label %128, label %125

125:                                              ; preds = %110
  %126 = load i32, ptr %12, align 4, !tbaa !9
  %127 = icmp sge i32 %126, 11
  br i1 %127, label %128, label %133

128:                                              ; preds = %125, %110
  br label %129

129:                                              ; preds = %128
  store i32 26, ptr %5, align 4, !tbaa !9
  %130 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 413, i32 noundef %130, ptr noundef null)
  br label %135

131:                                              ; No predecessors!
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132, %125
  br label %134

134:                                              ; preds = %133, %72
  br label %135

135:                                              ; preds = %134, %129, %99, %68, %50, %26, %18
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds [12 x i64], ptr %6, i64 0, i64 0
  %138 = icmp ne ptr %136, %137
  br i1 %138, label %139, label %141

139:                                              ; preds = %135
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %140) #6
  br label %141

141:                                              ; preds = %139, %135
  %142 = load i32, ptr %5, align 4, !tbaa !9
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %148

144:                                              ; preds = %141
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  call void @free(ptr noundef %146) #6
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr null, ptr %147, align 8, !tbaa !5
  br label %148

148:                                              ; preds = %144, %141
  %149 = load i32, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret i32 %149
}

declare i32 @OBJECT_IDENTIFIER_get_arcs(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #5

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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 #4 = { 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 #5 = { nounwind allocsize(0,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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { nounwind allocsize(0,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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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"

@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

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

declare void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 27) i32 @asn_oid_to_text(ptr noundef %0, ptr noundef %1) local_unnamed_addr #4 {
  %3 = alloca [12 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %3) #7
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %4, label %5

4:                                                ; preds = %2
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 385, i32 noundef 2, ptr noundef null) #7
  br label %.thread80

5:                                                ; preds = %2
  %.not62 = icmp eq ptr %0, null
  br i1 %.not62, label %6, label %7

6:                                                ; preds = %5
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 386, i32 noundef 2, ptr noundef null) #7
  br label %.thread80

7:                                                ; preds = %5
  store ptr null, ptr %1, align 8, !tbaa !5
  %8 = call i32 @OBJECT_IDENTIFIER_get_arcs(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef 8, i32 noundef 12) #7
  %9 = icmp ugt i32 %8, 12
  br i1 %9, label %10, label %17

10:                                               ; preds = %7
  %11 = zext i32 %8 to i64
  %12 = shl nuw nsw i64 %11, 3
  %13 = call noalias ptr @malloc(i64 noundef %12) #8
  %14 = icmp eq ptr %13, null
  br i1 %14, label %.thread85, label %15

.thread85:                                        ; preds = %10
  call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 394, i32 noundef 1, ptr noundef null) #7
  br label %.thread80

15:                                               ; preds = %10
  %16 = call i32 @OBJECT_IDENTIFIER_get_arcs(ptr noundef nonnull %0, ptr noundef nonnull %13, i32 noundef 8, i32 noundef %8) #7
  br label %17

17:                                               ; preds = %7, %15
  %.053 = phi ptr [ %13, %15 ], [ %3, %7 ]
  %.051 = phi i32 [ %16, %15 ], [ %8, %7 ]
  %18 = zext i32 %.051 to i64
  %19 = mul nuw nsw i64 %18, 11
  %20 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %19) #9
  store ptr %20, ptr %1, align 8, !tbaa !5
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %23

22:                                               ; preds = %17
  call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 399, i32 noundef 1, ptr noundef null) #7
  br label %41

23:                                               ; preds = %17
  %.not63 = icmp eq i32 %.051, 0
  br i1 %.not63, label %41, label %.preheader

.preheader:                                       ; preds = %23
  %24 = add i32 %.051, -1
  %.not94 = icmp eq i32 %24, 0
  br i1 %.not94, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count = zext i32 %24 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %32
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %32 ]
  %.092 = phi i32 [ 0, %.lr.ph.preheader ], [ %33, %32 ]
  %25 = load ptr, ptr %1, align 8, !tbaa !5
  %26 = sext i32 %.092 to i64
  %27 = getelementptr inbounds i8, ptr %25, i64 %26
  %28 = getelementptr inbounds i64, ptr %.053, i64 %indvars.iv
  %29 = load i64, ptr %28, align 8, !tbaa !9
  %30 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %27, i64 noundef 12, ptr noundef nonnull @.str.1, i64 noundef %29) #7
  %or.cond = icmp ugt i32 %30, 11
  br i1 %or.cond, label %31, label %32

31:                                               ; preds = %.lr.ph
  call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 406, i32 noundef 26, ptr noundef null) #7
  br label %41

32:                                               ; preds = %.lr.ph
  %33 = add nuw nsw i32 %30, %.092
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !11

._crit_edge.loopexit:                             ; preds = %32
  %.pre = load ptr, ptr %1, align 8, !tbaa !5
  %34 = zext nneg i32 %33 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.preheader, %._crit_edge.loopexit
  %.pre-phi = phi i64 [ %wide.trip.count, %._crit_edge.loopexit ], [ 0, %.preheader ]
  %35 = phi ptr [ %.pre, %._crit_edge.loopexit ], [ %20, %.preheader ]
  %.0.lcssa = phi i64 [ %34, %._crit_edge.loopexit ], [ 0, %.preheader ]
  %36 = getelementptr inbounds i8, ptr %35, i64 %.0.lcssa
  %37 = getelementptr inbounds i64, ptr %.053, i64 %.pre-phi
  %38 = load i64, ptr %37, align 8, !tbaa !9
  %39 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %36, i64 noundef 11, ptr noundef nonnull @.str.2, i64 noundef %38) #7
  %or.cond3 = icmp ugt i32 %39, 10
  br i1 %or.cond3, label %40, label %41

40:                                               ; preds = %._crit_edge
  call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 413, i32 noundef 26, ptr noundef null) #7
  br label %41

41:                                               ; preds = %23, %._crit_edge, %40, %31, %22
  %.not65 = phi i1 [ false, %22 ], [ false, %31 ], [ false, %40 ], [ true, %._crit_edge ], [ true, %23 ]
  %.052 = phi i32 [ 1, %22 ], [ 26, %31 ], [ 26, %40 ], [ 0, %._crit_edge ], [ 0, %23 ]
  %.not64 = icmp eq ptr %.053, %3
  br i1 %.not64, label %43, label %42

42:                                               ; preds = %41
  call void @free(ptr noundef nonnull %.053) #7
  br i1 %.not65, label %45, label %.thread80

43:                                               ; preds = %41
  br i1 %.not65, label %45, label %.thread80

.thread80:                                        ; preds = %.thread85, %6, %4, %42, %43
  %.0527183 = phi i32 [ %.052, %43 ], [ %.052, %42 ], [ 2, %4 ], [ 2, %6 ], [ 1, %.thread85 ]
  %44 = load ptr, ptr %1, align 8, !tbaa !5
  call void @free(ptr noundef %44) #7
  store ptr null, ptr %1, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %42, %.thread80, %43
  %.0527184 = phi i32 [ %.0527183, %.thread80 ], [ %.052, %43 ], [ %.052, %42 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %3) #7
  ret i32 %.0527184
}

declare i32 @OBJECT_IDENTIFIER_get_arcs(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #3 = { 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 #4 = { 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 #5 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { nounwind allocsize(0,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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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