; LLVM IR from JayXon/Leanify :: formats/tar.ll (ZN3Tar7LeanifyEm)

; 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_ostream" = type { ptr, %"class.std::basic_ios" }
%"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::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%class.Tar = type <{ %class.Format, i8, [7 x i8] }>
%class.Format = type { ptr, ptr, i64 }

@depth = external global i32, align 4
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [25 x i8], align 1
@max_depth = external global i32, align 4
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_112CalcChecksumEPh(ptr noundef) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN3Tar7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(25) %0, i64 noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %22 = load ptr, ptr %4, align 8
  %23 = getelementptr inbounds %class.Tar, ptr %22, i32 0, i32 1
  %24 = load i8, ptr %23, align 8, !tbaa !11, !range !15, !noundef !16
  %25 = trunc i8 %24 to i1
  br i1 %25, label %29, label %26

26:                                               ; preds = %2
  %27 = load i64, ptr %5, align 8, !tbaa !9
  %28 = call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %27)
  store i64 %28, ptr %3, align 8
  br label %209

29:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %30 = getelementptr inbounds %class.Format, ptr %22, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  store ptr %31, ptr %6, align 8, !tbaa !5
  %32 = load i64, ptr %5, align 8, !tbaa !9
  %33 = getelementptr inbounds %class.Format, ptr %22, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %35 = sub i64 0, %32
  %36 = getelementptr inbounds i8, ptr %34, i64 %35
  store ptr %36, ptr %33, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %37 = getelementptr inbounds %class.Format, ptr %22, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !17
  store ptr %38, ptr %7, align 8, !tbaa !5
  %39 = load i32, ptr @depth, align 4, !tbaa !18
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr @depth, align 4, !tbaa !18
  br label %41

41:                                               ; preds = %187, %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = call noundef i32 @_ZN12_GLOBAL__N_112CalcChecksumEPh(ptr noundef %42)
  store i32 %43, ptr %8, align 4, !tbaa !18
  %44 = load i32, ptr %8, align 4, !tbaa !18
  %45 = icmp eq i32 %44, 256
  br i1 %45, label %46, label %47

46:                                               ; preds = %41
  store i32 2, ptr %9, align 4
  br label %184

47:                                               ; preds = %41
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %48, ptr align 1 %49, i64 512, i1 false)
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 512
  store ptr %51, ptr %6, align 8, !tbaa !5
  %52 = load i32, ptr %8, align 4, !tbaa !18
  %53 = sext i32 %52 to i64
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 148
  %56 = call i64 @strtol(ptr noundef %55, ptr noundef null, i32 noundef 8) #8
  %57 = icmp ne i64 %53, %56
  br i1 %57, label %58, label %63

58:                                               ; preds = %47
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i64 512
  store ptr %62, ptr %7, align 8, !tbaa !5
  store i32 3, ptr %9, align 4
  br label %184

63:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #8
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 156
  %66 = load i8, ptr %65, align 1, !tbaa !20
  store i8 %66, ptr %10, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 124
  %69 = call i64 @strtol(ptr noundef %68, ptr noundef null, i32 noundef 8) #8
  store i64 %69, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %70 = load i64, ptr %11, align 8, !tbaa !9
  %71 = call noundef i64 @_Z7RoundUpmm(i64 noundef %70, i64 noundef 512)
  store i64 %71, ptr %12, align 8, !tbaa !9
  %72 = load i64, ptr %11, align 8, !tbaa !9
  %73 = icmp ne i64 %72, 0
  br i1 %73, label %74, label %181

74:                                               ; preds = %63
  %75 = load i8, ptr %10, align 1, !tbaa !20
  %76 = sext i8 %75 to i32
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %82, label %78

78:                                               ; preds = %74
  %79 = load i8, ptr %10, align 1, !tbaa !20
  %80 = sext i8 %79 to i32
  %81 = icmp eq i32 %80, 48
  br i1 %81, label %82, label %169

82:                                               ; preds = %78, %74
  %83 = load i32, ptr @depth, align 4, !tbaa !18
  %84 = load i32, ptr @max_depth, align 4, !tbaa !18
  %85 = icmp sle i32 %83, %84
  br i1 %85, label %86, label %169

86:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %87, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef %88, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %89 unwind label %131

89:                                               ; preds = %86
  invoke void @_Z13PrintFileNameRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %90 unwind label %135

90:                                               ; preds = %89
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = load i64, ptr %11, align 8, !tbaa !9
  %93 = load i64, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #8
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef %94, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %95 unwind label %140

95:                                               ; preds = %90
  %96 = invoke noundef i64 @_Z11LeanifyFilePvmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %91, i64 noundef %92, i64 noundef %93, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %97 unwind label %144

97:                                               ; preds = %95
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  store i64 %96, ptr %18, align 8, !tbaa !9
  %98 = load i64, ptr %18, align 8, !tbaa !9
  %99 = load i64, ptr %11, align 8, !tbaa !9
  %100 = icmp ult i64 %98, %99
  br i1 %100, label %101, label %149

101:                                              ; preds = %97
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 124
  %104 = load i64, ptr %18, align 8, !tbaa !9
  %105 = trunc i64 %104 to i32
  %106 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %103, i64 noundef 11, ptr noundef @.str.1, i32 noundef %105) #8
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds i8, ptr %107, i64 148
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = call noundef i32 @_ZN12_GLOBAL__N_112CalcChecksumEPh(ptr noundef %109)
  %111 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %108, i64 noundef 6, ptr noundef @.str.2, i32 noundef %110) #8
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %112, i64 155
  store i8 32, ptr %113, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %114 = load i64, ptr %18, align 8, !tbaa !9
  %115 = call noundef i64 @_Z7RoundUpmm(i64 noundef %114, i64 noundef 512)
  store i64 %115, ptr %21, align 8, !tbaa !9
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = load i64, ptr %18, align 8, !tbaa !9
  %118 = getelementptr inbounds i8, ptr %116, i64 %117
  %119 = getelementptr inbounds i8, ptr %118, i64 512
  %120 = load i64, ptr %21, align 8, !tbaa !9
  %121 = load i64, ptr %18, align 8, !tbaa !9
  %122 = sub i64 %120, %121
  call void @llvm.memset.p0.i64(ptr align 1 %119, i8 0, i64 %122, i1 false)
  %123 = load i64, ptr %21, align 8, !tbaa !9
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i64 %123
  store ptr %125, ptr %7, align 8, !tbaa !5
  %126 = load i64, ptr %12, align 8, !tbaa !9
  %127 = load i64, ptr %21, align 8, !tbaa !9
  %128 = sub i64 %126, %127
  %129 = load i64, ptr %5, align 8, !tbaa !9
  %130 = add i64 %129, %128
  store i64 %130, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %167

131:                                              ; preds = %86
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %16, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %17, align 4
  br label %139

135:                                              ; preds = %89
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %16, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  br label %139

139:                                              ; preds = %135, %131
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br label %168

140:                                              ; preds = %90
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %16, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %17, align 4
  br label %148

144:                                              ; preds = %95
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %16, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  br label %148

148:                                              ; preds = %144, %140
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %168

149:                                              ; preds = %97
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = getelementptr inbounds i8, ptr %150, i64 148
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = call noundef i32 @_ZN12_GLOBAL__N_112CalcChecksumEPh(ptr noundef %152)
  %154 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %151, i64 noundef 6, ptr noundef @.str.2, i32 noundef %153) #8
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds i8, ptr %155, i64 155
  store i8 32, ptr %156, align 1, !tbaa !20
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = load i64, ptr %18, align 8, !tbaa !9
  %159 = getelementptr inbounds i8, ptr %157, i64 %158
  %160 = getelementptr inbounds i8, ptr %159, i64 512
  %161 = load i64, ptr %12, align 8, !tbaa !9
  %162 = load i64, ptr %18, align 8, !tbaa !9
  %163 = sub i64 %161, %162
  call void @llvm.memset.p0.i64(ptr align 1 %160, i8 0, i64 %163, i1 false)
  %164 = load i64, ptr %12, align 8, !tbaa !9
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = getelementptr inbounds i8, ptr %165, i64 %164
  store ptr %166, ptr %7, align 8, !tbaa !5
  br label %167

167:                                              ; preds = %149, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %177

168:                                              ; preds = %148, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %211

169:                                              ; preds = %82, %78
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = getelementptr inbounds i8, ptr %170, i64 512
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = load i64, ptr %12, align 8, !tbaa !9
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %171, ptr align 1 %172, i64 %173, i1 false)
  %174 = load i64, ptr %12, align 8, !tbaa !9
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  %176 = getelementptr inbounds i8, ptr %175, i64 %174
  store ptr %176, ptr %7, align 8, !tbaa !5
  br label %177

177:                                              ; preds = %169, %167
  %178 = load i64, ptr %12, align 8, !tbaa !9
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = getelementptr inbounds i8, ptr %179, i64 %178
  store ptr %180, ptr %6, align 8, !tbaa !5
  br label %181

181:                                              ; preds = %177, %63
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = getelementptr inbounds i8, ptr %182, i64 512
  store ptr %183, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  store i32 0, ptr %9, align 4
  br label %184

184:                                              ; preds = %181, %58, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  %185 = load i32, ptr %9, align 4
  switch i32 %185, label %216 [
    i32 0, label %186
    i32 2, label %195
    i32 3, label %187
  ]

186:                                              ; preds = %184
  br label %187

187:                                              ; preds = %186, %184
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = getelementptr inbounds %class.Format, ptr %22, i32 0, i32 1
  %190 = load ptr, ptr %189, align 8, !tbaa !17
  %191 = getelementptr inbounds %class.Format, ptr %22, i32 0, i32 2
  %192 = load i64, ptr %191, align 8, !tbaa !21
  %193 = getelementptr inbounds i8, ptr %190, i64 %192
  %194 = icmp ult ptr %188, %193
  br i1 %194, label %41, label %195, !llvm.loop !22

195:                                              ; preds = %187, %184
  %196 = load i32, ptr @depth, align 4, !tbaa !18
  %197 = add nsw i32 %196, -1
  store i32 %197, ptr @depth, align 4, !tbaa !18
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 1 %198, i8 0, i64 1024, i1 false)
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = getelementptr inbounds i8, ptr %199, i64 1024
  %201 = getelementptr inbounds %class.Format, ptr %22, i32 0, i32 1
  %202 = load ptr, ptr %201, align 8, !tbaa !17
  %203 = ptrtoint ptr %200 to i64
  %204 = ptrtoint ptr %202 to i64
  %205 = sub i64 %203, %204
  %206 = getelementptr inbounds %class.Format, ptr %22, i32 0, i32 2
  store i64 %205, ptr %206, align 8, !tbaa !21
  %207 = getelementptr inbounds %class.Format, ptr %22, i32 0, i32 2
  %208 = load i64, ptr %207, align 8, !tbaa !21
  store i64 %208, ptr %3, align 8
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %209

209:                                              ; preds = %195, %26
  %210 = load i64, ptr %3, align 8
  ret i64 %210

211:                                              ; preds = %168
  %212 = load ptr, ptr %16, align 8
  %213 = load i32, ptr %17, align 4
  %214 = insertvalue { ptr, i32 } poison, ptr %212, 0
  %215 = insertvalue { ptr, i32 } %214, i32 %213, 1
  resume { ptr, i32 } %215

216:                                              ; preds = %184
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z7RoundUpmm(i64 noundef, i64 noundef) #2

declare void @_Z13PrintFileNameRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #6

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

declare noundef i64 @_Z11LeanifyFilePvmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef, i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #6

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint 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 #6 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !14, i64 24}
!12 = !{!"_ZTS3Tar", !13, i64 0, !14, i64 24}
!13 = !{!"_ZTS6Format", !6, i64 8, !10, i64 16}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!13, !6, i64 8}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{!13, !10, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"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"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@depth = external local_unnamed_addr global i32, align 4
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [25 x i8], align 1
@max_depth = external local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_112CalcChecksumEPh(ptr noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtol(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN3Tar7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(25) %0, i64 noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load i8, ptr %7, align 8, !tbaa !5, !range !13, !noundef !14
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %12, label %10

10:                                               ; preds = %2
  %11 = tail call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1)
  br label %95

12:                                               ; preds = %2
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  %15 = sub i64 0, %1
  %16 = getelementptr inbounds i8, ptr %14, i64 %15
  store ptr %16, ptr %13, align 8, !tbaa !15
  %17 = load i32, ptr @depth, align 4, !tbaa !16
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr @depth, align 4, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  br label %20

20:                                               ; preds = %82, %12
  %.075 = phi ptr [ %16, %12 ], [ %.479.ph, %82 ]
  %.072 = phi ptr [ %14, %12 ], [ %.274.ph, %82 ]
  %.065 = phi i64 [ %1, %12 ], [ %.4.ph, %82 ]
  %21 = call noundef i32 @_ZN12_GLOBAL__N_112CalcChecksumEPh(ptr noundef %.072)
  %22 = icmp eq i32 %21, 256
  br i1 %22, label %87, label %23

23:                                               ; preds = %20
  call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(512) %.075, ptr noundef nonnull align 1 dereferenceable(512) %.072, i64 512, i1 false)
  %24 = getelementptr inbounds i8, ptr %.072, i64 512
  %25 = sext i32 %21 to i64
  %26 = getelementptr inbounds i8, ptr %.075, i64 148
  %27 = call i64 @strtol(ptr nocapture noundef nonnull %26, ptr noundef null, i32 noundef 8) #9
  %.not = icmp eq i64 %27, %25
  br i1 %.not, label %31, label %28

28:                                               ; preds = %23
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %82

31:                                               ; preds = %23
  %32 = getelementptr inbounds i8, ptr %.075, i64 156
  %33 = load i8, ptr %32, align 1, !tbaa !18
  %34 = getelementptr inbounds i8, ptr %.075, i64 124
  %35 = call i64 @strtol(ptr nocapture noundef nonnull %34, ptr noundef null, i32 noundef 8) #9
  %36 = call noundef i64 @_Z7RoundUpmm(i64 noundef %35, i64 noundef 512)
  %.not85 = icmp eq i64 %35, 0
  br i1 %.not85, label %82, label %37

37:                                               ; preds = %31
  switch i8 %33, label %78 [
    i8 48, label %38
    i8 0, label %38
  ]

38:                                               ; preds = %37, %37
  %39 = load i32, ptr @depth, align 4, !tbaa !16
  %40 = load i32, ptr @max_depth, align 4, !tbaa !16
  %.not86 = icmp sgt i32 %39, %40
  br i1 %.not86, label %78, label %41

41:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull %.075, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %42 unwind label %60

42:                                               ; preds = %41
  invoke void @_Z13PrintFileNameRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %43 unwind label %62

43:                                               ; preds = %42
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull %.075, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %44 unwind label %65

44:                                               ; preds = %43
  %45 = invoke noundef i64 @_Z11LeanifyFilePvmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %24, i64 noundef %35, i64 noundef %.065, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %46 unwind label %67

46:                                               ; preds = %44
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  %47 = icmp ult i64 %45, %35
  br i1 %47, label %48, label %70

48:                                               ; preds = %46
  %49 = trunc i64 %45 to i32
  %50 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %34, i64 noundef 11, ptr noundef nonnull @.str.1, i32 noundef %49) #9
  %51 = call noundef i32 @_ZN12_GLOBAL__N_112CalcChecksumEPh(ptr noundef nonnull %.075)
  %52 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %26, i64 noundef 6, ptr noundef nonnull @.str.2, i32 noundef %51) #9
  %53 = getelementptr inbounds i8, ptr %.075, i64 155
  store i8 32, ptr %53, align 1, !tbaa !18
  %54 = call noundef i64 @_Z7RoundUpmm(i64 noundef %45, i64 noundef 512)
  %55 = getelementptr inbounds i8, ptr %.075, i64 %45
  %56 = getelementptr inbounds i8, ptr %55, i64 512
  %57 = sub i64 %54, %45
  call void @llvm.memset.p0.i64(ptr nonnull align 1 %56, i8 0, i64 %57, i1 false)
  %58 = add i64 %36, %.065
  %59 = sub i64 %58, %54
  br label %80

60:                                               ; preds = %41
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %64

62:                                               ; preds = %42
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  br label %64

64:                                               ; preds = %62, %60
  %.pn = phi { ptr, i32 } [ %63, %62 ], [ %61, %60 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  br label %77

65:                                               ; preds = %43
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %69

67:                                               ; preds = %44
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  br label %69

69:                                               ; preds = %67, %65
  %.pn88 = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  br label %77

70:                                               ; preds = %46
  %71 = call noundef i32 @_ZN12_GLOBAL__N_112CalcChecksumEPh(ptr noundef nonnull %.075)
  %72 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %26, i64 noundef 6, ptr noundef nonnull @.str.2, i32 noundef %71) #9
  %73 = getelementptr inbounds i8, ptr %.075, i64 155
  store i8 32, ptr %73, align 1, !tbaa !18
  %74 = getelementptr inbounds i8, ptr %.075, i64 %45
  %75 = getelementptr inbounds i8, ptr %74, i64 512
  %76 = sub i64 %36, %45
  call void @llvm.memset.p0.i64(ptr nonnull align 1 %75, i8 0, i64 %76, i1 false)
  br label %80

77:                                               ; preds = %69, %64
  %.pn88.pn = phi { ptr, i32 } [ %.pn88, %69 ], [ %.pn, %64 ]
  resume { ptr, i32 } %.pn88.pn

78:                                               ; preds = %37, %38
  %79 = getelementptr inbounds i8, ptr %.075, i64 512
  call void @llvm.memmove.p0.p0.i64(ptr nonnull align 1 %79, ptr nonnull align 1 %24, i64 %36, i1 false)
  br label %80

80:                                               ; preds = %48, %70, %78
  %.pn91.pn = phi i64 [ %36, %78 ], [ %54, %48 ], [ %36, %70 ]
  %.2 = phi i64 [ %.065, %78 ], [ %59, %48 ], [ %.065, %70 ]
  %.277 = getelementptr inbounds i8, ptr %.075, i64 %.pn91.pn
  %81 = getelementptr inbounds i8, ptr %24, i64 %36
  br label %82

82:                                               ; preds = %31, %80, %28
  %.378.pn = phi ptr [ %.075, %28 ], [ %.277, %80 ], [ %.075, %31 ]
  %.274.ph = phi ptr [ %24, %28 ], [ %81, %80 ], [ %24, %31 ]
  %.4.ph = phi i64 [ %.065, %28 ], [ %.2, %80 ], [ %.065, %31 ]
  %.479.ph = getelementptr inbounds i8, ptr %.378.pn, i64 512
  %83 = load ptr, ptr %13, align 8, !tbaa !15
  %84 = load i64, ptr %19, align 8, !tbaa !19
  %85 = getelementptr inbounds i8, ptr %83, i64 %84
  %86 = icmp ult ptr %.479.ph, %85
  br i1 %86, label %20, label %87, !llvm.loop !20

87:                                               ; preds = %20, %82
  %.47999 = phi ptr [ %.479.ph, %82 ], [ %.075, %20 ]
  %88 = load i32, ptr @depth, align 4, !tbaa !16
  %89 = add nsw i32 %88, -1
  store i32 %89, ptr @depth, align 4, !tbaa !16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1024) %.47999, i8 0, i64 1024, i1 false)
  %90 = getelementptr inbounds i8, ptr %.47999, i64 1024
  %91 = load ptr, ptr %13, align 8, !tbaa !15
  %92 = ptrtoint ptr %90 to i64
  %93 = ptrtoint ptr %91 to i64
  %94 = sub i64 %92, %93
  store i64 %94, ptr %19, align 8, !tbaa !19
  br label %95

95:                                               ; preds = %87, %10
  %.0 = phi i64 [ %94, %87 ], [ %11, %10 ]
  ret i64 %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z7RoundUpmm(i64 noundef, i64 noundef) local_unnamed_addr #2

declare void @_Z13PrintFileNameRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

declare noundef i64 @_Z11LeanifyFilePvmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef, i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass