; LLVM IR from Razakhel/RaZ :: extern/openxr/src/external/jsoncpp/src/lib_json (json_reader)

; 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.Json::Value" = type { %"union.Json::Value::ValueHolder", %struct.anon, %"class.Json::Value::Comments", i64, i64 }
%"union.Json::Value::ValueHolder" = type { i64 }
%struct.anon = type { i16, [2 x i8] }
%"class.Json::Value::Comments" = type { %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.10" }
%"struct.std::_Head_base.10" = type { ptr }
%"class.Json::OurReader::Token" = type { i32, 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

declare void @_ZN4Json5ValueC1El(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) unnamed_addr #2

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(40) ptr @_ZN4Json5ValueaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #1

declare void @_ZN4Json5ValueC1Em(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Json9OurReader12decodeNumberERNS0_5TokenERNS_5ValueE(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %2) #3 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.Json::Value", align 8
  %18 = alloca %"class.Json::Value", align 8
  %19 = alloca %"class.Json::Value", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %21, i32 0, i32 1
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  store ptr %23, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = load i8, ptr %24, align 1, !tbaa !12
  %26 = sext i8 %25 to i32
  %27 = icmp eq i32 %26, 45
  %28 = zext i1 %27 to i8
  store i8 %28, ptr %9, align 1, !tbaa !13
  %29 = load i8, ptr %9, align 1, !tbaa !13, !range !15, !noundef !16
  %30 = trunc i8 %29 to i1
  br i1 %30, label %31, label %34

31:                                               ; preds = %3
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i32 1
  store ptr %33, ptr %8, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %31, %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %35 = load i8, ptr %9, align 1, !tbaa !13, !range !15, !noundef !16
  %36 = trunc i8 %35 to i1
  %37 = zext i1 %36 to i64
  %38 = select i1 %36, i64 922337203685477580, i64 1844674407370955161
  store i64 %38, ptr %10, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %39 = load i8, ptr %9, align 1, !tbaa !13, !range !15, !noundef !16
  %40 = trunc i8 %39 to i1
  %41 = zext i1 %40 to i64
  %42 = select i1 %40, i32 8, i32 5
  store i32 %42, ptr %11, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !17
  br label %43

43:                                               ; preds = %99, %34
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %45, i32 0, i32 2
  %47 = load ptr, ptr %46, align 8, !tbaa !21
  %48 = icmp ult ptr %44, %47
  br i1 %48, label %49, label %100

49:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i32 1
  store ptr %51, ptr %8, align 8, !tbaa !5
  %52 = load i8, ptr %50, align 1, !tbaa !12
  store i8 %52, ptr %13, align 1, !tbaa !12
  %53 = load i8, ptr %13, align 1, !tbaa !12
  %54 = sext i8 %53 to i32
  %55 = icmp slt i32 %54, 48
  br i1 %55, label %60, label %56

56:                                               ; preds = %49
  %57 = load i8, ptr %13, align 1, !tbaa !12
  %58 = sext i8 %57 to i32
  %59 = icmp sgt i32 %58, 57
  br i1 %59, label %60, label %64

60:                                               ; preds = %56, %49
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = call noundef zeroext i1 @_ZN4Json9OurReader12decodeDoubleERNS0_5TokenERNS_5ValueE(ptr noundef nonnull align 8 dereferenceable(297) %20, ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 8 dereferenceable(40) %62)
  store i1 %63, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %97

64:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %65 = load i8, ptr %13, align 1, !tbaa !12
  %66 = sext i8 %65 to i32
  %67 = sub nsw i32 %66, 48
  store i32 %67, ptr %15, align 4, !tbaa !19
  %68 = load i64, ptr %12, align 8, !tbaa !17
  %69 = load i64, ptr %10, align 8, !tbaa !17
  %70 = icmp uge i64 %68, %69
  br i1 %70, label %71, label %90

71:                                               ; preds = %64
  %72 = load i64, ptr %12, align 8, !tbaa !17
  %73 = load i64, ptr %10, align 8, !tbaa !17
  %74 = icmp ugt i64 %72, %73
  br i1 %74, label %85, label %75

75:                                               ; preds = %71
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %"class.Json::OurReader::Token", ptr %77, i32 0, i32 2
  %79 = load ptr, ptr %78, align 8, !tbaa !21
  %80 = icmp ne ptr %76, %79
  br i1 %80, label %85, label %81

81:                                               ; preds = %75
  %82 = load i32, ptr %15, align 4, !tbaa !19
  %83 = load i32, ptr %11, align 4, !tbaa !19
  %84 = icmp ugt i32 %82, %83
  br i1 %84, label %85, label %89

85:                                               ; preds = %81, %75, %71
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = call noundef zeroext i1 @_ZN4Json9OurReader12decodeDoubleERNS0_5TokenERNS_5ValueE(ptr noundef nonnull align 8 dereferenceable(297) %20, ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef nonnull align 8 dereferenceable(40) %87)
  store i1 %88, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %96

89:                                               ; preds = %81
  br label %90

90:                                               ; preds = %89, %64
  %91 = load i64, ptr %12, align 8, !tbaa !17
  %92 = mul i64 %91, 10
  %93 = load i32, ptr %15, align 4, !tbaa !19
  %94 = zext i32 %93 to i64
  %95 = add i64 %92, %94
  store i64 %95, ptr %12, align 8, !tbaa !17
  store i32 0, ptr %14, align 4
  br label %96

96:                                               ; preds = %90, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %97

97:                                               ; preds = %96, %60
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  %98 = load i32, ptr %14, align 4
  switch i32 %98, label %129 [
    i32 0, label %99
  ]

99:                                               ; preds = %97
  br label %43, !llvm.loop !22

100:                                              ; preds = %43
  %101 = load i8, ptr %9, align 1, !tbaa !13, !range !15, !noundef !16
  %102 = trunc i8 %101 to i1
  br i1 %102, label %103, label %116

103:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %104 = load i64, ptr %12, align 8, !tbaa !17
  %105 = urem i64 %104, 10
  %106 = trunc i64 %105 to i32
  store i32 %106, ptr %16, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #4
  %107 = load i64, ptr %12, align 8, !tbaa !17
  %108 = udiv i64 %107, 10
  %109 = sub nsw i64 0, %108
  %110 = mul nsw i64 %109, 10
  %111 = load i32, ptr %16, align 4, !tbaa !19
  %112 = zext i32 %111 to i64
  %113 = sub nsw i64 %110, %112
  call void @_ZN4Json5ValueC1El(ptr noundef nonnull align 8 dereferenceable(40) %17, i64 noundef %113)
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN4Json5ValueaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %114, ptr noundef nonnull align 8 dereferenceable(40) %17) #4
  call void @_ZN4Json5ValueD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %128

116:                                              ; preds = %100
  %117 = load i64, ptr %12, align 8, !tbaa !17
  %118 = icmp ule i64 %117, 9223372036854775807
  br i1 %118, label %119, label %123

119:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #4
  %120 = load i64, ptr %12, align 8, !tbaa !17
  call void @_ZN4Json5ValueC1El(ptr noundef nonnull align 8 dereferenceable(40) %18, i64 noundef %120)
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN4Json5ValueaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %121, ptr noundef nonnull align 8 dereferenceable(40) %18) #4
  call void @_ZN4Json5ValueD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #4
  br label %127

123:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #4
  %124 = load i64, ptr %12, align 8, !tbaa !17
  call void @_ZN4Json5ValueC1Em(ptr noundef nonnull align 8 dereferenceable(40) %19, i64 noundef %124)
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN4Json5ValueaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %125, ptr noundef nonnull align 8 dereferenceable(40) %19) #4
  call void @_ZN4Json5ValueD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #4
  br label %127

127:                                              ; preds = %123, %119
  br label %128

128:                                              ; preds = %127, %103
  store i1 true, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %129

129:                                              ; preds = %128, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %130 = load i1, ptr %4, align 1
  ret i1 %130
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Json9OurReader12decodeDoubleERNS0_5TokenERNS_5ValueE(ptr noundef nonnull align 8 dereferenceable(297), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 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, !6, i64 8}
!10 = !{!"_ZTSN4Json9OurReader5TokenE", !11, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!"_ZTSN4Json9OurReader9TokenTypeE", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!10, !6, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.Json::Value" = type { %"union.Json::Value::ValueHolder", %struct.anon, %"class.Json::Value::Comments", i64, i64 }
%"union.Json::Value::ValueHolder" = type { i64 }
%struct.anon = type { i16, [2 x i8] }
%"class.Json::Value::Comments" = type { %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.10" }
%"struct.std::_Head_base.10" = 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

declare void @_ZN4Json5ValueC1El(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) unnamed_addr #2

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(40) ptr @_ZN4Json5ValueaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1

declare void @_ZN4Json5ValueC1Em(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Json9OurReader12decodeNumberERNS0_5TokenERNS_5ValueE(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %2) local_unnamed_addr #3 align 2 {
  %4 = alloca %"class.Json::Value", align 8
  %5 = alloca %"class.Json::Value", align 8
  %6 = alloca %"class.Json::Value", align 8
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = load i8, ptr %8, align 1, !tbaa !11
  %10 = icmp eq i8 %9, 45
  %11 = select i1 %10, i32 8, i32 5
  %12 = select i1 %10, i64 922337203685477580, i64 1844674407370955161
  %.040.idx = zext i1 %10 to i64
  %.040 = getelementptr inbounds i8, ptr %8, i64 %.040.idx
  %13 = getelementptr inbounds i8, ptr %1, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !12
  %15 = icmp ult ptr %.040, %14
  br i1 %15, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %3, %29
  %.044.fr62 = phi i64 [ %32, %29 ], [ 0, %3 ]
  %.14161 = phi ptr [ %16, %29 ], [ %.040, %3 ]
  %16 = getelementptr inbounds i8, ptr %.14161, i64 1
  %17 = load i8, ptr %.14161, align 1, !tbaa !11
  %.fr64 = freeze i8 %17
  %18 = add i8 %.fr64, -58
  %or.cond = icmp ult i8 %18, -10
  br i1 %or.cond, label %19, label %21

19:                                               ; preds = %.lr.ph
  %20 = tail call noundef zeroext i1 @_ZN4Json9OurReader12decodeDoubleERNS0_5TokenERNS_5ValueE(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %2)
  br label %.thread

21:                                               ; preds = %.lr.ph
  %22 = zext nneg i8 %.fr64 to i32
  %23 = add nsw i32 %22, -48
  %.not = icmp ult i64 %.044.fr62, %12
  br i1 %.not, label %29, label %24

24:                                               ; preds = %21
  %25 = icmp ugt i64 %.044.fr62, %12
  %.not50 = icmp ne ptr %16, %14
  %or.cond51.not58 = select i1 %25, i1 true, i1 %.not50
  %26 = icmp ugt i32 %23, %11
  %or.cond52 = select i1 %or.cond51.not58, i1 true, i1 %26
  br i1 %or.cond52, label %27, label %29

27:                                               ; preds = %24
  %28 = tail call noundef zeroext i1 @_ZN4Json9OurReader12decodeDoubleERNS0_5TokenERNS_5ValueE(ptr noundef nonnull align 8 dereferenceable(297) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %2)
  br label %.thread

29:                                               ; preds = %21, %24
  %30 = mul i64 %.044.fr62, 10
  %31 = zext nneg i32 %23 to i64
  %32 = add i64 %30, %31
  %33 = icmp ult ptr %16, %14
  br i1 %33, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %29
  br i1 %10, label %34, label %37

._crit_edge.thread:                               ; preds = %3
  br i1 %10, label %34, label %.thread68

34:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %.044.fr.lcssa66 = phi i64 [ 0, %._crit_edge.thread ], [ %32, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #4
  %35 = sub i64 0, %.044.fr.lcssa66
  call void @_ZN4Json5ValueC1El(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef %35)
  %36 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN4Json5ValueaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(40) %4) #4
  call void @_ZN4Json5ValueD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #4
  br label %.thread

37:                                               ; preds = %._crit_edge
  %38 = icmp sgt i64 %32, -1
  br i1 %38, label %.thread68, label %40

.thread68:                                        ; preds = %._crit_edge.thread, %37
  %.044.fr.lcssa6770 = phi i64 [ %32, %37 ], [ 0, %._crit_edge.thread ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #4
  call void @_ZN4Json5ValueC1El(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %.044.fr.lcssa6770)
  %39 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN4Json5ValueaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(40) %5) #4
  call void @_ZN4Json5ValueD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #4
  br label %.thread

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #4
  call void @_ZN4Json5ValueC1Em(ptr noundef nonnull align 8 dereferenceable(40) %6, i64 noundef %32)
  %41 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN4Json5ValueaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(40) %6) #4
  call void @_ZN4Json5ValueD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #4
  br label %.thread

.thread:                                          ; preds = %27, %19, %34, %40, %.thread68
  %.3 = phi i1 [ true, %.thread68 ], [ true, %40 ], [ true, %34 ], [ %28, %27 ], [ %20, %19 ]
  ret i1 %.3
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Json9OurReader12decodeDoubleERNS0_5TokenERNS_5ValueE(ptr noundef nonnull align 8 dereferenceable(297), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 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, !10, i64 8}
!6 = !{!"_ZTSN4Json9OurReader5TokenE", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"_ZTSN4Json9OurReader9TokenTypeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!8, !8, i64 0}
!12 = !{!6, !10, i64 16}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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