; LLVM IR from MinhasKamal/AlgorithmImplementations :: others/huffmanAlgorithm/ZipMaker.ll (Z13zipFileWriterPiP4node)

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

%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<bool, std::allocator<bool>>::_Deque_impl" }
%"struct.std::_Deque_base<bool, std::allocator<bool>>::_Deque_impl" = type { %"struct.std::_Deque_base<bool, std::allocator<bool>>::_Deque_impl_data" }
%"struct.std::_Deque_base<bool, std::allocator<bool>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%struct.node = type { i32, i8, i8, ptr, ptr, ptr }

@input = external dso_local global %"class.std::basic_ifstream", align 8
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13zipFileWriterPiP4node(ptr noundef %0, ptr noundef %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca %"class.std::stack", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) @input, ptr noundef @.str.2, i32 noundef 8)
  %13 = call noundef zeroext i1 @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(256) @input)
  br i1 %13, label %16, label %14

14:                                               ; preds = %2
  %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) @input)
  br label %114

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %17 = call noalias ptr @fopen(ptr noundef @.str.4, ptr noundef @.str.5)
  store ptr %17, ptr %5, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str.6, i32 noundef 97, i32 noundef 123) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %32, %16
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = icmp slt i32 %21, 26
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %35

24:                                               ; preds = %20
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds i32, ptr %26, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str.7, i32 noundef %30) #6
  br label %32

32:                                               ; preds = %24
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %6, align 4, !tbaa !9
  br label %20, !llvm.loop !11

35:                                               ; preds = %23
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %8) #6
  call void @_ZNSt5stackIbSt5dequeIbSaIbEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %8)
  %38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @input, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %39 unwind label %60

39:                                               ; preds = %35
  br label %40

40:                                               ; preds = %105, %39
  %41 = load i8, ptr %7, align 1, !tbaa !13
  %42 = sext i8 %41 to i32
  %43 = icmp ne i32 %42, 35
  br i1 %43, label %44, label %106

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %65, %44
  %46 = load i32, ptr %11, align 4, !tbaa !9
  %47 = icmp slt i32 %46, 26
  br i1 %47, label %48, label %68

48:                                               ; preds = %45
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = load i32, ptr %11, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds %struct.node, ptr %49, i64 %51
  %53 = getelementptr inbounds %struct.node, ptr %52, i32 0, i32 1
  %54 = load i8, ptr %53, align 4, !tbaa !14
  %55 = sext i8 %54 to i32
  %56 = load i8, ptr %7, align 1, !tbaa !13
  %57 = sext i8 %56 to i32
  %58 = icmp eq i32 %55, %57
  br i1 %58, label %59, label %64

59:                                               ; preds = %48
  br label %68

60:                                               ; preds = %111, %106, %35
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %9, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %10, align 4
  br label %113

64:                                               ; preds = %48
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %11, align 4, !tbaa !9
  br label %45, !llvm.loop !17

68:                                               ; preds = %59, %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = load i32, ptr %11, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %struct.node, ptr %69, i64 %71
  store ptr %72, ptr %12, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %81, %68
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.node, ptr %74, i32 0, i32 3
  %76 = load ptr, ptr %75, align 8, !tbaa !18
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %89

78:                                               ; preds = %73
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.node, ptr %79, i32 0, i32 2
  invoke void @_ZNSt5stackIbSt5dequeIbSaIbEEE4pushERKb(ptr noundef nonnull align 8 dereferenceable(80) %8, ptr noundef nonnull align 1 dereferenceable(1) %80)
          to label %81 unwind label %85

81:                                               ; preds = %78
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.node, ptr %82, i32 0, i32 3
  %84 = load ptr, ptr %83, align 8, !tbaa !18
  store ptr %84, ptr %12, align 8, !tbaa !5
  br label %73, !llvm.loop !19

85:                                               ; preds = %103, %97, %94, %90, %78
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %9, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %113

89:                                               ; preds = %73
  br label %90

90:                                               ; preds = %102, %89
  %91 = invoke noundef zeroext i1 @_ZNKSt5stackIbSt5dequeIbSaIbEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %8)
          to label %92 unwind label %85

92:                                               ; preds = %90
  %93 = xor i1 %91, true
  br i1 %93, label %94, label %103

94:                                               ; preds = %92
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIbSt5dequeIbSaIbEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %8)
          to label %97 unwind label %85

97:                                               ; preds = %94
  %98 = load i8, ptr %96, align 1, !tbaa !20, !range !21, !noundef !22
  %99 = trunc i8 %98 to i1
  %100 = zext i1 %99 to i32
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.9, i32 noundef %100) #6
  invoke void @_ZNSt5stackIbSt5dequeIbSaIbEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %8)
          to label %102 unwind label %85

102:                                              ; preds = %97
  br label %90, !llvm.loop !23

103:                                              ; preds = %92
  %104 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @input, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %105 unwind label %85

105:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %40, !llvm.loop !24

106:                                              ; preds = %40
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.10) #6
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = invoke i32 @fclose(ptr noundef %109)
          to label %111 unwind label %60

111:                                              ; preds = %106
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) @input)
          to label %112 unwind label %60

112:                                              ; preds = %111
  call void @_ZNSt5stackIbSt5dequeIbSaIbEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %114

113:                                              ; preds = %85, %60
  call void @_ZNSt5stackIbSt5dequeIbSaIbEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %115

114:                                              ; preds = %112, %14
  ret void

115:                                              ; preds = %113
  %116 = load ptr, ptr %9, align 8
  %117 = load i32, ptr %10, align 4
  %118 = insertvalue { ptr, i32 } poison, ptr %116, 0
  %119 = insertvalue { ptr, i32 } %118, i32 %117, 1
  resume { ptr, i32 } %119
}

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(256)) #2 align 2

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256)) #1 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5stackIbSt5dequeIbSaIbEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5stackIbSt5dequeIbSaIbEEE4pushERKb(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5stackIbSt5dequeIbSaIbEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIbSt5dequeIbSaIbEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackIbSt5dequeIbSaIbEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

declare i32 @fclose(ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackIbSt5dequeIbSaIbEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress 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 #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 "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 = { inlinehint mustprogress 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 #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 4}
!15 = !{!"_ZTS4node", !10, i64 0, !7, i64 4, !16, i64 5, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!"bool", !7, i64 0}
!17 = distinct !{!17, !12}
!18 = !{!15, !6, i64 8}
!19 = distinct !{!19, !12}
!20 = !{!16, !16, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}


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

%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<bool, std::allocator<bool>>::_Deque_impl" }
%"struct.std::_Deque_base<bool, std::allocator<bool>>::_Deque_impl" = type { %"struct.std::_Deque_base<bool, std::allocator<bool>>::_Deque_impl_data" }
%"struct.std::_Deque_base<bool, std::allocator<bool>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%struct.node = type { i32, i8, i8, ptr, ptr, ptr }

@input = external dso_local global %"class.std::basic_ifstream", align 8
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13zipFileWriterPiP4node(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca i8, align 1
  %4 = alloca %"class.std::stack", align 8
  tail call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) @input, ptr noundef nonnull @.str.2, i32 noundef 8)
  %5 = tail call noundef zeroext i1 @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(256) @input)
  br i1 %5, label %8, label %6

6:                                                ; preds = %2
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  tail call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) @input)
  br label %193

8:                                                ; preds = %2
  %9 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5)
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.6, i32 noundef 97, i32 noundef 123) #6
  %11 = load i32, ptr %0, align 4, !tbaa !5
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %11) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 4
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %14) #6
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %17) #6
  %19 = getelementptr inbounds i8, ptr %0, i64 12
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %20) #6
  %22 = getelementptr inbounds i8, ptr %0, i64 16
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %23) #6
  %25 = getelementptr inbounds i8, ptr %0, i64 20
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %26) #6
  %28 = getelementptr inbounds i8, ptr %0, i64 24
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %29) #6
  %31 = getelementptr inbounds i8, ptr %0, i64 28
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %32) #6
  %34 = getelementptr inbounds i8, ptr %0, i64 32
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %35) #6
  %37 = getelementptr inbounds i8, ptr %0, i64 36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %38) #6
  %40 = getelementptr inbounds i8, ptr %0, i64 40
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %41) #6
  %43 = getelementptr inbounds i8, ptr %0, i64 44
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %44) #6
  %46 = getelementptr inbounds i8, ptr %0, i64 48
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %47) #6
  %49 = getelementptr inbounds i8, ptr %0, i64 52
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %50) #6
  %52 = getelementptr inbounds i8, ptr %0, i64 56
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %53) #6
  %55 = getelementptr inbounds i8, ptr %0, i64 60
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %56) #6
  %58 = getelementptr inbounds i8, ptr %0, i64 64
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %59) #6
  %61 = getelementptr inbounds i8, ptr %0, i64 68
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %62) #6
  %64 = getelementptr inbounds i8, ptr %0, i64 72
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %65) #6
  %67 = getelementptr inbounds i8, ptr %0, i64 76
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %68) #6
  %70 = getelementptr inbounds i8, ptr %0, i64 80
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %71) #6
  %73 = getelementptr inbounds i8, ptr %0, i64 84
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %74) #6
  %76 = getelementptr inbounds i8, ptr %0, i64 88
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %77) #6
  %79 = getelementptr inbounds i8, ptr %0, i64 92
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %80) #6
  %82 = getelementptr inbounds i8, ptr %0, i64 96
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %83) #6
  %85 = getelementptr inbounds i8, ptr %0, i64 100
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.7, i32 noundef %86) #6
  %88 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #6
  call void @_ZNSt5stackIbSt5dequeIbSaIbEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  %89 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @input, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %.preheader27.preheader unwind label %119

.preheader27.preheader:                           ; preds = %8
  %90 = getelementptr inbounds i8, ptr %1, i64 4
  %91 = getelementptr inbounds i8, ptr %1, i64 36
  %92 = getelementptr inbounds i8, ptr %1, i64 68
  %93 = getelementptr inbounds i8, ptr %1, i64 100
  %94 = getelementptr inbounds i8, ptr %1, i64 132
  %95 = getelementptr inbounds i8, ptr %1, i64 164
  %96 = getelementptr inbounds i8, ptr %1, i64 196
  %97 = getelementptr inbounds i8, ptr %1, i64 228
  %98 = getelementptr inbounds i8, ptr %1, i64 260
  %99 = getelementptr inbounds i8, ptr %1, i64 292
  %100 = getelementptr inbounds i8, ptr %1, i64 324
  %101 = getelementptr inbounds i8, ptr %1, i64 356
  %102 = getelementptr inbounds i8, ptr %1, i64 388
  %103 = getelementptr inbounds i8, ptr %1, i64 420
  %104 = getelementptr inbounds i8, ptr %1, i64 452
  %105 = getelementptr inbounds i8, ptr %1, i64 484
  %106 = getelementptr inbounds i8, ptr %1, i64 516
  %107 = getelementptr inbounds i8, ptr %1, i64 548
  %108 = getelementptr inbounds i8, ptr %1, i64 580
  %109 = getelementptr inbounds i8, ptr %1, i64 612
  %110 = getelementptr inbounds i8, ptr %1, i64 644
  %111 = getelementptr inbounds i8, ptr %1, i64 676
  %112 = getelementptr inbounds i8, ptr %1, i64 708
  %113 = getelementptr inbounds i8, ptr %1, i64 740
  %114 = getelementptr inbounds i8, ptr %1, i64 772
  %115 = getelementptr inbounds i8, ptr %1, i64 804
  br label %.preheader27

.preheader27:                                     ; preds = %.preheader27.preheader, %._crit_edge
  %116 = load i8, ptr %3, align 1, !tbaa !9
  %.not = icmp eq i8 %116, 35
  br i1 %.not, label %188, label %.preheader26.preheader

.preheader26.preheader:                           ; preds = %.preheader27
  %117 = load i8, ptr %90, align 4, !tbaa !10
  %118 = icmp eq i8 %117, %116
  br i1 %118, label %171, label %.preheader26.1

119:                                              ; preds = %188, %8
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %192

.preheader26.1:                                   ; preds = %.preheader26.preheader
  %121 = load i8, ptr %91, align 4, !tbaa !10
  %122 = icmp eq i8 %121, %116
  br i1 %122, label %171, label %.preheader26.2

.preheader26.2:                                   ; preds = %.preheader26.1
  %123 = load i8, ptr %92, align 4, !tbaa !10
  %124 = icmp eq i8 %123, %116
  br i1 %124, label %171, label %.preheader26.3

.preheader26.3:                                   ; preds = %.preheader26.2
  %125 = load i8, ptr %93, align 4, !tbaa !10
  %126 = icmp eq i8 %125, %116
  br i1 %126, label %171, label %.preheader26.4

.preheader26.4:                                   ; preds = %.preheader26.3
  %127 = load i8, ptr %94, align 4, !tbaa !10
  %128 = icmp eq i8 %127, %116
  br i1 %128, label %171, label %.preheader26.5

.preheader26.5:                                   ; preds = %.preheader26.4
  %129 = load i8, ptr %95, align 4, !tbaa !10
  %130 = icmp eq i8 %129, %116
  br i1 %130, label %171, label %.preheader26.6

.preheader26.6:                                   ; preds = %.preheader26.5
  %131 = load i8, ptr %96, align 4, !tbaa !10
  %132 = icmp eq i8 %131, %116
  br i1 %132, label %171, label %.preheader26.7

.preheader26.7:                                   ; preds = %.preheader26.6
  %133 = load i8, ptr %97, align 4, !tbaa !10
  %134 = icmp eq i8 %133, %116
  br i1 %134, label %171, label %.preheader26.8

.preheader26.8:                                   ; preds = %.preheader26.7
  %135 = load i8, ptr %98, align 4, !tbaa !10
  %136 = icmp eq i8 %135, %116
  br i1 %136, label %171, label %.preheader26.9

.preheader26.9:                                   ; preds = %.preheader26.8
  %137 = load i8, ptr %99, align 4, !tbaa !10
  %138 = icmp eq i8 %137, %116
  br i1 %138, label %171, label %.preheader26.10

.preheader26.10:                                  ; preds = %.preheader26.9
  %139 = load i8, ptr %100, align 4, !tbaa !10
  %140 = icmp eq i8 %139, %116
  br i1 %140, label %171, label %.preheader26.11

.preheader26.11:                                  ; preds = %.preheader26.10
  %141 = load i8, ptr %101, align 4, !tbaa !10
  %142 = icmp eq i8 %141, %116
  br i1 %142, label %171, label %.preheader26.12

.preheader26.12:                                  ; preds = %.preheader26.11
  %143 = load i8, ptr %102, align 4, !tbaa !10
  %144 = icmp eq i8 %143, %116
  br i1 %144, label %171, label %.preheader26.13

.preheader26.13:                                  ; preds = %.preheader26.12
  %145 = load i8, ptr %103, align 4, !tbaa !10
  %146 = icmp eq i8 %145, %116
  br i1 %146, label %171, label %.preheader26.14

.preheader26.14:                                  ; preds = %.preheader26.13
  %147 = load i8, ptr %104, align 4, !tbaa !10
  %148 = icmp eq i8 %147, %116
  br i1 %148, label %171, label %.preheader26.15

.preheader26.15:                                  ; preds = %.preheader26.14
  %149 = load i8, ptr %105, align 4, !tbaa !10
  %150 = icmp eq i8 %149, %116
  br i1 %150, label %171, label %.preheader26.16

.preheader26.16:                                  ; preds = %.preheader26.15
  %151 = load i8, ptr %106, align 4, !tbaa !10
  %152 = icmp eq i8 %151, %116
  br i1 %152, label %171, label %.preheader26.17

.preheader26.17:                                  ; preds = %.preheader26.16
  %153 = load i8, ptr %107, align 4, !tbaa !10
  %154 = icmp eq i8 %153, %116
  br i1 %154, label %171, label %.preheader26.18

.preheader26.18:                                  ; preds = %.preheader26.17
  %155 = load i8, ptr %108, align 4, !tbaa !10
  %156 = icmp eq i8 %155, %116
  br i1 %156, label %171, label %.preheader26.19

.preheader26.19:                                  ; preds = %.preheader26.18
  %157 = load i8, ptr %109, align 4, !tbaa !10
  %158 = icmp eq i8 %157, %116
  br i1 %158, label %171, label %.preheader26.20

.preheader26.20:                                  ; preds = %.preheader26.19
  %159 = load i8, ptr %110, align 4, !tbaa !10
  %160 = icmp eq i8 %159, %116
  br i1 %160, label %171, label %.preheader26.21

.preheader26.21:                                  ; preds = %.preheader26.20
  %161 = load i8, ptr %111, align 4, !tbaa !10
  %162 = icmp eq i8 %161, %116
  br i1 %162, label %171, label %.preheader26.22

.preheader26.22:                                  ; preds = %.preheader26.21
  %163 = load i8, ptr %112, align 4, !tbaa !10
  %164 = icmp eq i8 %163, %116
  br i1 %164, label %171, label %.preheader26.23

.preheader26.23:                                  ; preds = %.preheader26.22
  %165 = load i8, ptr %113, align 4, !tbaa !10
  %166 = icmp eq i8 %165, %116
  br i1 %166, label %171, label %.preheader26.24

.preheader26.24:                                  ; preds = %.preheader26.23
  %167 = load i8, ptr %114, align 4, !tbaa !10
  %168 = icmp eq i8 %167, %116
  br i1 %168, label %171, label %.preheader26.25

.preheader26.25:                                  ; preds = %.preheader26.24
  %169 = load i8, ptr %115, align 4, !tbaa !10
  %170 = icmp eq i8 %169, %116
  %spec.select = select i1 %170, i64 25, i64 26
  br label %171

171:                                              ; preds = %.preheader26.25, %.preheader26.24, %.preheader26.23, %.preheader26.22, %.preheader26.21, %.preheader26.20, %.preheader26.19, %.preheader26.18, %.preheader26.17, %.preheader26.16, %.preheader26.15, %.preheader26.14, %.preheader26.13, %.preheader26.12, %.preheader26.11, %.preheader26.10, %.preheader26.9, %.preheader26.8, %.preheader26.7, %.preheader26.6, %.preheader26.5, %.preheader26.4, %.preheader26.3, %.preheader26.2, %.preheader26.1, %.preheader26.preheader
  %.020.lcssa = phi i64 [ 0, %.preheader26.preheader ], [ 1, %.preheader26.1 ], [ 2, %.preheader26.2 ], [ 3, %.preheader26.3 ], [ 4, %.preheader26.4 ], [ 5, %.preheader26.5 ], [ 6, %.preheader26.6 ], [ 7, %.preheader26.7 ], [ 8, %.preheader26.8 ], [ 9, %.preheader26.9 ], [ 10, %.preheader26.10 ], [ 11, %.preheader26.11 ], [ 12, %.preheader26.12 ], [ 13, %.preheader26.13 ], [ 14, %.preheader26.14 ], [ 15, %.preheader26.15 ], [ 16, %.preheader26.16 ], [ 17, %.preheader26.17 ], [ 18, %.preheader26.18 ], [ 19, %.preheader26.19 ], [ 20, %.preheader26.20 ], [ 21, %.preheader26.21 ], [ 22, %.preheader26.22 ], [ 23, %.preheader26.23 ], [ 24, %.preheader26.24 ], [ %spec.select, %.preheader26.25 ]
  %172 = getelementptr inbounds %struct.node, ptr %1, i64 %.020.lcssa
  %173 = getelementptr inbounds i8, ptr %172, i64 8
  %174 = load ptr, ptr %173, align 8, !tbaa !14
  %.not2430 = icmp eq ptr %174, null
  br i1 %.not2430, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %178, %171
  %175 = call noundef zeroext i1 @_ZNKSt5stackIbSt5dequeIbSaIbEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  br i1 %175, label %._crit_edge, label %.lr.ph32

.lr.ph:                                           ; preds = %171, %178
  %176 = phi ptr [ %180, %178 ], [ %173, %171 ]
  %.031 = phi ptr [ %179, %178 ], [ %172, %171 ]
  %177 = getelementptr inbounds i8, ptr %.031, i64 5
  invoke void @_ZNSt5stackIbSt5dequeIbSaIbEEE4pushERKb(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 1 dereferenceable(1) %177)
          to label %178 unwind label %.loopexit

178:                                              ; preds = %.lr.ph
  %179 = load ptr, ptr %176, align 8, !tbaa !14
  %180 = getelementptr inbounds i8, ptr %179, i64 8
  %181 = load ptr, ptr %180, align 8, !tbaa !14
  %.not24 = icmp eq ptr %181, null
  br i1 %.not24, label %.preheader, label %.lr.ph, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %192

.loopexit.split-lp:                               ; preds = %._crit_edge
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %192

.lr.ph32:                                         ; preds = %.preheader, %.lr.ph32
  %182 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIbSt5dequeIbSaIbEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  %183 = load i8, ptr %182, align 1, !tbaa !17, !range !18, !noundef !19
  %184 = zext nneg i8 %183 to i32
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.9, i32 noundef %184) #6
  call void @_ZNSt5stackIbSt5dequeIbSaIbEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  %186 = call noundef zeroext i1 @_ZNKSt5stackIbSt5dequeIbSaIbEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  br i1 %186, label %._crit_edge, label %.lr.ph32, !llvm.loop !20

._crit_edge:                                      ; preds = %.lr.ph32, %.preheader
  %187 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @input, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %.preheader27 unwind label %.loopexit.split-lp, !llvm.loop !21

188:                                              ; preds = %.preheader27
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.10) #6
  %190 = call i32 @fclose(ptr noundef %9)
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) @input)
          to label %191 unwind label %119

191:                                              ; preds = %188
  call void @_ZNSt5stackIbSt5dequeIbSaIbEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  br label %193

192:                                              ; preds = %.loopexit, %.loopexit.split-lp, %119
  %.pn = phi { ptr, i32 } [ %120, %119 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt5stackIbSt5dequeIbSaIbEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn

193:                                              ; preds = %191, %6
  ret void
}

; 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 uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #1 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5stackIbSt5dequeIbSaIbEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5stackIbSt5dequeIbSaIbEEE4pushERKb(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5stackIbSt5dequeIbSaIbEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5stackIbSt5dequeIbSaIbEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackIbSt5dequeIbSaIbEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackIbSt5dequeIbSaIbEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress 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 #3 = { 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 #4 = { "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 = { inlinehint mustprogress 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 #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !7, i64 4}
!11 = !{!"_ZTS4node", !6, i64 0, !7, i64 4, !12, i64 5, !13, i64 8, !13, i64 16, !13, i64 24}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!11, !13, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!12, !12, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}


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