; LLVM IR from dynexcoin/Dynex :: src/Common/JsonValue.ll (ZN6Common9JsonValue9readArrayERSi)

; 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<Common::JsonValue, std::allocator<Common::JsonValue>>::_Vector_impl" }
%"struct.std::_Vector_base<Common::JsonValue, std::allocator<Common::JsonValue>>::_Vector_impl" = type { %"struct.std::_Vector_base<Common::JsonValue, std::allocator<Common::JsonValue>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Common::JsonValue, std::allocator<Common::JsonValue>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Common::JsonValue" = type { i32, %union.anon }
%union.anon = type { i64, [40 x i8] }

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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6CommonrsERSiRNS_9JsonValueE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(56)) #4

; Function Attrs: mustprogress uwtable
declare hidden noundef signext i8 @_ZN6Common12_GLOBAL__N_113readNonWsCharERSi(ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Common9JsonValue9readArrayERSi(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #5
  call void @_ZNSt6vectorIN6Common9JsonValueESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = invoke noundef signext i8 @_ZN6Common12_GLOBAL__N_113readNonWsCharERSi(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %12 unwind label %36

12:                                               ; preds = %2
  store i8 %11, ptr %6, align 1, !tbaa !9
  %13 = load i8, ptr %6, align 1, !tbaa !9
  %14 = sext i8 %13 to i32
  %15 = icmp ne i32 %14, 93
  br i1 %15, label %16, label %53

16:                                               ; preds = %12
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = load i8, ptr %6, align 1, !tbaa !9
  %19 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi7putbackEc(ptr noundef nonnull align 8 dereferenceable(16) %17, i8 noundef signext %18)
          to label %20 unwind label %36

20:                                               ; preds = %16
  br label %21

21:                                               ; preds = %51, %20
  %22 = call noundef i64 @_ZNKSt6vectorIN6Common9JsonValueESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %23 = add i64 %22, 1
  invoke void @_ZNSt6vectorIN6Common9JsonValueESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %23)
          to label %24 unwind label %36

24:                                               ; preds = %21
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN6Common9JsonValueESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6CommonrsERSiRNS_9JsonValueE(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(56) %26)
          to label %28 unwind label %36

28:                                               ; preds = %24
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = invoke noundef signext i8 @_ZN6Common12_GLOBAL__N_113readNonWsCharERSi(ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %31 unwind label %36

31:                                               ; preds = %28
  store i8 %30, ptr %6, align 1, !tbaa !9
  %32 = load i8, ptr %6, align 1, !tbaa !9
  %33 = sext i8 %32 to i32
  %34 = icmp eq i32 %33, 93
  br i1 %34, label %35, label %40

35:                                               ; preds = %31
  br label %52

36:                                               ; preds = %46, %28, %24, %21, %16, %2
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %7, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %8, align 4
  br label %65

40:                                               ; preds = %31
  %41 = load i8, ptr %6, align 1, !tbaa !9
  %42 = sext i8 %41 to i32
  %43 = icmp ne i32 %42, 44
  br i1 %43, label %44, label %51

44:                                               ; preds = %40
  %45 = call ptr @__cxa_allocate_exception(i64 16) #5
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef @.str.14)
          to label %46 unwind label %47

46:                                               ; preds = %44
  invoke void @__cxa_throw(ptr %45, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #6
          to label %71 unwind label %36

47:                                               ; preds = %44
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %7, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %8, align 4
  call void @__cxa_free_exception(ptr %45) #5
  br label %65

51:                                               ; preds = %40
  br label %21, !llvm.loop !10

52:                                               ; preds = %35
  br label %53

53:                                               ; preds = %52, %12
  %54 = getelementptr inbounds %"class.Common::JsonValue", ptr %9, i32 0, i32 0
  %55 = load i32, ptr %54, align 8, !tbaa !12
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %62

57:                                               ; preds = %53
  call void @_ZN6Common9JsonValue13destructValueEv(ptr noundef nonnull align 8 dereferenceable(56) %9)
  %58 = getelementptr inbounds %"class.Common::JsonValue", ptr %9, i32 0, i32 0
  store i32 3, ptr %58, align 8, !tbaa !12
  %59 = getelementptr inbounds %"class.Common::JsonValue", ptr %9, i32 0, i32 1
  %60 = getelementptr inbounds [24 x i8], ptr %59, i64 0, i64 0
  call void @_ZNSt6vectorIN6Common9JsonValueESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %60) #5
  %61 = getelementptr inbounds %"class.Common::JsonValue", ptr %9, i32 0, i32 0
  store i32 0, ptr %61, align 8, !tbaa !12
  br label %62

62:                                               ; preds = %57, %53
  %63 = getelementptr inbounds %"class.Common::JsonValue", ptr %9, i32 0, i32 1
  %64 = getelementptr inbounds [24 x i8], ptr %63, i64 0, i64 0
  call void @_ZNSt6vectorIN6Common9JsonValueESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24) %64, ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @_ZNSt6vectorIN6Common9JsonValueESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  ret void

65:                                               ; preds = %47, %36
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @_ZNSt6vectorIN6Common9JsonValueESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  br label %66

66:                                               ; preds = %65
  %67 = load ptr, ptr %7, align 8
  %68 = load i32, ptr %8, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70

71:                                               ; preds = %46
  unreachable
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi7putbackEc(ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext) #1

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

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

attributes #0 = { 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 #1 = { "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 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }
attributes #6 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSN6Common9JsonValueE", !14, i64 0, !7, i64 8}
!14 = !{!"_ZTSN6Common9JsonValue4TypeE", !7, 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Common::JsonValue, std::allocator<Common::JsonValue>>::_Vector_impl" }
%"struct.std::_Vector_base<Common::JsonValue, std::allocator<Common::JsonValue>>::_Vector_impl" = type { %"struct.std::_Vector_base<Common::JsonValue, std::allocator<Common::JsonValue>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Common::JsonValue, std::allocator<Common::JsonValue>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare i32 @__gxx_personality_v0(...)

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 #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6CommonrsERSiRNS_9JsonValueE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef signext i8 @_ZN6Common12_GLOBAL__N_113readNonWsCharERSi(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Common9JsonValue9readArrayERSi(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt6vectorIN6Common9JsonValueESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %4 = invoke noundef signext i8 @_ZN6Common12_GLOBAL__N_113readNonWsCharERSi(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %5 unwind label %.loopexit.split-lp

5:                                                ; preds = %2
  %.not = icmp eq i8 %4, 93
  br i1 %.not, label %.loopexit15, label %6

6:                                                ; preds = %5
  %7 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi7putbackEc(ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext %4)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %6, %15
  %8 = call noundef i64 @_ZNKSt6vectorIN6Common9JsonValueESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %9 = add i64 %8, 1
  invoke void @_ZNSt6vectorIN6Common9JsonValueESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %9)
          to label %10 unwind label %.loopexit

10:                                               ; preds = %.preheader
  %11 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN6Common9JsonValueESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %12 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6CommonrsERSiRNS_9JsonValueE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(56) %11)
          to label %13 unwind label %.loopexit

13:                                               ; preds = %10
  %14 = invoke noundef signext i8 @_ZN6Common12_GLOBAL__N_113readNonWsCharERSi(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %15 unwind label %.loopexit

15:                                               ; preds = %13
  switch i8 %14, label %16 [
    i8 93, label %.loopexit15
    i8 44, label %.preheader
  ]

.loopexit:                                        ; preds = %.preheader, %10, %13
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %26

.loopexit.split-lp:                               ; preds = %2, %6, %18
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %26

16:                                               ; preds = %15
  %17 = call ptr @__cxa_allocate_exception(i64 16) #5
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull @.str.14)
          to label %18 unwind label %19

18:                                               ; preds = %16
  invoke void @__cxa_throw(ptr nonnull %17, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #6
          to label %27 unwind label %.loopexit.split-lp

19:                                               ; preds = %16
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %17) #5
  br label %26

.loopexit15:                                      ; preds = %15, %5
  %21 = load i32, ptr %0, align 8, !tbaa !5
  %.not14 = icmp eq i32 %21, 0
  br i1 %.not14, label %24, label %22

22:                                               ; preds = %.loopexit15
  call void @_ZN6Common9JsonValue13destructValueEv(ptr noundef nonnull align 8 dereferenceable(56) %0)
  store i32 3, ptr %0, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZNSt6vectorIN6Common9JsonValueESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  store i32 0, ptr %0, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %22, %.loopexit15
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZNSt6vectorIN6Common9JsonValueESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @_ZNSt6vectorIN6Common9JsonValueESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  ret void

26:                                               ; preds = %.loopexit, %.loopexit.split-lp, %19
  %.pn = phi { ptr, i32 } [ %20, %19 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIN6Common9JsonValueESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn

27:                                               ; preds = %18
  unreachable
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi7putbackEc(ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext) local_unnamed_addr #1

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

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

attributes #0 = { 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 #1 = { "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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }
attributes #6 = { 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, !7, i64 0}
!6 = !{!"_ZTSN6Common9JsonValueE", !7, i64 0, !8, i64 8}
!7 = !{!"_ZTSN6Common9JsonValue4TypeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass