; LLVM IR from artagnon/phoenixfs :: persist (dump_dr_tree)

; 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.node = type { ptr, ptr, ptr, i8, i16, ptr }
%struct.dir_record = type { [4096 x i8], ptr }

@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1

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

14:                                               ; preds = %2
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call i64 @fwrite(ptr noundef %8, i64 noundef 2, i64 noundef 1, ptr noundef %15)
  store i32 1, ptr %10, align 4
  br label %166

17:                                               ; preds = %2
  br label %18

18:                                               ; preds = %24, %17
  %19 = load ptr, ptr %9, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.node, ptr %19, i32 0, i32 3
  %21 = load i8, ptr %20, align 8, !tbaa !11, !range !15, !noundef !16
  %22 = trunc i8 %21 to i1
  %23 = xor i1 %22, true
  br i1 %23, label %24, label %30

24:                                               ; preds = %18
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.node, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = getelementptr inbounds ptr, ptr %27, i64 0
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  store ptr %29, ptr %9, align 8, !tbaa !5
  br label %18, !llvm.loop !18

30:                                               ; preds = %18
  br label %31

31:                                               ; preds = %65, %30
  br label %32

32:                                               ; preds = %31
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %43, %32
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.node, ptr %35, i32 0, i32 4
  %37 = load i16, ptr %36, align 2, !tbaa !20
  %38 = zext i16 %37 to i32
  %39 = icmp slt i32 %34, %38
  br i1 %39, label %40, label %46

40:                                               ; preds = %33
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %7, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %40
  %44 = load i32, ptr %8, align 4, !tbaa !9
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %8, align 4, !tbaa !9
  br label %33, !llvm.loop !21

46:                                               ; preds = %33
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.node, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !17
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %64

51:                                               ; preds = %46
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.node, ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !17
  %55 = getelementptr inbounds ptr, ptr %54, i64 2
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %64

58:                                               ; preds = %51
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.node, ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !17
  %62 = getelementptr inbounds ptr, ptr %61, i64 2
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  store ptr %63, ptr %9, align 8, !tbaa !5
  br label %65

64:                                               ; preds = %51, %46
  br label %66

65:                                               ; preds = %58
  br label %31

66:                                               ; preds = %64
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = call i64 @fwrite(ptr noundef %7, i64 noundef 2, i64 noundef 1, ptr noundef %67)
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %69, ptr %9, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %76, %66
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.node, ptr %71, i32 0, i32 3
  %73 = load i8, ptr %72, align 8, !tbaa !11, !range !15, !noundef !16
  %74 = trunc i8 %73 to i1
  %75 = xor i1 %74, true
  br i1 %75, label %76, label %82

76:                                               ; preds = %70
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.node, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !17
  %80 = getelementptr inbounds ptr, ptr %79, i64 0
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  store ptr %81, ptr %9, align 8, !tbaa !5
  br label %70, !llvm.loop !22

82:                                               ; preds = %70
  br label %83

83:                                               ; preds = %163, %82
  br label %84

84:                                               ; preds = %83
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %141, %84
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.node, ptr %87, i32 0, i32 4
  %89 = load i16, ptr %88, align 2, !tbaa !20
  %90 = zext i16 %89 to i32
  %91 = icmp slt i32 %86, %90
  br i1 %91, label %92, label %144

92:                                               ; preds = %85
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.node, ptr %93, i32 0, i32 1
  %95 = load ptr, ptr %94, align 8, !tbaa !23
  %96 = load i32, ptr %8, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i16, ptr %95, i64 %97
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = call i64 @fwrite(ptr noundef %98, i64 noundef 2, i64 noundef 1, ptr noundef %99)
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.node, ptr %102, i32 0, i32 1
  %104 = load ptr, ptr %103, align 8, !tbaa !23
  %105 = load i32, ptr %8, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i16, ptr %104, i64 %106
  %108 = load i16, ptr %107, align 2, !tbaa !24
  %109 = call ptr @find(ptr noundef %101, i16 noundef zeroext %108, i1 noundef zeroext false)
  store ptr %109, ptr %5, align 8, !tbaa !5
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.dir_record, ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds [4096 x i8], ptr %111, i64 0, i64 0
  %113 = call i64 @strlen(ptr noundef %112) #6
  %114 = trunc i64 %113 to i16
  store i16 %114, ptr %6, align 2, !tbaa !24
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = call i64 @fwrite(ptr noundef %6, i64 noundef 2, i64 noundef 1, ptr noundef %115)
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.dir_record, ptr %117, i32 0, i32 0
  %119 = getelementptr inbounds [4096 x i8], ptr %118, i64 0, i64 0
  %120 = load i16, ptr %6, align 2, !tbaa !24
  %121 = zext i16 %120 to i64
  %122 = mul i64 %121, 1
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = call i64 @fwrite(ptr noundef %119, i64 noundef %122, i64 noundef 1, ptr noundef %123)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %125 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %125, ptr %11, align 8, !tbaa !5
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %136

128:                                              ; preds = %92
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.dir_record, ptr %130, i32 0, i32 0
  %132 = getelementptr inbounds [4096 x i8], ptr %131, i64 0, i64 0
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %129, ptr noundef @.str.2, i32 noundef 155, ptr noundef %132) #5
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = call i32 @fclose(ptr noundef %134)
  br label %136

136:                                              ; preds = %128, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.dir_record, ptr %137, i32 0, i32 1
  %139 = load ptr, ptr %138, align 8, !tbaa !25
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  call void @dump_vfr_tree(ptr noundef %139, ptr noundef %140)
  br label %141

141:                                              ; preds = %136
  %142 = load i32, ptr %8, align 4, !tbaa !9
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %8, align 4, !tbaa !9
  br label %85, !llvm.loop !27

144:                                              ; preds = %85
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.node, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !17
  %148 = icmp ne ptr %147, null
  br i1 %148, label %149, label %162

149:                                              ; preds = %144
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.node, ptr %150, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8, !tbaa !17
  %153 = getelementptr inbounds ptr, ptr %152, i64 2
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = icmp ne ptr %154, null
  br i1 %155, label %156, label %162

156:                                              ; preds = %149
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.node, ptr %157, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8, !tbaa !17
  %160 = getelementptr inbounds ptr, ptr %159, i64 2
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  store ptr %161, ptr %9, align 8, !tbaa !5
  br label %163

162:                                              ; preds = %149, %144
  br label %164

163:                                              ; preds = %156
  br label %83

164:                                              ; preds = %162
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroy_tree(ptr noundef %165)
  store i32 0, ptr %10, align 4
  br label %166

166:                                              ; preds = %164, %14
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  %167 = load i32, ptr %10, align 4
  switch i32 %167, label %169 [
    i32 0, label %168
    i32 1, label %168
  ]

168:                                              ; preds = %166, %166
  ret void

169:                                              ; preds = %166
  unreachable
}

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

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

declare ptr @find(ptr noundef, i16 noundef zeroext, i1 noundef zeroext) #2

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

declare i32 @fclose(ptr noundef) #2

; 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 hidden void @dump_vfr_tree(ptr noundef, ptr noundef) #0

declare void @destroy_tree(ptr noundef) #2

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 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 24}
!12 = !{!"node", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !14, i64 26, !6, i64 32}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!12, !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!12, !14, i64 26}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}
!23 = !{!12, !6, i64 8}
!24 = !{!14, !14, i64 0}
!25 = !{!26, !6, i64 4096}
!26 = !{!"dir_record", !7, i64 0, !6, i64 4096}
!27 = distinct !{!27, !19}


; 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 [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @dump_dr_tree(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca i16, align 2
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %9, label %.preheader45

.preheader45:                                     ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i8, ptr %6, align 8, !tbaa !9, !range !14, !noundef !15
  %8 = trunc nuw i8 %7 to i1
  br i1 %8, label %._crit_edge.preheader, label %.lr.ph

9:                                                ; preds = %2
  %10 = call i64 @fwrite(ptr noundef nonnull %5, i64 noundef 2, i64 noundef 1, ptr noundef %1)
  br label %65

.lr.ph:                                           ; preds = %.preheader45, %.lr.ph
  %.046 = phi ptr [ %12, %.lr.ph ], [ %0, %.preheader45 ]
  %11 = load ptr, ptr %.046, align 8, !tbaa !16
  %12 = load ptr, ptr %11, align 8, !tbaa !17
  %13 = getelementptr inbounds i8, ptr %12, i64 24
  %14 = load i8, ptr %13, align 8, !tbaa !9, !range !14, !noundef !15
  %15 = trunc nuw i8 %14 to i1
  br i1 %15, label %._crit_edge.preheader, label %.lr.ph, !llvm.loop !18

._crit_edge.preheader:                            ; preds = %.lr.ph, %.preheader45
  %.1.ph = phi ptr [ %0, %.preheader45 ], [ %12, %.lr.ph ]
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.preheader, %21
  %.lcssa52 = phi i32 [ %19, %21 ], [ 0, %._crit_edge.preheader ]
  %.1 = phi ptr [ %23, %21 ], [ %.1.ph, %._crit_edge.preheader ]
  %16 = getelementptr inbounds i8, ptr %.1, i64 26
  %17 = load i16, ptr %16, align 2, !tbaa !20
  %18 = zext i16 %17 to i32
  %19 = add i32 %.lcssa52, %18
  %20 = load ptr, ptr %.1, align 8, !tbaa !16
  %.not38 = icmp eq ptr %20, null
  br i1 %.not38, label %24, label %21

21:                                               ; preds = %._crit_edge
  %22 = getelementptr inbounds i8, ptr %20, i64 16
  %23 = load ptr, ptr %22, align 8, !tbaa !17
  %.not39 = icmp eq ptr %23, null
  br i1 %.not39, label %24, label %._crit_edge

24:                                               ; preds = %._crit_edge, %21
  store i32 %19, ptr %4, align 4, !tbaa !5
  %25 = call i64 @fwrite(ptr noundef nonnull %4, i64 noundef 2, i64 noundef 1, ptr noundef %1)
  %26 = load i8, ptr %6, align 8, !tbaa !9, !range !14, !noundef !15
  %27 = trunc nuw i8 %26 to i1
  br i1 %27, label %.preheader.preheader, label %.lr.ph55

.lr.ph55:                                         ; preds = %24, %.lr.ph55
  %.253 = phi ptr [ %29, %.lr.ph55 ], [ %0, %24 ]
  %28 = load ptr, ptr %.253, align 8, !tbaa !16
  %29 = load ptr, ptr %28, align 8, !tbaa !17
  %30 = getelementptr inbounds i8, ptr %29, i64 24
  %31 = load i8, ptr %30, align 8, !tbaa !9, !range !14, !noundef !15
  %32 = trunc nuw i8 %31 to i1
  br i1 %32, label %.preheader.preheader, label %.lr.ph55, !llvm.loop !21

.preheader.preheader:                             ; preds = %.lr.ph55, %24
  %.3.ph = phi ptr [ %0, %24 ], [ %29, %.lr.ph55 ]
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %61
  %.3 = phi ptr [ %63, %61 ], [ %.3.ph, %.preheader.preheader ]
  %33 = getelementptr inbounds i8, ptr %.3, i64 26
  %34 = load i16, ptr %33, align 2, !tbaa !20
  %.not63 = icmp eq i16 %34, 0
  br i1 %.not63, label %._crit_edge60, label %.lr.ph59

.lr.ph59:                                         ; preds = %.preheader
  %35 = getelementptr inbounds i8, ptr %.3, i64 8
  br label %36

36:                                               ; preds = %.lr.ph59, %54
  %indvars.iv = phi i64 [ 0, %.lr.ph59 ], [ %indvars.iv.next, %54 ]
  %37 = load ptr, ptr %35, align 8, !tbaa !22
  %38 = getelementptr inbounds i16, ptr %37, i64 %indvars.iv
  %39 = tail call i64 @fwrite(ptr noundef %38, i64 noundef 2, i64 noundef 1, ptr noundef %1)
  %40 = load ptr, ptr %35, align 8, !tbaa !22
  %41 = getelementptr inbounds i16, ptr %40, i64 %indvars.iv
  %42 = load i16, ptr %41, align 2, !tbaa !23
  %43 = tail call ptr @find(ptr noundef nonnull %0, i16 noundef zeroext %42, i1 noundef zeroext false) #5
  %44 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %43) #6
  %45 = trunc i64 %44 to i16
  store i16 %45, ptr %3, align 2, !tbaa !23
  %46 = call i64 @fwrite(ptr noundef nonnull %3, i64 noundef 2, i64 noundef 1, ptr noundef %1)
  %47 = load i16, ptr %3, align 2, !tbaa !23
  %48 = zext i16 %47 to i64
  %49 = tail call i64 @fwrite(ptr noundef %43, i64 noundef %48, i64 noundef 1, ptr noundef %1)
  %50 = tail call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %.not43 = icmp eq ptr %50, null
  br i1 %.not43, label %54, label %51

51:                                               ; preds = %36
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %50, ptr noundef nonnull @.str.2, i32 noundef 155, ptr noundef %43) #5
  %53 = tail call i32 @fclose(ptr noundef nonnull %50)
  br label %54

54:                                               ; preds = %51, %36
  %55 = getelementptr inbounds i8, ptr %43, i64 4096
  %56 = load ptr, ptr %55, align 8, !tbaa !24
  tail call void @dump_vfr_tree(ptr noundef %56, ptr noundef %1)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %57 = load i16, ptr %33, align 2, !tbaa !20
  %58 = zext i16 %57 to i64
  %59 = icmp ult i64 %indvars.iv.next, %58
  br i1 %59, label %36, label %._crit_edge60, !llvm.loop !26

._crit_edge60:                                    ; preds = %54, %.preheader
  %60 = load ptr, ptr %.3, align 8, !tbaa !16
  %.not41 = icmp eq ptr %60, null
  br i1 %.not41, label %64, label %61

61:                                               ; preds = %._crit_edge60
  %62 = getelementptr inbounds i8, ptr %60, i64 16
  %63 = load ptr, ptr %62, align 8, !tbaa !17
  %.not42 = icmp eq ptr %63, null
  br i1 %.not42, label %64, label %.preheader

64:                                               ; preds = %._crit_edge60, %61
  tail call void @destroy_tree(ptr noundef nonnull %0) #5
  br label %65

65:                                               ; preds = %64, %9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %3) #5
  ret void
}

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

; Function Attrs: nofree nounwind
declare noundef i64 @fwrite(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

declare ptr @find(ptr noundef, i16 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2

; 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 hidden void @dump_vfr_tree(ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @destroy_tree(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 = { 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 #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 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 24}
!10 = !{!"node", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !13, i64 26, !11, i64 32}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!10, !11, i64 0}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !13, i64 26}
!21 = distinct !{!21, !19}
!22 = !{!10, !11, i64 8}
!23 = !{!13, !13, i64 0}
!24 = !{!25, !11, i64 4096}
!25 = !{!"dir_record", !7, i64 0, !11, i64 4096}
!26 = distinct !{!26, !19}


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