; LLVM IR from junhyeokahn/PyPnC :: external_source/yaml/src/binary.ll (ZN4YAML12EncodeBase64B5cxx11EPKhm)

; 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::__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] }

@_ZN4YAMLL8encodingE = external hidden constant [65 x i8], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4YAML12EncodeBase64B5cxx11EPKhm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef %1, i64 noundef %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i8, align 1
  %8 = alloca i1, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  store i8 61, ptr %7, align 1, !tbaa !11
  store i1 false, ptr %8, align 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #3
  %15 = load i64, ptr %6, align 8, !tbaa !9
  %16 = mul i64 4, %15
  %17 = udiv i64 %16, 3
  %18 = add i64 %17, 3
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %18)
          to label %19 unwind label %31

19:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %20 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef 0)
          to label %21 unwind label %35

21:                                               ; preds = %19
  store ptr %20, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %22 = load i64, ptr %6, align 8, !tbaa !9
  %23 = udiv i64 %22, 3
  store i64 %23, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %24 = load i64, ptr %6, align 8, !tbaa !9
  %25 = urem i64 %24, 3
  store i64 %25, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %26

26:                                               ; preds = %94, %21
  %27 = load i64, ptr %14, align 8, !tbaa !9
  %28 = load i64, ptr %12, align 8, !tbaa !9
  %29 = icmp ult i64 %27, %28
  br i1 %29, label %39, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %99

31:                                               ; preds = %3
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %9, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %10, align 4
  br label %184

35:                                               ; preds = %19
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %9, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %10, align 4
  br label %181

39:                                               ; preds = %26
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 0
  %42 = load i8, ptr %41, align 1, !tbaa !11
  %43 = zext i8 %42 to i32
  %44 = ashr i32 %43, 2
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %45
  %47 = load i8, ptr %46, align 1, !tbaa !11
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i32 1
  store ptr %49, ptr %11, align 8, !tbaa !5
  store i8 %47, ptr %48, align 1, !tbaa !11
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 0
  %52 = load i8, ptr %51, align 1, !tbaa !11
  %53 = zext i8 %52 to i32
  %54 = and i32 %53, 3
  %55 = shl i32 %54, 4
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 1
  %58 = load i8, ptr %57, align 1, !tbaa !11
  %59 = zext i8 %58 to i32
  %60 = ashr i32 %59, 4
  %61 = or i32 %55, %60
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !11
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i32 1
  store ptr %66, ptr %11, align 8, !tbaa !5
  store i8 %64, ptr %65, align 1, !tbaa !11
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 1
  %69 = load i8, ptr %68, align 1, !tbaa !11
  %70 = zext i8 %69 to i32
  %71 = and i32 %70, 15
  %72 = shl i32 %71, 2
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 2
  %75 = load i8, ptr %74, align 1, !tbaa !11
  %76 = zext i8 %75 to i32
  %77 = ashr i32 %76, 6
  %78 = or i32 %72, %77
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %79
  %81 = load i8, ptr %80, align 1, !tbaa !11
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i32 1
  store ptr %83, ptr %11, align 8, !tbaa !5
  store i8 %81, ptr %82, align 1, !tbaa !11
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 2
  %86 = load i8, ptr %85, align 1, !tbaa !11
  %87 = zext i8 %86 to i32
  %88 = and i32 %87, 63
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %89
  %91 = load i8, ptr %90, align 1, !tbaa !11
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %92, i32 1
  store ptr %93, ptr %11, align 8, !tbaa !5
  store i8 %91, ptr %92, align 1, !tbaa !11
  br label %94

94:                                               ; preds = %39
  %95 = load i64, ptr %14, align 8, !tbaa !9
  %96 = add i64 %95, 1
  store i64 %96, ptr %14, align 8, !tbaa !9
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i64 3
  store ptr %98, ptr %5, align 8, !tbaa !5
  br label %26, !llvm.loop !12

99:                                               ; preds = %30
  %100 = load i64, ptr %13, align 8, !tbaa !9
  switch i64 %100, label %168 [
    i64 0, label %168
    i64 1, label %101
    i64 2, label %127
  ]

101:                                              ; preds = %99
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 0
  %104 = load i8, ptr %103, align 1, !tbaa !11
  %105 = zext i8 %104 to i32
  %106 = ashr i32 %105, 2
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %107
  %109 = load i8, ptr %108, align 1, !tbaa !11
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i32 1
  store ptr %111, ptr %11, align 8, !tbaa !5
  store i8 %109, ptr %110, align 1, !tbaa !11
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %112, i64 0
  %114 = load i8, ptr %113, align 1, !tbaa !11
  %115 = zext i8 %114 to i32
  %116 = and i32 %115, 3
  %117 = shl i32 %116, 4
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %118
  %120 = load i8, ptr %119, align 1, !tbaa !11
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %121, i32 1
  store ptr %122, ptr %11, align 8, !tbaa !5
  store i8 %120, ptr %121, align 1, !tbaa !11
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = getelementptr inbounds i8, ptr %123, i32 1
  store ptr %124, ptr %11, align 8, !tbaa !5
  store i8 61, ptr %123, align 1, !tbaa !11
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i32 1
  store ptr %126, ptr %11, align 8, !tbaa !5
  store i8 61, ptr %125, align 1, !tbaa !11
  br label %168

127:                                              ; preds = %99
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %128, i64 0
  %130 = load i8, ptr %129, align 1, !tbaa !11
  %131 = zext i8 %130 to i32
  %132 = ashr i32 %131, 2
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %133
  %135 = load i8, ptr %134, align 1, !tbaa !11
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = getelementptr inbounds i8, ptr %136, i32 1
  store ptr %137, ptr %11, align 8, !tbaa !5
  store i8 %135, ptr %136, align 1, !tbaa !11
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %138, i64 0
  %140 = load i8, ptr %139, align 1, !tbaa !11
  %141 = zext i8 %140 to i32
  %142 = and i32 %141, 3
  %143 = shl i32 %142, 4
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds i8, ptr %144, i64 1
  %146 = load i8, ptr %145, align 1, !tbaa !11
  %147 = zext i8 %146 to i32
  %148 = ashr i32 %147, 4
  %149 = or i32 %143, %148
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %150
  %152 = load i8, ptr %151, align 1, !tbaa !11
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = getelementptr inbounds i8, ptr %153, i32 1
  store ptr %154, ptr %11, align 8, !tbaa !5
  store i8 %152, ptr %153, align 1, !tbaa !11
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds i8, ptr %155, i64 1
  %157 = load i8, ptr %156, align 1, !tbaa !11
  %158 = zext i8 %157 to i32
  %159 = and i32 %158, 15
  %160 = shl i32 %159, 2
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %161
  %163 = load i8, ptr %162, align 1, !tbaa !11
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  %165 = getelementptr inbounds i8, ptr %164, i32 1
  store ptr %165, ptr %11, align 8, !tbaa !5
  store i8 %163, ptr %164, align 1, !tbaa !11
  %166 = load ptr, ptr %11, align 8, !tbaa !5
  %167 = getelementptr inbounds i8, ptr %166, i32 1
  store ptr %167, ptr %11, align 8, !tbaa !5
  store i8 61, ptr %166, align 1, !tbaa !11
  br label %168

168:                                              ; preds = %127, %101, %99, %99
  %169 = load ptr, ptr %11, align 8, !tbaa !5
  %170 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef 0)
          to label %171 unwind label %177

171:                                              ; preds = %168
  %172 = ptrtoint ptr %169 to i64
  %173 = ptrtoint ptr %170 to i64
  %174 = sub i64 %172, %173
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %174)
          to label %175 unwind label %177

175:                                              ; preds = %171
  store i1 true, ptr %8, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  %176 = load i1, ptr %8, align 1
  br i1 %176, label %183, label %182

177:                                              ; preds = %171, %168
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %9, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %181

181:                                              ; preds = %177, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %184

182:                                              ; preds = %175
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #3
  br label %183

183:                                              ; preds = %182, %175
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  ret void

184:                                              ; preds = %181, %31
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  br label %185

185:                                              ; preds = %184
  %186 = load ptr, ptr %9, align 8
  %187 = load i32, ptr %10, align 4
  %188 = insertvalue { ptr, i32 } poison, ptr %186, 0
  %189 = insertvalue { ptr, i32 } %188, i32 %187, 1
  resume { ptr, i32 } %189
}

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 align 2

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"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::__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] }

@_ZN4YAMLL8encodingE = external hidden local_unnamed_addr constant [65 x i8], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4YAML12EncodeBase64B5cxx11EPKhm(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr nocapture noundef readonly %1, i64 noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #2
  %4 = shl i64 %2, 2
  %5 = udiv i64 %4, 3
  %6 = add nuw nsw i64 %5, 3
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %6)
          to label %7 unwind label %11

7:                                                ; preds = %3
  %8 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef 0)
  %9 = udiv i64 %2, 3
  %10 = urem i64 %2, 3
  %.not = icmp ult i64 %2, 3
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %7
  %.036.lcssa = phi ptr [ %8, %7 ], [ %46, %.lr.ph ]
  %.035.lcssa = phi ptr [ %1, %7 ], [ %48, %.lr.ph ]
  switch i64 %10, label %88 [
    i64 2, label %63
    i64 1, label %49
  ]

11:                                               ; preds = %3
  %12 = landingpad { ptr, i32 }
          cleanup
  br label %96

.lr.ph:                                           ; preds = %7, %.lr.ph
  %.042 = phi i64 [ %47, %.lr.ph ], [ 0, %7 ]
  %.03541 = phi ptr [ %48, %.lr.ph ], [ %1, %7 ]
  %.03640 = phi ptr [ %46, %.lr.ph ], [ %8, %7 ]
  %13 = load i8, ptr %.03541, align 1, !tbaa !5
  %14 = lshr i8 %13, 2
  %15 = zext nneg i8 %14 to i64
  %16 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %15
  %17 = load i8, ptr %16, align 1, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %.03640, i64 1
  store i8 %17, ptr %.03640, align 1, !tbaa !5
  %19 = load i8, ptr %.03541, align 1, !tbaa !5
  %20 = shl i8 %19, 4
  %21 = and i8 %20, 48
  %22 = getelementptr inbounds i8, ptr %.03541, i64 1
  %23 = load i8, ptr %22, align 1, !tbaa !5
  %24 = lshr i8 %23, 4
  %25 = or disjoint i8 %21, %24
  %26 = zext nneg i8 %25 to i64
  %27 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %.03640, i64 2
  store i8 %28, ptr %18, align 1, !tbaa !5
  %30 = load i8, ptr %22, align 1, !tbaa !5
  %31 = shl i8 %30, 2
  %32 = and i8 %31, 60
  %33 = getelementptr inbounds i8, ptr %.03541, i64 2
  %34 = load i8, ptr %33, align 1, !tbaa !5
  %35 = lshr i8 %34, 6
  %36 = or disjoint i8 %32, %35
  %37 = zext nneg i8 %36 to i64
  %38 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %37
  %39 = load i8, ptr %38, align 1, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %.03640, i64 3
  store i8 %39, ptr %29, align 1, !tbaa !5
  %41 = load i8, ptr %33, align 1, !tbaa !5
  %42 = and i8 %41, 63
  %43 = zext nneg i8 %42 to i64
  %44 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %.03640, i64 4
  store i8 %45, ptr %40, align 1, !tbaa !5
  %47 = add nuw nsw i64 %.042, 1
  %48 = getelementptr inbounds i8, ptr %.03541, i64 3
  %exitcond.not = icmp eq i64 %47, %9
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

49:                                               ; preds = %._crit_edge
  %50 = load i8, ptr %.035.lcssa, align 1, !tbaa !5
  %51 = lshr i8 %50, 2
  %52 = zext nneg i8 %51 to i64
  %53 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %52
  %54 = load i8, ptr %53, align 1, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %.036.lcssa, i64 1
  store i8 %54, ptr %.036.lcssa, align 1, !tbaa !5
  %56 = load i8, ptr %.035.lcssa, align 1, !tbaa !5
  %57 = shl i8 %56, 4
  %58 = and i8 %57, 48
  %59 = zext nneg i8 %58 to i64
  %60 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %59
  %61 = load i8, ptr %60, align 16, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %.036.lcssa, i64 2
  store i8 %61, ptr %55, align 1, !tbaa !5
  store i8 61, ptr %62, align 1, !tbaa !5
  br label %.sink.split

63:                                               ; preds = %._crit_edge
  %64 = load i8, ptr %.035.lcssa, align 1, !tbaa !5
  %65 = lshr i8 %64, 2
  %66 = zext nneg i8 %65 to i64
  %67 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %.036.lcssa, i64 1
  store i8 %68, ptr %.036.lcssa, align 1, !tbaa !5
  %70 = load i8, ptr %.035.lcssa, align 1, !tbaa !5
  %71 = shl i8 %70, 4
  %72 = and i8 %71, 48
  %73 = getelementptr inbounds i8, ptr %.035.lcssa, i64 1
  %74 = load i8, ptr %73, align 1, !tbaa !5
  %75 = lshr i8 %74, 4
  %76 = or disjoint i8 %72, %75
  %77 = zext nneg i8 %76 to i64
  %78 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %.036.lcssa, i64 2
  store i8 %79, ptr %69, align 1, !tbaa !5
  %81 = load i8, ptr %73, align 1, !tbaa !5
  %82 = shl i8 %81, 2
  %83 = and i8 %82, 60
  %84 = zext nneg i8 %83 to i64
  %85 = getelementptr inbounds [65 x i8], ptr @_ZN4YAMLL8encodingE, i64 0, i64 %84
  %86 = load i8, ptr %85, align 4, !tbaa !5
  store i8 %86, ptr %80, align 1, !tbaa !5
  br label %.sink.split

.sink.split:                                      ; preds = %49, %63
  %.sink = getelementptr inbounds i8, ptr %.036.lcssa, i64 3
  %87 = getelementptr inbounds i8, ptr %.036.lcssa, i64 4
  store i8 61, ptr %.sink, align 1, !tbaa !5
  br label %88

88:                                               ; preds = %.sink.split, %._crit_edge
  %.1 = phi ptr [ %.036.lcssa, %._crit_edge ], [ %87, %.sink.split ]
  %89 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef 0)
  %90 = ptrtoint ptr %.1 to i64
  %91 = ptrtoint ptr %89 to i64
  %92 = sub i64 %90, %91
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %92)
          to label %95 unwind label %93

93:                                               ; preds = %88
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %96

95:                                               ; preds = %88
  ret void

96:                                               ; preds = %93, %11
  %.pn = phi { ptr, i32 } [ %94, %93 ], [ %12, %11 ]
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #2
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #1 align 2

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

attributes #0 = { 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 #1 = { 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 #2 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


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