; LLVM IR from yinqiwen/ardb :: src/common/util (string_helper)

; 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] }
%struct.SHA1_CTX = type { [5 x i32], [2 x i32], [64 x i8] }
%"class.std::allocator" = type { i8 }

@.str.4 = external hidden unnamed_addr constant [17 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 nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4ardb8sha1_sumERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.SHA1_CTX, align 4
  %6 = alloca [20 x i8], align 16
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca [40 x i8], align 16
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 92, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 20, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store ptr @.str.4, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @SHA1Init(ptr noundef %5)
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %15) #4
  %17 = trunc i64 %16 to i32
  call void @SHA1Update(ptr noundef %5, ptr noundef %14, i32 noundef %17)
  %18 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
  call void @SHA1Final(ptr noundef %18, ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %53, %2
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = icmp slt i32 %20, 20
  br i1 %21, label %22, label %56

22:                                               ; preds = %19
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = load i32, ptr %8, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 %25
  %27 = load i8, ptr %26, align 1, !tbaa !11
  %28 = zext i8 %27 to i32
  %29 = and i32 %28, 240
  %30 = ashr i32 %29, 4
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds i8, ptr %23, i64 %31
  %33 = load i8, ptr %32, align 1, !tbaa !11
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = mul nsw i32 %34, 2
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [40 x i8], ptr %9, i64 0, i64 %36
  store i8 %33, ptr %37, align 1, !tbaa !11
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !11
  %43 = zext i8 %42 to i32
  %44 = and i32 %43, 15
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds i8, ptr %38, i64 %45
  %47 = load i8, ptr %46, align 1, !tbaa !11
  %48 = load i32, ptr %8, align 4, !tbaa !9
  %49 = mul nsw i32 %48, 2
  %50 = add nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [40 x i8], ptr %9, i64 0, i64 %51
  store i8 %47, ptr %52, align 1, !tbaa !11
  br label %53

53:                                               ; preds = %22
  %54 = load i32, ptr %8, align 4, !tbaa !9
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %8, align 4, !tbaa !9
  br label %19, !llvm.loop !12

56:                                               ; preds = %19
  %57 = getelementptr inbounds [40 x i8], ptr %9, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcmRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %57, i64 noundef 40, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %58 unwind label %59

58:                                               ; preds = %56
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 92, ptr %5) #4
  ret void

59:                                               ; preds = %56
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %11, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 92, ptr %5) #4
  br label %63

63:                                               ; preds = %59
  %64 = load ptr, ptr %11, align 8
  %65 = load i32, ptr %12, align 4
  %66 = insertvalue { ptr, i32 } poison, ptr %64, 0
  %67 = insertvalue { ptr, i32 } %66, i32 %65, 1
  resume { ptr, i32 } %67
}

declare void @SHA1Init(ptr noundef) #3

declare void @SHA1Update(ptr noundef, ptr noundef, i32 noundef) #3

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

declare void @SHA1Final(ptr noundef, ptr noundef) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!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] }
%struct.SHA1_CTX = type { [5 x i32], [2 x i32], [64 x i8] }
%"class.std::allocator" = type { i8 }

@.str.4 = external hidden unnamed_addr constant [17 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 nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4ardb8sha1_sumERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.SHA1_CTX, align 4
  %4 = alloca [20 x i8], align 16
  %5 = alloca [40 x i8], align 16
  %6 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %4) #4
  call void @SHA1Init(ptr noundef nonnull %3)
  %7 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #4
  %8 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #4
  %9 = trunc i64 %8 to i32
  call void @SHA1Update(ptr noundef nonnull %3, ptr noundef %7, i32 noundef %9)
  call void @SHA1Final(ptr noundef nonnull %4, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #4
  %10 = load i8, ptr %4, align 16, !tbaa !5
  %11 = lshr i8 %10, 4
  %12 = zext nneg i8 %11 to i64
  %13 = getelementptr inbounds i8, ptr @.str.4, i64 %12
  %14 = load i8, ptr %13, align 1, !tbaa !5
  store i8 %14, ptr %5, align 16, !tbaa !5
  %15 = and i8 %10, 15
  %16 = zext nneg i8 %15 to i64
  %17 = getelementptr inbounds i8, ptr @.str.4, i64 %16
  %18 = load i8, ptr %17, align 1, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %5, i64 1
  store i8 %18, ptr %19, align 1, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %4, i64 1
  %21 = load i8, ptr %20, align 1, !tbaa !5
  %22 = lshr i8 %21, 4
  %23 = zext nneg i8 %22 to i64
  %24 = getelementptr inbounds i8, ptr @.str.4, i64 %23
  %25 = load i8, ptr %24, align 1, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %5, i64 2
  store i8 %25, ptr %26, align 2, !tbaa !5
  %27 = and i8 %21, 15
  %28 = zext nneg i8 %27 to i64
  %29 = getelementptr inbounds i8, ptr @.str.4, i64 %28
  %30 = load i8, ptr %29, align 1, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %5, i64 3
  store i8 %30, ptr %31, align 1, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %4, i64 2
  %33 = load i8, ptr %32, align 2, !tbaa !5
  %34 = lshr i8 %33, 4
  %35 = zext nneg i8 %34 to i64
  %36 = getelementptr inbounds i8, ptr @.str.4, i64 %35
  %37 = load i8, ptr %36, align 1, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %5, i64 4
  store i8 %37, ptr %38, align 4, !tbaa !5
  %39 = and i8 %33, 15
  %40 = zext nneg i8 %39 to i64
  %41 = getelementptr inbounds i8, ptr @.str.4, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %5, i64 5
  store i8 %42, ptr %43, align 1, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %4, i64 3
  %45 = load i8, ptr %44, align 1, !tbaa !5
  %46 = lshr i8 %45, 4
  %47 = zext nneg i8 %46 to i64
  %48 = getelementptr inbounds i8, ptr @.str.4, i64 %47
  %49 = load i8, ptr %48, align 1, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %5, i64 6
  store i8 %49, ptr %50, align 2, !tbaa !5
  %51 = and i8 %45, 15
  %52 = zext nneg i8 %51 to i64
  %53 = getelementptr inbounds i8, ptr @.str.4, i64 %52
  %54 = load i8, ptr %53, align 1, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %5, i64 7
  store i8 %54, ptr %55, align 1, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %4, i64 4
  %57 = load i8, ptr %56, align 4, !tbaa !5
  %58 = lshr i8 %57, 4
  %59 = zext nneg i8 %58 to i64
  %60 = getelementptr inbounds i8, ptr @.str.4, i64 %59
  %61 = load i8, ptr %60, align 1, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %5, i64 8
  store i8 %61, ptr %62, align 8, !tbaa !5
  %63 = and i8 %57, 15
  %64 = zext nneg i8 %63 to i64
  %65 = getelementptr inbounds i8, ptr @.str.4, i64 %64
  %66 = load i8, ptr %65, align 1, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %5, i64 9
  store i8 %66, ptr %67, align 1, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %4, i64 5
  %69 = load i8, ptr %68, align 1, !tbaa !5
  %70 = lshr i8 %69, 4
  %71 = zext nneg i8 %70 to i64
  %72 = getelementptr inbounds i8, ptr @.str.4, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %5, i64 10
  store i8 %73, ptr %74, align 2, !tbaa !5
  %75 = and i8 %69, 15
  %76 = zext nneg i8 %75 to i64
  %77 = getelementptr inbounds i8, ptr @.str.4, i64 %76
  %78 = load i8, ptr %77, align 1, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %5, i64 11
  store i8 %78, ptr %79, align 1, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %4, i64 6
  %81 = load i8, ptr %80, align 2, !tbaa !5
  %82 = lshr i8 %81, 4
  %83 = zext nneg i8 %82 to i64
  %84 = getelementptr inbounds i8, ptr @.str.4, i64 %83
  %85 = load i8, ptr %84, align 1, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %5, i64 12
  store i8 %85, ptr %86, align 4, !tbaa !5
  %87 = and i8 %81, 15
  %88 = zext nneg i8 %87 to i64
  %89 = getelementptr inbounds i8, ptr @.str.4, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %5, i64 13
  store i8 %90, ptr %91, align 1, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %4, i64 7
  %93 = load i8, ptr %92, align 1, !tbaa !5
  %94 = lshr i8 %93, 4
  %95 = zext nneg i8 %94 to i64
  %96 = getelementptr inbounds i8, ptr @.str.4, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %5, i64 14
  store i8 %97, ptr %98, align 2, !tbaa !5
  %99 = and i8 %93, 15
  %100 = zext nneg i8 %99 to i64
  %101 = getelementptr inbounds i8, ptr @.str.4, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %5, i64 15
  store i8 %102, ptr %103, align 1, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %4, i64 8
  %105 = load i8, ptr %104, align 8, !tbaa !5
  %106 = lshr i8 %105, 4
  %107 = zext nneg i8 %106 to i64
  %108 = getelementptr inbounds i8, ptr @.str.4, i64 %107
  %109 = load i8, ptr %108, align 1, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %5, i64 16
  store i8 %109, ptr %110, align 16, !tbaa !5
  %111 = and i8 %105, 15
  %112 = zext nneg i8 %111 to i64
  %113 = getelementptr inbounds i8, ptr @.str.4, i64 %112
  %114 = load i8, ptr %113, align 1, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %5, i64 17
  store i8 %114, ptr %115, align 1, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %4, i64 9
  %117 = load i8, ptr %116, align 1, !tbaa !5
  %118 = lshr i8 %117, 4
  %119 = zext nneg i8 %118 to i64
  %120 = getelementptr inbounds i8, ptr @.str.4, i64 %119
  %121 = load i8, ptr %120, align 1, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %5, i64 18
  store i8 %121, ptr %122, align 2, !tbaa !5
  %123 = and i8 %117, 15
  %124 = zext nneg i8 %123 to i64
  %125 = getelementptr inbounds i8, ptr @.str.4, i64 %124
  %126 = load i8, ptr %125, align 1, !tbaa !5
  %127 = getelementptr inbounds i8, ptr %5, i64 19
  store i8 %126, ptr %127, align 1, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %4, i64 10
  %129 = load i8, ptr %128, align 2, !tbaa !5
  %130 = lshr i8 %129, 4
  %131 = zext nneg i8 %130 to i64
  %132 = getelementptr inbounds i8, ptr @.str.4, i64 %131
  %133 = load i8, ptr %132, align 1, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %5, i64 20
  store i8 %133, ptr %134, align 4, !tbaa !5
  %135 = and i8 %129, 15
  %136 = zext nneg i8 %135 to i64
  %137 = getelementptr inbounds i8, ptr @.str.4, i64 %136
  %138 = load i8, ptr %137, align 1, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %5, i64 21
  store i8 %138, ptr %139, align 1, !tbaa !5
  %140 = getelementptr inbounds i8, ptr %4, i64 11
  %141 = load i8, ptr %140, align 1, !tbaa !5
  %142 = lshr i8 %141, 4
  %143 = zext nneg i8 %142 to i64
  %144 = getelementptr inbounds i8, ptr @.str.4, i64 %143
  %145 = load i8, ptr %144, align 1, !tbaa !5
  %146 = getelementptr inbounds i8, ptr %5, i64 22
  store i8 %145, ptr %146, align 2, !tbaa !5
  %147 = and i8 %141, 15
  %148 = zext nneg i8 %147 to i64
  %149 = getelementptr inbounds i8, ptr @.str.4, i64 %148
  %150 = load i8, ptr %149, align 1, !tbaa !5
  %151 = getelementptr inbounds i8, ptr %5, i64 23
  store i8 %150, ptr %151, align 1, !tbaa !5
  %152 = getelementptr inbounds i8, ptr %4, i64 12
  %153 = load i8, ptr %152, align 4, !tbaa !5
  %154 = lshr i8 %153, 4
  %155 = zext nneg i8 %154 to i64
  %156 = getelementptr inbounds i8, ptr @.str.4, i64 %155
  %157 = load i8, ptr %156, align 1, !tbaa !5
  %158 = getelementptr inbounds i8, ptr %5, i64 24
  store i8 %157, ptr %158, align 8, !tbaa !5
  %159 = and i8 %153, 15
  %160 = zext nneg i8 %159 to i64
  %161 = getelementptr inbounds i8, ptr @.str.4, i64 %160
  %162 = load i8, ptr %161, align 1, !tbaa !5
  %163 = getelementptr inbounds i8, ptr %5, i64 25
  store i8 %162, ptr %163, align 1, !tbaa !5
  %164 = getelementptr inbounds i8, ptr %4, i64 13
  %165 = load i8, ptr %164, align 1, !tbaa !5
  %166 = lshr i8 %165, 4
  %167 = zext nneg i8 %166 to i64
  %168 = getelementptr inbounds i8, ptr @.str.4, i64 %167
  %169 = load i8, ptr %168, align 1, !tbaa !5
  %170 = getelementptr inbounds i8, ptr %5, i64 26
  store i8 %169, ptr %170, align 2, !tbaa !5
  %171 = and i8 %165, 15
  %172 = zext nneg i8 %171 to i64
  %173 = getelementptr inbounds i8, ptr @.str.4, i64 %172
  %174 = load i8, ptr %173, align 1, !tbaa !5
  %175 = getelementptr inbounds i8, ptr %5, i64 27
  store i8 %174, ptr %175, align 1, !tbaa !5
  %176 = getelementptr inbounds i8, ptr %4, i64 14
  %177 = load i8, ptr %176, align 2, !tbaa !5
  %178 = lshr i8 %177, 4
  %179 = zext nneg i8 %178 to i64
  %180 = getelementptr inbounds i8, ptr @.str.4, i64 %179
  %181 = load i8, ptr %180, align 1, !tbaa !5
  %182 = getelementptr inbounds i8, ptr %5, i64 28
  store i8 %181, ptr %182, align 4, !tbaa !5
  %183 = and i8 %177, 15
  %184 = zext nneg i8 %183 to i64
  %185 = getelementptr inbounds i8, ptr @.str.4, i64 %184
  %186 = load i8, ptr %185, align 1, !tbaa !5
  %187 = getelementptr inbounds i8, ptr %5, i64 29
  store i8 %186, ptr %187, align 1, !tbaa !5
  %188 = getelementptr inbounds i8, ptr %4, i64 15
  %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.4, i64 %191
  %193 = load i8, ptr %192, align 1, !tbaa !5
  %194 = getelementptr inbounds i8, ptr %5, i64 30
  store i8 %193, ptr %194, align 2, !tbaa !5
  %195 = and i8 %189, 15
  %196 = zext nneg i8 %195 to i64
  %197 = getelementptr inbounds i8, ptr @.str.4, i64 %196
  %198 = load i8, ptr %197, align 1, !tbaa !5
  %199 = getelementptr inbounds i8, ptr %5, i64 31
  store i8 %198, ptr %199, align 1, !tbaa !5
  %200 = getelementptr inbounds i8, ptr %4, i64 16
  %201 = load i8, ptr %200, align 16, !tbaa !5
  %202 = lshr i8 %201, 4
  %203 = zext nneg i8 %202 to i64
  %204 = getelementptr inbounds i8, ptr @.str.4, i64 %203
  %205 = load i8, ptr %204, align 1, !tbaa !5
  %206 = getelementptr inbounds i8, ptr %5, i64 32
  store i8 %205, ptr %206, align 16, !tbaa !5
  %207 = and i8 %201, 15
  %208 = zext nneg i8 %207 to i64
  %209 = getelementptr inbounds i8, ptr @.str.4, i64 %208
  %210 = load i8, ptr %209, align 1, !tbaa !5
  %211 = getelementptr inbounds i8, ptr %5, i64 33
  store i8 %210, ptr %211, align 1, !tbaa !5
  %212 = getelementptr inbounds i8, ptr %4, i64 17
  %213 = load i8, ptr %212, align 1, !tbaa !5
  %214 = lshr i8 %213, 4
  %215 = zext nneg i8 %214 to i64
  %216 = getelementptr inbounds i8, ptr @.str.4, i64 %215
  %217 = load i8, ptr %216, align 1, !tbaa !5
  %218 = getelementptr inbounds i8, ptr %5, i64 34
  store i8 %217, ptr %218, align 2, !tbaa !5
  %219 = and i8 %213, 15
  %220 = zext nneg i8 %219 to i64
  %221 = getelementptr inbounds i8, ptr @.str.4, i64 %220
  %222 = load i8, ptr %221, align 1, !tbaa !5
  %223 = getelementptr inbounds i8, ptr %5, i64 35
  store i8 %222, ptr %223, align 1, !tbaa !5
  %224 = getelementptr inbounds i8, ptr %4, i64 18
  %225 = load i8, ptr %224, align 2, !tbaa !5
  %226 = lshr i8 %225, 4
  %227 = zext nneg i8 %226 to i64
  %228 = getelementptr inbounds i8, ptr @.str.4, i64 %227
  %229 = load i8, ptr %228, align 1, !tbaa !5
  %230 = getelementptr inbounds i8, ptr %5, i64 36
  store i8 %229, ptr %230, align 4, !tbaa !5
  %231 = and i8 %225, 15
  %232 = zext nneg i8 %231 to i64
  %233 = getelementptr inbounds i8, ptr @.str.4, i64 %232
  %234 = load i8, ptr %233, align 1, !tbaa !5
  %235 = getelementptr inbounds i8, ptr %5, i64 37
  store i8 %234, ptr %235, align 1, !tbaa !5
  %236 = getelementptr inbounds i8, ptr %4, i64 19
  %237 = load i8, ptr %236, align 1, !tbaa !5
  %238 = lshr i8 %237, 4
  %239 = zext nneg i8 %238 to i64
  %240 = getelementptr inbounds i8, ptr @.str.4, i64 %239
  %241 = load i8, ptr %240, align 1, !tbaa !5
  %242 = getelementptr inbounds i8, ptr %5, i64 38
  store i8 %241, ptr %242, align 2, !tbaa !5
  %243 = and i8 %237, 15
  %244 = zext nneg i8 %243 to i64
  %245 = getelementptr inbounds i8, ptr @.str.4, i64 %244
  %246 = load i8, ptr %245, align 1, !tbaa !5
  %247 = getelementptr inbounds i8, ptr %5, i64 39
  store i8 %246, ptr %247, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcmRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %5, i64 noundef 40, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %248 unwind label %249

248:                                              ; preds = %2
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %3) #4
  ret void

249:                                              ; preds = %2
  %250 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %3) #4
  resume { ptr, i32 } %250
}

declare void @SHA1Init(ptr noundef) local_unnamed_addr #3

declare void @SHA1Update(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

declare void @SHA1Final(ptr noundef, ptr noundef) local_unnamed_addr #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!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,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass