; LLVM IR from clibs/clib :: deps/parson (parson)

; 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"

@parson_free = external hidden global ptr, align 8

; 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 uwtable
declare hidden ptr @parson_strdup(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_object_get_value(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_get_string(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @json_value_get_number(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_get_object(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_get_array(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @json_value_get_boolean(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @json_object_get_count(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_object_get_name(ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_array_get_value(ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @json_array_get_count(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @json_value_get_type(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @json_value_free(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_init_object() #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_init_array() #1

; Function Attrs: nounwind uwtable
declare hidden ptr @json_value_init_string_no_copy(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_init_number(double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_init_boolean(i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_init_null() #1

; Function Attrs: nounwind uwtable
define dso_local ptr @json_value_deep_copy(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #2
  store i64 0, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #2
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #2
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #2
  store ptr null, ptr %14, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = call i32 @json_value_get_type(ptr noundef %16)
  switch i32 %17, label %129 [
    i32 5, label %18
    i32 4, label %57
    i32 6, label %100
    i32 3, label %104
    i32 2, label %108
    i32 1, label %126
    i32 -1, label %128
  ]

18:                                               ; preds = %1
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = call ptr @json_value_get_array(ptr noundef %19)
  store ptr %20, ptr %11, align 8, !tbaa !5
  %21 = call ptr @json_value_init_array()
  store ptr %21, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %18
  store ptr null, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

25:                                               ; preds = %18
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call ptr @json_value_get_array(ptr noundef %26)
  store ptr %27, ptr %12, align 8, !tbaa !5
  store i64 0, ptr %4, align 8, !tbaa !9
  br label %28

28:                                               ; preds = %52, %25
  %29 = load i64, ptr %4, align 8, !tbaa !9
  %30 = load ptr, ptr %11, align 8, !tbaa !5
  %31 = call i64 @json_array_get_count(ptr noundef %30)
  %32 = icmp ult i64 %29, %31
  br i1 %32, label %33, label %55

33:                                               ; preds = %28
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = load i64, ptr %4, align 8, !tbaa !9
  %36 = call ptr @json_array_get_value(ptr noundef %34, i64 noundef %35)
  store ptr %36, ptr %7, align 8, !tbaa !5
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = call ptr @json_value_deep_copy(ptr noundef %37)
  store ptr %38, ptr %6, align 8, !tbaa !5
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %43

41:                                               ; preds = %33
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  call void @json_value_free(ptr noundef %42)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

43:                                               ; preds = %33
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = call i32 @json_array_add(ptr noundef %44, ptr noundef %45)
  %47 = icmp eq i32 %46, -1
  br i1 %47, label %48, label %51

48:                                               ; preds = %43
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  call void @json_value_free(ptr noundef %49)
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  call void @json_value_free(ptr noundef %50)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

51:                                               ; preds = %43
  br label %52

52:                                               ; preds = %51
  %53 = load i64, ptr %4, align 8, !tbaa !9
  %54 = add i64 %53, 1
  store i64 %54, ptr %4, align 8, !tbaa !9
  br label %28, !llvm.loop !11

55:                                               ; preds = %28
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %56, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

57:                                               ; preds = %1
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = call ptr @json_value_get_object(ptr noundef %58)
  store ptr %59, ptr %13, align 8, !tbaa !5
  %60 = call ptr @json_value_init_object()
  store ptr %60, ptr %5, align 8, !tbaa !5
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %64

63:                                               ; preds = %57
  store ptr null, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

64:                                               ; preds = %57
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = call ptr @json_value_get_object(ptr noundef %65)
  store ptr %66, ptr %14, align 8, !tbaa !5
  store i64 0, ptr %4, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %95, %64
  %68 = load i64, ptr %4, align 8, !tbaa !9
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = call i64 @json_object_get_count(ptr noundef %69)
  %71 = icmp ult i64 %68, %70
  br i1 %71, label %72, label %98

72:                                               ; preds = %67
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = load i64, ptr %4, align 8, !tbaa !9
  %75 = call ptr @json_object_get_name(ptr noundef %73, i64 noundef %74)
  store ptr %75, ptr %9, align 8, !tbaa !5
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = call ptr @json_object_get_value(ptr noundef %76, ptr noundef %77)
  store ptr %78, ptr %7, align 8, !tbaa !5
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = call ptr @json_value_deep_copy(ptr noundef %79)
  store ptr %80, ptr %6, align 8, !tbaa !5
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = icmp eq ptr %81, null
  br i1 %82, label %83, label %85

83:                                               ; preds = %72
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  call void @json_value_free(ptr noundef %84)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

85:                                               ; preds = %72
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = call i32 @json_object_add(ptr noundef %86, ptr noundef %87, ptr noundef %88)
  %90 = icmp eq i32 %89, -1
  br i1 %90, label %91, label %94

91:                                               ; preds = %85
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  call void @json_value_free(ptr noundef %92)
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  call void @json_value_free(ptr noundef %93)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

94:                                               ; preds = %85
  br label %95

95:                                               ; preds = %94
  %96 = load i64, ptr %4, align 8, !tbaa !9
  %97 = add i64 %96, 1
  store i64 %97, ptr %4, align 8, !tbaa !9
  br label %67, !llvm.loop !13

98:                                               ; preds = %67
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %99, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

100:                                              ; preds = %1
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = call i32 @json_value_get_boolean(ptr noundef %101)
  %103 = call ptr @json_value_init_boolean(i32 noundef %102)
  store ptr %103, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

104:                                              ; preds = %1
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = call double @json_value_get_number(ptr noundef %105)
  %107 = call ptr @json_value_init_number(double noundef %106)
  store ptr %107, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

108:                                              ; preds = %1
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = call ptr @json_value_get_string(ptr noundef %109)
  store ptr %110, ptr %8, align 8, !tbaa !5
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = call ptr @parson_strdup(ptr noundef %111)
  store ptr %112, ptr %10, align 8, !tbaa !5
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = icmp eq ptr %113, null
  br i1 %114, label %115, label %116

115:                                              ; preds = %108
  store ptr null, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

116:                                              ; preds = %108
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = call ptr @json_value_init_string_no_copy(ptr noundef %117)
  store ptr %118, ptr %5, align 8, !tbaa !5
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = icmp eq ptr %119, null
  br i1 %120, label %121, label %124

121:                                              ; preds = %116
  %122 = load ptr, ptr @parson_free, align 8, !tbaa !5
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  call void %122(ptr noundef %123)
  br label %124

124:                                              ; preds = %121, %116
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %125, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

126:                                              ; preds = %1
  %127 = call ptr @json_value_init_null()
  store ptr %127, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

128:                                              ; preds = %1
  store ptr null, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

129:                                              ; preds = %1
  store ptr null, ptr %2, align 8
  store i32 1, ptr %15, align 4
  br label %130

130:                                              ; preds = %129, %128, %126, %124, %115, %104, %100, %98, %91, %83, %63, %55, %48, %41, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #2
  %131 = load ptr, ptr %2, align 8
  ret ptr %131
}

; Function Attrs: nounwind uwtable
declare hidden i32 @json_array_add(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @json_object_add(ptr noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; 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"

@parson_free = external hidden local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
declare hidden ptr @parson_strdup(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_object_get_value(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_get_string(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local double @json_value_get_number(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_get_object(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_get_array(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @json_value_get_boolean(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @json_object_get_count(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_object_get_name(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_array_get_value(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @json_array_get_count(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @json_value_get_type(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @json_value_free(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_init_object() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_init_array() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @json_value_init_string_no_copy(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_init_number(double noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_init_boolean(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @json_value_init_null() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local ptr @json_value_deep_copy(ptr noundef %0) local_unnamed_addr #0 {
  %2 = tail call i32 @json_value_get_type(ptr noundef %0)
  switch i32 %2, label %.loopexit [
    i32 5, label %3
    i32 4, label %22
    i32 6, label %42
    i32 3, label %45
    i32 2, label %48
    i32 1, label %57
  ]

3:                                                ; preds = %1
  %4 = tail call ptr @json_value_get_array(ptr noundef %0)
  %5 = tail call ptr @json_value_init_array()
  %6 = icmp eq ptr %5, null
  br i1 %6, label %.loopexit, label %7

7:                                                ; preds = %3
  %8 = tail call ptr @json_value_get_array(ptr noundef nonnull %5)
  %9 = tail call i64 @json_array_get_count(ptr noundef %4)
  %.not57 = icmp eq i64 %9, 0
  br i1 %.not57, label %.loopexit, label %.lr.ph56

10:                                               ; preds = %18
  %11 = add nuw i64 %.055, 1
  %12 = tail call i64 @json_array_get_count(ptr noundef %4)
  %13 = icmp ult i64 %11, %12
  br i1 %13, label %.lr.ph56, label %.loopexit, !llvm.loop !5

.lr.ph56:                                         ; preds = %7, %10
  %.055 = phi i64 [ %11, %10 ], [ 0, %7 ]
  %14 = tail call ptr @json_array_get_value(ptr noundef %4, i64 noundef %.055)
  %15 = tail call ptr @json_value_deep_copy(ptr noundef %14)
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %.lr.ph56
  tail call void @json_value_free(ptr noundef nonnull %5)
  br label %.loopexit

18:                                               ; preds = %.lr.ph56
  %19 = tail call i32 @json_array_add(ptr noundef %8, ptr noundef nonnull %15)
  %20 = icmp eq i32 %19, -1
  br i1 %20, label %21, label %10

21:                                               ; preds = %18
  tail call void @json_value_free(ptr noundef nonnull %5)
  tail call void @json_value_free(ptr noundef nonnull %15)
  br label %.loopexit

22:                                               ; preds = %1
  %23 = tail call ptr @json_value_get_object(ptr noundef %0)
  %24 = tail call ptr @json_value_init_object()
  %25 = icmp eq ptr %24, null
  br i1 %25, label %.loopexit, label %26

26:                                               ; preds = %22
  %27 = tail call ptr @json_value_get_object(ptr noundef nonnull %24)
  %28 = tail call i64 @json_object_get_count(ptr noundef %23)
  %.not = icmp eq i64 %28, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

29:                                               ; preds = %38
  %30 = add nuw i64 %.154, 1
  %31 = tail call i64 @json_object_get_count(ptr noundef %23)
  %32 = icmp ult i64 %30, %31
  br i1 %32, label %.lr.ph, label %.loopexit, !llvm.loop !7

.lr.ph:                                           ; preds = %26, %29
  %.154 = phi i64 [ %30, %29 ], [ 0, %26 ]
  %33 = tail call ptr @json_object_get_name(ptr noundef %23, i64 noundef %.154)
  %34 = tail call ptr @json_object_get_value(ptr noundef %23, ptr noundef %33)
  %35 = tail call ptr @json_value_deep_copy(ptr noundef %34)
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %.lr.ph
  tail call void @json_value_free(ptr noundef nonnull %24)
  br label %.loopexit

38:                                               ; preds = %.lr.ph
  %39 = tail call i32 @json_object_add(ptr noundef %27, ptr noundef %33, ptr noundef nonnull %35)
  %40 = icmp eq i32 %39, -1
  br i1 %40, label %41, label %29

41:                                               ; preds = %38
  tail call void @json_value_free(ptr noundef nonnull %24)
  tail call void @json_value_free(ptr noundef nonnull %35)
  br label %.loopexit

42:                                               ; preds = %1
  %43 = tail call i32 @json_value_get_boolean(ptr noundef %0)
  %44 = tail call ptr @json_value_init_boolean(i32 noundef %43)
  br label %.loopexit

45:                                               ; preds = %1
  %46 = tail call double @json_value_get_number(ptr noundef %0)
  %47 = tail call ptr @json_value_init_number(double noundef %46)
  br label %.loopexit

48:                                               ; preds = %1
  %49 = tail call ptr @json_value_get_string(ptr noundef %0)
  %50 = tail call ptr @parson_strdup(ptr noundef %49)
  %51 = icmp eq ptr %50, null
  br i1 %51, label %.loopexit, label %52

52:                                               ; preds = %48
  %53 = tail call ptr @json_value_init_string_no_copy(ptr noundef nonnull %50)
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %.loopexit

55:                                               ; preds = %52
  %56 = load ptr, ptr @parson_free, align 8, !tbaa !8
  tail call void %56(ptr noundef nonnull %50) #1
  br label %.loopexit

57:                                               ; preds = %1
  %58 = tail call ptr @json_value_init_null()
  br label %.loopexit

.loopexit:                                        ; preds = %29, %10, %26, %7, %1, %52, %55, %48, %22, %3, %57, %45, %42, %41, %37, %21, %17
  %.045 = phi ptr [ %58, %57 ], [ %47, %45 ], [ %44, %42 ], [ null, %37 ], [ null, %41 ], [ null, %17 ], [ null, %21 ], [ null, %3 ], [ null, %22 ], [ null, %48 ], [ null, %55 ], [ %53, %52 ], [ null, %1 ], [ %5, %7 ], [ %24, %26 ], [ %5, %10 ], [ %24, %29 ]
  ret ptr %.045
}

; Function Attrs: nounwind uwtable
declare hidden i32 @json_array_add(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @json_object_add(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { 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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}


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