; LLVM IR from TheAlgorithms/C-Plus-Plus :: hashing/md5.ll (ZN7hashing3md57sig2hexB5cxx11EPv)

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

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7hashing3md57sig2hexB5cxx11EPv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %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 ptr, align 8
  %7 = alloca i1, align 1
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  store ptr @.str, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %12, ptr %6, align 8, !tbaa !5
  store i1 false, ptr %7, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %13 unwind label %19

13:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #3
  store i8 0, ptr %11, align 1, !tbaa !9
  br label %14

14:                                               ; preds = %49, %13
  %15 = load i8, ptr %11, align 1, !tbaa !9
  %16 = zext i8 %15 to i32
  %17 = icmp slt i32 %16, 16
  br i1 %17, label %23, label %18

18:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #3
  br label %56

19:                                               ; preds = %2
  %20 = landingpad { ptr, i32 }
          cleanup
  %21 = extractvalue { ptr, i32 } %20, 0
  store ptr %21, ptr %9, align 8
  %22 = extractvalue { ptr, i32 } %20, 1
  store i32 %22, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  br label %60

23:                                               ; preds = %14
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = load i8, ptr %11, align 1, !tbaa !9
  %27 = zext i8 %26 to i64
  %28 = getelementptr inbounds i8, ptr %25, i64 %27
  %29 = load i8, ptr %28, align 1, !tbaa !9
  %30 = zext i8 %29 to i32
  %31 = ashr i32 %30, 4
  %32 = and i32 %31, 15
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds i8, ptr %24, i64 %33
  %35 = load i8, ptr %34, align 1, !tbaa !9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %35)
          to label %36 unwind label %52

36:                                               ; preds = %23
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load i8, ptr %11, align 1, !tbaa !9
  %40 = zext i8 %39 to i64
  %41 = getelementptr inbounds i8, ptr %38, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !9
  %43 = zext i8 %42 to i32
  %44 = and i32 %43, 15
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds i8, ptr %37, i64 %45
  %47 = load i8, ptr %46, align 1, !tbaa !9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %47)
          to label %48 unwind label %52

48:                                               ; preds = %36
  br label %49

49:                                               ; preds = %48
  %50 = load i8, ptr %11, align 1, !tbaa !9
  %51 = add i8 %50, 1
  store i8 %51, ptr %11, align 1, !tbaa !9
  br label %14, !llvm.loop !10

52:                                               ; preds = %36, %23
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %9, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #3
  br label %60

56:                                               ; preds = %18
  store i1 true, ptr %7, align 1
  %57 = load i1, ptr %7, align 1
  br i1 %57, label %59, label %58

58:                                               ; preds = %56
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #3
  br label %59

59:                                               ; preds = %58, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void

60:                                               ; preds = %52, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %61

61:                                               ; preds = %60
  %62 = load ptr, ptr %9, align 8
  %63 = load i32, ptr %10, align 4
  %64 = insertvalue { ptr, i32 } poison, ptr %62, 0
  %65 = insertvalue { ptr, i32 } %64, i32 %63, 1
  resume { ptr, i32 } %65
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"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.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7hashing3md57sig2hexB5cxx11EPv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #3
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #3
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %4 unwind label %10

4:                                                ; preds = %2
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #3
  %5 = load i8, ptr %1, align 1, !tbaa !5
  %6 = lshr i8 %5, 4
  %7 = zext nneg i8 %6 to i64
  %8 = getelementptr inbounds i8, ptr @.str, i64 %7
  %9 = load i8, ptr %8, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %9)
          to label %12 unwind label %214

10:                                               ; preds = %2
  %11 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #3
  br label %216

12:                                               ; preds = %4
  %13 = load i8, ptr %1, align 1, !tbaa !5
  %14 = and i8 %13, 15
  %15 = zext nneg i8 %14 to i64
  %16 = getelementptr inbounds i8, ptr @.str, i64 %15
  %17 = load i8, ptr %16, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %17)
          to label %18 unwind label %214

18:                                               ; preds = %12
  %19 = getelementptr inbounds i8, ptr %1, i64 1
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %21 = lshr i8 %20, 4
  %22 = zext nneg i8 %21 to i64
  %23 = getelementptr inbounds i8, ptr @.str, i64 %22
  %24 = load i8, ptr %23, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %24)
          to label %25 unwind label %214

25:                                               ; preds = %18
  %26 = load i8, ptr %19, align 1, !tbaa !5
  %27 = and i8 %26, 15
  %28 = zext nneg i8 %27 to i64
  %29 = getelementptr inbounds i8, ptr @.str, i64 %28
  %30 = load i8, ptr %29, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %30)
          to label %31 unwind label %214

31:                                               ; preds = %25
  %32 = getelementptr inbounds i8, ptr %1, i64 2
  %33 = load i8, ptr %32, align 1, !tbaa !5
  %34 = lshr i8 %33, 4
  %35 = zext nneg i8 %34 to i64
  %36 = getelementptr inbounds i8, ptr @.str, i64 %35
  %37 = load i8, ptr %36, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %37)
          to label %38 unwind label %214

38:                                               ; preds = %31
  %39 = load i8, ptr %32, align 1, !tbaa !5
  %40 = and i8 %39, 15
  %41 = zext nneg i8 %40 to i64
  %42 = getelementptr inbounds i8, ptr @.str, i64 %41
  %43 = load i8, ptr %42, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %43)
          to label %44 unwind label %214

44:                                               ; preds = %38
  %45 = getelementptr inbounds i8, ptr %1, i64 3
  %46 = load i8, ptr %45, align 1, !tbaa !5
  %47 = lshr i8 %46, 4
  %48 = zext nneg i8 %47 to i64
  %49 = getelementptr inbounds i8, ptr @.str, i64 %48
  %50 = load i8, ptr %49, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %50)
          to label %51 unwind label %214

51:                                               ; preds = %44
  %52 = load i8, ptr %45, align 1, !tbaa !5
  %53 = and i8 %52, 15
  %54 = zext nneg i8 %53 to i64
  %55 = getelementptr inbounds i8, ptr @.str, i64 %54
  %56 = load i8, ptr %55, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %56)
          to label %57 unwind label %214

57:                                               ; preds = %51
  %58 = getelementptr inbounds i8, ptr %1, i64 4
  %59 = load i8, ptr %58, align 1, !tbaa !5
  %60 = lshr i8 %59, 4
  %61 = zext nneg i8 %60 to i64
  %62 = getelementptr inbounds i8, ptr @.str, i64 %61
  %63 = load i8, ptr %62, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %63)
          to label %64 unwind label %214

64:                                               ; preds = %57
  %65 = load i8, ptr %58, align 1, !tbaa !5
  %66 = and i8 %65, 15
  %67 = zext nneg i8 %66 to i64
  %68 = getelementptr inbounds i8, ptr @.str, i64 %67
  %69 = load i8, ptr %68, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %69)
          to label %70 unwind label %214

70:                                               ; preds = %64
  %71 = getelementptr inbounds i8, ptr %1, i64 5
  %72 = load i8, ptr %71, align 1, !tbaa !5
  %73 = lshr i8 %72, 4
  %74 = zext nneg i8 %73 to i64
  %75 = getelementptr inbounds i8, ptr @.str, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %76)
          to label %77 unwind label %214

77:                                               ; preds = %70
  %78 = load i8, ptr %71, align 1, !tbaa !5
  %79 = and i8 %78, 15
  %80 = zext nneg i8 %79 to i64
  %81 = getelementptr inbounds i8, ptr @.str, i64 %80
  %82 = load i8, ptr %81, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %82)
          to label %83 unwind label %214

83:                                               ; preds = %77
  %84 = getelementptr inbounds i8, ptr %1, i64 6
  %85 = load i8, ptr %84, align 1, !tbaa !5
  %86 = lshr i8 %85, 4
  %87 = zext nneg i8 %86 to i64
  %88 = getelementptr inbounds i8, ptr @.str, i64 %87
  %89 = load i8, ptr %88, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %89)
          to label %90 unwind label %214

90:                                               ; preds = %83
  %91 = load i8, ptr %84, align 1, !tbaa !5
  %92 = and i8 %91, 15
  %93 = zext nneg i8 %92 to i64
  %94 = getelementptr inbounds i8, ptr @.str, i64 %93
  %95 = load i8, ptr %94, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %95)
          to label %96 unwind label %214

96:                                               ; preds = %90
  %97 = getelementptr inbounds i8, ptr %1, i64 7
  %98 = load i8, ptr %97, align 1, !tbaa !5
  %99 = lshr i8 %98, 4
  %100 = zext nneg i8 %99 to i64
  %101 = getelementptr inbounds i8, ptr @.str, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %102)
          to label %103 unwind label %214

103:                                              ; preds = %96
  %104 = load i8, ptr %97, align 1, !tbaa !5
  %105 = and i8 %104, 15
  %106 = zext nneg i8 %105 to i64
  %107 = getelementptr inbounds i8, ptr @.str, i64 %106
  %108 = load i8, ptr %107, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %108)
          to label %109 unwind label %214

109:                                              ; preds = %103
  %110 = getelementptr inbounds i8, ptr %1, i64 8
  %111 = load i8, ptr %110, align 1, !tbaa !5
  %112 = lshr i8 %111, 4
  %113 = zext nneg i8 %112 to i64
  %114 = getelementptr inbounds i8, ptr @.str, i64 %113
  %115 = load i8, ptr %114, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %115)
          to label %116 unwind label %214

116:                                              ; preds = %109
  %117 = load i8, ptr %110, align 1, !tbaa !5
  %118 = and i8 %117, 15
  %119 = zext nneg i8 %118 to i64
  %120 = getelementptr inbounds i8, ptr @.str, i64 %119
  %121 = load i8, ptr %120, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %121)
          to label %122 unwind label %214

122:                                              ; preds = %116
  %123 = getelementptr inbounds i8, ptr %1, i64 9
  %124 = load i8, ptr %123, align 1, !tbaa !5
  %125 = lshr i8 %124, 4
  %126 = zext nneg i8 %125 to i64
  %127 = getelementptr inbounds i8, ptr @.str, i64 %126
  %128 = load i8, ptr %127, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %128)
          to label %129 unwind label %214

129:                                              ; preds = %122
  %130 = load i8, ptr %123, align 1, !tbaa !5
  %131 = and i8 %130, 15
  %132 = zext nneg i8 %131 to i64
  %133 = getelementptr inbounds i8, ptr @.str, i64 %132
  %134 = load i8, ptr %133, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %134)
          to label %135 unwind label %214

135:                                              ; preds = %129
  %136 = getelementptr inbounds i8, ptr %1, i64 10
  %137 = load i8, ptr %136, align 1, !tbaa !5
  %138 = lshr i8 %137, 4
  %139 = zext nneg i8 %138 to i64
  %140 = getelementptr inbounds i8, ptr @.str, i64 %139
  %141 = load i8, ptr %140, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %141)
          to label %142 unwind label %214

142:                                              ; preds = %135
  %143 = load i8, ptr %136, align 1, !tbaa !5
  %144 = and i8 %143, 15
  %145 = zext nneg i8 %144 to i64
  %146 = getelementptr inbounds i8, ptr @.str, i64 %145
  %147 = load i8, ptr %146, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %147)
          to label %148 unwind label %214

148:                                              ; preds = %142
  %149 = getelementptr inbounds i8, ptr %1, i64 11
  %150 = load i8, ptr %149, align 1, !tbaa !5
  %151 = lshr i8 %150, 4
  %152 = zext nneg i8 %151 to i64
  %153 = getelementptr inbounds i8, ptr @.str, i64 %152
  %154 = load i8, ptr %153, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %154)
          to label %155 unwind label %214

155:                                              ; preds = %148
  %156 = load i8, ptr %149, align 1, !tbaa !5
  %157 = and i8 %156, 15
  %158 = zext nneg i8 %157 to i64
  %159 = getelementptr inbounds i8, ptr @.str, i64 %158
  %160 = load i8, ptr %159, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %160)
          to label %161 unwind label %214

161:                                              ; preds = %155
  %162 = getelementptr inbounds i8, ptr %1, i64 12
  %163 = load i8, ptr %162, align 1, !tbaa !5
  %164 = lshr i8 %163, 4
  %165 = zext nneg i8 %164 to i64
  %166 = getelementptr inbounds i8, ptr @.str, i64 %165
  %167 = load i8, ptr %166, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %167)
          to label %168 unwind label %214

168:                                              ; preds = %161
  %169 = load i8, ptr %162, align 1, !tbaa !5
  %170 = and i8 %169, 15
  %171 = zext nneg i8 %170 to i64
  %172 = getelementptr inbounds i8, ptr @.str, i64 %171
  %173 = load i8, ptr %172, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %173)
          to label %174 unwind label %214

174:                                              ; preds = %168
  %175 = getelementptr inbounds i8, ptr %1, i64 13
  %176 = load i8, ptr %175, align 1, !tbaa !5
  %177 = lshr i8 %176, 4
  %178 = zext nneg i8 %177 to i64
  %179 = getelementptr inbounds i8, ptr @.str, i64 %178
  %180 = load i8, ptr %179, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %180)
          to label %181 unwind label %214

181:                                              ; preds = %174
  %182 = load i8, ptr %175, align 1, !tbaa !5
  %183 = and i8 %182, 15
  %184 = zext nneg i8 %183 to i64
  %185 = getelementptr inbounds i8, ptr @.str, i64 %184
  %186 = load i8, ptr %185, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %186)
          to label %187 unwind label %214

187:                                              ; preds = %181
  %188 = getelementptr inbounds i8, ptr %1, i64 14
  %189 = load i8, ptr %188, align 1, !tbaa !5
  %190 = lshr i8 %189, 4
  %191 = zext nneg i8 %190 to i64
  %192 = getelementptr inbounds i8, ptr @.str, i64 %191
  %193 = load i8, ptr %192, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %193)
          to label %194 unwind label %214

194:                                              ; preds = %187
  %195 = load i8, ptr %188, align 1, !tbaa !5
  %196 = and i8 %195, 15
  %197 = zext nneg i8 %196 to i64
  %198 = getelementptr inbounds i8, ptr @.str, i64 %197
  %199 = load i8, ptr %198, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %199)
          to label %200 unwind label %214

200:                                              ; preds = %194
  %201 = getelementptr inbounds i8, ptr %1, i64 15
  %202 = load i8, ptr %201, align 1, !tbaa !5
  %203 = lshr i8 %202, 4
  %204 = zext nneg i8 %203 to i64
  %205 = getelementptr inbounds i8, ptr @.str, i64 %204
  %206 = load i8, ptr %205, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %206)
          to label %207 unwind label %214

207:                                              ; preds = %200
  %208 = load i8, ptr %201, align 1, !tbaa !5
  %209 = and i8 %208, 15
  %210 = zext nneg i8 %209 to i64
  %211 = getelementptr inbounds i8, ptr @.str, i64 %210
  %212 = load i8, ptr %211, align 1, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %212)
          to label %213 unwind label %214

213:                                              ; preds = %207
  ret void

214:                                              ; preds = %207, %200, %194, %187, %181, %174, %168, %161, %155, %148, %142, %135, %129, %122, %116, %109, %103, %96, %90, %83, %77, %70, %64, %57, %51, %44, %38, %31, %25, %18, %12, %4
  %215 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #3
  br label %216

216:                                              ; preds = %214, %10
  %.pn = phi { ptr, i32 } [ %215, %214 ], [ %11, %10 ]
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) 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 #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { 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"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass