; LLVM IR from UBIC-repo/core :: Tools (Hexdump)

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

@__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap = external hidden unnamed_addr constant [16 x i8], align 16

; 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 @_ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [16 x i8], align 16
  %6 = alloca i1, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca i8, align 1
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 16, i1 false)
  store i1 false, ptr %6, align 1
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %102, %2
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = zext i32 %21 to i64
  %23 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #4
  %24 = icmp ult i64 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %20
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %110

26:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %51, %26
  %28 = load i32, ptr %11, align 4, !tbaa !9
  %29 = icmp ult i32 %28, 16
  br i1 %29, label %31, label %30

30:                                               ; preds = %27
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %54

31:                                               ; preds = %27
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = zext i32 %32 to i64
  %34 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %33)
          to label %35 unwind label %46

35:                                               ; preds = %31
  %36 = load i8, ptr %34, align 1, !tbaa !11
  %37 = sext i8 %36 to i32
  %38 = load i32, ptr %11, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 %39
  %41 = load i8, ptr %40, align 1, !tbaa !11
  %42 = sext i8 %41 to i32
  %43 = icmp eq i32 %37, %42
  br i1 %43, label %44, label %50

44:                                               ; preds = %35
  %45 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %45, ptr %9, align 4, !tbaa !9
  br label %50

46:                                               ; preds = %31
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %12, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %109

50:                                               ; preds = %44, %35
  br label %51

51:                                               ; preds = %50
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = add i32 %52, 1
  store i32 %53, ptr %11, align 4, !tbaa !9
  br label %27, !llvm.loop !12

54:                                               ; preds = %30
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = add i32 %55, 1
  store i32 %56, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %81, %54
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = icmp ult i32 %58, 16
  br i1 %59, label %61, label %60

60:                                               ; preds = %57
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %84

61:                                               ; preds = %57
  %62 = load i32, ptr %7, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %63)
          to label %65 unwind label %76

65:                                               ; preds = %61
  %66 = load i8, ptr %64, align 1, !tbaa !11
  %67 = sext i8 %66 to i32
  %68 = load i32, ptr %14, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 %69
  %71 = load i8, ptr %70, align 1, !tbaa !11
  %72 = sext i8 %71 to i32
  %73 = icmp eq i32 %67, %72
  br i1 %73, label %74, label %80

74:                                               ; preds = %65
  %75 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %75, ptr %10, align 4, !tbaa !9
  br label %80

76:                                               ; preds = %61
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %12, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %109

80:                                               ; preds = %74, %65
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = add i32 %82, 1
  store i32 %83, ptr %14, align 4, !tbaa !9
  br label %57, !llvm.loop !14

84:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %85 = call ptr @_ZNSt6vectorIhSaIhEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %86 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %85, ptr %86, align 8
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = udiv i32 %87, 2
  %89 = zext i32 %88 to i64
  %90 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %17, i64 noundef %89) #4
  %91 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %90, ptr %91, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEC2IPhvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  %92 = load i32, ptr %9, align 4, !tbaa !9
  %93 = mul i32 %92, 16
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = add i32 %93, %94
  %96 = trunc i32 %95 to i8
  store i8 %96, ptr %18, align 1, !tbaa !11
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %15, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8
  %99 = invoke ptr @_ZNSt6vectorIhSaIhEE6insertEN9__gnu_cxx17__normal_iteratorIPKhS1_EEOh(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %98, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %100 unwind label %105

100:                                              ; preds = %84
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %99, ptr %101, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %102

102:                                              ; preds = %100
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = add i32 %103, 1
  store i32 %104, ptr %7, align 4, !tbaa !9
  br label %20, !llvm.loop !15

105:                                              ; preds = %84
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %12, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %109

109:                                              ; preds = %105, %76, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  br label %114

110:                                              ; preds = %25
  store i1 true, ptr %6, align 1
  store i32 1, ptr %8, align 4
  %111 = load i1, ptr %6, align 1
  br i1 %111, label %113, label %112

112:                                              ; preds = %110
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  br label %113

113:                                              ; preds = %112, %110
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  ret void

114:                                              ; preds = %109
  %115 = load ptr, ptr %12, align 8
  %116 = load i32, ptr %13, align 4
  %117 = insertvalue { ptr, i32 } poison, ptr %115, 0
  %118 = insertvalue { ptr, i32 } %117, i32 %116, 1
  resume { ptr, i32 } %118
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEplEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 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 #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}


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

@__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap = external hidden unnamed_addr constant [16 x i8], align 16

; 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 @_ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector") align 8 %0, ptr noundef %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca i8, align 1
  tail call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %7 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %.not = icmp eq i64 %7, 0
  br i1 %.not, label %._crit_edge, label %.preheader.preheader

.preheader.preheader:                             ; preds = %2
  %8 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 1), align 1
  %9 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 2), align 2
  %10 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 3), align 1
  %11 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 4), align 4
  %12 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 5), align 1
  %13 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 6), align 2
  %14 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 7), align 1
  %15 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 8), align 8
  %16 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 9), align 1
  %17 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 10), align 2
  %18 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 11), align 1
  %19 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 12), align 4
  %20 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 13), align 1
  %21 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 14), align 2
  %22 = load i8, ptr getelementptr inbounds (i8, ptr @__const._ZN7Hexdump17hexStringToVectorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.hexmap, i64 15), align 1
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %176
  %23 = phi i64 [ %178, %176 ], [ 0, %.preheader.preheader ]
  %.02434 = phi i32 [ %177, %176 ], [ 0, %.preheader.preheader ]
  %24 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %25 unwind label %103

25:                                               ; preds = %.preheader
  %26 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %27 unwind label %103

27:                                               ; preds = %25
  %28 = load i8, ptr %26, align 1, !tbaa !5
  %29 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %30 unwind label %103

30:                                               ; preds = %27
  %31 = load i8, ptr %29, align 1, !tbaa !5
  %32 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %33 unwind label %103

33:                                               ; preds = %30
  %34 = load i8, ptr %32, align 1, !tbaa !5
  %35 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %36 unwind label %103

36:                                               ; preds = %33
  %37 = load i8, ptr %35, align 1, !tbaa !5
  %38 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %39 unwind label %103

39:                                               ; preds = %36
  %40 = load i8, ptr %38, align 1, !tbaa !5
  %41 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %42 unwind label %103

42:                                               ; preds = %39
  %43 = load i8, ptr %41, align 1, !tbaa !5
  %44 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %45 unwind label %103

45:                                               ; preds = %42
  %46 = load i8, ptr %44, align 1, !tbaa !5
  %47 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %48 unwind label %103

48:                                               ; preds = %45
  %49 = load i8, ptr %47, align 1, !tbaa !5
  %50 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %51 unwind label %103

51:                                               ; preds = %48
  %52 = load i8, ptr %50, align 1, !tbaa !5
  %53 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %54 unwind label %103

54:                                               ; preds = %51
  %55 = load i8, ptr %53, align 1, !tbaa !5
  %56 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %57 unwind label %103

57:                                               ; preds = %54
  %58 = load i8, ptr %56, align 1, !tbaa !5
  %59 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %60 unwind label %103

60:                                               ; preds = %57
  %61 = load i8, ptr %59, align 1, !tbaa !5
  %62 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %63 unwind label %103

63:                                               ; preds = %60
  %64 = load i8, ptr %62, align 1, !tbaa !5
  %65 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %66 unwind label %103

66:                                               ; preds = %63
  %67 = load i8, ptr %65, align 1, !tbaa !5
  %68 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %23)
          to label %69 unwind label %103

69:                                               ; preds = %66
  %70 = icmp eq i8 %67, %21
  %71 = icmp eq i8 %64, %20
  %72 = icmp eq i8 %61, %19
  %73 = icmp eq i8 %58, %18
  %74 = icmp eq i8 %55, %17
  %75 = icmp eq i8 %52, %16
  %76 = icmp eq i8 %49, %15
  %77 = icmp eq i8 %46, %14
  %78 = icmp eq i8 %43, %13
  %79 = icmp eq i8 %40, %12
  %80 = icmp eq i8 %37, %11
  %81 = icmp eq i8 %34, %10
  %82 = icmp eq i8 %31, %9
  %83 = icmp eq i8 %28, %8
  %84 = select i1 %83, i8 16, i8 0
  %85 = select i1 %82, i8 32, i8 %84
  %86 = select i1 %81, i8 48, i8 %85
  %87 = select i1 %80, i8 64, i8 %86
  %88 = select i1 %79, i8 80, i8 %87
  %89 = select i1 %78, i8 96, i8 %88
  %90 = select i1 %77, i8 112, i8 %89
  %91 = select i1 %76, i8 -128, i8 %90
  %92 = select i1 %75, i8 -112, i8 %91
  %93 = select i1 %74, i8 -96, i8 %92
  %94 = select i1 %73, i8 -80, i8 %93
  %95 = select i1 %72, i8 -64, i8 %94
  %96 = select i1 %71, i8 -48, i8 %95
  %97 = load i8, ptr %68, align 1, !tbaa !5
  %98 = icmp eq i8 %97, %22
  %99 = select i1 %70, i8 -32, i8 %96
  %100 = or disjoint i32 %.02434, 1
  %101 = zext i32 %100 to i64
  %102 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %105 unwind label %174

103:                                              ; preds = %66, %63, %60, %57, %54, %51, %48, %45, %42, %39, %36, %33, %30, %27, %25, %.preheader
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %183

105:                                              ; preds = %69
  %106 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %107 unwind label %174

107:                                              ; preds = %105
  %108 = load i8, ptr %106, align 1, !tbaa !5
  %109 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %110 unwind label %174

110:                                              ; preds = %107
  %111 = load i8, ptr %109, align 1, !tbaa !5
  %112 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %113 unwind label %174

113:                                              ; preds = %110
  %114 = load i8, ptr %112, align 1, !tbaa !5
  %115 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %116 unwind label %174

116:                                              ; preds = %113
  %117 = load i8, ptr %115, align 1, !tbaa !5
  %118 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %119 unwind label %174

119:                                              ; preds = %116
  %120 = load i8, ptr %118, align 1, !tbaa !5
  %121 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %122 unwind label %174

122:                                              ; preds = %119
  %123 = load i8, ptr %121, align 1, !tbaa !5
  %124 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %125 unwind label %174

125:                                              ; preds = %122
  %126 = load i8, ptr %124, align 1, !tbaa !5
  %127 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %128 unwind label %174

128:                                              ; preds = %125
  %129 = load i8, ptr %127, align 1, !tbaa !5
  %130 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %131 unwind label %174

131:                                              ; preds = %128
  %132 = load i8, ptr %130, align 1, !tbaa !5
  %133 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %134 unwind label %174

134:                                              ; preds = %131
  %135 = load i8, ptr %133, align 1, !tbaa !5
  %136 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %137 unwind label %174

137:                                              ; preds = %134
  %138 = load i8, ptr %136, align 1, !tbaa !5
  %139 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %140 unwind label %174

140:                                              ; preds = %137
  %141 = load i8, ptr %139, align 1, !tbaa !5
  %142 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %143 unwind label %174

143:                                              ; preds = %140
  %144 = load i8, ptr %142, align 1, !tbaa !5
  %145 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %146 unwind label %174

146:                                              ; preds = %143
  %147 = load i8, ptr %145, align 1, !tbaa !5
  %148 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101)
          to label %149 unwind label %174

149:                                              ; preds = %146
  %150 = icmp eq i8 %147, %21
  %151 = icmp eq i8 %144, %20
  %152 = icmp eq i8 %141, %19
  %153 = icmp eq i8 %138, %18
  %154 = icmp eq i8 %135, %17
  %155 = icmp eq i8 %132, %16
  %156 = icmp eq i8 %129, %15
  %157 = icmp eq i8 %126, %14
  %158 = icmp eq i8 %123, %13
  %159 = icmp eq i8 %120, %12
  %160 = icmp eq i8 %117, %11
  %161 = icmp eq i8 %114, %10
  %162 = icmp eq i8 %111, %9
  %163 = icmp eq i8 %108, %8
  %spec.select27.1 = zext i1 %163 to i8
  %spec.select27.2 = select i1 %162, i8 2, i8 %spec.select27.1
  %spec.select27.3 = select i1 %161, i8 3, i8 %spec.select27.2
  %spec.select27.4 = select i1 %160, i8 4, i8 %spec.select27.3
  %spec.select27.5 = select i1 %159, i8 5, i8 %spec.select27.4
  %spec.select27.6 = select i1 %158, i8 6, i8 %spec.select27.5
  %spec.select27.7 = select i1 %157, i8 7, i8 %spec.select27.6
  %spec.select27.8 = select i1 %156, i8 8, i8 %spec.select27.7
  %spec.select27.9 = select i1 %155, i8 9, i8 %spec.select27.8
  %spec.select27.10 = select i1 %154, i8 10, i8 %spec.select27.9
  %spec.select27.11 = select i1 %153, i8 11, i8 %spec.select27.10
  %spec.select27.12 = select i1 %152, i8 12, i8 %spec.select27.11
  %spec.select27.13 = select i1 %151, i8 13, i8 %spec.select27.12
  %spec.select27.14 = select i1 %150, i8 14, i8 %spec.select27.13
  %164 = load i8, ptr %148, align 1, !tbaa !5
  %165 = icmp eq i8 %164, %22
  %spec.select27.15 = select i1 %165, i8 15, i8 %spec.select27.14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %166 = call ptr @_ZNSt6vectorIhSaIhEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  store ptr %166, ptr %5, align 8
  %167 = lshr exact i32 %.02434, 1
  %168 = zext nneg i32 %167 to i64
  %169 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %168) #3
  store ptr %169, 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) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #3
  %170 = select i1 %98, i8 -16, i8 %99
  %171 = add nuw i8 %spec.select27.15, %170
  store i8 %171, ptr %6, align 1, !tbaa !5
  %172 = load ptr, ptr %3, align 8
  %173 = invoke ptr @_ZNSt6vectorIhSaIhEE6insertEN9__gnu_cxx17__normal_iteratorIPKhS1_EEOh(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %172, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %176 unwind label %181

174:                                              ; preds = %146, %143, %140, %137, %134, %131, %128, %125, %122, %119, %116, %113, %110, %107, %105, %69
  %175 = landingpad { ptr, i32 }
          cleanup
  br label %183

176:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  %177 = add i32 %.02434, 2
  %178 = zext i32 %177 to i64
  %179 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %180 = icmp ugt i64 %179, %178
  br i1 %180, label %.preheader, label %._crit_edge, !llvm.loop !8

181:                                              ; preds = %149
  %182 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  br label %183

183:                                              ; preds = %181, %174, %103
  %.pn = phi { ptr, i32 } [ %104, %103 ], [ %175, %174 ], [ %182, %181 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  resume { ptr, i32 } %.pn

._crit_edge:                                      ; preds = %176, %2
  ret void
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt6vectorIhSaIhEE6insertEN9__gnu_cxx17__normal_iteratorIPKhS1_EEOh(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 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 ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEplEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


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