; LLVM IR from chdb-io/chdb :: base/poco/Foundation/src/SHA1Engine.ll (ZN4Poco10SHA1Engine6digestEv)

; 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.__gnu_cxx::__normal_iterator.0" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.Poco::SHA1Engine" = type { %"class.Poco::DigestEngine", %"struct.Poco::SHA1Engine::Context", %"class.std::vector" }
%"class.Poco::DigestEngine" = type { ptr }
%"struct.Poco::SHA1Engine::Context" = type { [5 x i32], i32, i32, [16 x i32], i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4Poco10SHA1Engine11byteReverseEPji(ptr noundef, i32 noundef) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN4Poco10SHA1Engine6digestEv(ptr noundef nonnull align 8 dereferenceable(128) %0) unnamed_addr #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [20 x i8], align 16
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %11 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 1
  %12 = getelementptr inbounds %"struct.Poco::SHA1Engine::Context", ptr %11, i32 0, i32 1
  %13 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %13, ptr %4, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %14 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 1
  %15 = getelementptr inbounds %"struct.Poco::SHA1Engine::Context", ptr %14, i32 0, i32 2
  %16 = load i32, ptr %15, align 8, !tbaa !19
  store i32 %16, ptr %5, align 4, !tbaa !18
  %17 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 1
  %18 = getelementptr inbounds %"struct.Poco::SHA1Engine::Context", ptr %17, i32 0, i32 1
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = lshr i32 %19, 3
  %21 = and i32 %20, 63
  store i32 %21, ptr %3, align 4, !tbaa !18
  %22 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 1
  %23 = getelementptr inbounds %"struct.Poco::SHA1Engine::Context", ptr %22, i32 0, i32 3
  %24 = getelementptr inbounds [16 x i32], ptr %23, i64 0, i64 0
  %25 = load i32, ptr %3, align 4, !tbaa !18
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %3, align 4, !tbaa !18
  %27 = sext i32 %25 to i64
  %28 = getelementptr inbounds i8, ptr %24, i64 %27
  store i8 -128, ptr %28, align 1, !tbaa !20
  %29 = load i32, ptr %3, align 4, !tbaa !18
  %30 = icmp sgt i32 %29, 56
  br i1 %30, label %31, label %45

31:                                               ; preds = %1
  %32 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 1
  %33 = getelementptr inbounds %"struct.Poco::SHA1Engine::Context", ptr %32, i32 0, i32 3
  %34 = load i32, ptr %3, align 4, !tbaa !18
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds i8, ptr %33, i64 %35
  %37 = load i32, ptr %3, align 4, !tbaa !18
  %38 = sub nsw i32 64, %37
  %39 = sext i32 %38 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %36, i8 0, i64 %39, i1 false)
  %40 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 1
  %41 = getelementptr inbounds %"struct.Poco::SHA1Engine::Context", ptr %40, i32 0, i32 3
  %42 = getelementptr inbounds [16 x i32], ptr %41, i64 0, i64 0
  call void @_ZN4Poco10SHA1Engine11byteReverseEPji(ptr noundef %42, i32 noundef 64)
  call void @_ZN4Poco10SHA1Engine9transformEv(ptr noundef nonnull align 8 dereferenceable(128) %10)
  %43 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 1
  %44 = getelementptr inbounds %"struct.Poco::SHA1Engine::Context", ptr %43, i32 0, i32 3
  call void @llvm.memset.p0.i64(ptr align 4 %44, i8 0, i64 56, i1 false)
  br label %54

45:                                               ; preds = %1
  %46 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 1
  %47 = getelementptr inbounds %"struct.Poco::SHA1Engine::Context", ptr %46, i32 0, i32 3
  %48 = load i32, ptr %3, align 4, !tbaa !18
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i8, ptr %47, i64 %49
  %51 = load i32, ptr %3, align 4, !tbaa !18
  %52 = sub nsw i32 56, %51
  %53 = sext i32 %52 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %50, i8 0, i64 %53, i1 false)
  br label %54

54:                                               ; preds = %45, %31
  %55 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 1
  %56 = getelementptr inbounds %"struct.Poco::SHA1Engine::Context", ptr %55, i32 0, i32 3
  %57 = getelementptr inbounds [16 x i32], ptr %56, i64 0, i64 0
  call void @_ZN4Poco10SHA1Engine11byteReverseEPji(ptr noundef %57, i32 noundef 64)
  %58 = load i32, ptr %5, align 4, !tbaa !18
  %59 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 1
  %60 = getelementptr inbounds %"struct.Poco::SHA1Engine::Context", ptr %59, i32 0, i32 3
  %61 = getelementptr inbounds [16 x i32], ptr %60, i64 0, i64 14
  store i32 %58, ptr %61, align 4, !tbaa !18
  %62 = load i32, ptr %4, align 4, !tbaa !18
  %63 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 1
  %64 = getelementptr inbounds %"struct.Poco::SHA1Engine::Context", ptr %63, i32 0, i32 3
  %65 = getelementptr inbounds [16 x i32], ptr %64, i64 0, i64 15
  store i32 %62, ptr %65, align 4, !tbaa !18
  call void @_ZN4Poco10SHA1Engine9transformEv(ptr noundef nonnull align 8 dereferenceable(128) %10)
  %66 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 1
  %67 = getelementptr inbounds %"struct.Poco::SHA1Engine::Context", ptr %66, i32 0, i32 3
  %68 = getelementptr inbounds [16 x i32], ptr %67, i64 0, i64 0
  call void @_ZN4Poco10SHA1Engine11byteReverseEPji(ptr noundef %68, i32 noundef 20)
  call void @llvm.lifetime.start.p0(i64 20, ptr %6) #5
  store i32 0, ptr %3, align 4, !tbaa !18
  br label %69

69:                                               ; preds = %92, %54
  %70 = load i32, ptr %3, align 4, !tbaa !18
  %71 = icmp slt i32 %70, 20
  br i1 %71, label %72, label %95

72:                                               ; preds = %69
  %73 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 1
  %74 = getelementptr inbounds %"struct.Poco::SHA1Engine::Context", ptr %73, i32 0, i32 0
  %75 = load i32, ptr %3, align 4, !tbaa !18
  %76 = ashr i32 %75, 2
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [5 x i32], ptr %74, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !18
  %80 = load i32, ptr %3, align 4, !tbaa !18
  %81 = and i32 %80, 3
  %82 = sub nsw i32 3, %81
  %83 = mul nsw i32 8, %82
  %84 = lshr i32 %79, %83
  %85 = trunc i32 %84 to i8
  %86 = zext i8 %85 to i32
  %87 = and i32 %86, 255
  %88 = trunc i32 %87 to i8
  %89 = load i32, ptr %3, align 4, !tbaa !18
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 %90
  store i8 %88, ptr %91, align 1, !tbaa !20
  br label %92

92:                                               ; preds = %72
  %93 = load i32, ptr %3, align 4, !tbaa !18
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %3, align 4, !tbaa !18
  br label %69, !llvm.loop !21

95:                                               ; preds = %69
  %96 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 2
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #5
  %97 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %98 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 2
  %99 = call ptr @_ZNSt6vectorIhSaIhEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #5
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %99, ptr %100, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEC2IPhvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %101 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
  %102 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
  %103 = getelementptr inbounds i8, ptr %102, i64 20
  %104 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %7, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8
  %106 = call ptr @_ZNSt6vectorIhSaIhEE6insertIPhvEEN9__gnu_cxx17__normal_iteratorIS3_S1_EENS5_IPKhS1_EET_SA_(ptr noundef nonnull align 8 dereferenceable(24) %97, ptr %105, ptr noundef %101, ptr noundef %103)
  %107 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %106, ptr %107, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %108 = load ptr, ptr %10, align 8, !tbaa !23
  %109 = getelementptr inbounds ptr, ptr %108, i64 3
  %110 = load ptr, ptr %109, align 8
  call void %110(ptr noundef nonnull align 8 dereferenceable(128) %10)
  %111 = getelementptr inbounds %"class.Poco::SHA1Engine", ptr %10, i32 0, i32 2
  call void @llvm.lifetime.end.p0(i64 20, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret ptr %111
}

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt6vectorIhSaIhEE6insertIPhvEEN9__gnu_cxx17__normal_iteratorIS3_S1_EENS5_IPKhS1_EET_SA_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr noundef, ptr noundef) #4 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { 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, !13, i64 28}
!10 = !{!"_ZTSN4Poco10SHA1EngineE", !11, i64 0, !12, i64 8, !14, i64 104}
!11 = !{!"_ZTSN4Poco12DigestEngineE"}
!12 = !{!"_ZTSN4Poco10SHA1Engine7ContextE", !7, i64 0, !13, i64 20, !13, i64 24, !7, i64 28, !13, i64 92}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSSt6vectorIhSaIhEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!13, !13, i64 0}
!19 = !{!10, !13, i64 32}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}


; 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.__gnu_cxx::__normal_iterator.0" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4Poco10SHA1Engine11byteReverseEPji(ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

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

; 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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN4Poco10SHA1Engine6digestEv(ptr noundef nonnull align 8 dereferenceable(128) %0) unnamed_addr #4 align 2 {
  %2 = alloca [20 x i8], align 16
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 28
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  %8 = load i32, ptr %7, align 8, !tbaa !17
  %9 = lshr i32 %6, 3
  %10 = and i32 %9, 63
  %11 = getelementptr inbounds i8, ptr %0, i64 36
  %12 = zext nneg i32 %10 to i64
  %13 = getelementptr inbounds i8, ptr %11, i64 %12
  store i8 -128, ptr %13, align 1, !tbaa !18
  %14 = icmp ugt i32 %10, 55
  %15 = zext nneg i32 %10 to i64
  %16 = getelementptr inbounds i8, ptr %11, i64 %15
  %17 = getelementptr inbounds i8, ptr %16, i64 1
  br i1 %14, label %18, label %21

18:                                               ; preds = %1
  %19 = xor i32 %10, 63
  %20 = zext nneg i32 %19 to i64
  tail call void @llvm.memset.p0.i64(ptr nonnull align 1 %17, i8 0, i64 %20, i1 false)
  tail call void @_ZN4Poco10SHA1Engine11byteReverseEPji(ptr noundef nonnull %11, i32 noundef 64)
  tail call void @_ZN4Poco10SHA1Engine9transformEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(56) %11, i8 0, i64 56, i1 false)
  br label %24

21:                                               ; preds = %1
  %22 = sub nuw nsw i32 55, %10
  %23 = zext nneg i32 %22 to i64
  tail call void @llvm.memset.p0.i64(ptr nonnull align 1 %17, i8 0, i64 %23, i1 false)
  br label %24

24:                                               ; preds = %21, %18
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN4Poco10SHA1Engine11byteReverseEPji(ptr noundef nonnull %11, i32 noundef 64)
  %26 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 %8, ptr %26, align 4, !tbaa !19
  %27 = getelementptr inbounds i8, ptr %0, i64 96
  store i32 %6, ptr %27, align 8, !tbaa !19
  tail call void @_ZN4Poco10SHA1Engine9transformEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  tail call void @_ZN4Poco10SHA1Engine11byteReverseEPji(ptr noundef nonnull %11, i32 noundef 20)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %2) #5
  %28 = load i32, ptr %25, align 8, !tbaa !19
  %29 = lshr i32 %28, 24
  %30 = trunc nuw i32 %29 to i8
  store i8 %30, ptr %2, align 16, !tbaa !18
  %31 = lshr i32 %28, 16
  %32 = trunc i32 %31 to i8
  %33 = getelementptr inbounds i8, ptr %2, i64 1
  store i8 %32, ptr %33, align 1, !tbaa !18
  %34 = lshr i32 %28, 8
  %35 = trunc i32 %34 to i8
  %36 = getelementptr inbounds i8, ptr %2, i64 2
  store i8 %35, ptr %36, align 2, !tbaa !18
  %37 = trunc i32 %28 to i8
  %38 = getelementptr inbounds i8, ptr %2, i64 3
  store i8 %37, ptr %38, align 1, !tbaa !18
  %39 = getelementptr inbounds i8, ptr %0, i64 12
  %40 = load i32, ptr %39, align 4, !tbaa !19
  %41 = lshr i32 %40, 24
  %42 = trunc nuw i32 %41 to i8
  %43 = getelementptr inbounds i8, ptr %2, i64 4
  store i8 %42, ptr %43, align 4, !tbaa !18
  %44 = lshr i32 %40, 16
  %45 = trunc i32 %44 to i8
  %46 = getelementptr inbounds i8, ptr %2, i64 5
  store i8 %45, ptr %46, align 1, !tbaa !18
  %47 = lshr i32 %40, 8
  %48 = trunc i32 %47 to i8
  %49 = getelementptr inbounds i8, ptr %2, i64 6
  store i8 %48, ptr %49, align 2, !tbaa !18
  %50 = trunc i32 %40 to i8
  %51 = getelementptr inbounds i8, ptr %2, i64 7
  store i8 %50, ptr %51, align 1, !tbaa !18
  %52 = getelementptr inbounds i8, ptr %0, i64 16
  %53 = load i32, ptr %52, align 8, !tbaa !19
  %54 = lshr i32 %53, 24
  %55 = trunc nuw i32 %54 to i8
  %56 = getelementptr inbounds i8, ptr %2, i64 8
  store i8 %55, ptr %56, align 8, !tbaa !18
  %57 = lshr i32 %53, 16
  %58 = trunc i32 %57 to i8
  %59 = getelementptr inbounds i8, ptr %2, i64 9
  store i8 %58, ptr %59, align 1, !tbaa !18
  %60 = lshr i32 %53, 8
  %61 = trunc i32 %60 to i8
  %62 = getelementptr inbounds i8, ptr %2, i64 10
  store i8 %61, ptr %62, align 2, !tbaa !18
  %63 = trunc i32 %53 to i8
  %64 = getelementptr inbounds i8, ptr %2, i64 11
  store i8 %63, ptr %64, align 1, !tbaa !18
  %65 = getelementptr inbounds i8, ptr %0, i64 20
  %66 = load i32, ptr %65, align 4, !tbaa !19
  %67 = lshr i32 %66, 24
  %68 = trunc nuw i32 %67 to i8
  %69 = getelementptr inbounds i8, ptr %2, i64 12
  store i8 %68, ptr %69, align 4, !tbaa !18
  %70 = lshr i32 %66, 16
  %71 = trunc i32 %70 to i8
  %72 = getelementptr inbounds i8, ptr %2, i64 13
  store i8 %71, ptr %72, align 1, !tbaa !18
  %73 = lshr i32 %66, 8
  %74 = trunc i32 %73 to i8
  %75 = getelementptr inbounds i8, ptr %2, i64 14
  store i8 %74, ptr %75, align 2, !tbaa !18
  %76 = trunc i32 %66 to i8
  %77 = getelementptr inbounds i8, ptr %2, i64 15
  store i8 %76, ptr %77, align 1, !tbaa !18
  %78 = getelementptr inbounds i8, ptr %0, i64 24
  %79 = load i32, ptr %78, align 8, !tbaa !19
  %80 = lshr i32 %79, 24
  %81 = trunc nuw i32 %80 to i8
  %82 = getelementptr inbounds i8, ptr %2, i64 16
  store i8 %81, ptr %82, align 16, !tbaa !18
  %83 = lshr i32 %79, 16
  %84 = trunc i32 %83 to i8
  %85 = getelementptr inbounds i8, ptr %2, i64 17
  store i8 %84, ptr %85, align 1, !tbaa !18
  %86 = lshr i32 %79, 8
  %87 = trunc i32 %86 to i8
  %88 = getelementptr inbounds i8, ptr %2, i64 18
  store i8 %87, ptr %88, align 2, !tbaa !18
  %89 = trunc i32 %79 to i8
  %90 = getelementptr inbounds i8, ptr %2, i64 19
  store i8 %89, ptr %90, align 1, !tbaa !18
  %91 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %92 = tail call ptr @_ZNSt6vectorIhSaIhEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #5
  store ptr %92, ptr %4, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEC2IPhvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %93 = getelementptr inbounds i8, ptr %2, i64 20
  %94 = load ptr, ptr %3, align 8
  %95 = call ptr @_ZNSt6vectorIhSaIhEE6insertIPhvEEN9__gnu_cxx17__normal_iteratorIS3_S1_EENS5_IPKhS1_EET_SA_(ptr noundef nonnull align 8 dereferenceable(24) %91, ptr %94, ptr noundef nonnull %2, ptr noundef nonnull %93)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %96 = load ptr, ptr %0, align 8, !tbaa !20
  %97 = getelementptr inbounds i8, ptr %96, i64 24
  %98 = load ptr, ptr %97, align 8
  call void %98(ptr noundef nonnull align 8 dereferenceable(128) %0)
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %2) #5
  ret ptr %91
}

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { 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, !11, i64 28}
!6 = !{!"_ZTSN4Poco10SHA1EngineE", !7, i64 0, !8, i64 8, !12, i64 104}
!7 = !{!"_ZTSN4Poco12DigestEngineE"}
!8 = !{!"_ZTSN4Poco10SHA1Engine7ContextE", !9, i64 0, !11, i64 20, !11, i64 24, !9, i64 28, !11, i64 92}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTSSt6vectorIhSaIhEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !9, i64 0}
!17 = !{!6, !11, i64 32}
!18 = !{!9, !9, i64 0}
!19 = !{!11, !11, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !10, i64 0}


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