; LLVM IR from niessner/Matterport :: code/gaps/pkgs/RNBasics/json.ll (ZNK4Json5ValueltERKS0_)

; 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", i16, ptr, i64, i64 }
%"union.Json::Value::ValueHolder" = type { i64 }

@.str.8 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [6 x i8], align 1
@__PRETTY_FUNCTION__._ZNK4Json5ValueltERKS0_ = external hidden unnamed_addr constant [49 x i8], align 1

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN4JsonL20decodePrefixedStringEbPKcPjPS1_(i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4Json5ValueltERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(40) %1) #4 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %16 = getelementptr inbounds %"class.Json::Value", ptr %15, i32 0, i32 1
  %17 = load i16, ptr %16, align 8
  %18 = and i16 %17, 255
  %19 = zext i16 %18 to i32
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %"class.Json::Value", ptr %20, i32 0, i32 1
  %22 = load i16, ptr %21, align 8
  %23 = and i16 %22, 255
  %24 = zext i16 %23 to i32
  %25 = sub nsw i32 %19, %24
  store i32 %25, ptr %6, align 4, !tbaa !9
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %33

28:                                               ; preds = %2
  %29 = load i32, ptr %6, align 4, !tbaa !9
  %30 = icmp slt i32 %29, 0
  %31 = zext i1 %30 to i64
  %32 = select i1 %30, i1 true, i1 false
  store i1 %32, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %149

33:                                               ; preds = %2
  %34 = getelementptr inbounds %"class.Json::Value", ptr %15, i32 0, i32 1
  %35 = load i16, ptr %34, align 8
  %36 = and i16 %35, 255
  %37 = zext i16 %36 to i32
  switch i32 %37, label %148 [
    i32 0, label %38
    i32 1, label %39
    i32 2, label %46
    i32 3, label %53
    i32 5, label %60
    i32 4, label %71
    i32 6, label %125
    i32 7, label %125
  ]

38:                                               ; preds = %33
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %149

39:                                               ; preds = %33
  %40 = getelementptr inbounds %"class.Json::Value", ptr %15, i32 0, i32 0
  %41 = load i64, ptr %40, align 8, !tbaa !11
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.Json::Value", ptr %42, i32 0, i32 0
  %44 = load i64, ptr %43, align 8, !tbaa !11
  %45 = icmp slt i64 %41, %44
  store i1 %45, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %149

46:                                               ; preds = %33
  %47 = getelementptr inbounds %"class.Json::Value", ptr %15, i32 0, i32 0
  %48 = load i64, ptr %47, align 8, !tbaa !11
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %"class.Json::Value", ptr %49, i32 0, i32 0
  %51 = load i64, ptr %50, align 8, !tbaa !11
  %52 = icmp ult i64 %48, %51
  store i1 %52, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %149

53:                                               ; preds = %33
  %54 = getelementptr inbounds %"class.Json::Value", ptr %15, i32 0, i32 0
  %55 = load double, ptr %54, align 8, !tbaa !11
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.Json::Value", ptr %56, i32 0, i32 0
  %58 = load double, ptr %57, align 8, !tbaa !11
  %59 = fcmp olt double %55, %58
  store i1 %59, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %149

60:                                               ; preds = %33
  %61 = getelementptr inbounds %"class.Json::Value", ptr %15, i32 0, i32 0
  %62 = load i8, ptr %61, align 8, !tbaa !11, !range !12, !noundef !13
  %63 = trunc i8 %62 to i1
  %64 = zext i1 %63 to i32
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.Json::Value", ptr %65, i32 0, i32 0
  %67 = load i8, ptr %66, align 8, !tbaa !11, !range !12, !noundef !13
  %68 = trunc i8 %67 to i1
  %69 = zext i1 %68 to i32
  %70 = icmp slt i32 %64, %69
  store i1 %70, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %149

71:                                               ; preds = %33
  %72 = getelementptr inbounds %"class.Json::Value", ptr %15, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = icmp eq ptr %73, null
  br i1 %74, label %80, label %75

75:                                               ; preds = %71
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.Json::Value", ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  %79 = icmp eq ptr %78, null
  br i1 %79, label %80, label %87

80:                                               ; preds = %75, %71
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %"class.Json::Value", ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !11
  %84 = icmp ne ptr %83, null
  br i1 %84, label %85, label %86

85:                                               ; preds = %80
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %149

86:                                               ; preds = %80
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %149

87:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %88 = getelementptr inbounds %"class.Json::Value", ptr %15, i32 0, i32 1
  %89 = load i16, ptr %88, align 8
  %90 = lshr i16 %89, 8
  %91 = and i16 %90, 1
  %92 = zext i16 %91 to i32
  %93 = icmp ne i32 %92, 0
  %94 = getelementptr inbounds %"class.Json::Value", ptr %15, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !11
  call void @_ZN4JsonL20decodePrefixedStringEbPKcPjPS1_(i1 noundef zeroext %93, ptr noundef %95, ptr noundef %8, ptr noundef %10)
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.Json::Value", ptr %96, i32 0, i32 1
  %98 = load i16, ptr %97, align 8
  %99 = lshr i16 %98, 8
  %100 = and i16 %99, 1
  %101 = zext i16 %100 to i32
  %102 = icmp ne i32 %101, 0
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.Json::Value", ptr %103, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8, !tbaa !11
  call void @_ZN4JsonL20decodePrefixedStringEbPKcPjPS1_(i1 noundef zeroext %102, ptr noundef %105, ptr noundef %9, ptr noundef %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %107 = load i32, ptr %106, align 4, !tbaa !9
  store i32 %107, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = call i32 @memcmp(ptr noundef %108, ptr noundef %109, i64 noundef %111) #8
  store i32 %112, ptr %13, align 4, !tbaa !9
  %113 = load i32, ptr %13, align 4, !tbaa !9
  %114 = icmp slt i32 %113, 0
  br i1 %114, label %115, label %116

115:                                              ; preds = %87
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %124

116:                                              ; preds = %87
  %117 = load i32, ptr %13, align 4, !tbaa !9
  %118 = icmp sgt i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %116
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %124

120:                                              ; preds = %116
  %121 = load i32, ptr %8, align 4, !tbaa !9
  %122 = load i32, ptr %9, align 4, !tbaa !9
  %123 = icmp ult i32 %121, %122
  store i1 %123, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %124

124:                                              ; preds = %120, %119, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %149

125:                                              ; preds = %33, %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %126 = getelementptr inbounds %"class.Json::Value", ptr %15, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !11
  %128 = call noundef i64 @_ZNKSt3mapIN4Json5Value8CZStringES1_St4lessIS2_ESaISt4pairIKS2_S1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %127) #7
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.Json::Value", ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !11
  %132 = call noundef i64 @_ZNKSt3mapIN4Json5Value8CZStringES1_St4lessIS2_ESaISt4pairIKS2_S1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %131) #7
  %133 = sub i64 %128, %132
  %134 = trunc i64 %133 to i32
  store i32 %134, ptr %14, align 4, !tbaa !9
  %135 = load i32, ptr %14, align 4, !tbaa !9
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %140

137:                                              ; preds = %125
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = icmp slt i32 %138, 0
  store i1 %139, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %147

140:                                              ; preds = %125
  %141 = getelementptr inbounds %"class.Json::Value", ptr %15, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !11
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %"class.Json::Value", ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !11
  %146 = call noundef zeroext i1 @_ZStltIN4Json5Value8CZStringES1_St4lessIS2_ESaISt4pairIKS2_S1_EEEbRKSt3mapIT_T0_T1_T2_ESG_(ptr noundef nonnull align 8 dereferenceable(48) %142, ptr noundef nonnull align 8 dereferenceable(48) %145)
  store i1 %146, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %147

147:                                              ; preds = %140, %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %149

148:                                              ; preds = %33
  call void @__assert_fail(ptr noundef @.str.48, ptr noundef @.str.8, i32 noundef 2960, ptr noundef @__PRETTY_FUNCTION__._ZNK4Json5ValueltERKS0_) #9
  unreachable

149:                                              ; preds = %147, %124, %86, %85, %60, %53, %46, %39, %38, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %150 = load i1, ptr %3, align 1
  ret i1 %150
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3mapIN4Json5Value8CZStringES1_St4lessIS2_ESaISt4pairIKS2_S1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStltIN4Json5Value8CZStringES1_St4lessIS2_ESaISt4pairIKS2_S1_EEEbRKSt3mapIT_T0_T1_T2_ESG_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) "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 = { 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 = { 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 #6 = { inlinehint 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { noreturn 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 = !{i8 0, i8 2}
!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"

@.str.8 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [6 x i8], align 1
@__PRETTY_FUNCTION__._ZNK4Json5ValueltERKS0_ = external hidden unnamed_addr constant [49 x i8], align 1

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @memcmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN4JsonL20decodePrefixedStringEbPKcPjPS1_(i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4Json5ValueltERKS0_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(40) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(40) %1) local_unnamed_addr #4 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i16, ptr %7, align 8
  %9 = and i16 %8, 255
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load i16, ptr %10, align 8
  %12 = and i16 %11, 255
  %.not = icmp eq i16 %9, %12
  br i1 %.not, label %15, label %13

13:                                               ; preds = %2
  %14 = icmp ult i16 %9, %12
  br label %72

15:                                               ; preds = %2
  %trunc = trunc i16 %8 to i8
  switch i8 %trunc, label %71 [
    i8 0, label %72
    i8 1, label %16
    i8 2, label %20
    i8 3, label %24
    i8 5, label %28
    i8 4, label %32
    i8 6, label %58
    i8 7, label %58
  ]

16:                                               ; preds = %15
  %17 = load i64, ptr %0, align 8, !tbaa !5
  %18 = load i64, ptr %1, align 8, !tbaa !5
  %19 = icmp slt i64 %17, %18
  br label %72

20:                                               ; preds = %15
  %21 = load i64, ptr %0, align 8, !tbaa !5
  %22 = load i64, ptr %1, align 8, !tbaa !5
  %23 = icmp ult i64 %21, %22
  br label %72

24:                                               ; preds = %15
  %25 = load double, ptr %0, align 8, !tbaa !5
  %26 = load double, ptr %1, align 8, !tbaa !5
  %27 = fcmp olt double %25, %26
  br label %72

28:                                               ; preds = %15
  %29 = load i8, ptr %0, align 8, !tbaa !5, !range !8, !noundef !9
  %30 = load i8, ptr %1, align 8, !tbaa !5, !range !8, !noundef !9
  %31 = icmp ult i8 %29, %30
  br label %72

32:                                               ; preds = %15
  %33 = load ptr, ptr %0, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  %35 = load ptr, ptr %1, align 8
  %36 = icmp eq ptr %35, null
  %or.cond = select i1 %34, i1 true, i1 %36
  br i1 %or.cond, label %37, label %38

37:                                               ; preds = %32
  %not. = xor i1 %36, true
  br label %72

38:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %39 = and i16 %8, 256
  %40 = icmp ne i16 %39, 0
  call void @_ZN4JsonL20decodePrefixedStringEbPKcPjPS1_(i1 noundef zeroext %40, ptr noundef nonnull %33, ptr noundef nonnull %3, ptr noundef nonnull %5)
  %41 = load i16, ptr %10, align 8
  %42 = and i16 %41, 256
  %43 = icmp ne i16 %42, 0
  %44 = load ptr, ptr %1, align 8, !tbaa !5
  call void @_ZN4JsonL20decodePrefixedStringEbPKcPjPS1_(i1 noundef zeroext %43, ptr noundef %44, ptr noundef nonnull %4, ptr noundef nonnull %6)
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %46 = load i32, ptr %45, align 4, !tbaa !10
  %47 = load ptr, ptr %5, align 8, !tbaa !12
  %48 = load ptr, ptr %6, align 8, !tbaa !12
  %49 = zext i32 %46 to i64
  %50 = call i32 @memcmp(ptr noundef %47, ptr noundef %48, i64 noundef %49) #8
  %51 = icmp slt i32 %50, 0
  br i1 %51, label %57, label %52

52:                                               ; preds = %38
  %.not23 = icmp eq i32 %50, 0
  br i1 %.not23, label %53, label %57

53:                                               ; preds = %52
  %54 = load i32, ptr %3, align 4, !tbaa !10
  %55 = load i32, ptr %4, align 4, !tbaa !10
  %56 = icmp ult i32 %54, %55
  br label %57

57:                                               ; preds = %52, %38, %53
  %.0 = phi i1 [ %56, %53 ], [ true, %38 ], [ false, %52 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  br label %72

58:                                               ; preds = %15, %15
  %59 = load ptr, ptr %0, align 8, !tbaa !5
  %60 = tail call noundef i64 @_ZNKSt3mapIN4Json5Value8CZStringES1_St4lessIS2_ESaISt4pairIKS2_S1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %59) #7
  %61 = load ptr, ptr %1, align 8, !tbaa !5
  %62 = tail call noundef i64 @_ZNKSt3mapIN4Json5Value8CZStringES1_St4lessIS2_ESaISt4pairIKS2_S1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %61) #7
  %63 = sub i64 %60, %62
  %64 = trunc i64 %63 to i32
  %.not22 = icmp eq i32 %64, 0
  br i1 %.not22, label %67, label %65

65:                                               ; preds = %58
  %66 = icmp slt i32 %64, 0
  br label %72

67:                                               ; preds = %58
  %68 = load ptr, ptr %0, align 8, !tbaa !5
  %69 = load ptr, ptr %1, align 8, !tbaa !5
  %70 = tail call noundef zeroext i1 @_ZStltIN4Json5Value8CZStringES1_St4lessIS2_ESaISt4pairIKS2_S1_EEEbRKSt3mapIT_T0_T1_T2_ESG_(ptr noundef nonnull align 8 dereferenceable(48) %68, ptr noundef nonnull align 8 dereferenceable(48) %69)
  br label %72

71:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.48, ptr noundef nonnull @.str.8, i32 noundef 2960, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4Json5ValueltERKS0_) #9
  unreachable

72:                                               ; preds = %65, %67, %37, %15, %57, %28, %24, %20, %16, %13
  %.2 = phi i1 [ %14, %13 ], [ %.0, %57 ], [ %31, %28 ], [ %27, %24 ], [ %23, %20 ], [ %19, %16 ], [ false, %15 ], [ %not., %37 ], [ %66, %65 ], [ %70, %67 ]
  ret i1 %.2
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3mapIN4Json5Value8CZStringES1_St4lessIS2_ESaISt4pairIKS2_S1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStltIN4Json5Value8CZStringES1_St4lessIS2_ESaISt4pairIKS2_S1_EEEbRKSt3mapIT_T0_T1_T2_ESG_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 = { 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 #6 = { inlinehint 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { noreturn 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 = !{i8 0, i8 2}
!9 = !{}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !6, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass