; LLVM IR from trabucayre/openFPGALoader :: src/xvc_client.ll (ZN10XVC_client8writeTMSEPKhjbh)

; 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.XVC_client = type { %class.JtagInterface.base, i8, ptr, ptr, ptr, i32, i32, i32, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i32 }
%class.JtagInterface.base = type <{ ptr, i32 }>
%"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] }

@_ZTISt13runtime_error = external constant ptr
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10XVC_client8writeTMSEPKhjbh(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef %1, i32 noundef %2, i1 noundef zeroext %3, i8 noundef zeroext %4) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  %15 = zext i1 %3 to i8
  store i8 %15, ptr %10, align 1, !tbaa !11
  store i8 %4, ptr %11, align 1, !tbaa !13
  %16 = load ptr, ptr %7, align 8
  %17 = load i32, ptr %9, align 4, !tbaa !9
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %30

19:                                               ; preds = %5
  %20 = load i8, ptr %10, align 1, !tbaa !11, !range !14, !noundef !15
  %21 = trunc i8 %20 to i1
  br i1 %21, label %22, label %27

22:                                               ; preds = %19
  %23 = load ptr, ptr %16, align 8, !tbaa !16
  %24 = getelementptr inbounds ptr, ptr %23, i64 14
  %25 = load ptr, ptr %24, align 8
  %26 = call noundef i32 %25(ptr noundef nonnull align 8 dereferenceable(128) %16)
  br label %28

27:                                               ; preds = %19
  br label %28

28:                                               ; preds = %27, %22
  %29 = phi i32 [ %26, %22 ], [ 0, %27 ]
  store i32 %29, ptr %6, align 4
  br label %167

30:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %147, %30
  %32 = load i32, ptr %12, align 4, !tbaa !9
  %33 = load i32, ptr %9, align 4, !tbaa !9
  %34 = icmp ult i32 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %150

36:                                               ; preds = %31
  %37 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 5
  %38 = load i32, ptr %37, align 8, !tbaa !18
  %39 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 8
  %40 = load i32, ptr %39, align 4, !tbaa !24
  %41 = mul i32 %40, 8
  %42 = icmp eq i32 %38, %41
  br i1 %42, label %43, label %54

43:                                               ; preds = %36
  %44 = call noundef zeroext i1 @_ZN10XVC_client8ll_writeEPh(ptr noundef nonnull align 8 dereferenceable(128) %16, ptr noundef null)
  br i1 %44, label %52, label %45

45:                                               ; preds = %43
  %46 = call ptr @__cxa_allocate_exception(i64 16) #4
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef @.str.7)
          to label %47 unwind label %48

47:                                               ; preds = %45
  call void @__cxa_throw(ptr %46, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #5
  unreachable

48:                                               ; preds = %45
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %13, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %14, align 4
  call void @__cxa_free_exception(ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %169

52:                                               ; preds = %43
  %53 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 5
  store i32 0, ptr %53, align 8, !tbaa !18
  br label %54

54:                                               ; preds = %52, %36
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = load i32, ptr %12, align 4, !tbaa !9
  %57 = lshr i32 %56, 3
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds i8, ptr %55, i64 %58
  %60 = load i8, ptr %59, align 1, !tbaa !13
  %61 = zext i8 %60 to i32
  %62 = load i32, ptr %12, align 4, !tbaa !9
  %63 = and i32 %62, 7
  %64 = shl i32 1, %63
  %65 = and i32 %61, %64
  %66 = icmp ne i32 %65, 0
  %67 = zext i1 %66 to i64
  %68 = select i1 %66, i32 1, i32 0
  %69 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 6
  store i32 %68, ptr %69, align 4, !tbaa !25
  %70 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 6
  %71 = load i32, ptr %70, align 4, !tbaa !25
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %89

73:                                               ; preds = %54
  %74 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 5
  %75 = load i32, ptr %74, align 8, !tbaa !18
  %76 = and i32 %75, 7
  %77 = shl i32 1, %76
  %78 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 3
  %79 = load ptr, ptr %78, align 8, !tbaa !26
  %80 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 5
  %81 = load i32, ptr %80, align 8, !tbaa !18
  %82 = lshr i32 %81, 3
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds i8, ptr %79, i64 %83
  %85 = load i8, ptr %84, align 1, !tbaa !13
  %86 = zext i8 %85 to i32
  %87 = or i32 %86, %77
  %88 = trunc i32 %87 to i8
  store i8 %88, ptr %84, align 1, !tbaa !13
  br label %106

89:                                               ; preds = %54
  %90 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 5
  %91 = load i32, ptr %90, align 8, !tbaa !18
  %92 = and i32 %91, 7
  %93 = shl i32 1, %92
  %94 = xor i32 %93, -1
  %95 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 3
  %96 = load ptr, ptr %95, align 8, !tbaa !26
  %97 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 5
  %98 = load i32, ptr %97, align 8, !tbaa !18
  %99 = lshr i32 %98, 3
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds i8, ptr %96, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !13
  %103 = zext i8 %102 to i32
  %104 = and i32 %103, %94
  %105 = trunc i32 %104 to i8
  store i8 %105, ptr %101, align 1, !tbaa !13
  br label %106

106:                                              ; preds = %89, %73
  %107 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 7
  %108 = load i32, ptr %107, align 8, !tbaa !27
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %126

110:                                              ; preds = %106
  %111 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 5
  %112 = load i32, ptr %111, align 8, !tbaa !18
  %113 = and i32 %112, 7
  %114 = shl i32 1, %113
  %115 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !28
  %117 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 5
  %118 = load i32, ptr %117, align 8, !tbaa !18
  %119 = lshr i32 %118, 3
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds i8, ptr %116, i64 %120
  %122 = load i8, ptr %121, align 1, !tbaa !13
  %123 = zext i8 %122 to i32
  %124 = or i32 %123, %114
  %125 = trunc i32 %124 to i8
  store i8 %125, ptr %121, align 1, !tbaa !13
  br label %143

126:                                              ; preds = %106
  %127 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 5
  %128 = load i32, ptr %127, align 8, !tbaa !18
  %129 = and i32 %128, 7
  %130 = shl i32 1, %129
  %131 = xor i32 %130, -1
  %132 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !28
  %134 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 5
  %135 = load i32, ptr %134, align 8, !tbaa !18
  %136 = lshr i32 %135, 3
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds i8, ptr %133, i64 %137
  %139 = load i8, ptr %138, align 1, !tbaa !13
  %140 = zext i8 %139 to i32
  %141 = and i32 %140, %131
  %142 = trunc i32 %141 to i8
  store i8 %142, ptr %138, align 1, !tbaa !13
  br label %143

143:                                              ; preds = %126, %110
  %144 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 5
  %145 = load i32, ptr %144, align 8, !tbaa !18
  %146 = add i32 %145, 1
  store i32 %146, ptr %144, align 8, !tbaa !18
  br label %147

147:                                              ; preds = %143
  %148 = load i32, ptr %12, align 4, !tbaa !9
  %149 = add i32 %148, 1
  store i32 %149, ptr %12, align 4, !tbaa !9
  br label %31, !llvm.loop !29

150:                                              ; preds = %35
  %151 = load i8, ptr %10, align 1, !tbaa !11, !range !14, !noundef !15
  %152 = trunc i8 %151 to i1
  br i1 %152, label %160, label %153

153:                                              ; preds = %150
  %154 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 5
  %155 = load i32, ptr %154, align 8, !tbaa !18
  %156 = getelementptr inbounds %class.XVC_client, ptr %16, i32 0, i32 8
  %157 = load i32, ptr %156, align 4, !tbaa !24
  %158 = mul i32 %157, 8
  %159 = icmp eq i32 %155, %158
  br i1 %159, label %160, label %165

160:                                              ; preds = %153, %150
  %161 = load ptr, ptr %16, align 8, !tbaa !16
  %162 = getelementptr inbounds ptr, ptr %161, i64 14
  %163 = load ptr, ptr %162, align 8
  %164 = call noundef i32 %163(ptr noundef nonnull align 8 dereferenceable(128) %16)
  store i32 %164, ptr %6, align 4
  br label %167

165:                                              ; preds = %153
  %166 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %166, ptr %6, align 4
  br label %167

167:                                              ; preds = %165, %160, %28
  %168 = load i32, ptr %6, align 4
  ret i32 %168

169:                                              ; preds = %48
  %170 = load ptr, ptr %13, align 8
  %171 = load i32, ptr %14, align 4
  %172 = insertvalue { ptr, i32 } poison, ptr %170, 0
  %173 = insertvalue { ptr, i32 } %172, i32 %171, 1
  resume { ptr, i32 } %173
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10XVC_client8ll_writeEPh(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #3 align 2

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

!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 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = !{!19, !10, i64 40}
!19 = !{!"_ZTS10XVC_client", !20, i64 0, !12, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !21, i64 56, !21, i64 88, !10, i64 120, !10, i64 124}
!20 = !{!"_ZTS13JtagInterface", !10, i64 8}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !23, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!19, !10, i64 52}
!25 = !{!19, !10, i64 44}
!26 = !{!19, !6, i64 24}
!27 = !{!19, !10, i64 48}
!28 = !{!19, !6, i64 32}
!29 = distinct !{!29, !30}
!30 = !{!"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"

@_ZTISt13runtime_error = external constant ptr
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10XVC_client8writeTMSEPKhjbh(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr nocapture noundef readonly %1, i32 noundef %2, i1 noundef zeroext %3, i8 noundef zeroext %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = icmp eq i32 %2, 0
  br i1 %6, label %13, label %.preheader

.preheader:                                       ; preds = %5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = getelementptr inbounds i8, ptr %0, i64 52
  %9 = getelementptr inbounds i8, ptr %0, i64 44
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  %.pre = load i32, ptr %7, align 8, !tbaa !5
  br label %15

13:                                               ; preds = %5
  br i1 %3, label %.sink.split, label %74

14:                                               ; preds = %28
  br i1 %3, label %.sink.split, label %66

15:                                               ; preds = %.preheader, %28
  %16 = phi i32 [ %.pre, %.preheader ], [ %64, %28 ]
  %.01316 = phi i32 [ 0, %.preheader ], [ %65, %28 ]
  %17 = load i32, ptr %8, align 4, !tbaa !16
  %18 = shl i32 %17, 3
  %19 = icmp eq i32 %16, %18
  br i1 %19, label %20, label %28

20:                                               ; preds = %15
  %21 = tail call noundef zeroext i1 @_ZN10XVC_client8ll_writeEPh(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef null)
  br i1 %21, label %27, label %22

22:                                               ; preds = %20
  %23 = tail call ptr @__cxa_allocate_exception(i64 16) #3
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull @.str.7)
          to label %24 unwind label %25

24:                                               ; preds = %22
  tail call void @__cxa_throw(ptr nonnull %23, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #4
  unreachable

25:                                               ; preds = %22
  %26 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %23) #3
  resume { ptr, i32 } %26

27:                                               ; preds = %20
  store i32 0, ptr %7, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %27, %15
  %29 = phi i32 [ 0, %27 ], [ %16, %15 ]
  %30 = lshr i32 %.01316, 3
  %31 = zext nneg i32 %30 to i64
  %32 = getelementptr inbounds i8, ptr %1, i64 %31
  %33 = load i8, ptr %32, align 1, !tbaa !17
  %34 = zext i8 %33 to i32
  %35 = and i32 %.01316, 7
  %36 = shl nuw nsw i32 1, %35
  %37 = and i32 %36, %34
  %.not = icmp ne i32 %37, 0
  %38 = zext i1 %.not to i32
  store i32 %38, ptr %9, align 4, !tbaa !18
  %39 = and i32 %29, 7
  %40 = shl nuw nsw i32 1, %39
  %41 = load ptr, ptr %10, align 8, !tbaa !19
  %42 = lshr i32 %29, 3
  %43 = zext nneg i32 %42 to i64
  %44 = getelementptr inbounds i8, ptr %41, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !17
  %46 = trunc nuw i32 %40 to i8
  %47 = xor i8 %46, -1
  %48 = and i8 %45, %47
  %49 = or i8 %45, %46
  %.sink = select i1 %.not, i8 %49, i8 %48
  store i8 %.sink, ptr %44, align 1, !tbaa !17
  %50 = load i32, ptr %11, align 8, !tbaa !20
  %.not15 = icmp eq i32 %50, 0
  %51 = load i32, ptr %7, align 8, !tbaa !5
  %52 = and i32 %51, 7
  %53 = shl nuw nsw i32 1, %52
  %54 = load ptr, ptr %12, align 8, !tbaa !21
  %55 = lshr i32 %51, 3
  %56 = zext nneg i32 %55 to i64
  %57 = getelementptr inbounds i8, ptr %54, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !17
  %59 = trunc nuw i32 %53 to i8
  %60 = xor i8 %59, -1
  %61 = and i8 %58, %60
  %62 = or i8 %58, %59
  %.sink20 = select i1 %.not15, i8 %61, i8 %62
  store i8 %.sink20, ptr %57, align 1, !tbaa !17
  %63 = load i32, ptr %7, align 8, !tbaa !5
  %64 = add i32 %63, 1
  store i32 %64, ptr %7, align 8, !tbaa !5
  %65 = add nuw i32 %.01316, 1
  %exitcond.not = icmp eq i32 %65, %2
  br i1 %exitcond.not, label %14, label %15, !llvm.loop !22

66:                                               ; preds = %14
  %67 = load i32, ptr %8, align 4, !tbaa !16
  %68 = shl i32 %67, 3
  %69 = icmp eq i32 %64, %68
  br i1 %69, label %.sink.split, label %74

.sink.split:                                      ; preds = %14, %66, %13
  %70 = load ptr, ptr %0, align 8, !tbaa !24
  %71 = getelementptr inbounds i8, ptr %70, i64 112
  %72 = load ptr, ptr %71, align 8
  %73 = tail call noundef i32 %72(ptr noundef nonnull align 8 dereferenceable(128) %0)
  br label %74

74:                                               ; preds = %.sink.split, %66, %13
  %.0 = phi i32 [ 0, %13 ], [ %2, %66 ], [ %73, %.sink.split ]
  ret i32 %.0
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10XVC_client8ll_writeEPh(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #2 align 2

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "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 = { nounwind }
attributes #4 = { noreturn }

!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, !8, i64 40}
!6 = !{!"_ZTS10XVC_client", !7, i64 0, !11, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !8, i64 40, !8, i64 44, !8, i64 48, !8, i64 52, !13, i64 56, !13, i64 88, !8, i64 120, !8, i64 124}
!7 = !{!"_ZTS13JtagInterface", !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !9, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!6, !8, i64 52}
!17 = !{!9, !9, i64 0}
!18 = !{!6, !8, i64 44}
!19 = !{!6, !12, i64 24}
!20 = !{!6, !8, i64 48}
!21 = !{!6, !12, i64 32}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !25, i64 0}
!25 = !{!"vtable pointer", !10, i64 0}


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